babylon.nodeEditor.max.js 2.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("babylonjs"));
  4. else if(typeof define === 'function' && define.amd)
  5. define("babylonjs-node-editor", ["babylonjs"], factory);
  6. else if(typeof exports === 'object')
  7. exports["babylonjs-node-editor"] = factory(require("babylonjs"));
  8. else
  9. root["NODEEDITOR"] = factory(root["BABYLON"]);
  10. })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__) {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = "./legacy/legacy.ts");
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js":
  99. /*!**************************************************************************************!*\
  100. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/fontawesome-svg-core/index.es.js ***!
  101. \**************************************************************************************/
  102. /*! exports provided: icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition */
  103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  104. "use strict";
  105. __webpack_require__.r(__webpack_exports__);
  106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "icon", function() { return icon; });
  107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noAuto", function() { return noAuto; });
  108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHtml", function() { return toHtml; });
  110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layer", function() { return layer; });
  111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "text", function() { return text; });
  112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "counter", function() { return counter; });
  113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "library", function() { return library; });
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dom", function() { return dom; });
  115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
  117. function _classCallCheck(instance, Constructor) {
  118. if (!(instance instanceof Constructor)) {
  119. throw new TypeError("Cannot call a class as a function");
  120. }
  121. }
  122. function _defineProperties(target, props) {
  123. for (var i = 0; i < props.length; i++) {
  124. var descriptor = props[i];
  125. descriptor.enumerable = descriptor.enumerable || false;
  126. descriptor.configurable = true;
  127. if ("value" in descriptor) descriptor.writable = true;
  128. Object.defineProperty(target, descriptor.key, descriptor);
  129. }
  130. }
  131. function _createClass(Constructor, protoProps, staticProps) {
  132. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  133. if (staticProps) _defineProperties(Constructor, staticProps);
  134. return Constructor;
  135. }
  136. function _defineProperty(obj, key, value) {
  137. if (key in obj) {
  138. Object.defineProperty(obj, key, {
  139. value: value,
  140. enumerable: true,
  141. configurable: true,
  142. writable: true
  143. });
  144. } else {
  145. obj[key] = value;
  146. }
  147. return obj;
  148. }
  149. function _objectSpread(target) {
  150. for (var i = 1; i < arguments.length; i++) {
  151. var source = arguments[i] != null ? arguments[i] : {};
  152. var ownKeys = Object.keys(source);
  153. if (typeof Object.getOwnPropertySymbols === 'function') {
  154. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  155. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  156. }));
  157. }
  158. ownKeys.forEach(function (key) {
  159. _defineProperty(target, key, source[key]);
  160. });
  161. }
  162. return target;
  163. }
  164. function _slicedToArray(arr, i) {
  165. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  166. }
  167. function _toConsumableArray(arr) {
  168. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  169. }
  170. function _arrayWithoutHoles(arr) {
  171. if (Array.isArray(arr)) {
  172. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  173. return arr2;
  174. }
  175. }
  176. function _arrayWithHoles(arr) {
  177. if (Array.isArray(arr)) return arr;
  178. }
  179. function _iterableToArray(iter) {
  180. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  181. }
  182. function _iterableToArrayLimit(arr, i) {
  183. var _arr = [];
  184. var _n = true;
  185. var _d = false;
  186. var _e = undefined;
  187. try {
  188. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  189. _arr.push(_s.value);
  190. if (i && _arr.length === i) break;
  191. }
  192. } catch (err) {
  193. _d = true;
  194. _e = err;
  195. } finally {
  196. try {
  197. if (!_n && _i["return"] != null) _i["return"]();
  198. } finally {
  199. if (_d) throw _e;
  200. }
  201. }
  202. return _arr;
  203. }
  204. function _nonIterableSpread() {
  205. throw new TypeError("Invalid attempt to spread non-iterable instance");
  206. }
  207. function _nonIterableRest() {
  208. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  209. }
  210. var noop = function noop() {};
  211. var _WINDOW = {};
  212. var _DOCUMENT = {};
  213. var _MUTATION_OBSERVER = null;
  214. var _PERFORMANCE = {
  215. mark: noop,
  216. measure: noop
  217. };
  218. try {
  219. if (typeof window !== 'undefined') _WINDOW = window;
  220. if (typeof document !== 'undefined') _DOCUMENT = document;
  221. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  222. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  223. } catch (e) {}
  224. var _ref = _WINDOW.navigator || {},
  225. _ref$userAgent = _ref.userAgent,
  226. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  227. var WINDOW = _WINDOW;
  228. var DOCUMENT = _DOCUMENT;
  229. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  230. var PERFORMANCE = _PERFORMANCE;
  231. var IS_BROWSER = !!WINDOW.document;
  232. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  233. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  234. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  235. var UNITS_IN_GRID = 16;
  236. var DEFAULT_FAMILY_PREFIX = 'fa';
  237. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  238. var DATA_FA_I2SVG = 'data-fa-i2svg';
  239. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  240. var DATA_PREFIX = 'data-prefix';
  241. var DATA_ICON = 'data-icon';
  242. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  243. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  244. var PRODUCTION = function () {
  245. try {
  246. return "development" === 'production';
  247. } catch (e) {
  248. return false;
  249. }
  250. }();
  251. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  252. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  253. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  254. 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', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  255. return "".concat(n, "x");
  256. })).concat(oneToTwenty.map(function (n) {
  257. return "w-".concat(n);
  258. }));
  259. var initial = WINDOW.FontAwesomeConfig || {};
  260. function getAttrConfig(attr) {
  261. var element = DOCUMENT.querySelector('script[' + attr + ']');
  262. if (element) {
  263. return element.getAttribute(attr);
  264. }
  265. }
  266. function coerce(val) {
  267. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  268. // We'll assume that this is an indication that it should be toggled to true
  269. // For example <script data-search-pseudo-elements src="..."></script>
  270. if (val === '') return true;
  271. if (val === 'false') return false;
  272. if (val === 'true') return true;
  273. return val;
  274. }
  275. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  276. 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-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  277. attrs.forEach(function (_ref) {
  278. var _ref2 = _slicedToArray(_ref, 2),
  279. attr = _ref2[0],
  280. key = _ref2[1];
  281. var val = coerce(getAttrConfig(attr));
  282. if (val !== undefined && val !== null) {
  283. initial[key] = val;
  284. }
  285. });
  286. }
  287. var _default = _objectSpread({
  288. familyPrefix: DEFAULT_FAMILY_PREFIX,
  289. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  290. autoReplaceSvg: true,
  291. autoAddCss: true,
  292. autoA11y: true,
  293. searchPseudoElements: false,
  294. observeMutations: true,
  295. keepOriginalSource: true,
  296. measurePerformance: false,
  297. showMissingIcons: true
  298. }, initial);
  299. if (!_default.autoReplaceSvg) _default.observeMutations = false;
  300. var config = _objectSpread({}, _default);
  301. WINDOW.FontAwesomeConfig = config;
  302. var w = WINDOW || {};
  303. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  304. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  305. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  306. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  307. var namespace = w[NAMESPACE_IDENTIFIER];
  308. var functions = [];
  309. var listener = function listener() {
  310. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  311. loaded = 1;
  312. functions.map(function (fn) {
  313. return fn();
  314. });
  315. };
  316. var loaded = false;
  317. if (IS_DOM) {
  318. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  319. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  320. }
  321. function domready (fn) {
  322. if (!IS_DOM) return;
  323. loaded ? setTimeout(fn, 0) : functions.push(fn);
  324. }
  325. var d = UNITS_IN_GRID;
  326. var meaninglessTransform = {
  327. size: 16,
  328. x: 0,
  329. y: 0,
  330. rotate: 0,
  331. flipX: false,
  332. flipY: false
  333. };
  334. function isReserved(name) {
  335. return ~RESERVED_CLASSES.indexOf(name);
  336. }
  337. function insertCss(css) {
  338. if (!css || !IS_DOM) {
  339. return;
  340. }
  341. var style = DOCUMENT.createElement('style');
  342. style.setAttribute('type', 'text/css');
  343. style.innerHTML = css;
  344. var headChildren = DOCUMENT.head.childNodes;
  345. var beforeChild = null;
  346. for (var i = headChildren.length - 1; i > -1; i--) {
  347. var child = headChildren[i];
  348. var tagName = (child.tagName || '').toUpperCase();
  349. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  350. beforeChild = child;
  351. }
  352. }
  353. DOCUMENT.head.insertBefore(style, beforeChild);
  354. return css;
  355. }
  356. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  357. function nextUniqueId() {
  358. var size = 12;
  359. var id = '';
  360. while (size-- > 0) {
  361. id += idPool[Math.random() * 62 | 0];
  362. }
  363. return id;
  364. }
  365. function toArray(obj) {
  366. var array = [];
  367. for (var i = (obj || []).length >>> 0; i--;) {
  368. array[i] = obj[i];
  369. }
  370. return array;
  371. }
  372. function classArray(node) {
  373. if (node.classList) {
  374. return toArray(node.classList);
  375. } else {
  376. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  377. return i;
  378. });
  379. }
  380. }
  381. function getIconName(familyPrefix, cls) {
  382. var parts = cls.split('-');
  383. var prefix = parts[0];
  384. var iconName = parts.slice(1).join('-');
  385. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  386. return iconName;
  387. } else {
  388. return null;
  389. }
  390. }
  391. function htmlEscape(str) {
  392. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  393. }
  394. function joinAttributes(attributes) {
  395. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  396. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  397. }, '').trim();
  398. }
  399. function joinStyles(styles) {
  400. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  401. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  402. }, '');
  403. }
  404. function transformIsMeaningful(transform) {
  405. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  406. }
  407. function transformForSvg(_ref) {
  408. var transform = _ref.transform,
  409. containerWidth = _ref.containerWidth,
  410. iconWidth = _ref.iconWidth;
  411. var outer = {
  412. transform: "translate(".concat(containerWidth / 2, " 256)")
  413. };
  414. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  415. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  416. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  417. var inner = {
  418. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  419. };
  420. var path = {
  421. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  422. };
  423. return {
  424. outer: outer,
  425. inner: inner,
  426. path: path
  427. };
  428. }
  429. function transformForCss(_ref2) {
  430. var transform = _ref2.transform,
  431. _ref2$width = _ref2.width,
  432. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  433. _ref2$height = _ref2.height,
  434. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  435. _ref2$startCentered = _ref2.startCentered,
  436. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  437. var val = '';
  438. if (startCentered && IS_IE) {
  439. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  440. } else if (startCentered) {
  441. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  442. } else {
  443. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  444. }
  445. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  446. val += "rotate(".concat(transform.rotate, "deg) ");
  447. return val;
  448. }
  449. var ALL_SPACE = {
  450. x: 0,
  451. y: 0,
  452. width: '100%',
  453. height: '100%'
  454. };
  455. function makeIconMasking (_ref) {
  456. var children = _ref.children,
  457. attributes = _ref.attributes,
  458. main = _ref.main,
  459. mask = _ref.mask,
  460. transform = _ref.transform;
  461. var mainWidth = main.width,
  462. mainPath = main.icon;
  463. var maskWidth = mask.width,
  464. maskPath = mask.icon;
  465. var trans = transformForSvg({
  466. transform: transform,
  467. containerWidth: maskWidth,
  468. iconWidth: mainWidth
  469. });
  470. var maskRect = {
  471. tag: 'rect',
  472. attributes: _objectSpread({}, ALL_SPACE, {
  473. fill: 'white'
  474. })
  475. };
  476. var maskInnerGroup = {
  477. tag: 'g',
  478. attributes: _objectSpread({}, trans.inner),
  479. children: [{
  480. tag: 'path',
  481. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  482. fill: 'black'
  483. })
  484. }]
  485. };
  486. var maskOuterGroup = {
  487. tag: 'g',
  488. attributes: _objectSpread({}, trans.outer),
  489. children: [maskInnerGroup]
  490. };
  491. var maskId = "mask-".concat(nextUniqueId());
  492. var clipId = "clip-".concat(nextUniqueId());
  493. var maskTag = {
  494. tag: 'mask',
  495. attributes: _objectSpread({}, ALL_SPACE, {
  496. id: maskId,
  497. maskUnits: 'userSpaceOnUse',
  498. maskContentUnits: 'userSpaceOnUse'
  499. }),
  500. children: [maskRect, maskOuterGroup]
  501. };
  502. var defs = {
  503. tag: 'defs',
  504. children: [{
  505. tag: 'clipPath',
  506. attributes: {
  507. id: clipId
  508. },
  509. children: [maskPath]
  510. }, maskTag]
  511. };
  512. children.push(defs, {
  513. tag: 'rect',
  514. attributes: _objectSpread({
  515. fill: 'currentColor',
  516. 'clip-path': "url(#".concat(clipId, ")"),
  517. mask: "url(#".concat(maskId, ")")
  518. }, ALL_SPACE)
  519. });
  520. return {
  521. children: children,
  522. attributes: attributes
  523. };
  524. }
  525. function makeIconStandard (_ref) {
  526. var children = _ref.children,
  527. attributes = _ref.attributes,
  528. main = _ref.main,
  529. transform = _ref.transform,
  530. styles = _ref.styles;
  531. var styleString = joinStyles(styles);
  532. if (styleString.length > 0) {
  533. attributes['style'] = styleString;
  534. }
  535. if (transformIsMeaningful(transform)) {
  536. var trans = transformForSvg({
  537. transform: transform,
  538. containerWidth: main.width,
  539. iconWidth: main.width
  540. });
  541. children.push({
  542. tag: 'g',
  543. attributes: _objectSpread({}, trans.outer),
  544. children: [{
  545. tag: 'g',
  546. attributes: _objectSpread({}, trans.inner),
  547. children: [{
  548. tag: main.icon.tag,
  549. children: main.icon.children,
  550. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  551. }]
  552. }]
  553. });
  554. } else {
  555. children.push(main.icon);
  556. }
  557. return {
  558. children: children,
  559. attributes: attributes
  560. };
  561. }
  562. function asIcon (_ref) {
  563. var children = _ref.children,
  564. main = _ref.main,
  565. mask = _ref.mask,
  566. attributes = _ref.attributes,
  567. styles = _ref.styles,
  568. transform = _ref.transform;
  569. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  570. var width = main.width,
  571. height = main.height;
  572. var offset = {
  573. x: width / height / 2,
  574. y: 0.5
  575. };
  576. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  577. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  578. }));
  579. }
  580. return [{
  581. tag: 'svg',
  582. attributes: attributes,
  583. children: children
  584. }];
  585. }
  586. function asSymbol (_ref) {
  587. var prefix = _ref.prefix,
  588. iconName = _ref.iconName,
  589. children = _ref.children,
  590. attributes = _ref.attributes,
  591. symbol = _ref.symbol;
  592. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  593. return [{
  594. tag: 'svg',
  595. attributes: {
  596. style: 'display: none;'
  597. },
  598. children: [{
  599. tag: 'symbol',
  600. attributes: _objectSpread({}, attributes, {
  601. id: id
  602. }),
  603. children: children
  604. }]
  605. }];
  606. }
  607. function makeInlineSvgAbstract(params) {
  608. var _params$icons = params.icons,
  609. main = _params$icons.main,
  610. mask = _params$icons.mask,
  611. prefix = params.prefix,
  612. iconName = params.iconName,
  613. transform = params.transform,
  614. symbol = params.symbol,
  615. title = params.title,
  616. extra = params.extra,
  617. _params$watchable = params.watchable,
  618. watchable = _params$watchable === void 0 ? false : _params$watchable;
  619. var _ref = mask.found ? mask : main,
  620. width = _ref.width,
  621. height = _ref.height;
  622. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  623. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  624. return extra.classes.indexOf(c) === -1;
  625. }).concat(extra.classes).join(' ');
  626. var content = {
  627. children: [],
  628. attributes: _objectSpread({}, extra.attributes, {
  629. 'data-prefix': prefix,
  630. 'data-icon': iconName,
  631. 'class': attrClass,
  632. 'role': 'img',
  633. 'xmlns': 'http://www.w3.org/2000/svg',
  634. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  635. })
  636. };
  637. if (watchable) {
  638. content.attributes[DATA_FA_I2SVG] = '';
  639. }
  640. if (title) content.children.push({
  641. tag: 'title',
  642. attributes: {
  643. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  644. },
  645. children: [title]
  646. });
  647. var args = _objectSpread({}, content, {
  648. prefix: prefix,
  649. iconName: iconName,
  650. main: main,
  651. mask: mask,
  652. transform: transform,
  653. symbol: symbol,
  654. styles: extra.styles
  655. });
  656. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  657. children = _ref2.children,
  658. attributes = _ref2.attributes;
  659. args.children = children;
  660. args.attributes = attributes;
  661. if (symbol) {
  662. return asSymbol(args);
  663. } else {
  664. return asIcon(args);
  665. }
  666. }
  667. function makeLayersTextAbstract(params) {
  668. var content = params.content,
  669. width = params.width,
  670. height = params.height,
  671. transform = params.transform,
  672. title = params.title,
  673. extra = params.extra,
  674. _params$watchable2 = params.watchable,
  675. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  676. var attributes = _objectSpread({}, extra.attributes, title ? {
  677. 'title': title
  678. } : {}, {
  679. 'class': extra.classes.join(' ')
  680. });
  681. if (watchable) {
  682. attributes[DATA_FA_I2SVG] = '';
  683. }
  684. var styles = _objectSpread({}, extra.styles);
  685. if (transformIsMeaningful(transform)) {
  686. styles['transform'] = transformForCss({
  687. transform: transform,
  688. startCentered: true,
  689. width: width,
  690. height: height
  691. });
  692. styles['-webkit-transform'] = styles['transform'];
  693. }
  694. var styleString = joinStyles(styles);
  695. if (styleString.length > 0) {
  696. attributes['style'] = styleString;
  697. }
  698. var val = [];
  699. val.push({
  700. tag: 'span',
  701. attributes: attributes,
  702. children: [content]
  703. });
  704. if (title) {
  705. val.push({
  706. tag: 'span',
  707. attributes: {
  708. class: 'sr-only'
  709. },
  710. children: [title]
  711. });
  712. }
  713. return val;
  714. }
  715. function makeLayersCounterAbstract(params) {
  716. var content = params.content,
  717. title = params.title,
  718. extra = params.extra;
  719. var attributes = _objectSpread({}, extra.attributes, title ? {
  720. 'title': title
  721. } : {}, {
  722. 'class': extra.classes.join(' ')
  723. });
  724. var styleString = joinStyles(extra.styles);
  725. if (styleString.length > 0) {
  726. attributes['style'] = styleString;
  727. }
  728. var val = [];
  729. val.push({
  730. tag: 'span',
  731. attributes: attributes,
  732. children: [content]
  733. });
  734. if (title) {
  735. val.push({
  736. tag: 'span',
  737. attributes: {
  738. class: 'sr-only'
  739. },
  740. children: [title]
  741. });
  742. }
  743. return val;
  744. }
  745. var noop$1 = function noop() {};
  746. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  747. mark: noop$1,
  748. measure: noop$1
  749. };
  750. var preamble = "FA \"5.6.3\"";
  751. var begin = function begin(name) {
  752. p.mark("".concat(preamble, " ").concat(name, " begins"));
  753. return function () {
  754. return end(name);
  755. };
  756. };
  757. var end = function end(name) {
  758. p.mark("".concat(preamble, " ").concat(name, " ends"));
  759. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  760. };
  761. var perf = {
  762. begin: begin,
  763. end: end
  764. };
  765. /**
  766. * Internal helper to bind a function known to have 4 arguments
  767. * to a given context.
  768. */
  769. var bindInternal4 = function bindInternal4(func, thisContext) {
  770. return function (a, b, c, d) {
  771. return func.call(thisContext, a, b, c, d);
  772. };
  773. };
  774. /**
  775. * # Reduce
  776. *
  777. * A fast object `.reduce()` implementation.
  778. *
  779. * @param {Object} subject The object to reduce over.
  780. * @param {Function} fn The reducer function.
  781. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  782. * @param {Object} thisContext The context for the reducer.
  783. * @return {mixed} The final result.
  784. */
  785. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  786. var keys = Object.keys(subject),
  787. length = keys.length,
  788. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  789. i,
  790. key,
  791. result;
  792. if (initialValue === undefined) {
  793. i = 1;
  794. result = subject[keys[0]];
  795. } else {
  796. i = 0;
  797. result = initialValue;
  798. }
  799. for (; i < length; i++) {
  800. key = keys[i];
  801. result = iterator(result, subject[key], key, subject);
  802. }
  803. return result;
  804. };
  805. var styles = namespace.styles,
  806. shims = namespace.shims;
  807. var _byUnicode = {};
  808. var _byLigature = {};
  809. var _byOldName = {};
  810. var build = function build() {
  811. var lookup = function lookup(reducer) {
  812. return reduce(styles, function (o, style, prefix) {
  813. o[prefix] = reduce(style, reducer, {});
  814. return o;
  815. }, {});
  816. };
  817. _byUnicode = lookup(function (acc, icon, iconName) {
  818. acc[icon[3]] = iconName;
  819. return acc;
  820. });
  821. _byLigature = lookup(function (acc, icon, iconName) {
  822. var ligatures = icon[2];
  823. acc[iconName] = iconName;
  824. ligatures.forEach(function (ligature) {
  825. acc[ligature] = iconName;
  826. });
  827. return acc;
  828. });
  829. var hasRegular = 'far' in styles;
  830. _byOldName = reduce(shims, function (acc, shim) {
  831. var oldName = shim[0];
  832. var prefix = shim[1];
  833. var iconName = shim[2];
  834. if (prefix === 'far' && !hasRegular) {
  835. prefix = 'fas';
  836. }
  837. acc[oldName] = {
  838. prefix: prefix,
  839. iconName: iconName
  840. };
  841. return acc;
  842. }, {});
  843. };
  844. build();
  845. function byUnicode(prefix, unicode) {
  846. return _byUnicode[prefix][unicode];
  847. }
  848. function byLigature(prefix, ligature) {
  849. return _byLigature[prefix][ligature];
  850. }
  851. function byOldName(name) {
  852. return _byOldName[name] || {
  853. prefix: null,
  854. iconName: null
  855. };
  856. }
  857. var styles$1 = namespace.styles;
  858. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  859. return {
  860. prefix: null,
  861. iconName: null,
  862. rest: []
  863. };
  864. };
  865. function getCanonicalIcon(values) {
  866. return values.reduce(function (acc, cls) {
  867. var iconName = getIconName(config.familyPrefix, cls);
  868. if (styles$1[cls]) {
  869. acc.prefix = cls;
  870. } else if (iconName) {
  871. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  872. acc.iconName = shim.iconName || iconName;
  873. acc.prefix = shim.prefix || acc.prefix;
  874. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  875. acc.rest.push(cls);
  876. }
  877. return acc;
  878. }, emptyCanonicalIcon());
  879. }
  880. function iconFromMapping(mapping, prefix, iconName) {
  881. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  882. return {
  883. prefix: prefix,
  884. iconName: iconName,
  885. icon: mapping[prefix][iconName]
  886. };
  887. }
  888. }
  889. function toHtml(abstractNodes) {
  890. var tag = abstractNodes.tag,
  891. _abstractNodes$attrib = abstractNodes.attributes,
  892. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  893. _abstractNodes$childr = abstractNodes.children,
  894. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  895. if (typeof abstractNodes === 'string') {
  896. return htmlEscape(abstractNodes);
  897. } else {
  898. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  899. }
  900. }
  901. var noop$2 = function noop() {};
  902. function isWatched(node) {
  903. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  904. return typeof i2svg === 'string';
  905. }
  906. function getMutator() {
  907. if (config.autoReplaceSvg === true) {
  908. return mutators.replace;
  909. }
  910. var mutator = mutators[config.autoReplaceSvg];
  911. return mutator || mutators.replace;
  912. }
  913. var mutators = {
  914. replace: function replace(mutation) {
  915. var node = mutation[0];
  916. var abstract = mutation[1];
  917. var newOuterHTML = abstract.map(function (a) {
  918. return toHtml(a);
  919. }).join('\n');
  920. if (node.parentNode && node.outerHTML) {
  921. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  922. } else if (node.parentNode) {
  923. var newNode = document.createElement('span');
  924. node.parentNode.replaceChild(newNode, node);
  925. newNode.outerHTML = newOuterHTML;
  926. }
  927. },
  928. nest: function nest(mutation) {
  929. var node = mutation[0];
  930. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  931. // Short-circuit to the standard replacement
  932. if (~classArray(node).indexOf(config.replacementClass)) {
  933. return mutators.replace(mutation);
  934. }
  935. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  936. delete abstract[0].attributes.style;
  937. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  938. if (cls === config.replacementClass || cls.match(forSvg)) {
  939. acc.toSvg.push(cls);
  940. } else {
  941. acc.toNode.push(cls);
  942. }
  943. return acc;
  944. }, {
  945. toNode: [],
  946. toSvg: []
  947. });
  948. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  949. var newInnerHTML = abstract.map(function (a) {
  950. return toHtml(a);
  951. }).join('\n');
  952. node.setAttribute('class', splitClasses.toNode.join(' '));
  953. node.setAttribute(DATA_FA_I2SVG, '');
  954. node.innerHTML = newInnerHTML;
  955. }
  956. };
  957. function perform(mutations, callback) {
  958. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  959. if (mutations.length === 0) {
  960. callbackFunction();
  961. } else {
  962. var frame = WINDOW.requestAnimationFrame || function (op) {
  963. return op();
  964. };
  965. frame(function () {
  966. var mutator = getMutator();
  967. var mark = perf.begin('mutate');
  968. mutations.map(mutator);
  969. mark();
  970. callbackFunction();
  971. });
  972. }
  973. }
  974. var disabled = false;
  975. function disableObservation(operation) {
  976. disabled = true;
  977. operation();
  978. disabled = false;
  979. }
  980. var mo = null;
  981. function observe(options) {
  982. if (!MUTATION_OBSERVER) {
  983. return;
  984. }
  985. if (!config.observeMutations) {
  986. return;
  987. }
  988. var treeCallback = options.treeCallback,
  989. nodeCallback = options.nodeCallback,
  990. pseudoElementsCallback = options.pseudoElementsCallback,
  991. _options$observeMutat = options.observeMutationsRoot,
  992. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT.body : _options$observeMutat;
  993. mo = new MUTATION_OBSERVER(function (objects) {
  994. if (disabled) return;
  995. toArray(objects).forEach(function (mutationRecord) {
  996. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  997. if (config.searchPseudoElements) {
  998. pseudoElementsCallback(mutationRecord.target);
  999. }
  1000. treeCallback(mutationRecord.target);
  1001. }
  1002. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1003. pseudoElementsCallback(mutationRecord.target.parentNode);
  1004. }
  1005. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1006. if (mutationRecord.attributeName === 'class') {
  1007. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1008. prefix = _getCanonicalIcon.prefix,
  1009. iconName = _getCanonicalIcon.iconName;
  1010. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1011. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1012. } else {
  1013. nodeCallback(mutationRecord.target);
  1014. }
  1015. }
  1016. });
  1017. });
  1018. if (!IS_DOM) return;
  1019. mo.observe(observeMutationsRoot, {
  1020. childList: true,
  1021. attributes: true,
  1022. characterData: true,
  1023. subtree: true
  1024. });
  1025. }
  1026. function disconnect() {
  1027. if (!mo) return;
  1028. mo.disconnect();
  1029. }
  1030. function styleParser (node) {
  1031. var style = node.getAttribute('style');
  1032. var val = [];
  1033. if (style) {
  1034. val = style.split(';').reduce(function (acc, style) {
  1035. var styles = style.split(':');
  1036. var prop = styles[0];
  1037. var value = styles.slice(1);
  1038. if (prop && value.length > 0) {
  1039. acc[prop] = value.join(':').trim();
  1040. }
  1041. return acc;
  1042. }, {});
  1043. }
  1044. return val;
  1045. }
  1046. function toHex(unicode) {
  1047. var result = '';
  1048. for (var i = 0; i < unicode.length; i++) {
  1049. var hex = unicode.charCodeAt(i).toString(16);
  1050. result += ('000' + hex).slice(-4);
  1051. }
  1052. return result;
  1053. }
  1054. function classParser (node) {
  1055. var existingPrefix = node.getAttribute('data-prefix');
  1056. var existingIconName = node.getAttribute('data-icon');
  1057. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1058. var val = getCanonicalIcon(classArray(node));
  1059. if (existingPrefix && existingIconName) {
  1060. val.prefix = existingPrefix;
  1061. val.iconName = existingIconName;
  1062. }
  1063. if (val.prefix && innerText.length > 1) {
  1064. val.iconName = byLigature(val.prefix, node.innerText);
  1065. } else if (val.prefix && innerText.length === 1) {
  1066. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1067. }
  1068. return val;
  1069. }
  1070. var parseTransformString = function parseTransformString(transformString) {
  1071. var transform = {
  1072. size: 16,
  1073. x: 0,
  1074. y: 0,
  1075. flipX: false,
  1076. flipY: false,
  1077. rotate: 0
  1078. };
  1079. if (!transformString) {
  1080. return transform;
  1081. } else {
  1082. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1083. var parts = n.toLowerCase().split('-');
  1084. var first = parts[0];
  1085. var rest = parts.slice(1).join('-');
  1086. if (first && rest === 'h') {
  1087. acc.flipX = true;
  1088. return acc;
  1089. }
  1090. if (first && rest === 'v') {
  1091. acc.flipY = true;
  1092. return acc;
  1093. }
  1094. rest = parseFloat(rest);
  1095. if (isNaN(rest)) {
  1096. return acc;
  1097. }
  1098. switch (first) {
  1099. case 'grow':
  1100. acc.size = acc.size + rest;
  1101. break;
  1102. case 'shrink':
  1103. acc.size = acc.size - rest;
  1104. break;
  1105. case 'left':
  1106. acc.x = acc.x - rest;
  1107. break;
  1108. case 'right':
  1109. acc.x = acc.x + rest;
  1110. break;
  1111. case 'up':
  1112. acc.y = acc.y - rest;
  1113. break;
  1114. case 'down':
  1115. acc.y = acc.y + rest;
  1116. break;
  1117. case 'rotate':
  1118. acc.rotate = acc.rotate + rest;
  1119. break;
  1120. }
  1121. return acc;
  1122. }, transform);
  1123. }
  1124. };
  1125. function transformParser (node) {
  1126. return parseTransformString(node.getAttribute('data-fa-transform'));
  1127. }
  1128. function symbolParser (node) {
  1129. var symbol = node.getAttribute('data-fa-symbol');
  1130. return symbol === null ? false : symbol === '' ? true : symbol;
  1131. }
  1132. function attributesParser (node) {
  1133. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1134. if (acc.name !== 'class' && acc.name !== 'style') {
  1135. acc[attr.name] = attr.value;
  1136. }
  1137. return acc;
  1138. }, {});
  1139. var title = node.getAttribute('title');
  1140. if (config.autoA11y) {
  1141. if (title) {
  1142. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1143. } else {
  1144. extraAttributes['aria-hidden'] = 'true';
  1145. }
  1146. }
  1147. return extraAttributes;
  1148. }
  1149. function maskParser (node) {
  1150. var mask = node.getAttribute('data-fa-mask');
  1151. if (!mask) {
  1152. return emptyCanonicalIcon();
  1153. } else {
  1154. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1155. return i.trim();
  1156. }));
  1157. }
  1158. }
  1159. var blankMeta = {
  1160. iconName: null,
  1161. title: null,
  1162. prefix: null,
  1163. transform: meaninglessTransform,
  1164. symbol: false,
  1165. mask: null,
  1166. extra: {
  1167. classes: [],
  1168. styles: {},
  1169. attributes: {}
  1170. }
  1171. };
  1172. function parseMeta(node) {
  1173. var _classParser = classParser(node),
  1174. iconName = _classParser.iconName,
  1175. prefix = _classParser.prefix,
  1176. extraClasses = _classParser.rest;
  1177. var extraStyles = styleParser(node);
  1178. var transform = transformParser(node);
  1179. var symbol = symbolParser(node);
  1180. var extraAttributes = attributesParser(node);
  1181. var mask = maskParser(node);
  1182. return {
  1183. iconName: iconName,
  1184. title: node.getAttribute('title'),
  1185. prefix: prefix,
  1186. transform: transform,
  1187. symbol: symbol,
  1188. mask: mask,
  1189. extra: {
  1190. classes: extraClasses,
  1191. styles: extraStyles,
  1192. attributes: extraAttributes
  1193. }
  1194. };
  1195. }
  1196. function MissingIcon(error) {
  1197. this.name = 'MissingIcon';
  1198. this.message = error || 'Icon unavailable';
  1199. this.stack = new Error().stack;
  1200. }
  1201. MissingIcon.prototype = Object.create(Error.prototype);
  1202. MissingIcon.prototype.constructor = MissingIcon;
  1203. var FILL = {
  1204. fill: 'currentColor'
  1205. };
  1206. var ANIMATION_BASE = {
  1207. attributeType: 'XML',
  1208. repeatCount: 'indefinite',
  1209. dur: '2s'
  1210. };
  1211. var RING = {
  1212. tag: 'path',
  1213. attributes: _objectSpread({}, FILL, {
  1214. 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'
  1215. })
  1216. };
  1217. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1218. attributeName: 'opacity'
  1219. });
  1220. var DOT = {
  1221. tag: 'circle',
  1222. attributes: _objectSpread({}, FILL, {
  1223. cx: '256',
  1224. cy: '364',
  1225. r: '28'
  1226. }),
  1227. children: [{
  1228. tag: 'animate',
  1229. attributes: _objectSpread({}, ANIMATION_BASE, {
  1230. attributeName: 'r',
  1231. values: '28;14;28;28;14;28;'
  1232. })
  1233. }, {
  1234. tag: 'animate',
  1235. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1236. values: '1;0;1;1;0;1;'
  1237. })
  1238. }]
  1239. };
  1240. var QUESTION = {
  1241. tag: 'path',
  1242. attributes: _objectSpread({}, FILL, {
  1243. opacity: '1',
  1244. 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'
  1245. }),
  1246. children: [{
  1247. tag: 'animate',
  1248. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1249. values: '1;0;0;0;0;1;'
  1250. })
  1251. }]
  1252. };
  1253. var EXCLAMATION = {
  1254. tag: 'path',
  1255. attributes: _objectSpread({}, FILL, {
  1256. opacity: '0',
  1257. 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'
  1258. }),
  1259. children: [{
  1260. tag: 'animate',
  1261. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1262. values: '0;0;1;1;0;0;'
  1263. })
  1264. }]
  1265. };
  1266. var missing = {
  1267. tag: 'g',
  1268. children: [RING, DOT, QUESTION, EXCLAMATION]
  1269. };
  1270. var styles$2 = namespace.styles;
  1271. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  1272. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  1273. var STYLE_TO_PREFIX = {
  1274. 'Solid': 'fas',
  1275. 'Regular': 'far',
  1276. 'Light': 'fal',
  1277. 'Brands': 'fab'
  1278. };
  1279. var FONT_WEIGHT_TO_PREFIX = {
  1280. '900': 'fas',
  1281. '400': 'far',
  1282. '300': 'fal'
  1283. };
  1284. function findIcon(iconName, prefix) {
  1285. var val = {
  1286. found: false,
  1287. width: 512,
  1288. height: 512,
  1289. icon: missing
  1290. };
  1291. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1292. var icon = styles$2[prefix][iconName];
  1293. var width = icon[0];
  1294. var height = icon[1];
  1295. var vectorData = icon.slice(4);
  1296. val = {
  1297. found: true,
  1298. width: width,
  1299. height: height,
  1300. icon: {
  1301. tag: 'path',
  1302. attributes: {
  1303. fill: 'currentColor',
  1304. d: vectorData[0]
  1305. }
  1306. }
  1307. };
  1308. } else if (iconName && prefix && !config.showMissingIcons) {
  1309. throw new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName));
  1310. }
  1311. return val;
  1312. }
  1313. function generateSvgReplacementMutation(node, nodeMeta) {
  1314. var iconName = nodeMeta.iconName,
  1315. title = nodeMeta.title,
  1316. prefix = nodeMeta.prefix,
  1317. transform = nodeMeta.transform,
  1318. symbol = nodeMeta.symbol,
  1319. mask = nodeMeta.mask,
  1320. extra = nodeMeta.extra;
  1321. return [node, makeInlineSvgAbstract({
  1322. icons: {
  1323. main: findIcon(iconName, prefix),
  1324. mask: findIcon(mask.iconName, mask.prefix)
  1325. },
  1326. prefix: prefix,
  1327. iconName: iconName,
  1328. transform: transform,
  1329. symbol: symbol,
  1330. mask: mask,
  1331. title: title,
  1332. extra: extra,
  1333. watchable: true
  1334. })];
  1335. }
  1336. function generateLayersText(node, nodeMeta) {
  1337. var title = nodeMeta.title,
  1338. transform = nodeMeta.transform,
  1339. extra = nodeMeta.extra;
  1340. var width = null;
  1341. var height = null;
  1342. if (IS_IE) {
  1343. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1344. var boundingClientRect = node.getBoundingClientRect();
  1345. width = boundingClientRect.width / computedFontSize;
  1346. height = boundingClientRect.height / computedFontSize;
  1347. }
  1348. if (config.autoA11y && !title) {
  1349. extra.attributes['aria-hidden'] = 'true';
  1350. }
  1351. return [node, makeLayersTextAbstract({
  1352. content: node.innerHTML,
  1353. width: width,
  1354. height: height,
  1355. transform: transform,
  1356. title: title,
  1357. extra: extra,
  1358. watchable: true
  1359. })];
  1360. }
  1361. function generateMutation(node) {
  1362. var nodeMeta = parseMeta(node);
  1363. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1364. return generateLayersText(node, nodeMeta);
  1365. } else {
  1366. return generateSvgReplacementMutation(node, nodeMeta);
  1367. }
  1368. }
  1369. function searchPseudoElements(root) {
  1370. if (!IS_DOM) return;
  1371. var end = perf.begin('searchPseudoElements');
  1372. disableObservation(function () {
  1373. toArray(root.querySelectorAll('*')).filter(function (n) {
  1374. return n.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(n.tagName.toUpperCase()) && !n.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!n.parentNode || n.parentNode.tagName !== 'svg');
  1375. }).forEach(function (node) {
  1376. [':before', ':after'].forEach(function (pos) {
  1377. var children = toArray(node.children);
  1378. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1379. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === pos;
  1380. })[0];
  1381. var styles = WINDOW.getComputedStyle(node, pos);
  1382. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1383. var fontWeight = styles.getPropertyValue('font-weight');
  1384. if (alreadyProcessedPseudoElement && !fontFamily) {
  1385. // If we've already processed it but the current computed style does not result in a font-family,
  1386. // that probably means that a class name that was previously present to make the icon has been
  1387. // removed. So we now should delete the icon.
  1388. node.removeChild(alreadyProcessedPseudoElement);
  1389. } else if (fontFamily) {
  1390. var content = styles.getPropertyValue('content');
  1391. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1]] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1392. var iconName = byUnicode(prefix, toHex(content.length === 3 ? content.substr(1, 1) : content)); // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1393. // already done so with the same prefix and iconName
  1394. if (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconName) {
  1395. if (alreadyProcessedPseudoElement) {
  1396. // Delete the old one, since we're replacing it with a new one
  1397. node.removeChild(alreadyProcessedPseudoElement);
  1398. }
  1399. var extra = blankMeta.extra;
  1400. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = pos;
  1401. var abstract = makeInlineSvgAbstract(_objectSpread({}, blankMeta, {
  1402. icons: {
  1403. main: findIcon(iconName, prefix),
  1404. mask: emptyCanonicalIcon()
  1405. },
  1406. prefix: prefix,
  1407. iconName: iconName,
  1408. extra: extra,
  1409. watchable: true
  1410. }));
  1411. var element = DOCUMENT.createElement('svg');
  1412. if (pos === ':before') {
  1413. node.insertBefore(element, node.firstChild);
  1414. } else {
  1415. node.appendChild(element);
  1416. }
  1417. element.outerHTML = abstract.map(function (a) {
  1418. return toHtml(a);
  1419. }).join('\n');
  1420. }
  1421. }
  1422. });
  1423. });
  1424. });
  1425. end();
  1426. }
  1427. function onTree(root) {
  1428. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1429. if (!IS_DOM) return;
  1430. var htmlClassList = DOCUMENT.documentElement.classList;
  1431. var hclAdd = function hclAdd(suffix) {
  1432. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1433. };
  1434. var hclRemove = function hclRemove(suffix) {
  1435. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1436. };
  1437. var prefixes = Object.keys(styles$2);
  1438. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1439. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1440. })).join(', ');
  1441. if (prefixesDomQuery.length === 0) {
  1442. return;
  1443. }
  1444. var candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1445. if (candidates.length > 0) {
  1446. hclAdd('pending');
  1447. hclRemove('complete');
  1448. } else {
  1449. return;
  1450. }
  1451. var mark = perf.begin('onTree');
  1452. var mutations = candidates.reduce(function (acc, node) {
  1453. try {
  1454. var mutation = generateMutation(node);
  1455. if (mutation) {
  1456. acc.push(mutation);
  1457. }
  1458. } catch (e) {
  1459. if (!PRODUCTION) {
  1460. if (e instanceof MissingIcon) {
  1461. console.error(e);
  1462. }
  1463. }
  1464. }
  1465. return acc;
  1466. }, []);
  1467. mark();
  1468. perform(mutations, function () {
  1469. hclAdd('active');
  1470. hclAdd('complete');
  1471. hclRemove('pending');
  1472. if (typeof callback === 'function') callback();
  1473. });
  1474. }
  1475. function onNode(node) {
  1476. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1477. var mutation = generateMutation(node);
  1478. if (mutation) {
  1479. perform([mutation], callback);
  1480. }
  1481. }
  1482. 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-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 -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}";
  1483. function css () {
  1484. var dfp = DEFAULT_FAMILY_PREFIX;
  1485. var drc = DEFAULT_REPLACEMENT_CLASS;
  1486. var fp = config.familyPrefix;
  1487. var rc = config.replacementClass;
  1488. var s = baseStyles;
  1489. if (fp !== dfp || rc !== drc) {
  1490. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1491. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1492. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1493. }
  1494. return s;
  1495. }
  1496. function define(prefix, icons) {
  1497. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1498. var icon = icons[iconName];
  1499. var expanded = !!icon.icon;
  1500. if (expanded) {
  1501. acc[icon.iconName] = icon.icon;
  1502. } else {
  1503. acc[iconName] = icon;
  1504. }
  1505. return acc;
  1506. }, {});
  1507. if (typeof namespace.hooks.addPack === 'function') {
  1508. namespace.hooks.addPack(prefix, normalized);
  1509. } else {
  1510. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1511. }
  1512. /**
  1513. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1514. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1515. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1516. * this as well.
  1517. */
  1518. if (prefix === 'fas') {
  1519. define('fa', icons);
  1520. }
  1521. }
  1522. var Library =
  1523. /*#__PURE__*/
  1524. function () {
  1525. function Library() {
  1526. _classCallCheck(this, Library);
  1527. this.definitions = {};
  1528. }
  1529. _createClass(Library, [{
  1530. key: "add",
  1531. value: function add() {
  1532. var _this = this;
  1533. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1534. definitions[_key] = arguments[_key];
  1535. }
  1536. var additions = definitions.reduce(this._pullDefinitions, {});
  1537. Object.keys(additions).forEach(function (key) {
  1538. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1539. define(key, additions[key]);
  1540. build();
  1541. });
  1542. }
  1543. }, {
  1544. key: "reset",
  1545. value: function reset() {
  1546. this.definitions = {};
  1547. }
  1548. }, {
  1549. key: "_pullDefinitions",
  1550. value: function _pullDefinitions(additions, definition) {
  1551. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1552. 0: definition
  1553. } : definition;
  1554. Object.keys(normalized).map(function (key) {
  1555. var _normalized$key = normalized[key],
  1556. prefix = _normalized$key.prefix,
  1557. iconName = _normalized$key.iconName,
  1558. icon = _normalized$key.icon;
  1559. if (!additions[prefix]) additions[prefix] = {};
  1560. additions[prefix][iconName] = icon;
  1561. });
  1562. return additions;
  1563. }
  1564. }]);
  1565. return Library;
  1566. }();
  1567. function prepIcon(icon) {
  1568. var width = icon[0];
  1569. var height = icon[1];
  1570. var vectorData = icon.slice(4);
  1571. return {
  1572. found: true,
  1573. width: width,
  1574. height: height,
  1575. icon: {
  1576. tag: 'path',
  1577. attributes: {
  1578. fill: 'currentColor',
  1579. d: vectorData[0]
  1580. }
  1581. }
  1582. };
  1583. }
  1584. function ensureCss() {
  1585. if (config.autoAddCss && !_cssInserted) {
  1586. insertCss(css());
  1587. _cssInserted = true;
  1588. }
  1589. }
  1590. function apiObject(val, abstractCreator) {
  1591. Object.defineProperty(val, 'abstract', {
  1592. get: abstractCreator
  1593. });
  1594. Object.defineProperty(val, 'html', {
  1595. get: function get() {
  1596. return val.abstract.map(function (a) {
  1597. return toHtml(a);
  1598. });
  1599. }
  1600. });
  1601. Object.defineProperty(val, 'node', {
  1602. get: function get() {
  1603. if (!IS_DOM) return;
  1604. var container = DOCUMENT.createElement('div');
  1605. container.innerHTML = val.html;
  1606. return container.children;
  1607. }
  1608. });
  1609. return val;
  1610. }
  1611. function findIconDefinition(params) {
  1612. var _params$prefix = params.prefix,
  1613. prefix = _params$prefix === void 0 ? 'fa' : _params$prefix,
  1614. iconName = params.iconName;
  1615. if (!iconName) return;
  1616. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1617. }
  1618. function resolveIcons(next) {
  1619. return function (maybeIconDefinition) {
  1620. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1621. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1622. var mask = params.mask;
  1623. if (mask) {
  1624. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1625. }
  1626. return next(iconDefinition, _objectSpread({}, params, {
  1627. mask: mask
  1628. }));
  1629. };
  1630. }
  1631. var library = new Library();
  1632. var noAuto = function noAuto() {
  1633. config.autoReplaceSvg = false;
  1634. config.observeMutations = false;
  1635. disconnect();
  1636. };
  1637. var _cssInserted = false;
  1638. var dom = {
  1639. i2svg: function i2svg() {
  1640. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1641. if (IS_DOM) {
  1642. ensureCss();
  1643. var _params$node = params.node,
  1644. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1645. _params$callback = params.callback,
  1646. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1647. if (config.searchPseudoElements) {
  1648. searchPseudoElements(node);
  1649. }
  1650. onTree(node, callback);
  1651. }
  1652. },
  1653. css: css,
  1654. insertCss: function insertCss$$1() {
  1655. if (!_cssInserted) {
  1656. insertCss(css());
  1657. _cssInserted = true;
  1658. }
  1659. },
  1660. watch: function watch() {
  1661. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1662. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1663. observeMutationsRoot = params.observeMutationsRoot;
  1664. if (config.autoReplaceSvg === false) {
  1665. config.autoReplaceSvg = true;
  1666. }
  1667. config.observeMutations = true;
  1668. domready(function () {
  1669. autoReplace({
  1670. autoReplaceSvgRoot: autoReplaceSvgRoot
  1671. });
  1672. observe({
  1673. treeCallback: onTree,
  1674. nodeCallback: onNode,
  1675. pseudoElementsCallback: searchPseudoElements,
  1676. observeMutationsRoot: observeMutationsRoot
  1677. });
  1678. });
  1679. }
  1680. };
  1681. var parse = {
  1682. transform: function transform(transformString) {
  1683. return parseTransformString(transformString);
  1684. }
  1685. };
  1686. var icon = resolveIcons(function (iconDefinition) {
  1687. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1688. var _params$transform = params.transform,
  1689. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  1690. _params$symbol = params.symbol,
  1691. symbol = _params$symbol === void 0 ? false : _params$symbol,
  1692. _params$mask = params.mask,
  1693. mask = _params$mask === void 0 ? null : _params$mask,
  1694. _params$title = params.title,
  1695. title = _params$title === void 0 ? null : _params$title,
  1696. _params$classes = params.classes,
  1697. classes = _params$classes === void 0 ? [] : _params$classes,
  1698. _params$attributes = params.attributes,
  1699. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  1700. _params$styles = params.styles,
  1701. styles = _params$styles === void 0 ? {} : _params$styles;
  1702. if (!iconDefinition) return;
  1703. var prefix = iconDefinition.prefix,
  1704. iconName = iconDefinition.iconName,
  1705. icon = iconDefinition.icon;
  1706. return apiObject(_objectSpread({
  1707. type: 'icon'
  1708. }, iconDefinition), function () {
  1709. ensureCss();
  1710. if (config.autoA11y) {
  1711. if (title) {
  1712. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1713. } else {
  1714. attributes['aria-hidden'] = 'true';
  1715. }
  1716. }
  1717. return makeInlineSvgAbstract({
  1718. icons: {
  1719. main: prepIcon(icon),
  1720. mask: mask ? prepIcon(mask.icon) : {
  1721. found: false,
  1722. width: null,
  1723. height: null,
  1724. icon: {}
  1725. }
  1726. },
  1727. prefix: prefix,
  1728. iconName: iconName,
  1729. transform: _objectSpread({}, meaninglessTransform, transform),
  1730. symbol: symbol,
  1731. title: title,
  1732. extra: {
  1733. attributes: attributes,
  1734. styles: styles,
  1735. classes: classes
  1736. }
  1737. });
  1738. });
  1739. });
  1740. var text = function text(content) {
  1741. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1742. var _params$transform2 = params.transform,
  1743. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  1744. _params$title2 = params.title,
  1745. title = _params$title2 === void 0 ? null : _params$title2,
  1746. _params$classes2 = params.classes,
  1747. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  1748. _params$attributes2 = params.attributes,
  1749. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  1750. _params$styles2 = params.styles,
  1751. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  1752. return apiObject({
  1753. type: 'text',
  1754. content: content
  1755. }, function () {
  1756. ensureCss();
  1757. return makeLayersTextAbstract({
  1758. content: content,
  1759. transform: _objectSpread({}, meaninglessTransform, transform),
  1760. title: title,
  1761. extra: {
  1762. attributes: attributes,
  1763. styles: styles,
  1764. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  1765. }
  1766. });
  1767. });
  1768. };
  1769. var counter = function counter(content) {
  1770. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1771. var _params$title3 = params.title,
  1772. title = _params$title3 === void 0 ? null : _params$title3,
  1773. _params$classes3 = params.classes,
  1774. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  1775. _params$attributes3 = params.attributes,
  1776. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  1777. _params$styles3 = params.styles,
  1778. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  1779. return apiObject({
  1780. type: 'counter',
  1781. content: content
  1782. }, function () {
  1783. ensureCss();
  1784. return makeLayersCounterAbstract({
  1785. content: content.toString(),
  1786. title: title,
  1787. extra: {
  1788. attributes: attributes,
  1789. styles: styles,
  1790. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  1791. }
  1792. });
  1793. });
  1794. };
  1795. var layer = function layer(assembler) {
  1796. return apiObject({
  1797. type: 'layer'
  1798. }, function () {
  1799. ensureCss();
  1800. var children = [];
  1801. assembler(function (args) {
  1802. Array.isArray(args) ? args.map(function (a) {
  1803. children = children.concat(a.abstract);
  1804. }) : children = children.concat(args.abstract);
  1805. });
  1806. return [{
  1807. tag: 'span',
  1808. attributes: {
  1809. class: "".concat(config.familyPrefix, "-layers")
  1810. },
  1811. children: children
  1812. }];
  1813. });
  1814. };
  1815. var api = {
  1816. noAuto: noAuto,
  1817. config: config,
  1818. dom: dom,
  1819. library: library,
  1820. parse: parse,
  1821. findIconDefinition: findIconDefinition,
  1822. icon: icon,
  1823. text: text,
  1824. counter: counter,
  1825. layer: layer,
  1826. toHtml: toHtml
  1827. };
  1828. var autoReplace = function autoReplace() {
  1829. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1830. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  1831. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  1832. if (Object.keys(namespace.styles).length > 0 && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  1833. node: autoReplaceSvgRoot
  1834. });
  1835. };
  1836. /***/ }),
  1837. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  1838. /*!**************************************************************************************!*\
  1839. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  1840. \**************************************************************************************/
  1841. /*! 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, faBackspace, faBackward, faBalanceScale, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBinoculars, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookOpen, faBookReader, faBookmark, faBowlingBall, faBox, faBoxOpen, faBoxes, faBraille, faBrain, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCamera, faCameraRetro, faCampground, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCartArrowDown, faCartPlus, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMoon, faCloudSun, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCube, faCubes, faCut, faDatabase, faDeaf, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDungeon, faEdit, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFastBackward, faFastForward, 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, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGlassMartini, faGlassMartiniAlt, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripVertical, faHSquare, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingUsd, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHands, faHandsHelping, faHandshake, faHanukiah, faHashtag, faHatWizard, faHaykal, faHdd, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHome, faHorse, faHospital, faHospitalAlt, faHospitalSymbol, faHotTub, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHryvnia, faICursor, faIdBadge, faIdCard, faIdCardAlt, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, 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, 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, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMousePointer, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleCarry, faPercent, faPercentage, faPhone, faPhoneSlash, faPhoneSquare, faPhoneVolume, faPiggyBank, faPills, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRandom, faReceipt, faRecycle, faRedo, faRedoAlt, faRegistered, faReply, faReplyAll, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSave, faSchool, faScrewdriver, faScroll, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSitemap, faSkull, faSkullCrossbones, faSlash, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmoking, faSmokingBan, faSnowflake, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaUp, faSortAmountDown, faSortAmountUp, faSortDown, faSortNumericDown, faSortNumericUp, faSortUp, faSpa, faSpaceShuttle, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStore, faStoreAlt, 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, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToiletPaper, faToolbox, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrain, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, 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, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVrCardboard, faWalking, faWallet, faWarehouse, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  1842. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1843. "use strict";
  1844. __webpack_require__.r(__webpack_exports__);
  1845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  1846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  1847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  1848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  1849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  1850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  1851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  1852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  1853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  1854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  1855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  1856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  1857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  1858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  1859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  1860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  1861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  1862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  1863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  1864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  1865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  1866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  1867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  1868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  1869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  1870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  1871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  1872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  1873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  1874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  1875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  1876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  1877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  1878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  1879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  1880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  1881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  1882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  1883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  1884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  1885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  1886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  1887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  1888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  1889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  1890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  1891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  1892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  1893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  1894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  1895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  1896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  1897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  1898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  1899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  1900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  1901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  1902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  1903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  1904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  1905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  1906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  1907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  1908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  1909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  1910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  1911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  1912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  1913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  1914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  1915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  1916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  1917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  1918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  1919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  1920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  1921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  1922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  1923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  1924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  1925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  1926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  1927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  1928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  1929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  1930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  1931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  1932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  1933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  1934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  1935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  1936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  1937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  1938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  1939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  1940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  1941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  1942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  1943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  1944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  1945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  1946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  1947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  1948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  1949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  1950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  1951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  1952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  1953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  1954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  1955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  1956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  1957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  1958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  1959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  1960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  1961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  1962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  1963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  1964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  1965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  1966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  1967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  1968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  1969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  1970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  1971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  1972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  1973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  1974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  1975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  1976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  1977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  1978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  1979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  1980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  1981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  1982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  1983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  1984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  1985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  1986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  1987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  1988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  1989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  1990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  1991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  1992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  1993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  1994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  1995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  1996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  1997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  1998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  1999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  2699. /*!
  2700. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  2701. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  2702. */
  2703. var prefix = "fas";
  2704. var faAd = { prefix: 'fas', iconName: 'ad', 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"] };
  2705. var faAddressBook = { prefix: 'fas', iconName: 'address-book', 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"] };
  2706. var faAddressCard = { prefix: 'fas', iconName: 'address-card', 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"] };
  2707. var faAdjust = { prefix: 'fas', iconName: 'adjust', 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"] };
  2708. var faAirFreshener = { prefix: 'fas', iconName: 'air-freshener', 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"] };
  2709. var faAlignCenter = { prefix: 'fas', iconName: 'align-center', icon: [448, 512, [], "f037", "M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.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 256h416c8.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 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  2710. var faAlignJustify = { prefix: 'fas', iconName: 'align-justify', icon: [448, 512, [], "f039", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.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 256h416c8.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-128h416c8.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"] };
  2711. var faAlignLeft = { prefix: 'fas', iconName: 'align-left', icon: [448, 512, [], "f036", "M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.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 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  2712. var faAlignRight = { prefix: 'fas', iconName: 'align-right', icon: [448, 512, [], "f038", "M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.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 256h416c8.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 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2713. var faAllergies = { prefix: 'fas', iconName: 'allergies', 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"] };
  2714. var faAmbulance = { prefix: 'fas', iconName: 'ambulance', 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"] };
  2715. var faAmericanSignLanguageInterpreting = { prefix: 'fas', iconName: 'american-sign-language-interpreting', 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"] };
  2716. var faAnchor = { prefix: 'fas', iconName: 'anchor', 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"] };
  2717. var faAngleDoubleDown = { prefix: 'fas', iconName: 'angle-double-down', 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"] };
  2718. var faAngleDoubleLeft = { prefix: 'fas', iconName: 'angle-double-left', 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"] };
  2719. var faAngleDoubleRight = { prefix: 'fas', iconName: 'angle-double-right', 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"] };
  2720. var faAngleDoubleUp = { prefix: 'fas', iconName: 'angle-double-up', 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"] };
  2721. var faAngleDown = { prefix: 'fas', iconName: 'angle-down', 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"] };
  2722. var faAngleLeft = { prefix: 'fas', iconName: 'angle-left', 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"] };
  2723. var faAngleRight = { prefix: 'fas', iconName: 'angle-right', 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"] };
  2724. var faAngleUp = { prefix: 'fas', iconName: 'angle-up', 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"] };
  2725. var faAngry = { prefix: 'fas', iconName: 'angry', 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"] };
  2726. var faAnkh = { prefix: 'fas', iconName: 'ankh', 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"] };
  2727. var faAppleAlt = { prefix: 'fas', iconName: 'apple-alt', 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"] };
  2728. var faArchive = { prefix: 'fas', iconName: 'archive', 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"] };
  2729. var faArchway = { prefix: 'fas', iconName: 'archway', 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"] };
  2730. var faArrowAltCircleDown = { prefix: 'fas', iconName: 'arrow-alt-circle-down', 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"] };
  2731. var faArrowAltCircleLeft = { prefix: 'fas', iconName: 'arrow-alt-circle-left', 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"] };
  2732. var faArrowAltCircleRight = { prefix: 'fas', iconName: 'arrow-alt-circle-right', 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"] };
  2733. var faArrowAltCircleUp = { prefix: 'fas', iconName: 'arrow-alt-circle-up', 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"] };
  2734. var faArrowCircleDown = { prefix: 'fas', iconName: 'arrow-circle-down', 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"] };
  2735. var faArrowCircleLeft = { prefix: 'fas', iconName: 'arrow-circle-left', 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"] };
  2736. var faArrowCircleRight = { prefix: 'fas', iconName: 'arrow-circle-right', 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"] };
  2737. var faArrowCircleUp = { prefix: 'fas', iconName: 'arrow-circle-up', 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"] };
  2738. var faArrowDown = { prefix: 'fas', iconName: 'arrow-down', 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"] };
  2739. var faArrowLeft = { prefix: 'fas', iconName: 'arrow-left', 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"] };
  2740. var faArrowRight = { prefix: 'fas', iconName: 'arrow-right', 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"] };
  2741. var faArrowUp = { prefix: 'fas', iconName: 'arrow-up', 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"] };
  2742. var faArrowsAlt = { prefix: 'fas', iconName: 'arrows-alt', 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"] };
  2743. var faArrowsAltH = { prefix: 'fas', iconName: 'arrows-alt-h', 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"] };
  2744. var faArrowsAltV = { prefix: 'fas', iconName: 'arrows-alt-v', 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"] };
  2745. var faAssistiveListeningSystems = { prefix: 'fas', iconName: 'assistive-listening-systems', 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"] };
  2746. var faAsterisk = { prefix: 'fas', iconName: 'asterisk', 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"] };
  2747. var faAt = { prefix: 'fas', iconName: 'at', 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"] };
  2748. var faAtlas = { prefix: 'fas', iconName: 'atlas', 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"] };
  2749. var faAtom = { prefix: 'fas', iconName: 'atom', icon: [448, 512, [], "f5d2", "M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  2750. var faAudioDescription = { prefix: 'fas', iconName: 'audio-description', 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"] };
  2751. var faAward = { prefix: 'fas', iconName: 'award', 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"] };
  2752. var faBackspace = { prefix: 'fas', iconName: 'backspace', 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"] };
  2753. var faBackward = { prefix: 'fas', iconName: 'backward', 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"] };
  2754. var faBalanceScale = { prefix: 'fas', iconName: 'balance-scale', 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"] };
  2755. var faBan = { prefix: 'fas', iconName: 'ban', 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"] };
  2756. var faBandAid = { prefix: 'fas', iconName: 'band-aid', 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"] };
  2757. var faBarcode = { prefix: 'fas', iconName: 'barcode', 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"] };
  2758. var faBars = { prefix: 'fas', iconName: 'bars', 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"] };
  2759. var faBaseballBall = { prefix: 'fas', iconName: 'baseball-ball', 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"] };
  2760. var faBasketballBall = { prefix: 'fas', iconName: 'basketball-ball', 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"] };
  2761. var faBath = { prefix: 'fas', iconName: 'bath', icon: [512, 512, [], "f2cd", "M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  2762. var faBatteryEmpty = { prefix: 'fas', iconName: 'battery-empty', 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"] };
  2763. var faBatteryFull = { prefix: 'fas', iconName: 'battery-full', 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"] };
  2764. var faBatteryHalf = { prefix: 'fas', iconName: 'battery-half', 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"] };
  2765. var faBatteryQuarter = { prefix: 'fas', iconName: 'battery-quarter', 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"] };
  2766. var faBatteryThreeQuarters = { prefix: 'fas', iconName: 'battery-three-quarters', 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"] };
  2767. var faBed = { prefix: 'fas', iconName: 'bed', 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"] };
  2768. var faBeer = { prefix: 'fas', iconName: 'beer', 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"] };
  2769. var faBell = { prefix: 'fas', iconName: 'bell', 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"] };
  2770. var faBellSlash = { prefix: 'fas', iconName: 'bell-slash', 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"] };
  2771. var faBezierCurve = { prefix: 'fas', iconName: 'bezier-curve', 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"] };
  2772. var faBible = { prefix: 'fas', iconName: 'bible', 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"] };
  2773. var faBicycle = { prefix: 'fas', iconName: 'bicycle', 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"] };
  2774. var faBinoculars = { prefix: 'fas', iconName: 'binoculars', 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"] };
  2775. var faBirthdayCake = { prefix: 'fas', iconName: 'birthday-cake', 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"] };
  2776. var faBlender = { prefix: 'fas', iconName: 'blender', 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"] };
  2777. var faBlenderPhone = { prefix: 'fas', iconName: 'blender-phone', 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"] };
  2778. var faBlind = { prefix: 'fas', iconName: 'blind', 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"] };
  2779. var faBold = { prefix: 'fas', iconName: 'bold', icon: [384, 512, [], "f032", "M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"] };
  2780. var faBolt = { prefix: 'fas', iconName: 'bolt', icon: [320, 512, [], "f0e7", "M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"] };
  2781. var faBomb = { prefix: 'fas', iconName: 'bomb', 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"] };
  2782. var faBone = { prefix: 'fas', iconName: 'bone', 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"] };
  2783. var faBong = { prefix: 'fas', iconName: 'bong', 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"] };
  2784. var faBook = { prefix: 'fas', iconName: 'book', 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"] };
  2785. var faBookDead = { prefix: 'fas', iconName: 'book-dead', icon: [448, 512, [], "f6b7", "M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 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.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"] };
  2786. var faBookOpen = { prefix: 'fas', iconName: 'book-open', 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"] };
  2787. var faBookReader = { prefix: 'fas', iconName: 'book-reader', 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"] };
  2788. var faBookmark = { prefix: 'fas', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"] };
  2789. var faBowlingBall = { prefix: 'fas', iconName: 'bowling-ball', 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"] };
  2790. var faBox = { prefix: 'fas', iconName: 'box', 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"] };
  2791. var faBoxOpen = { prefix: 'fas', iconName: 'box-open', icon: [640, 512, [], "f49e", "M53.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.9zm585.1 102.8L586.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.1zM425.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.9z"] };
  2792. var faBoxes = { prefix: 'fas', iconName: 'boxes', 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"] };
  2793. var faBraille = { prefix: 'fas', iconName: 'braille', 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"] };
  2794. var faBrain = { prefix: 'fas', iconName: 'brain', icon: [576, 512, [], "f5dc", "M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"] };
  2795. var faBriefcase = { prefix: 'fas', iconName: 'briefcase', 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"] };
  2796. var faBriefcaseMedical = { prefix: 'fas', iconName: 'briefcase-medical', 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"] };
  2797. var faBroadcastTower = { prefix: 'fas', iconName: 'broadcast-tower', 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"] };
  2798. var faBroom = { prefix: 'fas', iconName: 'broom', 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"] };
  2799. var faBrush = { prefix: 'fas', iconName: 'brush', 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"] };
  2800. var faBug = { prefix: 'fas', iconName: 'bug', 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"] };
  2801. var faBuilding = { prefix: 'fas', iconName: 'building', 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"] };
  2802. var faBullhorn = { prefix: 'fas', iconName: 'bullhorn', 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"] };
  2803. var faBullseye = { prefix: 'fas', iconName: 'bullseye', 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"] };
  2804. var faBurn = { prefix: 'fas', iconName: 'burn', 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"] };
  2805. var faBus = { prefix: 'fas', iconName: 'bus', 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"] };
  2806. var faBusAlt = { prefix: 'fas', iconName: 'bus-alt', 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"] };
  2807. var faBusinessTime = { prefix: 'fas', iconName: 'business-time', 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"] };
  2808. var faCalculator = { prefix: 'fas', iconName: 'calculator', 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"] };
  2809. var faCalendar = { prefix: 'fas', iconName: 'calendar', 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"] };
  2810. var faCalendarAlt = { prefix: 'fas', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "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-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"] };
  2811. var faCalendarCheck = { prefix: 'fas', iconName: 'calendar-check', 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"] };
  2812. var faCalendarMinus = { prefix: 'fas', iconName: 'calendar-minus', 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"] };
  2813. var faCalendarPlus = { prefix: 'fas', iconName: 'calendar-plus', 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"] };
  2814. var faCalendarTimes = { prefix: 'fas', iconName: 'calendar-times', 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"] };
  2815. var faCamera = { prefix: 'fas', iconName: 'camera', 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"] };
  2816. var faCameraRetro = { prefix: 'fas', iconName: 'camera-retro', 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"] };
  2817. var faCampground = { prefix: 'fas', iconName: 'campground', 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"] };
  2818. var faCannabis = { prefix: 'fas', iconName: 'cannabis', 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"] };
  2819. var faCapsules = { prefix: 'fas', iconName: 'capsules', 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"] };
  2820. var faCar = { prefix: 'fas', iconName: 'car', 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"] };
  2821. var faCarAlt = { prefix: 'fas', iconName: 'car-alt', 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"] };
  2822. var faCarBattery = { prefix: 'fas', iconName: 'car-battery', 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"] };
  2823. var faCarCrash = { prefix: 'fas', iconName: 'car-crash', 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"] };
  2824. var faCarSide = { prefix: 'fas', iconName: 'car-side', 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"] };
  2825. var faCaretDown = { prefix: 'fas', iconName: 'caret-down', 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"] };
  2826. var faCaretLeft = { prefix: 'fas', iconName: 'caret-left', 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"] };
  2827. var faCaretRight = { prefix: 'fas', iconName: 'caret-right', 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"] };
  2828. var faCaretSquareDown = { prefix: 'fas', iconName: 'caret-square-down', 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"] };
  2829. var faCaretSquareLeft = { prefix: 'fas', iconName: 'caret-square-left', 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"] };
  2830. var faCaretSquareRight = { prefix: 'fas', iconName: 'caret-square-right', 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"] };
  2831. var faCaretSquareUp = { prefix: 'fas', iconName: 'caret-square-up', 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"] };
  2832. var faCaretUp = { prefix: 'fas', iconName: 'caret-up', 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"] };
  2833. var faCartArrowDown = { prefix: 'fas', iconName: 'cart-arrow-down', 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"] };
  2834. var faCartPlus = { prefix: 'fas', iconName: 'cart-plus', 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"] };
  2835. var faCat = { prefix: 'fas', iconName: 'cat', 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"] };
  2836. var faCertificate = { prefix: 'fas', iconName: 'certificate', 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"] };
  2837. var faChair = { prefix: 'fas', iconName: 'chair', icon: [448, 512, [], "f6c0", "M446.33 341.88l-10.67-32A31.996 31.996 0 0 0 405.3 288H42.69c-13.77 0-26 8.81-30.36 21.88l-10.67 32C-5.24 362.6 10.18 384 32.03 384H32v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h256v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-.03c21.85 0 37.27-21.4 30.36-42.12zM112 128c0-29.48 16.2-54.99 40-68.87V256h48V48h48v208h48V59.13c23.8 13.88 40 39.39 40 68.87v128h48V128C384 57.31 326.69 0 256 0h-64C121.31 0 64 57.31 64 128v128h48V128z"] };
  2838. var faChalkboard = { prefix: 'fas', iconName: 'chalkboard', 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"] };
  2839. var faChalkboardTeacher = { prefix: 'fas', iconName: 'chalkboard-teacher', 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"] };
  2840. var faChargingStation = { prefix: 'fas', iconName: 'charging-station', 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"] };
  2841. var faChartArea = { prefix: 'fas', iconName: 'chart-area', 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"] };
  2842. var faChartBar = { prefix: 'fas', iconName: 'chart-bar', 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"] };
  2843. var faChartLine = { prefix: 'fas', iconName: 'chart-line', 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"] };
  2844. var faChartPie = { prefix: 'fas', iconName: 'chart-pie', 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"] };
  2845. var faCheck = { prefix: 'fas', iconName: 'check', 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"] };
  2846. var faCheckCircle = { prefix: 'fas', iconName: 'check-circle', 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"] };
  2847. var faCheckDouble = { prefix: 'fas', iconName: 'check-double', icon: [512, 512, [], "f560", "M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"] };
  2848. var faCheckSquare = { prefix: 'fas', iconName: 'check-square', 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"] };
  2849. var faChess = { prefix: 'fas', iconName: 'chess', icon: [512, 512, [], "f439", "M199.821 217.633a6 6 0 0 1 6 6l-.001 20.766a6 6 0 0 1-6 6h-25.805c0 31.715-2.153 96.201 17.398 153.229H64.597C84.54 345.452 82.02 279.245 82.02 250.399H56.183a6 6 0 0 1-6-6l.002-20.766a6 6 0 0 1 6-6h143.636zM41.554 115.088l34.58 95.071h103.734l34.572-95.072c2.846-7.826-2.95-16.101-11.278-16.101H152v-30.22h21.57a6 6 0 0 0 6-6V40.383a6 6 0 0 0-6-6h-28.367V6a6 6 0 0 0-6-6H116.82a6 6 0 0 0-6 6v28.383H82.421a6 6 0 0 0-6 6v22.383a6 6 0 0 0 6 6H104v30.219H52.831c-8.328.001-14.124 8.276-11.277 16.103zM222.678 445.17v-28.067a6 6 0 0 0-6-6H39.322a6 6 0 0 0-6 6v28.067l-22.148 14.164a6 6 0 0 0-2.767 5.055V506a6 6 0 0 0 6 6h227.187a6 6 0 0 0 6-6v-41.612a6 6 0 0 0-2.767-5.055l-22.149-14.163zm90.578-144.225l24.88 16.963c.09 18.124-.167 63.904-11.905 114.522h147.526c-11.713-50.475-11.969-96.324-11.882-114.537l24.859-16.949a3.856 3.856 0 0 0 1.684-3.187v-69.901a3.857 3.857 0 0 0-3.857-3.857h-27.655a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.858-3.857h-52.918a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.857-3.857H315.43a3.857 3.857 0 0 0-3.857 3.857v69.901a3.855 3.855 0 0 0 1.683 3.188zm71.585 51.906c0-8.372 6.787-15.158 15.159-15.158s15.158 6.787 15.158 15.158v30.318h-30.317v-30.318zM504.62 470.059l-13.664-10.639v-15.552a3.857 3.857 0 0 0-3.857-3.857H312.915a3.857 3.857 0 0 0-3.857 3.857v15.552l-13.677 10.639a3.857 3.857 0 0 0-1.488 3.044v35.039a3.857 3.857 0 0 0 3.857 3.857h204.5a3.857 3.857 0 0 0 3.857-3.857v-35.04a3.859 3.859 0 0 0-1.487-3.043z"] };
  2850. var faChessBishop = { prefix: 'fas', iconName: 'chess-bishop', icon: [320, 512, [], "f43a", "M123.158 77.881C107.369 72.53 96 57.597 96 40c0-22.091 17.909-40 40-40h47.796c22.091 0 40 17.909 40 40 0 17.541-11.295 32.434-27.005 37.829 23.993 16.657 48.577 46.839 68.703 82.05L144.929 280.443a6 6 0 0 0 0 8.485l14.142 14.142a6 6 0 0 0 8.485 0L280.9 189.726c17.758 38.297 29.371 79.443 29.371 114.273 0 53.786-22.897 75.788-58.446 86.033V448H68.174v-57.97C32.631 379.784 9.739 357.781 9.739 304c0-78.029 58.281-187.766 113.419-226.119zM320 500v-24c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12z"] };
  2851. var faChessBoard = { prefix: 'fas', iconName: 'chess-board', icon: [512, 512, [], "f43c", "M256 256v64h-64v-64h64zm0-256h-64v64h64V0zm0 256h64v-64h-64v64zM384 0h-64v64h64V0zm0 512h64v-64h-64v64zm128-64v-64h-64v64h64zm-384 64h64v-64h-64v64zm0-512H64v64h64V0zm384 192v-64h-64v64h64zm0 128v-64h-64v64h64zM0 512h64v-64H0v64zM0 64v64h64V64H0zm0 128v64h64v-64H0zm0 128v64h64v-64H0zm256 192h64v-64h-64v64zm-64-128v64h64v-64h-64zm64-192v-64h-64v64h64zM64 384v64h64v-64H64zm64-128H64v64h64v-64zm256 128h64v-64h-64v64zM512 0h-64v64h64V0zM384 256h64v-64h-64v64zm0-192v64h64V64h-64zm-64 320v64h64v-64h-64zm-192-64v64h64v-64h-64zm128 0v64h64v-64h-64zm-64-128h-64v64h64v-64zm-64-64H64v64h64v-64zm192 192h64v-64h-64v64zM192 128V64h-64v64h64zm128 0V64h-64v64h64zm0 64h64v-64h-64v64z"] };
  2852. var faChessKing = { prefix: 'fas', iconName: 'chess-king', icon: [448, 512, [], "f43f", "M416 476v24c0 6.627-5.373 12-12 12H44c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12zm-8.033-324H248v-48h50a6 6 0 0 0 6-6V62a6 6 0 0 0-6-6h-50V6a6 6 0 0 0-6-6h-36a6 6 0 0 0-6 6v50h-50a6 6 0 0 0-6 6v36a6 6 0 0 0 6 6h50v48H40.033c-27.574 0-46.879 27.244-37.738 53.259L87.582 448h272.836l85.287-242.741C454.846 179.244 435.541 152 407.967 152z"] };
  2853. var faChessKnight = { prefix: 'fas', iconName: 'chess-knight', icon: [384, 512, [], "f441", "M352 224v224H32v-46.557c0-30.302 17.12-58.003 44.223-71.554l57.243-28.622A48 48 0 0 0 160 258.334V208l-22.127 11.063a23.996 23.996 0 0 0-12.55 15.645l-11.835 47.338a12 12 0 0 1-7.185 8.231l-29.601 11.84a11.998 11.998 0 0 1-9.33-.176L7.126 275.167A12 12 0 0 1 0 264.201v-158.26c0-6.365 2.529-12.47 7.03-16.971L16 80 1.789 51.578A16.937 16.937 0 0 1 0 44c0-6.627 5.373-12 12-12h148c106.039 0 192 85.961 192 192zm20 240H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12zM52 128c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  2854. var faChessPawn = { prefix: 'fas', iconName: 'chess-pawn', icon: [320, 512, [], "f443", "M264 448H56s60-42.743 60-176H84c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h40.209C95.721 210.56 76 181.588 76 148c0-46.392 37.608-84 84-84s84 37.608 84 84c0 33.588-19.721 62.56-48.209 76H236c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-32c0 133.257 60 176 60 176zm28 16H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h264c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12z"] };
  2855. var faChessQueen = { prefix: 'fas', iconName: 'chess-queen', icon: [512, 512, [], "f445", "M436 512H76c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12zM255.579 0c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zm204.568 154.634c-5.768-3.045-12.916-.932-16.082 4.77-8.616 15.516-22.747 37.801-44.065 37.801-28.714 0-30.625-19.804-31.686-57.542-.183-6.492-5.501-11.664-11.995-11.664h-41.006c-5.175 0-9.754 3.328-11.388 8.238-8.89 26.709-26.073 40.992-47.925 40.992s-39.034-14.283-47.925-40.992c-1.634-4.91-6.213-8.238-11.388-8.238h-41.005c-6.495 0-11.813 5.174-11.995 11.667-1.052 37.642-2.934 57.539-31.688 57.539-20.691 0-33.817-20.224-44.425-38.025-3.266-5.48-10.258-7.431-15.899-4.453l-39.179 20.679a12 12 0 0 0-5.51 15.145L112 448h288l105.014-257.448a12 12 0 0 0-5.51-15.145l-39.357-20.773z"] };
  2856. var faChessRook = { prefix: 'fas', iconName: 'chess-rook', icon: [384, 512, [], "f447", "M81.241 215.027C80.957 258.92 77.411 348.076 48 448h287.982c-29.4-99.604-32.936-188.912-33.221-232.975l45.418-42.312a11.998 11.998 0 0 0 3.82-8.78V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v44h-48V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v44H96V44c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v119.932c0 3.33 1.384 6.51 3.82 8.78l45.421 42.315zM160 256c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v64.004h-64V256zm224 220v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12z"] };
  2857. var faChevronCircleDown = { prefix: 'fas', iconName: 'chevron-circle-down', 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"] };
  2858. var faChevronCircleLeft = { prefix: 'fas', iconName: 'chevron-circle-left', 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"] };
  2859. var faChevronCircleRight = { prefix: 'fas', iconName: 'chevron-circle-right', 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"] };
  2860. var faChevronCircleUp = { prefix: 'fas', iconName: 'chevron-circle-up', 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"] };
  2861. var faChevronDown = { prefix: 'fas', iconName: 'chevron-down', 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"] };
  2862. var faChevronLeft = { prefix: 'fas', iconName: 'chevron-left', 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"] };
  2863. var faChevronRight = { prefix: 'fas', iconName: 'chevron-right', 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"] };
  2864. var faChevronUp = { prefix: 'fas', iconName: 'chevron-up', 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"] };
  2865. var faChild = { prefix: 'fas', iconName: 'child', 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"] };
  2866. var faChurch = { prefix: 'fas', iconName: 'church', 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"] };
  2867. var faCircle = { prefix: 'fas', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"] };
  2868. var faCircleNotch = { prefix: 'fas', iconName: 'circle-notch', 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"] };
  2869. var faCity = { prefix: 'fas', iconName: 'city', 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"] };
  2870. var faClipboard = { prefix: 'fas', iconName: 'clipboard', 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"] };
  2871. var faClipboardCheck = { prefix: 'fas', iconName: 'clipboard-check', 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"] };
  2872. var faClipboardList = { prefix: 'fas', iconName: 'clipboard-list', 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"] };
  2873. var faClock = { prefix: 'fas', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  2874. var faClone = { prefix: 'fas', iconName: 'clone', 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"] };
  2875. var faClosedCaptioning = { prefix: 'fas', iconName: 'closed-captioning', 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"] };
  2876. var faCloud = { prefix: 'fas', iconName: 'cloud', 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"] };
  2877. var faCloudDownloadAlt = { prefix: 'fas', iconName: 'cloud-download-alt', 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"] };
  2878. var faCloudMoon = { prefix: 'fas', iconName: 'cloud-moon', icon: [640, 512, [], "f6c3", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.3 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm285.26-29.42c-104.23 19.22-199.95-58.16-199.95-160.03 0-58.68 32.45-112.64 85.18-141.7 8.13-4.48 6.08-16.41-3.15-18.06C497.14 1.17 484 0 470.84 0 352.25 0 256 93.04 256 208c0 7.26.4 14.44 1.15 21.51 9.87-3.38 20.18-5.51 30.85-5.51 52.94 0 96 43.06 96 96 0 3.59-.21 7.17-.63 10.73 33.49 15.39 57.47 46.55 63.24 83.86 7.96.87 16.03 1.41 24.23 1.41 66.26 0 126.79-29.19 166.88-77.02 5.93-7.07-.54-17.41-9.71-15.72z"] };
  2879. var faCloudSun = { prefix: 'fas', iconName: 'cloud-sun', icon: [640, 512, [], "f6c4", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.31 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm243.19-99.8c-7.85-6.79-7.85-18.97 0-25.76L633.41 186c12.76-11.05 5.84-32.02-11-33.3l-61.59-4.67c-10.19-.78-17.28-10.49-14.9-20.43l14.95-62.48c3.89-16.26-13.96-29.02-28.08-20.07l-52.51 33.26c-8.61 5.46-20.06 1.75-23.85-7.72l-23.47-58.74c-6.32-15.81-28.19-15.81-34.51 0l-23.38 58.49c-3.83 9.59-15.44 13.35-24.17 7.82l-52.29-33.12c-14.13-8.95-31.98 3.81-28.08 20.07l14.95 62.48c2.38 9.94-4.7 19.65-14.9 20.43l-61.15 4.64c-17 1.29-23.99 22.46-11.1 33.62l31.23 27.05c7.82 5.17 15.21 11.01 21.78 17.84 11.42-4.71 23.73-7.18 36.37-7.18 5.97 0 11.77.71 17.44 1.76 7.09-54.98 53.68-97.76 110.56-97.76 61.76 0 112 50.24 112 112s-50.24 112-112 112c-.95 0-1.83-.26-2.77-.28 13.83 13.2 24.61 29.47 30.16 48.28h27.02c6.25 0 12.37 1.83 17.6 5.27l45.08 29.68c14.19 8.99 31.89-4.17 27.92-20.76l-14.69-61.38c-2.43-10.16 4.8-20.08 15.22-20.87l61.16-4.64c16.84-1.28 23.76-22.25 11-33.3l-47.47-41.11zm-202.66 59.94C393.3 317.34 404.32 320 416 320c44.11 0 80-35.89 80-80s-35.89-80-80-80c-43.25 0-78.39 34.56-79.75 77.49 26.44 15.53 44.59 43.13 47.03 75.33z"] };
  2880. var faCloudUploadAlt = { prefix: 'fas', iconName: 'cloud-upload-alt', 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"] };
  2881. var faCocktail = { prefix: 'fas', iconName: 'cocktail', 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"] };
  2882. var faCode = { prefix: 'fas', iconName: 'code', 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"] };
  2883. var faCodeBranch = { prefix: 'fas', iconName: 'code-branch', 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"] };
  2884. var faCoffee = { prefix: 'fas', iconName: 'coffee', 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"] };
  2885. var faCog = { prefix: 'fas', iconName: 'cog', icon: [512, 512, [], "f013", "M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"] };
  2886. var faCogs = { prefix: 'fas', iconName: 'cogs', 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"] };
  2887. var faCoins = { prefix: 'fas', iconName: 'coins', 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"] };
  2888. var faColumns = { prefix: 'fas', iconName: 'columns', 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"] };
  2889. var faComment = { prefix: 'fas', iconName: 'comment', 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"] };
  2890. var faCommentAlt = { prefix: 'fas', iconName: 'comment-alt', 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"] };
  2891. var faCommentDollar = { prefix: 'fas', iconName: 'comment-dollar', 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"] };
  2892. var faCommentDots = { prefix: 'fas', iconName: 'comment-dots', 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"] };
  2893. var faCommentSlash = { prefix: 'fas', iconName: 'comment-slash', 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"] };
  2894. var faComments = { prefix: 'fas', iconName: 'comments', 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"] };
  2895. var faCommentsDollar = { prefix: 'fas', iconName: 'comments-dollar', 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"] };
  2896. var faCompactDisc = { prefix: 'fas', iconName: 'compact-disc', 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"] };
  2897. var faCompass = { prefix: 'fas', iconName: 'compass', 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"] };
  2898. var faCompress = { prefix: 'fas', iconName: 'compress', 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"] };
  2899. var faConciergeBell = { prefix: 'fas', iconName: 'concierge-bell', 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"] };
  2900. var faCookie = { prefix: 'fas', iconName: 'cookie', 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"] };
  2901. var faCookieBite = { prefix: 'fas', iconName: 'cookie-bite', 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"] };
  2902. var faCopy = { prefix: 'fas', iconName: 'copy', 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"] };
  2903. var faCopyright = { prefix: 'fas', iconName: 'copyright', 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"] };
  2904. var faCouch = { prefix: 'fas', iconName: 'couch', 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"] };
  2905. var faCreditCard = { prefix: 'fas', iconName: 'credit-card', 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"] };
  2906. var faCrop = { prefix: 'fas', iconName: 'crop', 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"] };
  2907. var faCropAlt = { prefix: 'fas', iconName: 'crop-alt', 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"] };
  2908. var faCross = { prefix: 'fas', iconName: 'cross', 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"] };
  2909. var faCrosshairs = { prefix: 'fas', iconName: 'crosshairs', 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"] };
  2910. var faCrow = { prefix: 'fas', iconName: 'crow', 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"] };
  2911. var faCrown = { prefix: 'fas', iconName: 'crown', 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"] };
  2912. var faCube = { prefix: 'fas', iconName: 'cube', 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"] };
  2913. var faCubes = { prefix: 'fas', iconName: 'cubes', 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"] };
  2914. var faCut = { prefix: 'fas', iconName: 'cut', 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"] };
  2915. var faDatabase = { prefix: 'fas', iconName: 'database', 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"] };
  2916. var faDeaf = { prefix: 'fas', iconName: 'deaf', 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"] };
  2917. var faDesktop = { prefix: 'fas', iconName: 'desktop', 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"] };
  2918. var faDharmachakra = { prefix: 'fas', iconName: 'dharmachakra', 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"] };
  2919. var faDiagnoses = { prefix: 'fas', iconName: 'diagnoses', 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"] };
  2920. var faDice = { prefix: 'fas', iconName: 'dice', 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"] };
  2921. var faDiceD20 = { prefix: 'fas', iconName: 'dice-d20', 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"] };
  2922. var faDiceD6 = { prefix: 'fas', iconName: 'dice-d6', 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"] };
  2923. var faDiceFive = { prefix: 'fas', iconName: 'dice-five', 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"] };
  2924. var faDiceFour = { prefix: 'fas', iconName: 'dice-four', 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"] };
  2925. var faDiceOne = { prefix: 'fas', iconName: 'dice-one', 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"] };
  2926. var faDiceSix = { prefix: 'fas', iconName: 'dice-six', 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"] };
  2927. var faDiceThree = { prefix: 'fas', iconName: 'dice-three', 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"] };
  2928. var faDiceTwo = { prefix: 'fas', iconName: 'dice-two', 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"] };
  2929. var faDigitalTachograph = { prefix: 'fas', iconName: 'digital-tachograph', 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"] };
  2930. var faDirections = { prefix: 'fas', iconName: 'directions', 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"] };
  2931. var faDivide = { prefix: 'fas', iconName: 'divide', 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"] };
  2932. var faDizzy = { prefix: 'fas', iconName: 'dizzy', 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"] };
  2933. var faDna = { prefix: 'fas', iconName: 'dna', 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"] };
  2934. var faDog = { prefix: 'fas', iconName: 'dog', icon: [512, 512, [], "f6d3", "M496 96h-64l-7.16-14.31A32 32 0 0 0 396.22 64H342.6l-27.28-27.28C305.23 26.64 288 33.78 288 48.03v149.84l128 45.71V208h32c35.35 0 64-28.65 64-64v-32c0-8.84-7.16-16-16-16zm-112 48c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM96 224c-17.64 0-32-14.36-32-32 0-17.67-14.33-32-32-32S0 174.33 0 192c0 41.66 26.83 76.85 64 90.1V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V384h160v112c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V277.55L266.05 224H96z"] };
  2935. var faDollarSign = { prefix: 'fas', iconName: 'dollar-sign', 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"] };
  2936. var faDolly = { prefix: 'fas', iconName: 'dolly', 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"] };
  2937. var faDollyFlatbed = { prefix: 'fas', iconName: 'dolly-flatbed', 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"] };
  2938. var faDonate = { prefix: 'fas', iconName: 'donate', 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"] };
  2939. var faDoorClosed = { prefix: 'fas', iconName: 'door-closed', 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"] };
  2940. var faDoorOpen = { prefix: 'fas', iconName: 'door-open', 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"] };
  2941. var faDotCircle = { prefix: 'fas', iconName: 'dot-circle', 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"] };
  2942. var faDove = { prefix: 'fas', iconName: 'dove', 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"] };
  2943. var faDownload = { prefix: 'fas', iconName: 'download', 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"] };
  2944. var faDraftingCompass = { prefix: 'fas', iconName: 'drafting-compass', 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"] };
  2945. var faDragon = { prefix: 'fas', iconName: 'dragon', 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"] };
  2946. var faDrawPolygon = { prefix: 'fas', iconName: 'draw-polygon', 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"] };
  2947. var faDrum = { prefix: 'fas', iconName: 'drum', icon: [576, 512, [], "f569", "M458.08 120.88l102.39-61.43c15.16-9.09 20.06-28.75 10.97-43.91C562.34.39 542.7-4.53 527.53 4.57l-160.69 96.41A629.32 629.32 0 0 0 288 96C128.94 96 0 153.31 0 224v160.83c0 30.46 24.03 58.4 64 80.37v-96.37c0-17.6 14.4-32 32-32s32 14.4 32 32v122.41c37.4 11.13 81 18.44 128 20.75V400.84c0-17.6 14.4-32 32-32s32 14.4 32 32V512c47-2.31 90.6-9.62 128-20.75V368.84c0-17.6 14.4-32 32-32s32 14.4 32 32v96.37c39.97-21.97 64-49.91 64-80.37V224.01c-.01-42.38-46.54-79.84-117.92-103.13zM288 304c-132.55 0-240-35.82-240-80s107.45-80 240-80c2.34 0 4.62.1 6.94.12l-87.41 52.44c-15.16 9.09-20.06 28.75-10.97 43.91 9.56 15.93 29.51 19.61 43.91 10.97l162.71-97.62C477.55 167.41 528 193.74 528 224.01 528 268.19 420.54 304 288 304z"] };
  2948. var faDrumSteelpan = { prefix: 'fas', iconName: 'drum-steelpan', 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"] };
  2949. var faDrumstickBite = { prefix: 'fas', iconName: 'drumstick-bite', icon: [512, 512, [], "f6d7", "M462.79 49.57c-66.14-66.09-173.36-66.09-239.5 0C187.81 85.02 160.12 128 160.12 192v85.83l-40.62 40.59c-9.7 9.69-24.04 11.07-36.78 5.98-21.72-8.68-47.42-4.29-65.02 13.29-23.61 23.59-23.61 61.84 0 85.43 15.28 15.27 36.53 19.58 56.14 15.09-4.5 19.6-.18 40.83 15.1 56.1 23.61 23.59 61.88 23.59 85.49 0 17.6-17.58 21.99-43.26 13.31-64.97-5.09-12.73-3.72-27.05 5.99-36.75L234.35 352h85.89c23.2 0 43.57-3.72 61.89-10.03-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.93-14.81-90.25-49.13-124.53z"] };
  2950. var faDumbbell = { prefix: 'fas', iconName: 'dumbbell', 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"] };
  2951. var faDungeon = { prefix: 'fas', iconName: 'dungeon', 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"] };
  2952. var faEdit = { prefix: 'fas', iconName: 'edit', 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"] };
  2953. var faEject = { prefix: 'fas', iconName: 'eject', 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"] };
  2954. var faEllipsisH = { prefix: 'fas', iconName: 'ellipsis-h', 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"] };
  2955. var faEllipsisV = { prefix: 'fas', iconName: 'ellipsis-v', 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"] };
  2956. var faEnvelope = { prefix: 'fas', iconName: 'envelope', 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"] };
  2957. var faEnvelopeOpen = { prefix: 'fas', iconName: 'envelope-open', 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"] };
  2958. var faEnvelopeOpenText = { prefix: 'fas', iconName: 'envelope-open-text', 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"] };
  2959. var faEnvelopeSquare = { prefix: 'fas', iconName: 'envelope-square', 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"] };
  2960. var faEquals = { prefix: 'fas', iconName: 'equals', 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"] };
  2961. var faEraser = { prefix: 'fas', iconName: 'eraser', 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"] };
  2962. var faEuroSign = { prefix: 'fas', iconName: 'euro-sign', 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"] };
  2963. var faExchangeAlt = { prefix: 'fas', iconName: 'exchange-alt', 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"] };
  2964. var faExclamation = { prefix: 'fas', iconName: 'exclamation', 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"] };
  2965. var faExclamationCircle = { prefix: 'fas', iconName: 'exclamation-circle', 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"] };
  2966. var faExclamationTriangle = { prefix: 'fas', iconName: 'exclamation-triangle', 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"] };
  2967. var faExpand = { prefix: 'fas', iconName: 'expand', 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"] };
  2968. var faExpandArrowsAlt = { prefix: 'fas', iconName: 'expand-arrows-alt', icon: [448, 512, [], "f31e", "M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"] };
  2969. var faExternalLinkAlt = { prefix: 'fas', iconName: 'external-link-alt', icon: [576, 512, [], "f35d", "M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"] };
  2970. var faExternalLinkSquareAlt = { prefix: 'fas', iconName: 'external-link-square-alt', 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"] };
  2971. var faEye = { prefix: 'fas', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"] };
  2972. var faEyeDropper = { prefix: 'fas', iconName: 'eye-dropper', 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"] };
  2973. var faEyeSlash = { prefix: 'fas', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"] };
  2974. var faFastBackward = { prefix: 'fas', iconName: 'fast-backward', 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"] };
  2975. var faFastForward = { prefix: 'fas', iconName: 'fast-forward', 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"] };
  2976. var faFax = { prefix: 'fas', iconName: 'fax', icon: [512, 512, [], "f1ac", "M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"] };
  2977. var faFeather = { prefix: 'fas', iconName: 'feather', 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"] };
  2978. var faFeatherAlt = { prefix: 'fas', iconName: 'feather-alt', 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"] };
  2979. var faFemale = { prefix: 'fas', iconName: 'female', 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"] };
  2980. var faFighterJet = { prefix: 'fas', iconName: 'fighter-jet', 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"] };
  2981. var faFile = { prefix: 'fas', iconName: 'file', 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"] };
  2982. var faFileAlt = { prefix: 'fas', iconName: 'file-alt', 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"] };
  2983. var faFileArchive = { prefix: 'fas', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M224 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-32V32zm32.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.6zm32.7-53c0 14.9-14.5 27-32.4 27S96 378 96 363c0-14.9 14.5-27 32.4-27s32.5 12.1 32.5 27zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2984. var faFileAudio = { prefix: 'fas', iconName: 'file-audio', 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"] };
  2985. var faFileCode = { prefix: 'fas', iconName: 'file-code', 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"] };
  2986. var faFileContract = { prefix: 'fas', iconName: 'file-contract', 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"] };
  2987. var faFileCsv = { prefix: 'fas', iconName: 'file-csv', 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"] };
  2988. var faFileDownload = { prefix: 'fas', iconName: 'file-download', 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"] };
  2989. var faFileExcel = { prefix: 'fas', iconName: 'file-excel', 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"] };
  2990. var faFileExport = { prefix: 'fas', iconName: 'file-export', 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-7H256v128h128v-6.1zM192 336v-32c0-8.84 7.16-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.84 0-16-7.16-16-16zm379.05-28.02l-95.7-96.43c-10.06-10.14-27.36-3.01-27.36 11.27V288H384v64h63.99v65.18c0 14.28 17.29 21.41 27.36 11.27l95.7-96.42c6.6-6.66 6.6-17.4 0-24.05z"] };
  2991. var faFileImage = { prefix: 'fas', iconName: 'file-image', 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"] };
  2992. var faFileImport = { prefix: 'fas', iconName: 'file-import', icon: [512, 512, [], "f56f", "M16 288c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h112v-64H16zm336-152V0H152c-13.3 0-24 10.7-24 24v264h127.99v-65.18c0-14.28 17.29-21.41 27.36-11.27l95.7 96.43c6.6 6.65 6.6 17.39 0 24.04l-95.7 96.42c-10.06 10.14-27.36 3.01-27.36-11.27V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24zm153-31L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2993. var faFileInvoice = { prefix: 'fas', iconName: 'file-invoice', 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"] };
  2994. var faFileInvoiceDollar = { prefix: 'fas', iconName: 'file-invoice-dollar', 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"] };
  2995. var faFileMedical = { prefix: 'fas', iconName: 'file-medical', 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"] };
  2996. var faFileMedicalAlt = { prefix: 'fas', iconName: 'file-medical-alt', 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"] };
  2997. var faFilePdf = { prefix: 'fas', iconName: 'file-pdf', 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"] };
  2998. var faFilePowerpoint = { prefix: 'fas', iconName: 'file-powerpoint', 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"] };
  2999. var faFilePrescription = { prefix: 'fas', iconName: 'file-prescription', 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"] };
  3000. var faFileSignature = { prefix: 'fas', iconName: 'file-signature', 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"] };
  3001. var faFileUpload = { prefix: 'fas', iconName: 'file-upload', 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"] };
  3002. var faFileVideo = { prefix: 'fas', iconName: 'file-video', 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"] };
  3003. var faFileWord = { prefix: 'fas', iconName: 'file-word', 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"] };
  3004. var faFill = { prefix: 'fas', iconName: 'fill', 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"] };
  3005. var faFillDrip = { prefix: 'fas', iconName: 'fill-drip', 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"] };
  3006. var faFilm = { prefix: 'fas', iconName: 'film', 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"] };
  3007. var faFilter = { prefix: 'fas', iconName: 'filter', 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"] };
  3008. var faFingerprint = { prefix: 'fas', iconName: 'fingerprint', 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"] };
  3009. var faFire = { prefix: 'fas', iconName: 'fire', icon: [384, 512, [], "f06d", "M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"] };
  3010. var faFireExtinguisher = { prefix: 'fas', iconName: 'fire-extinguisher', 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"] };
  3011. var faFirstAid = { prefix: 'fas', iconName: 'first-aid', 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"] };
  3012. var faFish = { prefix: 'fas', iconName: 'fish', 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"] };
  3013. var faFistRaised = { prefix: 'fas', iconName: 'fist-raised', 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"] };
  3014. var faFlag = { prefix: 'fas', iconName: 'flag', 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"] };
  3015. var faFlagCheckered = { prefix: 'fas', iconName: 'flag-checkered', icon: [512, 512, [], "f11e", "M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"] };
  3016. var faFlask = { prefix: 'fas', iconName: 'flask', 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"] };
  3017. var faFlushed = { prefix: 'fas', iconName: 'flushed', 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"] };
  3018. var faFolder = { prefix: 'fas', iconName: 'folder', 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"] };
  3019. var faFolderMinus = { prefix: 'fas', iconName: 'folder-minus', 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"] };
  3020. var faFolderOpen = { prefix: 'fas', iconName: 'folder-open', 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"] };
  3021. var faFolderPlus = { prefix: 'fas', iconName: 'folder-plus', icon: [512, 512, [], "f65e", "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 16h-72v72c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-72h-72c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h72v-72c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v72h72c8.84 0 16 7.16 16 16v16z"] };
  3022. var faFont = { prefix: 'fas', iconName: 'font', icon: [448, 512, [], "f031", "M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"] };
  3023. var faFontAwesomeLogoFull = { prefix: 'fas', iconName: 'font-awesome-logo-full', 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"] };
  3024. var faFootballBall = { prefix: 'fas', iconName: 'football-ball', 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"] };
  3025. var faForward = { prefix: 'fas', iconName: 'forward', 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"] };
  3026. var faFrog = { prefix: 'fas', iconName: 'frog', 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"] };
  3027. var faFrown = { prefix: 'fas', iconName: 'frown', 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"] };
  3028. var faFrownOpen = { prefix: 'fas', iconName: 'frown-open', 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"] };
  3029. var faFunnelDollar = { prefix: 'fas', iconName: 'funnel-dollar', 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"] };
  3030. var faFutbol = { prefix: 'fas', iconName: 'futbol', 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"] };
  3031. var faGamepad = { prefix: 'fas', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3032. var faGasPump = { prefix: 'fas', iconName: 'gas-pump', 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"] };
  3033. var faGavel = { prefix: 'fas', iconName: 'gavel', 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"] };
  3034. var faGem = { prefix: 'fas', iconName: 'gem', 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"] };
  3035. var faGenderless = { prefix: 'fas', iconName: 'genderless', 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"] };
  3036. var faGhost = { prefix: 'fas', iconName: 'ghost', 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"] };
  3037. var faGift = { prefix: 'fas', iconName: 'gift', icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-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 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"] };
  3038. var faGlassMartini = { prefix: 'fas', iconName: 'glass-martini', 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"] };
  3039. var faGlassMartiniAlt = { prefix: 'fas', iconName: 'glass-martini-alt', 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"] };
  3040. var faGlasses = { prefix: 'fas', iconName: 'glasses', 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"] };
  3041. var faGlobe = { prefix: 'fas', iconName: 'globe', 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"] };
  3042. var faGlobeAfrica = { prefix: 'fas', iconName: 'globe-africa', 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"] };
  3043. var faGlobeAmericas = { prefix: 'fas', iconName: 'globe-americas', 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"] };
  3044. var faGlobeAsia = { prefix: 'fas', iconName: 'globe-asia', 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"] };
  3045. var faGolfBall = { prefix: 'fas', iconName: 'golf-ball', 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"] };
  3046. var faGopuram = { prefix: 'fas', iconName: 'gopuram', icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.84-7.16-16-16-16h-16v-80c0-8.84-7.16-16-16-16h-16V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16S96 7.16 96 16v112H80c-8.84 0-16 7.16-16 16v80H48c-8.84 0-16 7.16-16 16v112H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zm-272 0v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64h-64zm8-128v-48c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v48h-48z"] };
  3047. var faGraduationCap = { prefix: 'fas', iconName: 'graduation-cap', 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"] };
  3048. var faGreaterThan = { prefix: 'fas', iconName: 'greater-than', 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"] };
  3049. var faGreaterThanEqual = { prefix: 'fas', iconName: 'greater-than-equal', 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"] };
  3050. var faGrimace = { prefix: 'fas', iconName: 'grimace', 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"] };
  3051. var faGrin = { prefix: 'fas', iconName: 'grin', 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"] };
  3052. var faGrinAlt = { prefix: 'fas', iconName: 'grin-alt', 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"] };
  3053. var faGrinBeam = { prefix: 'fas', iconName: 'grin-beam', 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"] };
  3054. var faGrinBeamSweat = { prefix: 'fas', iconName: 'grin-beam-sweat', 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"] };
  3055. var faGrinHearts = { prefix: 'fas', iconName: 'grin-hearts', 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"] };
  3056. var faGrinSquint = { prefix: 'fas', iconName: 'grin-squint', 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"] };
  3057. var faGrinSquintTears = { prefix: 'fas', iconName: 'grin-squint-tears', 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"] };
  3058. var faGrinStars = { prefix: 'fas', iconName: 'grin-stars', 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"] };
  3059. var faGrinTears = { prefix: 'fas', iconName: 'grin-tears', 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"] };
  3060. var faGrinTongue = { prefix: 'fas', iconName: 'grin-tongue', 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"] };
  3061. var faGrinTongueSquint = { prefix: 'fas', iconName: 'grin-tongue-squint', 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"] };
  3062. var faGrinTongueWink = { prefix: 'fas', iconName: 'grin-tongue-wink', 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"] };
  3063. var faGrinWink = { prefix: 'fas', iconName: 'grin-wink', 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"] };
  3064. var faGripHorizontal = { prefix: 'fas', iconName: 'grip-horizontal', 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"] };
  3065. var faGripVertical = { prefix: 'fas', iconName: 'grip-vertical', 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"] };
  3066. var faHSquare = { prefix: 'fas', iconName: 'h-square', 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"] };
  3067. var faHammer = { prefix: 'fas', iconName: 'hammer', 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"] };
  3068. var faHamsa = { prefix: 'fas', iconName: 'hamsa', 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"] };
  3069. var faHandHolding = { prefix: 'fas', iconName: 'hand-holding', 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"] };
  3070. var faHandHoldingHeart = { prefix: 'fas', iconName: 'hand-holding-heart', 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"] };
  3071. var faHandHoldingUsd = { prefix: 'fas', iconName: 'hand-holding-usd', icon: [544, 512, [], "f4c0", "M257.6 144.3l50 14.3c3.6 1 6.1 4.4 6.1 8.1 0 4.6-3.8 8.4-8.4 8.4h-32.8c-3.6 0-7.1-.8-10.3-2.2-4.8-2.2-10.4-1.7-14.1 2l-17.5 17.5c-5.3 5.3-4.7 14.3 1.5 18.4 9.5 6.3 20.3 10.1 31.8 11.5V240c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-17.6c30.3-3.6 53.3-31 49.3-63-2.9-23-20.7-41.3-42.9-47.7l-50-14.3c-3.6-1-6.1-4.4-6.1-8.1 0-4.6 3.8-8.4 8.4-8.4h32.8c3.6 0 7.1.8 10.3 2.2 4.8 2.2 10.4 1.7 14.1-2l17.5-17.5c5.3-5.3 4.7-14.3-1.5-18.4-9.5-6.3-20.3-10.1-31.8-11.5V16c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v17.6c-30.3 3.6-53.3 31-49.3 63 2.9 23 20.7 41.3 42.9 47.7zm276.3 183.8c-11.2-10.7-28.5-10-40.3 0L406.4 402c-10.7 9.1-24 14-37.8 14H256.9c-8.3 0-15.1-7.2-15.1-16s6.8-16 15.1-16h73.9c15.1 0 29-10.9 31.4-26.6 3.1-20-11.5-37.4-29.8-37.4H181.3c-25.5 0-50.2 9.3-69.9 26.3L67.5 384H15.1C6.8 384 0 391.2 0 400v96c0 8.8 6.8 16 15.1 16H352c13.7 0 27-4.9 37.8-14l142.8-121c14.4-12.1 15.5-35.3 1.3-48.9z"] };
  3072. var faHandLizard = { prefix: 'fas', iconName: 'hand-lizard', 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"] };
  3073. var faHandPaper = { prefix: 'fas', iconName: 'hand-paper', 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"] };
  3074. var faHandPeace = { prefix: 'fas', iconName: 'hand-peace', 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"] };
  3075. var faHandPointDown = { prefix: 'fas', iconName: 'hand-point-down', 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"] };
  3076. var faHandPointLeft = { prefix: 'fas', iconName: 'hand-point-left', 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"] };
  3077. var faHandPointRight = { prefix: 'fas', iconName: 'hand-point-right', 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"] };
  3078. var faHandPointUp = { prefix: 'fas', iconName: 'hand-point-up', 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"] };
  3079. var faHandPointer = { prefix: 'fas', iconName: 'hand-pointer', 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"] };
  3080. var faHandRock = { prefix: 'fas', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M512 128.79c0-26.322-20.861-48.344-47.18-48.783C437.935 79.558 416 101.217 416 128h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C333.935 47.558 312 69.217 312 96v32h-8V80.79c0-26.322-20.861-48.344-47.18-48.783C229.935 31.558 208 53.217 208 80v48h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C125.935 47.558 104 69.217 104 96v136l-8-7.111V176.79c0-26.322-20.861-48.344-47.18-48.783C21.935 127.558 0 149.217 0 176v66.445a95.998 95.998 0 0 0 32.221 71.751l111.668 99.261A47.999 47.999 0 0 1 160 449.333V456c0 13.255 10.745 24 24 24h240c13.255 0 24-10.745 24-24v-2.921a96.01 96.01 0 0 1 7.523-37.254l48.954-116.265A96.002 96.002 0 0 0 512 262.306V128.79z"] };
  3081. var faHandScissors = { prefix: 'fas', iconName: 'hand-scissors', 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"] };
  3082. var faHandSpock = { prefix: 'fas', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M10.872 316.585c15.139-16.086 40.454-16.854 56.543-1.713L128 371.893v-79.405L88.995 120.865c-4.896-21.542 8.598-42.974 30.14-47.87 21.549-4.894 42.975 8.599 47.87 30.141L201.747 256h9.833L164.016 48.966c-4.946-21.531 8.498-42.994 30.028-47.94 21.532-4.95 42.994 8.498 47.94 30.028L293.664 256h15.105l48.425-193.702c5.357-21.432 27.075-34.462 48.507-29.104 21.432 5.358 34.463 27.075 29.104 48.507L391.231 256h11.08l30.768-129.265c5.117-21.491 26.685-34.768 48.177-29.647 21.491 5.117 34.765 26.686 29.647 48.177l-36.292 152.467A96.024 96.024 0 0 0 472 319.967v42.102a96.002 96.002 0 0 1-3.96 27.287l-26.174 88.287C435.825 498.022 417.101 512 395.846 512H179.172a48.002 48.002 0 0 1-32.898-13.046L12.585 373.128c-16.087-15.141-16.853-40.456-1.713-56.543z"] };
  3083. var faHands = { prefix: 'fas', iconName: 'hands', 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"] };
  3084. var faHandsHelping = { prefix: 'fas', iconName: 'hands-helping', 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"] };
  3085. var faHandshake = { prefix: 'fas', iconName: 'handshake', 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"] };
  3086. var faHanukiah = { prefix: 'fas', iconName: 'hanukiah', 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"] };
  3087. var faHashtag = { prefix: 'fas', iconName: 'hashtag', 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"] };
  3088. var faHatWizard = { prefix: 'fas', iconName: 'hat-wizard', 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"] };
  3089. var faHaykal = { prefix: 'fas', iconName: 'haykal', 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"] };
  3090. var faHdd = { prefix: 'fas', iconName: 'hdd', 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"] };
  3091. var faHeading = { prefix: 'fas', iconName: 'heading', icon: [512, 512, [], "f1dc", "M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"] };
  3092. var faHeadphones = { prefix: 'fas', iconName: 'headphones', 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"] };
  3093. var faHeadphonesAlt = { prefix: 'fas', iconName: 'headphones-alt', 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"] };
  3094. var faHeadset = { prefix: 'fas', iconName: 'headset', 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"] };
  3095. var faHeart = { prefix: 'fas', iconName: 'heart', 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"] };
  3096. var faHeartbeat = { prefix: 'fas', iconName: 'heartbeat', 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"] };
  3097. var faHelicopter = { prefix: 'fas', iconName: 'helicopter', 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"] };
  3098. var faHighlighter = { prefix: 'fas', iconName: 'highlighter', 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"] };
  3099. var faHiking = { prefix: 'fas', iconName: 'hiking', 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"] };
  3100. var faHippo = { prefix: 'fas', iconName: 'hippo', 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"] };
  3101. var faHistory = { prefix: 'fas', iconName: 'history', 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"] };
  3102. var faHockeyPuck = { prefix: 'fas', iconName: 'hockey-puck', 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"] };
  3103. var faHome = { prefix: 'fas', iconName: 'home', icon: [576, 512, [], "f015", "M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"] };
  3104. var faHorse = { prefix: 'fas', iconName: 'horse', 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"] };
  3105. var faHospital = { prefix: 'fas', iconName: 'hospital', 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"] };
  3106. var faHospitalAlt = { prefix: 'fas', iconName: 'hospital-alt', 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"] };
  3107. var faHospitalSymbol = { prefix: 'fas', iconName: 'hospital-symbol', 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"] };
  3108. var faHotTub = { prefix: 'fas', iconName: 'hot-tub', 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"] };
  3109. var faHotel = { prefix: 'fas', iconName: 'hotel', 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"] };
  3110. var faHourglass = { prefix: 'fas', iconName: 'hourglass', 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"] };
  3111. var faHourglassEnd = { prefix: 'fas', iconName: 'hourglass-end', 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"] };
  3112. var faHourglassHalf = { prefix: 'fas', iconName: 'hourglass-half', 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"] };
  3113. var faHourglassStart = { prefix: 'fas', iconName: 'hourglass-start', 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"] };
  3114. var faHouseDamage = { prefix: 'fas', iconName: 'house-damage', 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"] };
  3115. var faHryvnia = { prefix: 'fas', iconName: 'hryvnia', 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"] };
  3116. var faICursor = { prefix: 'fas', iconName: 'i-cursor', 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"] };
  3117. var faIdBadge = { prefix: 'fas', iconName: 'id-badge', 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"] };
  3118. var faIdCard = { prefix: 'fas', iconName: 'id-card', 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"] };
  3119. var faIdCardAlt = { prefix: 'fas', iconName: 'id-card-alt', 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"] };
  3120. var faImage = { prefix: 'fas', iconName: 'image', 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"] };
  3121. var faImages = { prefix: 'fas', iconName: 'images', 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"] };
  3122. var faInbox = { prefix: 'fas', iconName: 'inbox', 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"] };
  3123. var faIndent = { prefix: 'fas', iconName: 'indent', icon: [448, 512, [], "f03c", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.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 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"] };
  3124. var faIndustry = { prefix: 'fas', iconName: 'industry', 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"] };
  3125. var faInfinity = { prefix: 'fas', iconName: 'infinity', 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"] };
  3126. var faInfo = { prefix: 'fas', iconName: 'info', 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"] };
  3127. var faInfoCircle = { prefix: 'fas', iconName: 'info-circle', 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"] };
  3128. var faItalic = { prefix: 'fas', iconName: 'italic', icon: [320, 512, [], "f033", "M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"] };
  3129. var faJedi = { prefix: 'fas', iconName: 'jedi', icon: [544, 512, [], "f669", "M479.99 352l58.88-58.87c3.29-16.8 5.13-34.12 5.13-51.86 0-5.81-.68-11.51-1.05-17.27H496l41.25-41.24c-14.5-64.79-52.43-123.05-107.91-162.27-2.77-1.96-5.97-2.99-9.25-2.99-5.37 0-10.41 2.71-13.49 7.24-3.05 4.49-3.64 9.99-1.61 15.09 6.55 16.46 9.86 33.73 9.86 51.31 0 45.12-21.03 86.57-57.69 113.73-4.02 2.98-6.46 7.5-6.7 12.4-.24 4.92 1.76 9.66 5.49 13.03 32.93 29.75 47.35 73.51 38.57 117.07-9.74 48.35-48.84 87.1-97.31 96.5l-2.5-65.34L321.88 397c2.98 2.06 7.39 1.69 10.02-.8a8.002 8.002 0 0 0 1.34-9.92l-20.11-33.73 42.07-8.72c3.7-.75 6.38-4.05 6.38-7.83 0-3.77-2.69-7.06-6.38-7.83l-42.07-8.73 20.13-33.77c1.92-3.23 1.34-7.31-1.38-9.91-2.7-2.55-6.97-2.89-10-.8l-30.39 20.67L279.96 7.7a7.964 7.964 0 0 0-8-7.7c-4.33 0-7.84 3.38-8 7.67l-11.52 287.97-30.39-20.66c-3.14-2.12-7.27-1.83-10 .78-2.72 2.59-3.3 6.67-1.36 9.94l20.11 33.73-42.07 8.73c-3.7.75-6.38 4.05-6.38 7.83s2.67 7.08 6.38 7.83l42.07 8.72-20.13 33.77c-1.92 3.23-1.34 7.33 1.39 9.94 2.59 2.45 7.03 2.75 10 .75l27.16-18.48-2.5 65.26c-56.94-11.64-99.89-61.89-99.89-121.92 0-35.08 14.62-67.6 41.17-91.58 3.72-3.36 5.72-8.11 5.48-13.01-.24-4.9-2.68-9.41-6.69-12.38-36.67-27.16-57.71-68.62-57.71-113.74 0-17.56 3.31-34.81 9.84-51.26 2.02-5.09 1.43-10.59-1.62-15.09-3.08-4.54-8.13-7.25-13.51-7.25-3.3 0-6.5 1.04-9.27 3-55.87 39.52-93.6 97.37-107.97 162.07L47.93 224H.72c-.63 9.92-.97 19.91-.5 29.99.62 13.43 2.54 26.53 5.11 39.41l58.6 58.6H24.02c41.25 90.23 131.13 154.94 235.1 159.71 4.3.2 8.59.29 12.85.29 110.34 0 205.35-65.83 247.98-160h-39.96z"] };
  3130. var faJoint = { prefix: 'fas', iconName: 'joint', 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"] };
  3131. var faJournalWhills = { prefix: 'fas', iconName: 'journal-whills', icon: [448, 512, [], "f66a", "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.2zM133.08 144.39l21.26 21.26c1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34c3.12-3.12 3.12-8.19 0-11.31l-26.42-26.42c10-20.9 26.24-37.97 46.37-49.26C179.62 88.4 176 99.74 176 112c0 19.96 9.33 37.57 23.66 49.31C190.01 171.37 184 184.96 184 200c0 26.94 19.04 49.4 44.38 54.76l1.36-32.71-10.37 7.04c-.69.45-1.47.69-2.25.69-1 0-1.98-.38-2.75-1.09a4.006 4.006 0 0 1-.69-4.95l8.54-14.31-17.91-3.72c-1.86-.39-3.19-2.03-3.19-3.92s1.33-3.53 3.19-3.92l17.91-3.72-8.54-14.31c-.95-1.61-.67-3.67.69-4.95 1.36-1.3 3.44-1.44 5-.41l12.01 8.16L236 71.83c.09-2.14 1.86-3.83 4-3.83s3.91 1.69 4 3.83l4.68 112.29 14.2-9.65a4.067 4.067 0 0 1 5 .41 4.006 4.006 0 0 1 .69 4.95l-8.54 14.31 17.91 3.72c1.86.39 3.19 2.03 3.19 3.92s-1.33 3.53-3.19 3.92l-17.91 3.72 8.54 14.31c.95 1.61.67 3.67-.69 4.95-.77.72-1.77 1.09-2.75 1.09-.78 0-1.56-.23-2.25-.69l-12.68-8.62 1.43 34.28C276.96 249.4 296 226.94 296 200c0-15.04-6.01-28.63-15.66-38.69C294.67 149.57 304 131.96 304 112c0-12.26-3.62-23.6-9.6-33.33 20.13 11.28 36.37 28.36 46.37 49.26l-26.42 26.42c-3.12 3.12-3.12 8.19 0 11.31 1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34l21.26-21.26c2.97 10.08 5.07 20.55 5.07 31.6 0 .52-.14.99-.15 1.51l-37.11 32.47a7.975 7.975 0 0 0-.75 11.28 7.97 7.97 0 0 0 6.02 2.73c1.88 0 3.75-.66 5.27-1.98l23.59-20.64C337.32 250.96 293.09 288 240 288s-97.32-37.04-108.86-86.62l23.59 20.64A7.957 7.957 0 0 0 160 224c2.22 0 4.44-.92 6.02-2.73 2.92-3.33 2.58-8.38-.75-11.28l-37.11-32.47c-.01-.52-.15-.99-.15-1.51-.01-11.06 2.09-21.53 5.07-31.62zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3132. var faKaaba = { prefix: 'fas', iconName: 'kaaba', 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"] };
  3133. var faKey = { prefix: 'fas', iconName: 'key', 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"] };
  3134. var faKeyboard = { prefix: 'fas', iconName: 'keyboard', 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"] };
  3135. var faKhanda = { prefix: 'fas', iconName: 'khanda', 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"] };
  3136. var faKiss = { prefix: 'fas', iconName: 'kiss', 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"] };
  3137. var faKissBeam = { prefix: 'fas', iconName: 'kiss-beam', 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"] };
  3138. var faKissWinkHeart = { prefix: 'fas', iconName: 'kiss-wink-heart', 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"] };
  3139. var faKiwiBird = { prefix: 'fas', iconName: 'kiwi-bird', 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"] };
  3140. var faLandmark = { prefix: 'fas', iconName: 'landmark', 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"] };
  3141. var faLanguage = { prefix: 'fas', iconName: 'language', icon: [640, 512, [], "f1ab", "M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"] };
  3142. var faLaptop = { prefix: 'fas', iconName: 'laptop', 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"] };
  3143. var faLaptopCode = { prefix: 'fas', iconName: 'laptop-code', 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"] };
  3144. var faLaugh = { prefix: 'fas', iconName: 'laugh', 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"] };
  3145. var faLaughBeam = { prefix: 'fas', iconName: 'laugh-beam', 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"] };
  3146. var faLaughSquint = { prefix: 'fas', iconName: 'laugh-squint', 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"] };
  3147. var faLaughWink = { prefix: 'fas', iconName: 'laugh-wink', 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"] };
  3148. var faLayerGroup = { prefix: 'fas', iconName: 'layer-group', 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"] };
  3149. var faLeaf = { prefix: 'fas', iconName: 'leaf', 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"] };
  3150. var faLemon = { prefix: 'fas', iconName: 'lemon', 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"] };
  3151. var faLessThan = { prefix: 'fas', iconName: 'less-than', 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"] };
  3152. var faLessThanEqual = { prefix: 'fas', iconName: 'less-than-equal', 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"] };
  3153. var faLevelDownAlt = { prefix: 'fas', iconName: 'level-down-alt', 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"] };
  3154. var faLevelUpAlt = { prefix: 'fas', iconName: 'level-up-alt', 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"] };
  3155. var faLifeRing = { prefix: 'fas', iconName: 'life-ring', 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"] };
  3156. var faLightbulb = { prefix: 'fas', iconName: 'lightbulb', 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"] };
  3157. var faLink = { prefix: 'fas', iconName: 'link', 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"] };
  3158. var faLiraSign = { prefix: 'fas', iconName: 'lira-sign', 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"] };
  3159. var faList = { prefix: 'fas', iconName: 'list', icon: [512, 512, [], "f03a", "M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"] };
  3160. var faListAlt = { prefix: 'fas', iconName: 'list-alt', 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"] };
  3161. var faListOl = { prefix: 'fas', iconName: 'list-ol', icon: [512, 512, [], "f0cb", "M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3162. var faListUl = { prefix: 'fas', iconName: 'list-ul', icon: [512, 512, [], "f0ca", "M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3163. var faLocationArrow = { prefix: 'fas', iconName: 'location-arrow', 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"] };
  3164. var faLock = { prefix: 'fas', iconName: 'lock', 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"] };
  3165. var faLockOpen = { prefix: 'fas', iconName: 'lock-open', 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"] };
  3166. var faLongArrowAltDown = { prefix: 'fas', iconName: 'long-arrow-alt-down', 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"] };
  3167. var faLongArrowAltLeft = { prefix: 'fas', iconName: 'long-arrow-alt-left', 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"] };
  3168. var faLongArrowAltRight = { prefix: 'fas', iconName: 'long-arrow-alt-right', 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"] };
  3169. var faLongArrowAltUp = { prefix: 'fas', iconName: 'long-arrow-alt-up', 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"] };
  3170. var faLowVision = { prefix: 'fas', iconName: 'low-vision', 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"] };
  3171. var faLuggageCart = { prefix: 'fas', iconName: 'luggage-cart', 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"] };
  3172. var faMagic = { prefix: 'fas', iconName: 'magic', 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"] };
  3173. var faMagnet = { prefix: 'fas', iconName: 'magnet', icon: [512, 512, [], "f076", "M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"] };
  3174. var faMailBulk = { prefix: 'fas', iconName: 'mail-bulk', 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"] };
  3175. var faMale = { prefix: 'fas', iconName: 'male', 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"] };
  3176. var faMap = { prefix: 'fas', iconName: 'map', 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"] };
  3177. var faMapMarked = { prefix: 'fas', iconName: 'map-marked', 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"] };
  3178. var faMapMarkedAlt = { prefix: 'fas', iconName: 'map-marked-alt', 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"] };
  3179. var faMapMarker = { prefix: 'fas', iconName: 'map-marker', 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"] };
  3180. var faMapMarkerAlt = { prefix: 'fas', iconName: 'map-marker-alt', 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"] };
  3181. var faMapPin = { prefix: 'fas', iconName: 'map-pin', 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"] };
  3182. var faMapSigns = { prefix: 'fas', iconName: 'map-signs', 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"] };
  3183. var faMarker = { prefix: 'fas', iconName: 'marker', 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"] };
  3184. var faMars = { prefix: 'fas', iconName: 'mars', 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"] };
  3185. var faMarsDouble = { prefix: 'fas', iconName: 'mars-double', 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"] };
  3186. var faMarsStroke = { prefix: 'fas', iconName: 'mars-stroke', 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"] };
  3187. var faMarsStrokeH = { prefix: 'fas', iconName: 'mars-stroke-h', 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"] };
  3188. var faMarsStrokeV = { prefix: 'fas', iconName: 'mars-stroke-v', 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"] };
  3189. var faMask = { prefix: 'fas', iconName: 'mask', 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"] };
  3190. var faMedal = { prefix: 'fas', iconName: 'medal', 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"] };
  3191. var faMedkit = { prefix: 'fas', iconName: 'medkit', 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"] };
  3192. var faMeh = { prefix: 'fas', iconName: 'meh', 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"] };
  3193. var faMehBlank = { prefix: 'fas', iconName: 'meh-blank', 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"] };
  3194. var faMehRollingEyes = { prefix: 'fas', iconName: 'meh-rolling-eyes', 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"] };
  3195. var faMemory = { prefix: 'fas', iconName: 'memory', 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"] };
  3196. var faMenorah = { prefix: 'fas', iconName: 'menorah', 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"] };
  3197. var faMercury = { prefix: 'fas', iconName: 'mercury', 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"] };
  3198. var faMicrochip = { prefix: 'fas', iconName: 'microchip', 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"] };
  3199. var faMicrophone = { prefix: 'fas', iconName: 'microphone', 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"] };
  3200. var faMicrophoneAlt = { prefix: 'fas', iconName: 'microphone-alt', 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"] };
  3201. var faMicrophoneAltSlash = { prefix: 'fas', iconName: 'microphone-alt-slash', 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"] };
  3202. var faMicrophoneSlash = { prefix: 'fas', iconName: 'microphone-slash', 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"] };
  3203. var faMicroscope = { prefix: 'fas', iconName: 'microscope', 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"] };
  3204. var faMinus = { prefix: 'fas', iconName: 'minus', 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"] };
  3205. var faMinusCircle = { prefix: 'fas', iconName: 'minus-circle', 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"] };
  3206. var faMinusSquare = { prefix: 'fas', iconName: 'minus-square', 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"] };
  3207. var faMobile = { prefix: 'fas', iconName: 'mobile', 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"] };
  3208. var faMobileAlt = { prefix: 'fas', iconName: 'mobile-alt', 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"] };
  3209. var faMoneyBill = { prefix: 'fas', iconName: 'money-bill', 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"] };
  3210. var faMoneyBillAlt = { prefix: 'fas', iconName: 'money-bill-alt', 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"] };
  3211. var faMoneyBillWave = { prefix: 'fas', iconName: 'money-bill-wave', 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"] };
  3212. var faMoneyBillWaveAlt = { prefix: 'fas', iconName: 'money-bill-wave-alt', 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"] };
  3213. var faMoneyCheck = { prefix: 'fas', iconName: 'money-check', 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"] };
  3214. var faMoneyCheckAlt = { prefix: 'fas', iconName: 'money-check-alt', 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"] };
  3215. var faMonument = { prefix: 'fas', iconName: 'monument', 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"] };
  3216. var faMoon = { prefix: 'fas', iconName: 'moon', 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"] };
  3217. var faMortarPestle = { prefix: 'fas', iconName: 'mortar-pestle', 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"] };
  3218. var faMosque = { prefix: 'fas', iconName: 'mosque', 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"] };
  3219. var faMotorcycle = { prefix: 'fas', iconName: 'motorcycle', icon: [640, 512, [], "f21c", "M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"] };
  3220. var faMountain = { prefix: 'fas', iconName: 'mountain', 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"] };
  3221. var faMousePointer = { prefix: 'fas', iconName: 'mouse-pointer', 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"] };
  3222. var faMusic = { prefix: 'fas', iconName: 'music', icon: [512, 512, [], "f001", "M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"] };
  3223. var faNetworkWired = { prefix: 'fas', iconName: 'network-wired', 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"] };
  3224. var faNeuter = { prefix: 'fas', iconName: 'neuter', 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"] };
  3225. var faNewspaper = { prefix: 'fas', iconName: 'newspaper', 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"] };
  3226. var faNotEqual = { prefix: 'fas', iconName: 'not-equal', 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"] };
  3227. var faNotesMedical = { prefix: 'fas', iconName: 'notes-medical', 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"] };
  3228. var faObjectGroup = { prefix: 'fas', iconName: 'object-group', 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"] };
  3229. var faObjectUngroup = { prefix: 'fas', iconName: 'object-ungroup', 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"] };
  3230. var faOilCan = { prefix: 'fas', iconName: 'oil-can', 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"] };
  3231. var faOm = { prefix: 'fas', iconName: 'om', 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"] };
  3232. var faOtter = { prefix: 'fas', iconName: 'otter', 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"] };
  3233. var faOutdent = { prefix: 'fas', iconName: 'outdent', icon: [448, 512, [], "f03b", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.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 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"] };
  3234. var faPaintBrush = { prefix: 'fas', iconName: 'paint-brush', 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"] };
  3235. var faPaintRoller = { prefix: 'fas', iconName: 'paint-roller', 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"] };
  3236. var faPalette = { prefix: 'fas', iconName: 'palette', 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"] };
  3237. var faPallet = { prefix: 'fas', iconName: 'pallet', 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"] };
  3238. var faPaperPlane = { prefix: 'fas', iconName: 'paper-plane', 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"] };
  3239. var faPaperclip = { prefix: 'fas', iconName: 'paperclip', 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"] };
  3240. var faParachuteBox = { prefix: 'fas', iconName: 'parachute-box', 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"] };
  3241. var faParagraph = { prefix: 'fas', iconName: 'paragraph', icon: [448, 512, [], "f1dd", "M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"] };
  3242. var faParking = { prefix: 'fas', iconName: 'parking', 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"] };
  3243. var faPassport = { prefix: 'fas', iconName: 'passport', 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"] };
  3244. var faPastafarianism = { prefix: 'fas', iconName: 'pastafarianism', 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"] };
  3245. var faPaste = { prefix: 'fas', iconName: 'paste', 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"] };
  3246. var faPause = { prefix: 'fas', iconName: 'pause', 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"] };
  3247. var faPauseCircle = { prefix: 'fas', iconName: 'pause-circle', 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"] };
  3248. var faPaw = { prefix: 'fas', iconName: 'paw', 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"] };
  3249. var faPeace = { prefix: 'fas', iconName: 'peace', 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"] };
  3250. var faPen = { prefix: 'fas', iconName: 'pen', 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"] };
  3251. var faPenAlt = { prefix: 'fas', iconName: 'pen-alt', 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"] };
  3252. var faPenFancy = { prefix: 'fas', iconName: 'pen-fancy', 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"] };
  3253. var faPenNib = { prefix: 'fas', iconName: 'pen-nib', 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"] };
  3254. var faPenSquare = { prefix: 'fas', iconName: 'pen-square', 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"] };
  3255. var faPencilAlt = { prefix: 'fas', iconName: 'pencil-alt', 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"] };
  3256. var faPencilRuler = { prefix: 'fas', iconName: 'pencil-ruler', 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"] };
  3257. var faPeopleCarry = { prefix: 'fas', iconName: 'people-carry', 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"] };
  3258. var faPercent = { prefix: 'fas', iconName: 'percent', 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"] };
  3259. var faPercentage = { prefix: 'fas', iconName: 'percentage', 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"] };
  3260. var faPhone = { prefix: 'fas', iconName: 'phone', 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"] };
  3261. var faPhoneSlash = { prefix: 'fas', iconName: 'phone-slash', 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"] };
  3262. var faPhoneSquare = { prefix: 'fas', iconName: 'phone-square', 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"] };
  3263. var faPhoneVolume = { prefix: 'fas', iconName: 'phone-volume', 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"] };
  3264. var faPiggyBank = { prefix: 'fas', iconName: 'piggy-bank', 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"] };
  3265. var faPills = { prefix: 'fas', iconName: 'pills', 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"] };
  3266. var faPlaceOfWorship = { prefix: 'fas', iconName: 'place-of-worship', 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"] };
  3267. var faPlane = { prefix: 'fas', iconName: 'plane', 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"] };
  3268. var faPlaneArrival = { prefix: 'fas', iconName: 'plane-arrival', 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"] };
  3269. var faPlaneDeparture = { prefix: 'fas', iconName: 'plane-departure', 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"] };
  3270. var faPlay = { prefix: 'fas', iconName: 'play', 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"] };
  3271. var faPlayCircle = { prefix: 'fas', iconName: 'play-circle', 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"] };
  3272. var faPlug = { prefix: 'fas', iconName: 'plug', icon: [384, 512, [], "f1e6", "M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"] };
  3273. var faPlus = { prefix: 'fas', iconName: 'plus', 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"] };
  3274. var faPlusCircle = { prefix: 'fas', iconName: 'plus-circle', 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"] };
  3275. var faPlusSquare = { prefix: 'fas', iconName: 'plus-square', 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"] };
  3276. var faPodcast = { prefix: 'fas', iconName: 'podcast', 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"] };
  3277. var faPoll = { prefix: 'fas', iconName: 'poll', 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"] };
  3278. var faPollH = { prefix: 'fas', iconName: 'poll-h', 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"] };
  3279. var faPoo = { prefix: 'fas', iconName: 'poo', 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"] };
  3280. var faPoop = { prefix: 'fas', iconName: 'poop', 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"] };
  3281. var faPortrait = { prefix: 'fas', iconName: 'portrait', 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"] };
  3282. var faPoundSign = { prefix: 'fas', iconName: 'pound-sign', 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"] };
  3283. var faPowerOff = { prefix: 'fas', iconName: 'power-off', 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"] };
  3284. var faPray = { prefix: 'fas', iconName: 'pray', 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"] };
  3285. var faPrayingHands = { prefix: 'fas', iconName: 'praying-hands', 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"] };
  3286. var faPrescription = { prefix: 'fas', iconName: 'prescription', 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"] };
  3287. var faPrescriptionBottle = { prefix: 'fas', iconName: 'prescription-bottle', 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"] };
  3288. var faPrescriptionBottleAlt = { prefix: 'fas', iconName: 'prescription-bottle-alt', 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"] };
  3289. var faPrint = { prefix: 'fas', iconName: 'print', 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"] };
  3290. var faProcedures = { prefix: 'fas', iconName: 'procedures', 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"] };
  3291. var faProjectDiagram = { prefix: 'fas', iconName: 'project-diagram', 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"] };
  3292. var faPuzzlePiece = { prefix: 'fas', iconName: 'puzzle-piece', 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"] };
  3293. var faQrcode = { prefix: 'fas', iconName: 'qrcode', 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"] };
  3294. var faQuestion = { prefix: 'fas', iconName: 'question', 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"] };
  3295. var faQuestionCircle = { prefix: 'fas', iconName: 'question-circle', 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"] };
  3296. var faQuidditch = { prefix: 'fas', iconName: 'quidditch', 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"] };
  3297. var faQuoteLeft = { prefix: 'fas', iconName: 'quote-left', 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"] };
  3298. var faQuoteRight = { prefix: 'fas', iconName: 'quote-right', 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"] };
  3299. var faQuran = { prefix: 'fas', iconName: 'quran', 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"] };
  3300. var faRandom = { prefix: 'fas', iconName: 'random', 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"] };
  3301. var faReceipt = { prefix: 'fas', iconName: 'receipt', 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"] };
  3302. var faRecycle = { prefix: 'fas', iconName: 'recycle', 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"] };
  3303. var faRedo = { prefix: 'fas', iconName: 'redo', icon: [512, 512, [], "f01e", "M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"] };
  3304. var faRedoAlt = { prefix: 'fas', iconName: 'redo-alt', 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"] };
  3305. var faRegistered = { prefix: 'fas', iconName: 'registered', 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"] };
  3306. var faReply = { prefix: 'fas', iconName: 'reply', 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"] };
  3307. var faReplyAll = { prefix: 'fas', iconName: 'reply-all', 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"] };
  3308. var faRetweet = { prefix: 'fas', iconName: 'retweet', 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"] };
  3309. var faRibbon = { prefix: 'fas', iconName: 'ribbon', 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"] };
  3310. var faRing = { prefix: 'fas', iconName: 'ring', 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"] };
  3311. var faRoad = { prefix: 'fas', iconName: 'road', 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"] };
  3312. var faRobot = { prefix: 'fas', iconName: 'robot', icon: [640, 512, [], "f544", "M0 256v128c0 17.7 14.3 32 32 32h32V224H32c-17.7 0-32 14.3-32 32zM464 96H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H176c-44.2 0-80 35.8-80 80v272c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V176c0-44.2-35.8-80-80-80zM256 416h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm128 120h-64v-32h64v32zm96 0h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm192-72h-32v192h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32z"] };
  3313. var faRocket = { prefix: 'fas', iconName: 'rocket', icon: [512, 512, [], "f135", "M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3314. var faRoute = { prefix: 'fas', iconName: 'route', 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"] };
  3315. var faRss = { prefix: 'fas', iconName: 'rss', 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"] };
  3316. var faRssSquare = { prefix: 'fas', iconName: 'rss-square', 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"] };
  3317. var faRubleSign = { prefix: 'fas', iconName: 'ruble-sign', 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"] };
  3318. var faRuler = { prefix: 'fas', iconName: 'ruler', 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"] };
  3319. var faRulerCombined = { prefix: 'fas', iconName: 'ruler-combined', 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"] };
  3320. var faRulerHorizontal = { prefix: 'fas', iconName: 'ruler-horizontal', 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"] };
  3321. var faRulerVertical = { prefix: 'fas', iconName: 'ruler-vertical', 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"] };
  3322. var faRunning = { prefix: 'fas', iconName: 'running', 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"] };
  3323. var faRupeeSign = { prefix: 'fas', iconName: 'rupee-sign', 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"] };
  3324. var faSadCry = { prefix: 'fas', iconName: 'sad-cry', 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"] };
  3325. var faSadTear = { prefix: 'fas', iconName: 'sad-tear', 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"] };
  3326. var faSave = { prefix: 'fas', iconName: 'save', 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"] };
  3327. var faSchool = { prefix: 'fas', iconName: 'school', 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"] };
  3328. var faScrewdriver = { prefix: 'fas', iconName: 'screwdriver', 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"] };
  3329. var faScroll = { prefix: 'fas', iconName: 'scroll', 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"] };
  3330. var faSearch = { prefix: 'fas', iconName: 'search', 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"] };
  3331. var faSearchDollar = { prefix: 'fas', iconName: 'search-dollar', 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"] };
  3332. var faSearchLocation = { prefix: 'fas', iconName: 'search-location', 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"] };
  3333. var faSearchMinus = { prefix: 'fas', iconName: 'search-minus', 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"] };
  3334. var faSearchPlus = { prefix: 'fas', iconName: 'search-plus', 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"] };
  3335. var faSeedling = { prefix: 'fas', iconName: 'seedling', 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"] };
  3336. var faServer = { prefix: 'fas', iconName: 'server', 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"] };
  3337. var faShapes = { prefix: 'fas', iconName: 'shapes', icon: [512, 512, [], "f61f", "M512 320v160c0 17.67-14.33 32-32 32H320c-17.67 0-32-14.33-32-32V320c0-17.67 14.33-32 32-32h160c17.67 0 32 14.33 32 32zm-384-64C57.31 256 0 313.31 0 384s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm351.03-32c25.34 0 41.18-26.67 28.51-48L412.51 16c-12.67-21.33-44.35-21.33-57.02 0l-95.03 160c-12.67 21.33 3.17 48 28.51 48h190.06z"] };
  3338. var faShare = { prefix: 'fas', iconName: 'share', 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"] };
  3339. var faShareAlt = { prefix: 'fas', iconName: 'share-alt', 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"] };
  3340. var faShareAltSquare = { prefix: 'fas', iconName: 'share-alt-square', 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"] };
  3341. var faShareSquare = { prefix: 'fas', iconName: 'share-square', 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"] };
  3342. var faShekelSign = { prefix: 'fas', iconName: 'shekel-sign', 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"] };
  3343. var faShieldAlt = { prefix: 'fas', iconName: 'shield-alt', icon: [512, 512, [], "f3ed", "M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"] };
  3344. var faShip = { prefix: 'fas', iconName: 'ship', 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"] };
  3345. var faShippingFast = { prefix: 'fas', iconName: 'shipping-fast', 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"] };
  3346. var faShoePrints = { prefix: 'fas', iconName: 'shoe-prints', 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"] };
  3347. var faShoppingBag = { prefix: 'fas', iconName: 'shopping-bag', 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"] };
  3348. var faShoppingBasket = { prefix: 'fas', iconName: 'shopping-basket', 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"] };
  3349. var faShoppingCart = { prefix: 'fas', iconName: 'shopping-cart', 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"] };
  3350. var faShower = { prefix: 'fas', iconName: 'shower', icon: [512, 512, [], "f2cc", "M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"] };
  3351. var faShuttleVan = { prefix: 'fas', iconName: 'shuttle-van', 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"] };
  3352. var faSign = { prefix: 'fas', iconName: 'sign', 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"] };
  3353. var faSignInAlt = { prefix: 'fas', iconName: 'sign-in-alt', 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"] };
  3354. var faSignLanguage = { prefix: 'fas', iconName: 'sign-language', 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"] };
  3355. var faSignOutAlt = { prefix: 'fas', iconName: 'sign-out-alt', 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"] };
  3356. var faSignal = { prefix: 'fas', iconName: 'signal', 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"] };
  3357. var faSignature = { prefix: 'fas', iconName: 'signature', icon: [512, 512, [], "f5b7", "M496 320h-91.86c-9.27 0-19.72-11.31-25.78-28.52-15.23-43.36-48.11-70.3-85.8-70.3-30.84 0-58.47 18.05-76.11 49.23L194.8 106.5C188.84 81.08 169.34 64 146.28 64c-23.05 0-42.55 17.08-48.5 42.5L56.16 284.2C50.7 307.45 37.75 320 28.33 320H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h12.33c41.97 0 78.19-34.23 90.14-85.2l23.84-101.78 29.25 222.11c1.98 15.05 13.82 27.45 28.94 28.75.99.09 1.96.13 2.93.13 14.08 0 26.64-9.27 30.69-22.95l33.03-112.34c5.88-16.72 15.84-27.52 25.41-27.52 9.58 0 19.55 10.8 25.78 28.52 15.23 43.36 48.11 70.3 85.8 70.3H496c8.84 0 16-7.16 16-16v-32c0-8.86-7.16-16.02-16-16.02z"] };
  3358. var faSitemap = { prefix: 'fas', iconName: 'sitemap', 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"] };
  3359. var faSkull = { prefix: 'fas', iconName: 'skull', 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"] };
  3360. var faSkullCrossbones = { prefix: 'fas', iconName: 'skull-crossbones', 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"] };
  3361. var faSlash = { prefix: 'fas', iconName: 'slash', 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"] };
  3362. var faSlidersH = { prefix: 'fas', iconName: 'sliders-h', 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"] };
  3363. var faSmile = { prefix: 'fas', iconName: 'smile', 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"] };
  3364. var faSmileBeam = { prefix: 'fas', iconName: 'smile-beam', 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"] };
  3365. var faSmileWink = { prefix: 'fas', iconName: 'smile-wink', 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"] };
  3366. var faSmoking = { prefix: 'fas', iconName: 'smoking', 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"] };
  3367. var faSmokingBan = { prefix: 'fas', iconName: 'smoking-ban', 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"] };
  3368. var faSnowflake = { prefix: 'fas', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M444.816 301.639a24.12 24.12 0 0 0 2.661-16.978c-2.725-12.966-15.339-21.245-28.174-18.492l-87.407 25.046L264 256l67.896-35.215 87.407 25.046c12.835 2.753 25.449-5.526 28.174-18.492 2.725-12.966-5.471-25.708-18.305-28.461l-47.477-7.137 53.077-30.956c11.363-6.627 15.257-21.306 8.696-32.785-6.561-11.479-21.091-15.412-32.454-8.785l-53.077 30.956 17.621-45.104c4.057-12.606-2.768-26.146-15.247-30.245-12.478-4.099-25.883 2.797-29.94 15.402l-22.232 88.99-60.38 35.215V144l65.175-63.945c8.778-9.852 7.987-25.027-1.766-33.894-9.753-8.867-24.775-8.068-33.552 1.784l-29.857 37.967V24c0-13.255-10.637-24-23.758-24s-23.758 10.745-23.758 24v61.912l-29.857-37.967c-8.779-9.852-23.799-10.652-33.552-1.784-9.753 8.867-10.543 24.042-1.766 33.894L200.242 144v70.431l-60.38-35.215-22.232-88.99c-4.057-12.605-17.462-19.501-29.94-15.402-12.478 4.099-19.304 17.64-15.247 30.245l17.62 45.104-53.077-30.956c-11.363-6.627-25.893-2.694-32.454 8.785s-2.667 26.157 8.696 32.785l53.077 30.956-47.477 7.137C5.993 201.634-2.203 214.375.523 227.341c2.725 12.965 15.339 21.245 28.174 18.492l87.407-25.046L184 256l-67.896 35.215-87.406-25.045c-12.835-2.753-25.449 5.526-28.174 18.492-2.725 12.967 5.47 25.708 18.305 28.461l47.477 7.137-53.077 30.956C1.866 357.843-2.027 372.521 4.533 384s21.091 15.412 32.454 8.785l53.077-30.956-17.62 45.104a24.157 24.157 0 0 0 2.022 19.428c2.831 4.953 7.416 8.909 13.224 10.816 12.478 4.099 25.883-2.797 29.94-15.402l22.232-88.99 60.38-35.215V368l-65.175 63.945c-8.778 9.852-7.987 25.027 1.766 33.894 9.754 8.868 24.774 8.068 33.552-1.784l29.857-37.967V488c0 13.255 10.637 24 23.758 24s23.758-10.745 23.758-24v-61.912l29.857 37.967A23.59 23.59 0 0 0 295.282 472a23.534 23.534 0 0 0 15.885-6.161c9.753-8.867 10.544-24.042 1.766-33.894L247.758 368v-70.431l60.38 35.215 22.232 88.99c4.057 12.605 17.462 19.501 29.94 15.402 12.479-4.099 19.304-17.64 15.247-30.245l-17.621-45.104 53.077 30.956c11.363 6.627 25.893 2.694 32.454-8.785s2.667-26.157-8.696-32.785l-53.077-30.956 47.477-7.137c6.86-1.469 12.394-5.793 15.645-11.481z"] };
  3369. var faSocks = { prefix: 'fas', iconName: 'socks', 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"] };
  3370. var faSolarPanel = { prefix: 'fas', iconName: 'solar-panel', 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"] };
  3371. var faSort = { prefix: 'fas', iconName: 'sort', 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"] };
  3372. var faSortAlphaDown = { prefix: 'fas', iconName: 'sort-alpha-down', icon: [448, 512, [], "f15d", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3373. var faSortAlphaUp = { prefix: 'fas', iconName: 'sort-alpha-up', icon: [448, 512, [], "f15e", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3374. var faSortAmountDown = { prefix: 'fas', iconName: 'sort-amount-down', icon: [512, 512, [], "f160", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3375. var faSortAmountUp = { prefix: 'fas', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3376. var faSortDown = { prefix: 'fas', iconName: 'sort-down', 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"] };
  3377. var faSortNumericDown = { prefix: 'fas', iconName: 'sort-numeric-down', icon: [448, 512, [], "f162", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"] };
  3378. var faSortNumericUp = { prefix: 'fas', iconName: 'sort-numeric-up', icon: [448, 512, [], "f163", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"] };
  3379. var faSortUp = { prefix: 'fas', iconName: 'sort-up', 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"] };
  3380. var faSpa = { prefix: 'fas', iconName: 'spa', 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"] };
  3381. var faSpaceShuttle = { prefix: 'fas', iconName: 'space-shuttle', 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"] };
  3382. var faSpider = { prefix: 'fas', iconName: 'spider', 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"] };
  3383. var faSpinner = { prefix: 'fas', iconName: 'spinner', 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"] };
  3384. var faSplotch = { prefix: 'fas', iconName: 'splotch', 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"] };
  3385. var faSprayCan = { prefix: 'fas', iconName: 'spray-can', 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"] };
  3386. var faSquare = { prefix: 'fas', iconName: 'square', 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"] };
  3387. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3388. var faSquareRootAlt = { prefix: 'fas', iconName: 'square-root-alt', 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"] };
  3389. var faStamp = { prefix: 'fas', iconName: 'stamp', 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"] };
  3390. var faStar = { prefix: 'fas', iconName: 'star', 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"] };
  3391. var faStarAndCrescent = { prefix: 'fas', iconName: 'star-and-crescent', 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"] };
  3392. var faStarHalf = { prefix: 'fas', iconName: 'star-half', 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"] };
  3393. var faStarHalfAlt = { prefix: 'fas', iconName: 'star-half-alt', 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"] };
  3394. var faStarOfDavid = { prefix: 'fas', iconName: 'star-of-david', 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"] };
  3395. var faStarOfLife = { prefix: 'fas', iconName: 'star-of-life', 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"] };
  3396. var faStepBackward = { prefix: 'fas', iconName: 'step-backward', 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"] };
  3397. var faStepForward = { prefix: 'fas', iconName: 'step-forward', 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"] };
  3398. var faStethoscope = { prefix: 'fas', iconName: 'stethoscope', 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"] };
  3399. var faStickyNote = { prefix: 'fas', iconName: 'sticky-note', 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"] };
  3400. var faStop = { prefix: 'fas', iconName: 'stop', 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"] };
  3401. var faStopCircle = { prefix: 'fas', iconName: 'stop-circle', 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"] };
  3402. var faStopwatch = { prefix: 'fas', iconName: 'stopwatch', 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"] };
  3403. var faStore = { prefix: 'fas', iconName: 'store', 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"] };
  3404. var faStoreAlt = { prefix: 'fas', iconName: 'store-alt', 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"] };
  3405. var faStream = { prefix: 'fas', iconName: 'stream', 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"] };
  3406. var faStreetView = { prefix: 'fas', iconName: 'street-view', 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"] };
  3407. var faStrikethrough = { prefix: 'fas', iconName: 'strikethrough', icon: [512, 512, [], "f0cc", "M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"] };
  3408. var faStroopwafel = { prefix: 'fas', iconName: 'stroopwafel', 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"] };
  3409. var faSubscript = { prefix: 'fas', iconName: 'subscript', icon: [512, 512, [], "f12c", "M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"] };
  3410. var faSubway = { prefix: 'fas', iconName: 'subway', 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"] };
  3411. var faSuitcase = { prefix: 'fas', iconName: 'suitcase', 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"] };
  3412. var faSuitcaseRolling = { prefix: 'fas', iconName: 'suitcase-rolling', 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"] };
  3413. var faSun = { prefix: 'fas', iconName: 'sun', icon: [512, 512, [], "f185", "M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"] };
  3414. var faSuperscript = { prefix: 'fas', iconName: 'superscript', icon: [512, 512, [], "f12b", "M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"] };
  3415. var faSurprise = { prefix: 'fas', iconName: 'surprise', 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"] };
  3416. var faSwatchbook = { prefix: 'fas', iconName: 'swatchbook', icon: [511, 512, [], "f5c3", "M479.06 320H372.29L186.15 506.51c-2.06 2.07-4.49 3.58-6.67 5.49h299.58c17.64 0 31.94-14.33 31.94-32V352c0-17.67-14.3-32-31.94-32zm-44.5-152.9l-90.33-90.51c-12.47-12.5-32.69-12.5-45.17 0l-75.5 75.65V416c0 2.96-.67 5.73-.87 8.64l211.87-212.28c12.47-12.5 12.47-32.77 0-45.26zM191.62 32c0-17.67-14.3-32-31.94-32H31.94C14.3 0 0 14.33 0 32v384c0 53.02 42.9 96 95.81 96s95.81-42.98 95.81-96V32zM95.81 440c-13.23 0-23.95-10.75-23.95-24 0-13.26 10.73-24 23.95-24s23.95 10.74 23.95 24c.01 13.25-10.72 24-23.95 24zm31.94-184H63.88v-64h63.88v64zm0-128H63.88V64h63.88v64z"] };
  3417. var faSwimmer = { prefix: 'fas', iconName: 'swimmer', 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"] };
  3418. var faSwimmingPool = { prefix: 'fas', iconName: 'swimming-pool', 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"] };
  3419. var faSynagogue = { prefix: 'fas', iconName: 'synagogue', 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"] };
  3420. var faSync = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.104 77.801l-101.53-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12h-47.411c-6.853 0-12.315 5.729-11.987 12.574zM256 432c-60.895 0-114.517-30.858-146.109-77.805l101.868 4.871c6.845.327 12.573-5.134 12.573-11.986v-47.412c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12V500c0 6.627 5.373 12 12 12h47.385c6.863 0 12.328-5.745 11.985-12.599l-4.129-82.575C112.725 470.166 180.405 504 256 504c121.187 0 222.067-86.924 243.704-201.824 1.388-7.369-4.308-14.176-11.807-14.176h-49.084c-5.57 0-10.377 3.842-11.676 9.259C408.593 374.592 339.069 432 256 432z"] };
  3421. var faSyncAlt = { prefix: 'fas', iconName: 'sync-alt', 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"] };
  3422. var faSyringe = { prefix: 'fas', iconName: 'syringe', 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"] };
  3423. var faTable = { prefix: 'fas', iconName: 'table', 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"] };
  3424. var faTableTennis = { prefix: 'fas', iconName: 'table-tennis', 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"] };
  3425. var faTablet = { prefix: 'fas', iconName: 'tablet', 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"] };
  3426. var faTabletAlt = { prefix: 'fas', iconName: 'tablet-alt', 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"] };
  3427. var faTablets = { prefix: 'fas', iconName: 'tablets', 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"] };
  3428. var faTachometerAlt = { prefix: 'fas', iconName: 'tachometer-alt', 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"] };
  3429. var faTag = { prefix: 'fas', iconName: 'tag', 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"] };
  3430. var faTags = { prefix: 'fas', iconName: 'tags', 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"] };
  3431. var faTape = { prefix: 'fas', iconName: 'tape', 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"] };
  3432. var faTasks = { prefix: 'fas', iconName: 'tasks', icon: [512, 512, [], "f0ae", "M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"] };
  3433. var faTaxi = { prefix: 'fas', iconName: 'taxi', 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"] };
  3434. var faTeeth = { prefix: 'fas', iconName: 'teeth', 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"] };
  3435. var faTeethOpen = { prefix: 'fas', iconName: 'teeth-open', 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"] };
  3436. var faTerminal = { prefix: 'fas', iconName: 'terminal', 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"] };
  3437. var faTextHeight = { prefix: 'fas', iconName: 'text-height', icon: [576, 512, [], "f034", "M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"] };
  3438. var faTextWidth = { prefix: 'fas', iconName: 'text-width', icon: [448, 512, [], "f035", "M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"] };
  3439. var faTh = { prefix: 'fas', iconName: 'th', 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"] };
  3440. var faThLarge = { prefix: 'fas', iconName: 'th-large', 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"] };
  3441. var faThList = { prefix: 'fas', iconName: 'th-list', 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"] };
  3442. var faTheaterMasks = { prefix: 'fas', iconName: 'theater-masks', 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"] };
  3443. var faThermometer = { prefix: 'fas', iconName: 'thermometer', 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"] };
  3444. var faThermometerEmpty = { prefix: 'fas', iconName: 'thermometer-empty', 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"] };
  3445. var faThermometerFull = { prefix: 'fas', iconName: 'thermometer-full', 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"] };
  3446. var faThermometerHalf = { prefix: 'fas', iconName: 'thermometer-half', 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"] };
  3447. var faThermometerQuarter = { prefix: 'fas', iconName: 'thermometer-quarter', 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"] };
  3448. var faThermometerThreeQuarters = { prefix: 'fas', iconName: 'thermometer-three-quarters', 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"] };
  3449. var faThumbsDown = { prefix: 'fas', iconName: 'thumbs-down', 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"] };
  3450. var faThumbsUp = { prefix: 'fas', iconName: 'thumbs-up', 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"] };
  3451. var faThumbtack = { prefix: 'fas', iconName: 'thumbtack', 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"] };
  3452. var faTicketAlt = { prefix: 'fas', iconName: 'ticket-alt', 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"] };
  3453. var faTimes = { prefix: 'fas', iconName: 'times', 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"] };
  3454. var faTimesCircle = { prefix: 'fas', iconName: 'times-circle', 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"] };
  3455. var faTint = { prefix: 'fas', iconName: 'tint', 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"] };
  3456. var faTintSlash = { prefix: 'fas', iconName: 'tint-slash', 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"] };
  3457. var faTired = { prefix: 'fas', iconName: 'tired', 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"] };
  3458. var faToggleOff = { prefix: 'fas', iconName: 'toggle-off', 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"] };
  3459. var faToggleOn = { prefix: 'fas', iconName: 'toggle-on', icon: [576, 512, [], "f205", "M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"] };
  3460. var faToiletPaper = { prefix: 'fas', iconName: 'toilet-paper', 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"] };
  3461. var faToolbox = { prefix: 'fas', iconName: 'toolbox', 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"] };
  3462. var faTooth = { prefix: 'fas', iconName: 'tooth', 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"] };
  3463. var faTorah = { prefix: 'fas', iconName: 'torah', icon: [448, 512, [], "f6a0", "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.2zM139.11 141.21c-2.77-4.41.4-10.14 5.6-10.14h53.08c.9 0 1.73-.46 2.21-1.22l34.4-54.76c2.6-4.13 8.61-4.13 11.21 0l34.4 54.76a2.61 2.61 0 0 0 2.21 1.22h53.08c5.2 0 8.37 5.73 5.6 10.14L314.01 184l26.88 42.79c2.77 4.4-.4 10.13-5.6 10.13h-53.08c-.9 0-1.73.46-2.21 1.22l-34.4 54.76c-2.6 4.13-8.61 4.13-11.21 0L200 238.15a2.61 2.61 0 0 0-2.21-1.22h-53.08c-5.2 0-8.37-5.73-5.6-10.13l26.88-42.8-26.88-42.79zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3464. var faToriiGate = { prefix: 'fas', iconName: 'torii-gate', 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"] };
  3465. var faTractor = { prefix: 'fas', iconName: 'tractor', 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"] };
  3466. var faTrademark = { prefix: 'fas', iconName: 'trademark', icon: [640, 512, [], "f25c", "M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"] };
  3467. var faTrafficLight = { prefix: 'fas', iconName: 'traffic-light', 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"] };
  3468. var faTrain = { prefix: 'fas', iconName: 'train', 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"] };
  3469. var faTransgender = { prefix: 'fas', iconName: 'transgender', 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"] };
  3470. var faTransgenderAlt = { prefix: 'fas', iconName: 'transgender-alt', 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"] };
  3471. var faTrash = { prefix: 'fas', iconName: 'trash', icon: [448, 512, [], "f1f8", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"] };
  3472. var faTrashAlt = { prefix: 'fas', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm416 56v324c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V140c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12zm-272 68c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208z"] };
  3473. var faTree = { prefix: 'fas', iconName: 'tree', 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"] };
  3474. var faTrophy = { prefix: 'fas', iconName: 'trophy', 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"] };
  3475. var faTruck = { prefix: 'fas', iconName: 'truck', 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"] };
  3476. var faTruckLoading = { prefix: 'fas', iconName: 'truck-loading', 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"] };
  3477. var faTruckMonster = { prefix: 'fas', iconName: 'truck-monster', 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"] };
  3478. var faTruckMoving = { prefix: 'fas', iconName: 'truck-moving', 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"] };
  3479. var faTruckPickup = { prefix: 'fas', iconName: 'truck-pickup', 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"] };
  3480. var faTshirt = { prefix: 'fas', iconName: 'tshirt', 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"] };
  3481. var faTty = { prefix: 'fas', iconName: 'tty', 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"] };
  3482. var faTv = { prefix: 'fas', iconName: 'tv', icon: [640, 512, [], "f26c", "M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"] };
  3483. var faUmbrella = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.406-158.567-30.731-10.21 8.264-20.912-1.109-18.696-9.481C32.146 134.573 158.516 64.612 288.001 64.612c128.793 0 256.546 69.961 287.706 193.538 2.206 8.322-8.426 17.793-18.696 9.481zM256 261.001V416c0 17.645-14.355 32-32 32s-32-14.355-32-32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 52.935 43.065 96 96 96s96-43.065 96-96V261.288c-21.836-10.806-45.425-9.737-64-.287zm64-211.007V32c0-17.673-14.327-32-32-32s-32 14.327-32 32v17.987a372.105 372.105 0 0 1 64 .007z"] };
  3484. var faUmbrellaBeach = { prefix: 'fas', iconName: 'umbrella-beach', 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"] };
  3485. var faUnderline = { prefix: 'fas', iconName: 'underline', icon: [448, 512, [], "f0cd", "M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"] };
  3486. var faUndo = { prefix: 'fas', iconName: 'undo', 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"] };
  3487. var faUndoAlt = { prefix: 'fas', iconName: 'undo-alt', 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"] };
  3488. var faUniversalAccess = { prefix: 'fas', iconName: 'universal-access', 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"] };
  3489. var faUniversity = { prefix: 'fas', iconName: 'university', 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"] };
  3490. var faUnlink = { prefix: 'fas', iconName: 'unlink', 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"] };
  3491. var faUnlock = { prefix: 'fas', iconName: 'unlock', 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"] };
  3492. var faUnlockAlt = { prefix: 'fas', iconName: 'unlock-alt', 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"] };
  3493. var faUpload = { prefix: 'fas', iconName: 'upload', 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"] };
  3494. var faUser = { prefix: 'fas', iconName: 'user', 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"] };
  3495. var faUserAlt = { prefix: 'fas', iconName: 'user-alt', 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"] };
  3496. var faUserAltSlash = { prefix: 'fas', iconName: 'user-alt-slash', 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"] };
  3497. var faUserAstronaut = { prefix: 'fas', iconName: 'user-astronaut', 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"] };
  3498. var faUserCheck = { prefix: 'fas', iconName: 'user-check', 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"] };
  3499. var faUserCircle = { prefix: 'fas', iconName: 'user-circle', 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"] };
  3500. var faUserClock = { prefix: 'fas', iconName: 'user-clock', 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"] };
  3501. var faUserCog = { prefix: 'fas', iconName: 'user-cog', 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"] };
  3502. var faUserEdit = { prefix: 'fas', iconName: 'user-edit', 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"] };
  3503. var faUserFriends = { prefix: 'fas', iconName: 'user-friends', 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"] };
  3504. var faUserGraduate = { prefix: 'fas', iconName: 'user-graduate', 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"] };
  3505. var faUserInjured = { prefix: 'fas', iconName: 'user-injured', 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"] };
  3506. var faUserLock = { prefix: 'fas', iconName: 'user-lock', icon: [640, 512, [], "f502", "M320 320c0-11.1 3.1-21.4 8.1-30.5-4.8-.5-9.5-1.5-14.5-1.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 48h280.9c-5.5-9.5-8.9-20.3-8.9-32V320zm-96-64c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm384 32h-32v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80v48h-32c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V320c0-17.7-14.3-32-32-32zm-80 0h-64v-48c0-17.6 14.4-32 32-32s32 14.4 32 32v48z"] };
  3507. var faUserMd = { prefix: 'fas', iconName: 'user-md', 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"] };
  3508. var faUserMinus = { prefix: 'fas', iconName: 'user-minus', 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"] };
  3509. var faUserNinja = { prefix: 'fas', iconName: 'user-ninja', 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"] };
  3510. var faUserPlus = { prefix: 'fas', iconName: 'user-plus', 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"] };
  3511. var faUserSecret = { prefix: 'fas', iconName: 'user-secret', 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"] };
  3512. var faUserShield = { prefix: 'fas', iconName: 'user-shield', 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"] };
  3513. var faUserSlash = { prefix: 'fas', iconName: 'user-slash', 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"] };
  3514. var faUserTag = { prefix: 'fas', iconName: 'user-tag', 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"] };
  3515. var faUserTie = { prefix: 'fas', iconName: 'user-tie', 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"] };
  3516. var faUserTimes = { prefix: 'fas', iconName: 'user-times', 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"] };
  3517. var faUsers = { prefix: 'fas', iconName: 'users', 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"] };
  3518. var faUsersCog = { prefix: 'fas', iconName: 'users-cog', 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"] };
  3519. var faUtensilSpoon = { prefix: 'fas', iconName: 'utensil-spoon', 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"] };
  3520. var faUtensils = { prefix: 'fas', iconName: 'utensils', 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"] };
  3521. var faVectorSquare = { prefix: 'fas', iconName: 'vector-square', 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"] };
  3522. var faVenus = { prefix: 'fas', iconName: 'venus', 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"] };
  3523. var faVenusDouble = { prefix: 'fas', iconName: 'venus-double', 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"] };
  3524. var faVenusMars = { prefix: 'fas', iconName: 'venus-mars', 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"] };
  3525. var faVial = { prefix: 'fas', iconName: 'vial', 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"] };
  3526. var faVials = { prefix: 'fas', iconName: 'vials', 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"] };
  3527. var faVideo = { prefix: 'fas', iconName: 'video', 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"] };
  3528. var faVideoSlash = { prefix: 'fas', iconName: 'video-slash', 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"] };
  3529. var faVihara = { prefix: 'fas', iconName: 'vihara', 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"] };
  3530. var faVolleyballBall = { prefix: 'fas', iconName: 'volleyball-ball', icon: [495, 512, [], "f45f", "M223.3 243.4c-.9-37-8.6-72.8-22.7-105.7-90.8 42.4-157.5 122.4-180.3 216.8 13.4 30.8 32.9 58.3 56.9 81.1 22.7-79.2 74.2-147.8 146.1-192.2zM186.4 109c-15-26.4-34.5-50.1-57.4-70.7C38 88.1-15.8 191.2 4 300.5c33.4-83.1 98.4-152 182.4-191.5zM374 274.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5 57.3 59.3 91 138.2 93.5 222.7 32.5 17.7 67.3 29 102.9 33.2zm-124.7 9.5c-31.6 19.3-58.7 43.9-80.2 72.6 82 57.3 184.5 75.1 277.5 47.8 19.7-26.4 34.2-56.8 42.2-89.9-26.6 6.6-53.7 10.4-80.9 10.4-54.6-.1-108.9-14.1-158.6-40.9zM151 383.3c-15.2 26-25.7 54.4-32.1 84.2 37.6 23 81.7 36.5 129.1 36.5 61 0 116.7-22.1 159.9-58.6C295 461.5 204.6 420.6 151 383.3zM331.3 22.7c55.3 70.4 82.5 161.2 74.6 253.6 30.3.2 60.5-4.8 89.7-14.2 0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"] };
  3531. var faVolumeDown = { prefix: 'fas', iconName: 'volume-down', 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"] };
  3532. var faVolumeMute = { prefix: 'fas', iconName: 'volume-mute', 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"] };
  3533. var faVolumeOff = { prefix: 'fas', iconName: 'volume-off', icon: [257, 512, [], "f026", "M216.36 71.04L127.39 160H25.33c-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.47-25.96-31.98-40.97-16.98z"] };
  3534. var faVolumeUp = { prefix: 'fas', iconName: 'volume-up', 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"] };
  3535. var faVrCardboard = { prefix: 'fas', iconName: 'vr-cardboard', 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"] };
  3536. var faWalking = { prefix: 'fas', iconName: 'walking', 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"] };
  3537. var faWallet = { prefix: 'fas', iconName: 'wallet', 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"] };
  3538. var faWarehouse = { prefix: 'fas', iconName: 'warehouse', 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"] };
  3539. var faWeight = { prefix: 'fas', iconName: 'weight', 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"] };
  3540. var faWeightHanging = { prefix: 'fas', iconName: 'weight-hanging', 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"] };
  3541. var faWheelchair = { prefix: 'fas', iconName: 'wheelchair', 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"] };
  3542. var faWifi = { prefix: 'fas', iconName: 'wifi', 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"] };
  3543. var faWind = { prefix: 'fas', iconName: 'wind', icon: [512, 512, [], "f72e", "M156.66 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h142.19c15.95 0 30.77 10.85 33.37 26.58C194.86 366.6 179.42 384 160 384c-14.11 0-26.13-9.19-30.37-21.9-2.11-6.31-8.6-10.1-15.25-10.1H81.63c-9.8 0-17.73 8.81-15.86 18.43C74.39 414.58 113.37 448 160 448c57.09 0 102.7-50.09 95.19-108.63-6.21-48.39-49.74-83.37-98.53-83.37zM16 224h336c59.7 0 106.83-54.76 93.83-116.69-7.61-36.23-36.91-65.53-73.14-73.14-55.44-11.64-105.13 24.91-114.93 75.53-1.86 9.57 6.09 18.3 15.84 18.3h32.8c6.65 0 13.14-3.79 15.25-10.1C325.88 105.19 337.89 96 352 96c19.42 0 34.86 17.39 31.55 37.41-2.6 15.73-17.42 26.59-33.37 26.59H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16zm384 32H243.68c19.34 16.57 33.19 38.79 39.77 64H400c26.47 0 48 21.53 48 48s-21.53 48-48 48c-17.86 0-33.33-9.86-41.56-24.38-2.85-5.03-8.69-7.62-14.47-7.62h-33.82c-10.91 0-18.96 10.81-15.35 21.1 17.77 50.6 70.54 84.75 129.41 72.35 41.22-8.69 75.1-41.65 84.67-82.68C525.98 321.46 470.48 256 400 256z"] };
  3544. var faWindowClose = { prefix: 'fas', iconName: 'window-close', 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"] };
  3545. var faWindowMaximize = { prefix: 'fas', iconName: 'window-maximize', 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"] };
  3546. var faWindowMinimize = { prefix: 'fas', iconName: 'window-minimize', 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"] };
  3547. var faWindowRestore = { prefix: 'fas', iconName: 'window-restore', 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"] };
  3548. var faWineBottle = { prefix: 'fas', iconName: 'wine-bottle', 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"] };
  3549. var faWineGlass = { prefix: 'fas', iconName: 'wine-glass', 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"] };
  3550. var faWineGlassAlt = { prefix: 'fas', iconName: 'wine-glass-alt', 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"] };
  3551. var faWonSign = { prefix: 'fas', iconName: 'won-sign', icon: [576, 512, [], "f159", "M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"] };
  3552. var faWrench = { prefix: 'fas', iconName: 'wrench', 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"] };
  3553. var faXRay = { prefix: 'fas', iconName: 'x-ray', 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"] };
  3554. var faYenSign = { prefix: 'fas', iconName: 'yen-sign', icon: [384, 512, [], "f157", "M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"] };
  3555. var faYinYang = { prefix: 'fas', iconName: 'yin-yang', 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"] };
  3556. var _iconsCache = {
  3557. faAd: faAd,
  3558. faAddressBook: faAddressBook,
  3559. faAddressCard: faAddressCard,
  3560. faAdjust: faAdjust,
  3561. faAirFreshener: faAirFreshener,
  3562. faAlignCenter: faAlignCenter,
  3563. faAlignJustify: faAlignJustify,
  3564. faAlignLeft: faAlignLeft,
  3565. faAlignRight: faAlignRight,
  3566. faAllergies: faAllergies,
  3567. faAmbulance: faAmbulance,
  3568. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3569. faAnchor: faAnchor,
  3570. faAngleDoubleDown: faAngleDoubleDown,
  3571. faAngleDoubleLeft: faAngleDoubleLeft,
  3572. faAngleDoubleRight: faAngleDoubleRight,
  3573. faAngleDoubleUp: faAngleDoubleUp,
  3574. faAngleDown: faAngleDown,
  3575. faAngleLeft: faAngleLeft,
  3576. faAngleRight: faAngleRight,
  3577. faAngleUp: faAngleUp,
  3578. faAngry: faAngry,
  3579. faAnkh: faAnkh,
  3580. faAppleAlt: faAppleAlt,
  3581. faArchive: faArchive,
  3582. faArchway: faArchway,
  3583. faArrowAltCircleDown: faArrowAltCircleDown,
  3584. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3585. faArrowAltCircleRight: faArrowAltCircleRight,
  3586. faArrowAltCircleUp: faArrowAltCircleUp,
  3587. faArrowCircleDown: faArrowCircleDown,
  3588. faArrowCircleLeft: faArrowCircleLeft,
  3589. faArrowCircleRight: faArrowCircleRight,
  3590. faArrowCircleUp: faArrowCircleUp,
  3591. faArrowDown: faArrowDown,
  3592. faArrowLeft: faArrowLeft,
  3593. faArrowRight: faArrowRight,
  3594. faArrowUp: faArrowUp,
  3595. faArrowsAlt: faArrowsAlt,
  3596. faArrowsAltH: faArrowsAltH,
  3597. faArrowsAltV: faArrowsAltV,
  3598. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3599. faAsterisk: faAsterisk,
  3600. faAt: faAt,
  3601. faAtlas: faAtlas,
  3602. faAtom: faAtom,
  3603. faAudioDescription: faAudioDescription,
  3604. faAward: faAward,
  3605. faBackspace: faBackspace,
  3606. faBackward: faBackward,
  3607. faBalanceScale: faBalanceScale,
  3608. faBan: faBan,
  3609. faBandAid: faBandAid,
  3610. faBarcode: faBarcode,
  3611. faBars: faBars,
  3612. faBaseballBall: faBaseballBall,
  3613. faBasketballBall: faBasketballBall,
  3614. faBath: faBath,
  3615. faBatteryEmpty: faBatteryEmpty,
  3616. faBatteryFull: faBatteryFull,
  3617. faBatteryHalf: faBatteryHalf,
  3618. faBatteryQuarter: faBatteryQuarter,
  3619. faBatteryThreeQuarters: faBatteryThreeQuarters,
  3620. faBed: faBed,
  3621. faBeer: faBeer,
  3622. faBell: faBell,
  3623. faBellSlash: faBellSlash,
  3624. faBezierCurve: faBezierCurve,
  3625. faBible: faBible,
  3626. faBicycle: faBicycle,
  3627. faBinoculars: faBinoculars,
  3628. faBirthdayCake: faBirthdayCake,
  3629. faBlender: faBlender,
  3630. faBlenderPhone: faBlenderPhone,
  3631. faBlind: faBlind,
  3632. faBold: faBold,
  3633. faBolt: faBolt,
  3634. faBomb: faBomb,
  3635. faBone: faBone,
  3636. faBong: faBong,
  3637. faBook: faBook,
  3638. faBookDead: faBookDead,
  3639. faBookOpen: faBookOpen,
  3640. faBookReader: faBookReader,
  3641. faBookmark: faBookmark,
  3642. faBowlingBall: faBowlingBall,
  3643. faBox: faBox,
  3644. faBoxOpen: faBoxOpen,
  3645. faBoxes: faBoxes,
  3646. faBraille: faBraille,
  3647. faBrain: faBrain,
  3648. faBriefcase: faBriefcase,
  3649. faBriefcaseMedical: faBriefcaseMedical,
  3650. faBroadcastTower: faBroadcastTower,
  3651. faBroom: faBroom,
  3652. faBrush: faBrush,
  3653. faBug: faBug,
  3654. faBuilding: faBuilding,
  3655. faBullhorn: faBullhorn,
  3656. faBullseye: faBullseye,
  3657. faBurn: faBurn,
  3658. faBus: faBus,
  3659. faBusAlt: faBusAlt,
  3660. faBusinessTime: faBusinessTime,
  3661. faCalculator: faCalculator,
  3662. faCalendar: faCalendar,
  3663. faCalendarAlt: faCalendarAlt,
  3664. faCalendarCheck: faCalendarCheck,
  3665. faCalendarMinus: faCalendarMinus,
  3666. faCalendarPlus: faCalendarPlus,
  3667. faCalendarTimes: faCalendarTimes,
  3668. faCamera: faCamera,
  3669. faCameraRetro: faCameraRetro,
  3670. faCampground: faCampground,
  3671. faCannabis: faCannabis,
  3672. faCapsules: faCapsules,
  3673. faCar: faCar,
  3674. faCarAlt: faCarAlt,
  3675. faCarBattery: faCarBattery,
  3676. faCarCrash: faCarCrash,
  3677. faCarSide: faCarSide,
  3678. faCaretDown: faCaretDown,
  3679. faCaretLeft: faCaretLeft,
  3680. faCaretRight: faCaretRight,
  3681. faCaretSquareDown: faCaretSquareDown,
  3682. faCaretSquareLeft: faCaretSquareLeft,
  3683. faCaretSquareRight: faCaretSquareRight,
  3684. faCaretSquareUp: faCaretSquareUp,
  3685. faCaretUp: faCaretUp,
  3686. faCartArrowDown: faCartArrowDown,
  3687. faCartPlus: faCartPlus,
  3688. faCat: faCat,
  3689. faCertificate: faCertificate,
  3690. faChair: faChair,
  3691. faChalkboard: faChalkboard,
  3692. faChalkboardTeacher: faChalkboardTeacher,
  3693. faChargingStation: faChargingStation,
  3694. faChartArea: faChartArea,
  3695. faChartBar: faChartBar,
  3696. faChartLine: faChartLine,
  3697. faChartPie: faChartPie,
  3698. faCheck: faCheck,
  3699. faCheckCircle: faCheckCircle,
  3700. faCheckDouble: faCheckDouble,
  3701. faCheckSquare: faCheckSquare,
  3702. faChess: faChess,
  3703. faChessBishop: faChessBishop,
  3704. faChessBoard: faChessBoard,
  3705. faChessKing: faChessKing,
  3706. faChessKnight: faChessKnight,
  3707. faChessPawn: faChessPawn,
  3708. faChessQueen: faChessQueen,
  3709. faChessRook: faChessRook,
  3710. faChevronCircleDown: faChevronCircleDown,
  3711. faChevronCircleLeft: faChevronCircleLeft,
  3712. faChevronCircleRight: faChevronCircleRight,
  3713. faChevronCircleUp: faChevronCircleUp,
  3714. faChevronDown: faChevronDown,
  3715. faChevronLeft: faChevronLeft,
  3716. faChevronRight: faChevronRight,
  3717. faChevronUp: faChevronUp,
  3718. faChild: faChild,
  3719. faChurch: faChurch,
  3720. faCircle: faCircle,
  3721. faCircleNotch: faCircleNotch,
  3722. faCity: faCity,
  3723. faClipboard: faClipboard,
  3724. faClipboardCheck: faClipboardCheck,
  3725. faClipboardList: faClipboardList,
  3726. faClock: faClock,
  3727. faClone: faClone,
  3728. faClosedCaptioning: faClosedCaptioning,
  3729. faCloud: faCloud,
  3730. faCloudDownloadAlt: faCloudDownloadAlt,
  3731. faCloudMoon: faCloudMoon,
  3732. faCloudSun: faCloudSun,
  3733. faCloudUploadAlt: faCloudUploadAlt,
  3734. faCocktail: faCocktail,
  3735. faCode: faCode,
  3736. faCodeBranch: faCodeBranch,
  3737. faCoffee: faCoffee,
  3738. faCog: faCog,
  3739. faCogs: faCogs,
  3740. faCoins: faCoins,
  3741. faColumns: faColumns,
  3742. faComment: faComment,
  3743. faCommentAlt: faCommentAlt,
  3744. faCommentDollar: faCommentDollar,
  3745. faCommentDots: faCommentDots,
  3746. faCommentSlash: faCommentSlash,
  3747. faComments: faComments,
  3748. faCommentsDollar: faCommentsDollar,
  3749. faCompactDisc: faCompactDisc,
  3750. faCompass: faCompass,
  3751. faCompress: faCompress,
  3752. faConciergeBell: faConciergeBell,
  3753. faCookie: faCookie,
  3754. faCookieBite: faCookieBite,
  3755. faCopy: faCopy,
  3756. faCopyright: faCopyright,
  3757. faCouch: faCouch,
  3758. faCreditCard: faCreditCard,
  3759. faCrop: faCrop,
  3760. faCropAlt: faCropAlt,
  3761. faCross: faCross,
  3762. faCrosshairs: faCrosshairs,
  3763. faCrow: faCrow,
  3764. faCrown: faCrown,
  3765. faCube: faCube,
  3766. faCubes: faCubes,
  3767. faCut: faCut,
  3768. faDatabase: faDatabase,
  3769. faDeaf: faDeaf,
  3770. faDesktop: faDesktop,
  3771. faDharmachakra: faDharmachakra,
  3772. faDiagnoses: faDiagnoses,
  3773. faDice: faDice,
  3774. faDiceD20: faDiceD20,
  3775. faDiceD6: faDiceD6,
  3776. faDiceFive: faDiceFive,
  3777. faDiceFour: faDiceFour,
  3778. faDiceOne: faDiceOne,
  3779. faDiceSix: faDiceSix,
  3780. faDiceThree: faDiceThree,
  3781. faDiceTwo: faDiceTwo,
  3782. faDigitalTachograph: faDigitalTachograph,
  3783. faDirections: faDirections,
  3784. faDivide: faDivide,
  3785. faDizzy: faDizzy,
  3786. faDna: faDna,
  3787. faDog: faDog,
  3788. faDollarSign: faDollarSign,
  3789. faDolly: faDolly,
  3790. faDollyFlatbed: faDollyFlatbed,
  3791. faDonate: faDonate,
  3792. faDoorClosed: faDoorClosed,
  3793. faDoorOpen: faDoorOpen,
  3794. faDotCircle: faDotCircle,
  3795. faDove: faDove,
  3796. faDownload: faDownload,
  3797. faDraftingCompass: faDraftingCompass,
  3798. faDragon: faDragon,
  3799. faDrawPolygon: faDrawPolygon,
  3800. faDrum: faDrum,
  3801. faDrumSteelpan: faDrumSteelpan,
  3802. faDrumstickBite: faDrumstickBite,
  3803. faDumbbell: faDumbbell,
  3804. faDungeon: faDungeon,
  3805. faEdit: faEdit,
  3806. faEject: faEject,
  3807. faEllipsisH: faEllipsisH,
  3808. faEllipsisV: faEllipsisV,
  3809. faEnvelope: faEnvelope,
  3810. faEnvelopeOpen: faEnvelopeOpen,
  3811. faEnvelopeOpenText: faEnvelopeOpenText,
  3812. faEnvelopeSquare: faEnvelopeSquare,
  3813. faEquals: faEquals,
  3814. faEraser: faEraser,
  3815. faEuroSign: faEuroSign,
  3816. faExchangeAlt: faExchangeAlt,
  3817. faExclamation: faExclamation,
  3818. faExclamationCircle: faExclamationCircle,
  3819. faExclamationTriangle: faExclamationTriangle,
  3820. faExpand: faExpand,
  3821. faExpandArrowsAlt: faExpandArrowsAlt,
  3822. faExternalLinkAlt: faExternalLinkAlt,
  3823. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  3824. faEye: faEye,
  3825. faEyeDropper: faEyeDropper,
  3826. faEyeSlash: faEyeSlash,
  3827. faFastBackward: faFastBackward,
  3828. faFastForward: faFastForward,
  3829. faFax: faFax,
  3830. faFeather: faFeather,
  3831. faFeatherAlt: faFeatherAlt,
  3832. faFemale: faFemale,
  3833. faFighterJet: faFighterJet,
  3834. faFile: faFile,
  3835. faFileAlt: faFileAlt,
  3836. faFileArchive: faFileArchive,
  3837. faFileAudio: faFileAudio,
  3838. faFileCode: faFileCode,
  3839. faFileContract: faFileContract,
  3840. faFileCsv: faFileCsv,
  3841. faFileDownload: faFileDownload,
  3842. faFileExcel: faFileExcel,
  3843. faFileExport: faFileExport,
  3844. faFileImage: faFileImage,
  3845. faFileImport: faFileImport,
  3846. faFileInvoice: faFileInvoice,
  3847. faFileInvoiceDollar: faFileInvoiceDollar,
  3848. faFileMedical: faFileMedical,
  3849. faFileMedicalAlt: faFileMedicalAlt,
  3850. faFilePdf: faFilePdf,
  3851. faFilePowerpoint: faFilePowerpoint,
  3852. faFilePrescription: faFilePrescription,
  3853. faFileSignature: faFileSignature,
  3854. faFileUpload: faFileUpload,
  3855. faFileVideo: faFileVideo,
  3856. faFileWord: faFileWord,
  3857. faFill: faFill,
  3858. faFillDrip: faFillDrip,
  3859. faFilm: faFilm,
  3860. faFilter: faFilter,
  3861. faFingerprint: faFingerprint,
  3862. faFire: faFire,
  3863. faFireExtinguisher: faFireExtinguisher,
  3864. faFirstAid: faFirstAid,
  3865. faFish: faFish,
  3866. faFistRaised: faFistRaised,
  3867. faFlag: faFlag,
  3868. faFlagCheckered: faFlagCheckered,
  3869. faFlask: faFlask,
  3870. faFlushed: faFlushed,
  3871. faFolder: faFolder,
  3872. faFolderMinus: faFolderMinus,
  3873. faFolderOpen: faFolderOpen,
  3874. faFolderPlus: faFolderPlus,
  3875. faFont: faFont,
  3876. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  3877. faFootballBall: faFootballBall,
  3878. faForward: faForward,
  3879. faFrog: faFrog,
  3880. faFrown: faFrown,
  3881. faFrownOpen: faFrownOpen,
  3882. faFunnelDollar: faFunnelDollar,
  3883. faFutbol: faFutbol,
  3884. faGamepad: faGamepad,
  3885. faGasPump: faGasPump,
  3886. faGavel: faGavel,
  3887. faGem: faGem,
  3888. faGenderless: faGenderless,
  3889. faGhost: faGhost,
  3890. faGift: faGift,
  3891. faGlassMartini: faGlassMartini,
  3892. faGlassMartiniAlt: faGlassMartiniAlt,
  3893. faGlasses: faGlasses,
  3894. faGlobe: faGlobe,
  3895. faGlobeAfrica: faGlobeAfrica,
  3896. faGlobeAmericas: faGlobeAmericas,
  3897. faGlobeAsia: faGlobeAsia,
  3898. faGolfBall: faGolfBall,
  3899. faGopuram: faGopuram,
  3900. faGraduationCap: faGraduationCap,
  3901. faGreaterThan: faGreaterThan,
  3902. faGreaterThanEqual: faGreaterThanEqual,
  3903. faGrimace: faGrimace,
  3904. faGrin: faGrin,
  3905. faGrinAlt: faGrinAlt,
  3906. faGrinBeam: faGrinBeam,
  3907. faGrinBeamSweat: faGrinBeamSweat,
  3908. faGrinHearts: faGrinHearts,
  3909. faGrinSquint: faGrinSquint,
  3910. faGrinSquintTears: faGrinSquintTears,
  3911. faGrinStars: faGrinStars,
  3912. faGrinTears: faGrinTears,
  3913. faGrinTongue: faGrinTongue,
  3914. faGrinTongueSquint: faGrinTongueSquint,
  3915. faGrinTongueWink: faGrinTongueWink,
  3916. faGrinWink: faGrinWink,
  3917. faGripHorizontal: faGripHorizontal,
  3918. faGripVertical: faGripVertical,
  3919. faHSquare: faHSquare,
  3920. faHammer: faHammer,
  3921. faHamsa: faHamsa,
  3922. faHandHolding: faHandHolding,
  3923. faHandHoldingHeart: faHandHoldingHeart,
  3924. faHandHoldingUsd: faHandHoldingUsd,
  3925. faHandLizard: faHandLizard,
  3926. faHandPaper: faHandPaper,
  3927. faHandPeace: faHandPeace,
  3928. faHandPointDown: faHandPointDown,
  3929. faHandPointLeft: faHandPointLeft,
  3930. faHandPointRight: faHandPointRight,
  3931. faHandPointUp: faHandPointUp,
  3932. faHandPointer: faHandPointer,
  3933. faHandRock: faHandRock,
  3934. faHandScissors: faHandScissors,
  3935. faHandSpock: faHandSpock,
  3936. faHands: faHands,
  3937. faHandsHelping: faHandsHelping,
  3938. faHandshake: faHandshake,
  3939. faHanukiah: faHanukiah,
  3940. faHashtag: faHashtag,
  3941. faHatWizard: faHatWizard,
  3942. faHaykal: faHaykal,
  3943. faHdd: faHdd,
  3944. faHeading: faHeading,
  3945. faHeadphones: faHeadphones,
  3946. faHeadphonesAlt: faHeadphonesAlt,
  3947. faHeadset: faHeadset,
  3948. faHeart: faHeart,
  3949. faHeartbeat: faHeartbeat,
  3950. faHelicopter: faHelicopter,
  3951. faHighlighter: faHighlighter,
  3952. faHiking: faHiking,
  3953. faHippo: faHippo,
  3954. faHistory: faHistory,
  3955. faHockeyPuck: faHockeyPuck,
  3956. faHome: faHome,
  3957. faHorse: faHorse,
  3958. faHospital: faHospital,
  3959. faHospitalAlt: faHospitalAlt,
  3960. faHospitalSymbol: faHospitalSymbol,
  3961. faHotTub: faHotTub,
  3962. faHotel: faHotel,
  3963. faHourglass: faHourglass,
  3964. faHourglassEnd: faHourglassEnd,
  3965. faHourglassHalf: faHourglassHalf,
  3966. faHourglassStart: faHourglassStart,
  3967. faHouseDamage: faHouseDamage,
  3968. faHryvnia: faHryvnia,
  3969. faICursor: faICursor,
  3970. faIdBadge: faIdBadge,
  3971. faIdCard: faIdCard,
  3972. faIdCardAlt: faIdCardAlt,
  3973. faImage: faImage,
  3974. faImages: faImages,
  3975. faInbox: faInbox,
  3976. faIndent: faIndent,
  3977. faIndustry: faIndustry,
  3978. faInfinity: faInfinity,
  3979. faInfo: faInfo,
  3980. faInfoCircle: faInfoCircle,
  3981. faItalic: faItalic,
  3982. faJedi: faJedi,
  3983. faJoint: faJoint,
  3984. faJournalWhills: faJournalWhills,
  3985. faKaaba: faKaaba,
  3986. faKey: faKey,
  3987. faKeyboard: faKeyboard,
  3988. faKhanda: faKhanda,
  3989. faKiss: faKiss,
  3990. faKissBeam: faKissBeam,
  3991. faKissWinkHeart: faKissWinkHeart,
  3992. faKiwiBird: faKiwiBird,
  3993. faLandmark: faLandmark,
  3994. faLanguage: faLanguage,
  3995. faLaptop: faLaptop,
  3996. faLaptopCode: faLaptopCode,
  3997. faLaugh: faLaugh,
  3998. faLaughBeam: faLaughBeam,
  3999. faLaughSquint: faLaughSquint,
  4000. faLaughWink: faLaughWink,
  4001. faLayerGroup: faLayerGroup,
  4002. faLeaf: faLeaf,
  4003. faLemon: faLemon,
  4004. faLessThan: faLessThan,
  4005. faLessThanEqual: faLessThanEqual,
  4006. faLevelDownAlt: faLevelDownAlt,
  4007. faLevelUpAlt: faLevelUpAlt,
  4008. faLifeRing: faLifeRing,
  4009. faLightbulb: faLightbulb,
  4010. faLink: faLink,
  4011. faLiraSign: faLiraSign,
  4012. faList: faList,
  4013. faListAlt: faListAlt,
  4014. faListOl: faListOl,
  4015. faListUl: faListUl,
  4016. faLocationArrow: faLocationArrow,
  4017. faLock: faLock,
  4018. faLockOpen: faLockOpen,
  4019. faLongArrowAltDown: faLongArrowAltDown,
  4020. faLongArrowAltLeft: faLongArrowAltLeft,
  4021. faLongArrowAltRight: faLongArrowAltRight,
  4022. faLongArrowAltUp: faLongArrowAltUp,
  4023. faLowVision: faLowVision,
  4024. faLuggageCart: faLuggageCart,
  4025. faMagic: faMagic,
  4026. faMagnet: faMagnet,
  4027. faMailBulk: faMailBulk,
  4028. faMale: faMale,
  4029. faMap: faMap,
  4030. faMapMarked: faMapMarked,
  4031. faMapMarkedAlt: faMapMarkedAlt,
  4032. faMapMarker: faMapMarker,
  4033. faMapMarkerAlt: faMapMarkerAlt,
  4034. faMapPin: faMapPin,
  4035. faMapSigns: faMapSigns,
  4036. faMarker: faMarker,
  4037. faMars: faMars,
  4038. faMarsDouble: faMarsDouble,
  4039. faMarsStroke: faMarsStroke,
  4040. faMarsStrokeH: faMarsStrokeH,
  4041. faMarsStrokeV: faMarsStrokeV,
  4042. faMask: faMask,
  4043. faMedal: faMedal,
  4044. faMedkit: faMedkit,
  4045. faMeh: faMeh,
  4046. faMehBlank: faMehBlank,
  4047. faMehRollingEyes: faMehRollingEyes,
  4048. faMemory: faMemory,
  4049. faMenorah: faMenorah,
  4050. faMercury: faMercury,
  4051. faMicrochip: faMicrochip,
  4052. faMicrophone: faMicrophone,
  4053. faMicrophoneAlt: faMicrophoneAlt,
  4054. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4055. faMicrophoneSlash: faMicrophoneSlash,
  4056. faMicroscope: faMicroscope,
  4057. faMinus: faMinus,
  4058. faMinusCircle: faMinusCircle,
  4059. faMinusSquare: faMinusSquare,
  4060. faMobile: faMobile,
  4061. faMobileAlt: faMobileAlt,
  4062. faMoneyBill: faMoneyBill,
  4063. faMoneyBillAlt: faMoneyBillAlt,
  4064. faMoneyBillWave: faMoneyBillWave,
  4065. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4066. faMoneyCheck: faMoneyCheck,
  4067. faMoneyCheckAlt: faMoneyCheckAlt,
  4068. faMonument: faMonument,
  4069. faMoon: faMoon,
  4070. faMortarPestle: faMortarPestle,
  4071. faMosque: faMosque,
  4072. faMotorcycle: faMotorcycle,
  4073. faMountain: faMountain,
  4074. faMousePointer: faMousePointer,
  4075. faMusic: faMusic,
  4076. faNetworkWired: faNetworkWired,
  4077. faNeuter: faNeuter,
  4078. faNewspaper: faNewspaper,
  4079. faNotEqual: faNotEqual,
  4080. faNotesMedical: faNotesMedical,
  4081. faObjectGroup: faObjectGroup,
  4082. faObjectUngroup: faObjectUngroup,
  4083. faOilCan: faOilCan,
  4084. faOm: faOm,
  4085. faOtter: faOtter,
  4086. faOutdent: faOutdent,
  4087. faPaintBrush: faPaintBrush,
  4088. faPaintRoller: faPaintRoller,
  4089. faPalette: faPalette,
  4090. faPallet: faPallet,
  4091. faPaperPlane: faPaperPlane,
  4092. faPaperclip: faPaperclip,
  4093. faParachuteBox: faParachuteBox,
  4094. faParagraph: faParagraph,
  4095. faParking: faParking,
  4096. faPassport: faPassport,
  4097. faPastafarianism: faPastafarianism,
  4098. faPaste: faPaste,
  4099. faPause: faPause,
  4100. faPauseCircle: faPauseCircle,
  4101. faPaw: faPaw,
  4102. faPeace: faPeace,
  4103. faPen: faPen,
  4104. faPenAlt: faPenAlt,
  4105. faPenFancy: faPenFancy,
  4106. faPenNib: faPenNib,
  4107. faPenSquare: faPenSquare,
  4108. faPencilAlt: faPencilAlt,
  4109. faPencilRuler: faPencilRuler,
  4110. faPeopleCarry: faPeopleCarry,
  4111. faPercent: faPercent,
  4112. faPercentage: faPercentage,
  4113. faPhone: faPhone,
  4114. faPhoneSlash: faPhoneSlash,
  4115. faPhoneSquare: faPhoneSquare,
  4116. faPhoneVolume: faPhoneVolume,
  4117. faPiggyBank: faPiggyBank,
  4118. faPills: faPills,
  4119. faPlaceOfWorship: faPlaceOfWorship,
  4120. faPlane: faPlane,
  4121. faPlaneArrival: faPlaneArrival,
  4122. faPlaneDeparture: faPlaneDeparture,
  4123. faPlay: faPlay,
  4124. faPlayCircle: faPlayCircle,
  4125. faPlug: faPlug,
  4126. faPlus: faPlus,
  4127. faPlusCircle: faPlusCircle,
  4128. faPlusSquare: faPlusSquare,
  4129. faPodcast: faPodcast,
  4130. faPoll: faPoll,
  4131. faPollH: faPollH,
  4132. faPoo: faPoo,
  4133. faPoop: faPoop,
  4134. faPortrait: faPortrait,
  4135. faPoundSign: faPoundSign,
  4136. faPowerOff: faPowerOff,
  4137. faPray: faPray,
  4138. faPrayingHands: faPrayingHands,
  4139. faPrescription: faPrescription,
  4140. faPrescriptionBottle: faPrescriptionBottle,
  4141. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4142. faPrint: faPrint,
  4143. faProcedures: faProcedures,
  4144. faProjectDiagram: faProjectDiagram,
  4145. faPuzzlePiece: faPuzzlePiece,
  4146. faQrcode: faQrcode,
  4147. faQuestion: faQuestion,
  4148. faQuestionCircle: faQuestionCircle,
  4149. faQuidditch: faQuidditch,
  4150. faQuoteLeft: faQuoteLeft,
  4151. faQuoteRight: faQuoteRight,
  4152. faQuran: faQuran,
  4153. faRandom: faRandom,
  4154. faReceipt: faReceipt,
  4155. faRecycle: faRecycle,
  4156. faRedo: faRedo,
  4157. faRedoAlt: faRedoAlt,
  4158. faRegistered: faRegistered,
  4159. faReply: faReply,
  4160. faReplyAll: faReplyAll,
  4161. faRetweet: faRetweet,
  4162. faRibbon: faRibbon,
  4163. faRing: faRing,
  4164. faRoad: faRoad,
  4165. faRobot: faRobot,
  4166. faRocket: faRocket,
  4167. faRoute: faRoute,
  4168. faRss: faRss,
  4169. faRssSquare: faRssSquare,
  4170. faRubleSign: faRubleSign,
  4171. faRuler: faRuler,
  4172. faRulerCombined: faRulerCombined,
  4173. faRulerHorizontal: faRulerHorizontal,
  4174. faRulerVertical: faRulerVertical,
  4175. faRunning: faRunning,
  4176. faRupeeSign: faRupeeSign,
  4177. faSadCry: faSadCry,
  4178. faSadTear: faSadTear,
  4179. faSave: faSave,
  4180. faSchool: faSchool,
  4181. faScrewdriver: faScrewdriver,
  4182. faScroll: faScroll,
  4183. faSearch: faSearch,
  4184. faSearchDollar: faSearchDollar,
  4185. faSearchLocation: faSearchLocation,
  4186. faSearchMinus: faSearchMinus,
  4187. faSearchPlus: faSearchPlus,
  4188. faSeedling: faSeedling,
  4189. faServer: faServer,
  4190. faShapes: faShapes,
  4191. faShare: faShare,
  4192. faShareAlt: faShareAlt,
  4193. faShareAltSquare: faShareAltSquare,
  4194. faShareSquare: faShareSquare,
  4195. faShekelSign: faShekelSign,
  4196. faShieldAlt: faShieldAlt,
  4197. faShip: faShip,
  4198. faShippingFast: faShippingFast,
  4199. faShoePrints: faShoePrints,
  4200. faShoppingBag: faShoppingBag,
  4201. faShoppingBasket: faShoppingBasket,
  4202. faShoppingCart: faShoppingCart,
  4203. faShower: faShower,
  4204. faShuttleVan: faShuttleVan,
  4205. faSign: faSign,
  4206. faSignInAlt: faSignInAlt,
  4207. faSignLanguage: faSignLanguage,
  4208. faSignOutAlt: faSignOutAlt,
  4209. faSignal: faSignal,
  4210. faSignature: faSignature,
  4211. faSitemap: faSitemap,
  4212. faSkull: faSkull,
  4213. faSkullCrossbones: faSkullCrossbones,
  4214. faSlash: faSlash,
  4215. faSlidersH: faSlidersH,
  4216. faSmile: faSmile,
  4217. faSmileBeam: faSmileBeam,
  4218. faSmileWink: faSmileWink,
  4219. faSmoking: faSmoking,
  4220. faSmokingBan: faSmokingBan,
  4221. faSnowflake: faSnowflake,
  4222. faSocks: faSocks,
  4223. faSolarPanel: faSolarPanel,
  4224. faSort: faSort,
  4225. faSortAlphaDown: faSortAlphaDown,
  4226. faSortAlphaUp: faSortAlphaUp,
  4227. faSortAmountDown: faSortAmountDown,
  4228. faSortAmountUp: faSortAmountUp,
  4229. faSortDown: faSortDown,
  4230. faSortNumericDown: faSortNumericDown,
  4231. faSortNumericUp: faSortNumericUp,
  4232. faSortUp: faSortUp,
  4233. faSpa: faSpa,
  4234. faSpaceShuttle: faSpaceShuttle,
  4235. faSpider: faSpider,
  4236. faSpinner: faSpinner,
  4237. faSplotch: faSplotch,
  4238. faSprayCan: faSprayCan,
  4239. faSquare: faSquare,
  4240. faSquareFull: faSquareFull,
  4241. faSquareRootAlt: faSquareRootAlt,
  4242. faStamp: faStamp,
  4243. faStar: faStar,
  4244. faStarAndCrescent: faStarAndCrescent,
  4245. faStarHalf: faStarHalf,
  4246. faStarHalfAlt: faStarHalfAlt,
  4247. faStarOfDavid: faStarOfDavid,
  4248. faStarOfLife: faStarOfLife,
  4249. faStepBackward: faStepBackward,
  4250. faStepForward: faStepForward,
  4251. faStethoscope: faStethoscope,
  4252. faStickyNote: faStickyNote,
  4253. faStop: faStop,
  4254. faStopCircle: faStopCircle,
  4255. faStopwatch: faStopwatch,
  4256. faStore: faStore,
  4257. faStoreAlt: faStoreAlt,
  4258. faStream: faStream,
  4259. faStreetView: faStreetView,
  4260. faStrikethrough: faStrikethrough,
  4261. faStroopwafel: faStroopwafel,
  4262. faSubscript: faSubscript,
  4263. faSubway: faSubway,
  4264. faSuitcase: faSuitcase,
  4265. faSuitcaseRolling: faSuitcaseRolling,
  4266. faSun: faSun,
  4267. faSuperscript: faSuperscript,
  4268. faSurprise: faSurprise,
  4269. faSwatchbook: faSwatchbook,
  4270. faSwimmer: faSwimmer,
  4271. faSwimmingPool: faSwimmingPool,
  4272. faSynagogue: faSynagogue,
  4273. faSync: faSync,
  4274. faSyncAlt: faSyncAlt,
  4275. faSyringe: faSyringe,
  4276. faTable: faTable,
  4277. faTableTennis: faTableTennis,
  4278. faTablet: faTablet,
  4279. faTabletAlt: faTabletAlt,
  4280. faTablets: faTablets,
  4281. faTachometerAlt: faTachometerAlt,
  4282. faTag: faTag,
  4283. faTags: faTags,
  4284. faTape: faTape,
  4285. faTasks: faTasks,
  4286. faTaxi: faTaxi,
  4287. faTeeth: faTeeth,
  4288. faTeethOpen: faTeethOpen,
  4289. faTerminal: faTerminal,
  4290. faTextHeight: faTextHeight,
  4291. faTextWidth: faTextWidth,
  4292. faTh: faTh,
  4293. faThLarge: faThLarge,
  4294. faThList: faThList,
  4295. faTheaterMasks: faTheaterMasks,
  4296. faThermometer: faThermometer,
  4297. faThermometerEmpty: faThermometerEmpty,
  4298. faThermometerFull: faThermometerFull,
  4299. faThermometerHalf: faThermometerHalf,
  4300. faThermometerQuarter: faThermometerQuarter,
  4301. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4302. faThumbsDown: faThumbsDown,
  4303. faThumbsUp: faThumbsUp,
  4304. faThumbtack: faThumbtack,
  4305. faTicketAlt: faTicketAlt,
  4306. faTimes: faTimes,
  4307. faTimesCircle: faTimesCircle,
  4308. faTint: faTint,
  4309. faTintSlash: faTintSlash,
  4310. faTired: faTired,
  4311. faToggleOff: faToggleOff,
  4312. faToggleOn: faToggleOn,
  4313. faToiletPaper: faToiletPaper,
  4314. faToolbox: faToolbox,
  4315. faTooth: faTooth,
  4316. faTorah: faTorah,
  4317. faToriiGate: faToriiGate,
  4318. faTractor: faTractor,
  4319. faTrademark: faTrademark,
  4320. faTrafficLight: faTrafficLight,
  4321. faTrain: faTrain,
  4322. faTransgender: faTransgender,
  4323. faTransgenderAlt: faTransgenderAlt,
  4324. faTrash: faTrash,
  4325. faTrashAlt: faTrashAlt,
  4326. faTree: faTree,
  4327. faTrophy: faTrophy,
  4328. faTruck: faTruck,
  4329. faTruckLoading: faTruckLoading,
  4330. faTruckMonster: faTruckMonster,
  4331. faTruckMoving: faTruckMoving,
  4332. faTruckPickup: faTruckPickup,
  4333. faTshirt: faTshirt,
  4334. faTty: faTty,
  4335. faTv: faTv,
  4336. faUmbrella: faUmbrella,
  4337. faUmbrellaBeach: faUmbrellaBeach,
  4338. faUnderline: faUnderline,
  4339. faUndo: faUndo,
  4340. faUndoAlt: faUndoAlt,
  4341. faUniversalAccess: faUniversalAccess,
  4342. faUniversity: faUniversity,
  4343. faUnlink: faUnlink,
  4344. faUnlock: faUnlock,
  4345. faUnlockAlt: faUnlockAlt,
  4346. faUpload: faUpload,
  4347. faUser: faUser,
  4348. faUserAlt: faUserAlt,
  4349. faUserAltSlash: faUserAltSlash,
  4350. faUserAstronaut: faUserAstronaut,
  4351. faUserCheck: faUserCheck,
  4352. faUserCircle: faUserCircle,
  4353. faUserClock: faUserClock,
  4354. faUserCog: faUserCog,
  4355. faUserEdit: faUserEdit,
  4356. faUserFriends: faUserFriends,
  4357. faUserGraduate: faUserGraduate,
  4358. faUserInjured: faUserInjured,
  4359. faUserLock: faUserLock,
  4360. faUserMd: faUserMd,
  4361. faUserMinus: faUserMinus,
  4362. faUserNinja: faUserNinja,
  4363. faUserPlus: faUserPlus,
  4364. faUserSecret: faUserSecret,
  4365. faUserShield: faUserShield,
  4366. faUserSlash: faUserSlash,
  4367. faUserTag: faUserTag,
  4368. faUserTie: faUserTie,
  4369. faUserTimes: faUserTimes,
  4370. faUsers: faUsers,
  4371. faUsersCog: faUsersCog,
  4372. faUtensilSpoon: faUtensilSpoon,
  4373. faUtensils: faUtensils,
  4374. faVectorSquare: faVectorSquare,
  4375. faVenus: faVenus,
  4376. faVenusDouble: faVenusDouble,
  4377. faVenusMars: faVenusMars,
  4378. faVial: faVial,
  4379. faVials: faVials,
  4380. faVideo: faVideo,
  4381. faVideoSlash: faVideoSlash,
  4382. faVihara: faVihara,
  4383. faVolleyballBall: faVolleyballBall,
  4384. faVolumeDown: faVolumeDown,
  4385. faVolumeMute: faVolumeMute,
  4386. faVolumeOff: faVolumeOff,
  4387. faVolumeUp: faVolumeUp,
  4388. faVrCardboard: faVrCardboard,
  4389. faWalking: faWalking,
  4390. faWallet: faWallet,
  4391. faWarehouse: faWarehouse,
  4392. faWeight: faWeight,
  4393. faWeightHanging: faWeightHanging,
  4394. faWheelchair: faWheelchair,
  4395. faWifi: faWifi,
  4396. faWind: faWind,
  4397. faWindowClose: faWindowClose,
  4398. faWindowMaximize: faWindowMaximize,
  4399. faWindowMinimize: faWindowMinimize,
  4400. faWindowRestore: faWindowRestore,
  4401. faWineBottle: faWineBottle,
  4402. faWineGlass: faWineGlass,
  4403. faWineGlassAlt: faWineGlassAlt,
  4404. faWonSign: faWonSign,
  4405. faWrench: faWrench,
  4406. faXRay: faXRay,
  4407. faYenSign: faYenSign,
  4408. faYinYang: faYinYang
  4409. };
  4410. /***/ }),
  4411. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4412. /*!***********************************************************************************!*\
  4413. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4414. \***********************************************************************************/
  4415. /*! exports provided: FontAwesomeIcon */
  4416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4417. "use strict";
  4418. __webpack_require__.r(__webpack_exports__);
  4419. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4420. /* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js");
  4421. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4422. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4423. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4425. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4426. function createCommonjsModule(fn, module) {
  4427. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4428. }
  4429. var humps = createCommonjsModule(function (module) {
  4430. (function(global) {
  4431. var _processKeys = function(convert, obj, options) {
  4432. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4433. return obj;
  4434. }
  4435. var output,
  4436. i = 0,
  4437. l = 0;
  4438. if(_isArray(obj)) {
  4439. output = [];
  4440. for(l=obj.length; i<l; i++) {
  4441. output.push(_processKeys(convert, obj[i], options));
  4442. }
  4443. }
  4444. else {
  4445. output = {};
  4446. for(var key in obj) {
  4447. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4448. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4449. }
  4450. }
  4451. }
  4452. return output;
  4453. };
  4454. // String conversion methods
  4455. var separateWords = function(string, options) {
  4456. options = options || {};
  4457. var separator = options.separator || '_';
  4458. var split = options.split || /(?=[A-Z])/;
  4459. return string.split(split).join(separator);
  4460. };
  4461. var camelize = function(string) {
  4462. if (_isNumerical(string)) {
  4463. return string;
  4464. }
  4465. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4466. return chr ? chr.toUpperCase() : '';
  4467. });
  4468. // Ensure 1st char is always lowercase
  4469. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4470. };
  4471. var pascalize = function(string) {
  4472. var camelized = camelize(string);
  4473. // Ensure 1st char is always uppercase
  4474. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4475. };
  4476. var decamelize = function(string, options) {
  4477. return separateWords(string, options).toLowerCase();
  4478. };
  4479. // Utilities
  4480. // Taken from Underscore.js
  4481. var toString = Object.prototype.toString;
  4482. var _isFunction = function(obj) {
  4483. return typeof(obj) === 'function';
  4484. };
  4485. var _isObject = function(obj) {
  4486. return obj === Object(obj);
  4487. };
  4488. var _isArray = function(obj) {
  4489. return toString.call(obj) == '[object Array]';
  4490. };
  4491. var _isDate = function(obj) {
  4492. return toString.call(obj) == '[object Date]';
  4493. };
  4494. var _isRegExp = function(obj) {
  4495. return toString.call(obj) == '[object RegExp]';
  4496. };
  4497. var _isBoolean = function(obj) {
  4498. return toString.call(obj) == '[object Boolean]';
  4499. };
  4500. // Performant way to determine if obj coerces to a number
  4501. var _isNumerical = function(obj) {
  4502. obj = obj - 0;
  4503. return obj === obj;
  4504. };
  4505. // Sets up function which handles processing keys
  4506. // allowing the convert function to be modified by a callback
  4507. var _processor = function(convert, options) {
  4508. var callback = options && 'process' in options ? options.process : options;
  4509. if(typeof(callback) !== 'function') {
  4510. return convert;
  4511. }
  4512. return function(string, options) {
  4513. return callback(string, convert, options);
  4514. }
  4515. };
  4516. var humps = {
  4517. camelize: camelize,
  4518. decamelize: decamelize,
  4519. pascalize: pascalize,
  4520. depascalize: decamelize,
  4521. camelizeKeys: function(object, options) {
  4522. return _processKeys(_processor(camelize, options), object);
  4523. },
  4524. decamelizeKeys: function(object, options) {
  4525. return _processKeys(_processor(decamelize, options), object, options);
  4526. },
  4527. pascalizeKeys: function(object, options) {
  4528. return _processKeys(_processor(pascalize, options), object);
  4529. },
  4530. depascalizeKeys: function () {
  4531. return this.decamelizeKeys.apply(this, arguments);
  4532. }
  4533. };
  4534. if (module.exports) {
  4535. module.exports = humps;
  4536. } else {
  4537. global.humps = humps;
  4538. }
  4539. })(commonjsGlobal);
  4540. });
  4541. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  4542. return typeof obj;
  4543. } : function (obj) {
  4544. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4545. };
  4546. var defineProperty = function (obj, key, value) {
  4547. if (key in obj) {
  4548. Object.defineProperty(obj, key, {
  4549. value: value,
  4550. enumerable: true,
  4551. configurable: true,
  4552. writable: true
  4553. });
  4554. } else {
  4555. obj[key] = value;
  4556. }
  4557. return obj;
  4558. };
  4559. var _extends = Object.assign || function (target) {
  4560. for (var i = 1; i < arguments.length; i++) {
  4561. var source = arguments[i];
  4562. for (var key in source) {
  4563. if (Object.prototype.hasOwnProperty.call(source, key)) {
  4564. target[key] = source[key];
  4565. }
  4566. }
  4567. }
  4568. return target;
  4569. };
  4570. var objectWithoutProperties = function (obj, keys) {
  4571. var target = {};
  4572. for (var i in obj) {
  4573. if (keys.indexOf(i) >= 0) continue;
  4574. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  4575. target[i] = obj[i];
  4576. }
  4577. return target;
  4578. };
  4579. var toConsumableArray = function (arr) {
  4580. if (Array.isArray(arr)) {
  4581. for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4582. return arr2;
  4583. } else {
  4584. return Array.from(arr);
  4585. }
  4586. };
  4587. function capitalize(val) {
  4588. return val.charAt(0).toUpperCase() + val.slice(1);
  4589. }
  4590. function styleToObject(style) {
  4591. return style.split(';').map(function (s) {
  4592. return s.trim();
  4593. }).filter(function (s) {
  4594. return s;
  4595. }).reduce(function (acc, pair) {
  4596. var i = pair.indexOf(':');
  4597. var prop = humps.camelize(pair.slice(0, i));
  4598. var value = pair.slice(i + 1).trim();
  4599. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4600. return acc;
  4601. }, {});
  4602. }
  4603. function convert(createElement, element) {
  4604. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4605. if (typeof element === 'string') {
  4606. return element;
  4607. }
  4608. var children = (element.children || []).map(convert.bind(null, createElement));
  4609. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4610. var val = element.attributes[key];
  4611. switch (key) {
  4612. case 'class':
  4613. acc.attrs['className'] = val;
  4614. delete element.attributes['class'];
  4615. break;
  4616. case 'style':
  4617. acc.attrs['style'] = styleToObject(val);
  4618. break;
  4619. default:
  4620. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4621. acc.attrs[key.toLowerCase()] = val;
  4622. } else {
  4623. acc.attrs[humps.camelize(key)] = val;
  4624. }
  4625. }
  4626. return acc;
  4627. }, { attrs: {} });
  4628. var _extraProps$style = extraProps.style,
  4629. existingStyle = _extraProps$style === undefined ? {} : _extraProps$style,
  4630. remaining = objectWithoutProperties(extraProps, ['style']);
  4631. mixins.attrs['style'] = _extends({}, mixins.attrs['style'], existingStyle);
  4632. return createElement.apply(undefined, [element.tag, _extends({}, mixins.attrs, remaining)].concat(toConsumableArray(children)));
  4633. }
  4634. var PRODUCTION = false;
  4635. try {
  4636. PRODUCTION = "development" === 'production';
  4637. } catch (e) {}
  4638. function log () {
  4639. if (!PRODUCTION && console && typeof console.error === 'function') {
  4640. var _console;
  4641. (_console = console).error.apply(_console, arguments);
  4642. }
  4643. }
  4644. function objectWithKey(key, value) {
  4645. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? defineProperty({}, key, value) : {};
  4646. }
  4647. function classList(props) {
  4648. var _classes;
  4649. var classes = (_classes = {
  4650. 'fa-spin': props.spin,
  4651. 'fa-pulse': props.pulse,
  4652. 'fa-fw': props.fixedWidth,
  4653. 'fa-inverse': props.inverse,
  4654. 'fa-border': props.border,
  4655. 'fa-li': props.listItem,
  4656. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  4657. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  4658. }, defineProperty(_classes, 'fa-' + props.size, props.size !== null), defineProperty(_classes, 'fa-rotate-' + props.rotation, props.rotation !== null), defineProperty(_classes, 'fa-pull-' + props.pull, props.pull !== null), _classes);
  4659. return Object.keys(classes).map(function (key) {
  4660. return classes[key] ? key : null;
  4661. }).filter(function (key) {
  4662. return key;
  4663. });
  4664. }
  4665. function normalizeIconArgs(icon$$1) {
  4666. if (icon$$1 === null) {
  4667. return null;
  4668. }
  4669. if ((typeof icon$$1 === 'undefined' ? 'undefined' : _typeof(icon$$1)) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  4670. return icon$$1;
  4671. }
  4672. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  4673. return { prefix: icon$$1[0], iconName: icon$$1[1] };
  4674. }
  4675. if (typeof icon$$1 === 'string') {
  4676. return { prefix: 'fas', iconName: icon$$1 };
  4677. }
  4678. }
  4679. function FontAwesomeIcon(props) {
  4680. var iconArgs = props.icon,
  4681. maskArgs = props.mask,
  4682. symbol = props.symbol,
  4683. className = props.className,
  4684. title = props.title;
  4685. var iconLookup = normalizeIconArgs(iconArgs);
  4686. var classes = objectWithKey('classes', [].concat(toConsumableArray(classList(props)), toConsumableArray(className.split(' '))));
  4687. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  4688. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  4689. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _extends({}, classes, transform, mask, {
  4690. symbol: symbol,
  4691. title: title
  4692. }));
  4693. if (!renderedIcon) {
  4694. log('Could not find icon', iconLookup);
  4695. return null;
  4696. }
  4697. var abstract = renderedIcon.abstract;
  4698. var extraProps = {};
  4699. Object.keys(props).forEach(function (key) {
  4700. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  4701. extraProps[key] = props[key];
  4702. }
  4703. });
  4704. return convertCurry(abstract[0], extraProps);
  4705. }
  4706. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  4707. FontAwesomeIcon.propTypes = {
  4708. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4709. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  4710. mask: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  4711. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4712. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4713. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  4714. icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  4715. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4716. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  4717. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4718. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  4719. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  4720. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4721. symbol: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  4722. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  4723. transform: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object])
  4724. };
  4725. FontAwesomeIcon.defaultProps = {
  4726. border: false,
  4727. className: '',
  4728. mask: null,
  4729. fixedWidth: false,
  4730. inverse: false,
  4731. flip: null,
  4732. icon: null,
  4733. listItem: false,
  4734. pull: null,
  4735. pulse: false,
  4736. rotation: null,
  4737. size: null,
  4738. spin: false,
  4739. symbol: false,
  4740. title: '',
  4741. transform: null
  4742. };
  4743. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  4744. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  4745. /***/ }),
  4746. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss":
  4747. /*!************************************************************************************************************************************************!*\
  4748. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss ***!
  4749. \************************************************************************************************************************************************/
  4750. /*! no static exports found */
  4751. /***/ (function(module, exports, __webpack_require__) {
  4752. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4753. // imports
  4754. // module
  4755. exports.push([module.i, ".diagramBlock {\n background: white;\n width: 200px;\n border: 4px solid black; }\n .diagramBlock.input {\n background: green;\n color: white; }\n .diagramBlock.attribute {\n background: orange; }\n .diagramBlock.output {\n background: blue;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n margin: 10px;\n font-size: 16px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .value {\n height: 34px;\n text-align: center;\n font-size: 20px;\n font-weight: bold; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 4px calc(100% - 4px);\n grid-template-rows: 100%; }\n .diagramBlock .inputs .input-port .input-port-plug {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-content: center;\n margin-left: -11px; }\n .diagramBlock .inputs .input-port .input-port-plug .srd-port {\n background: grey; }\n .diagramBlock .inputs .input-port .input-port-label {\n margin-left: 10px;\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 4px) 4px;\n grid-template-rows: 100%; }\n .diagramBlock .outputs .output-port .output-port-plug {\n grid-column: 2;\n grid-row: 1;\n display: grid;\n align-content: center; }\n .diagramBlock .outputs .output-port .output-port-plug .srd-port {\n background: grey; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n margin-right: 10px;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px; }\n", ""]);
  4756. // exports
  4757. /***/ }),
  4758. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss":
  4759. /*!**************************************************************************************************************************************************!*\
  4760. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss ***!
  4761. \**************************************************************************************************************************************************/
  4762. /*! no static exports found */
  4763. /***/ (function(module, exports, __webpack_require__) {
  4764. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4765. // imports
  4766. // module
  4767. exports.push([module.i, "#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 200px;\n overflow: hidden; }\n #nodeList .pane {\n color: white;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .pane .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .pane .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .pane .buttonLine button:active {\n background: #282828; }\n #nodeList .pane .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #nodeList .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .pane .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #nodeList .pane .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #nodeList .pane .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #nodeList .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .pane .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .pane .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #nodeList .pane .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n", ""]);
  4768. // exports
  4769. /***/ }),
  4770. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss":
  4771. /*!********************************************************************************************************************************************************!*\
  4772. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss ***!
  4773. \********************************************************************************************************************************************************/
  4774. /*! no static exports found */
  4775. /***/ (function(module, exports, __webpack_require__) {
  4776. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4777. // imports
  4778. // module
  4779. exports.push([module.i, "#propertyTab {\n padding: 5px;\n color: white; }\n #propertyTab .vector3Line {\n padding-left: 2px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #propertyTab .buttonLine input[type=\"file\"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: '';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .textLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n", ""]);
  4780. // exports
  4781. /***/ }),
  4782. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss":
  4783. /*!**************************************************************************************************************************!*\
  4784. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./main.scss ***!
  4785. \**************************************************************************************************************************/
  4786. /*! no static exports found */
  4787. /***/ (function(module, exports, __webpack_require__) {
  4788. exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4789. // imports
  4790. // module
  4791. exports.push([module.i, "#node-editor-graph-root {\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 200px calc(100% - 500px) 300px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px \"acumin-pro\"; }\n\n#nodeList {\n grid-row: 1;\n grid-column: 1; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 2;\n background: #222222; }\n\n#propertyTab {\n grid-row: 1;\n grid-column: 3; }\n", ""]);
  4792. // exports
  4793. /***/ }),
  4794. /***/ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css":
  4795. /*!****************************************************************************************************************************!*\
  4796. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  4797. \****************************************************************************************************************************/
  4798. /*! no static exports found */
  4799. /***/ (function(module, exports, __webpack_require__) {
  4800. exports = module.exports = __webpack_require__(/*! ../../css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4801. // imports
  4802. // module
  4803. exports.push([module.i, ".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n", ""]);
  4804. // exports
  4805. /***/ }),
  4806. /***/ "../../node_modules/css-loader/lib/css-base.js":
  4807. /*!*******************************************************************!*\
  4808. !*** D:/Repos/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  4809. \*******************************************************************/
  4810. /*! no static exports found */
  4811. /***/ (function(module, exports) {
  4812. /*
  4813. MIT License http://www.opensource.org/licenses/mit-license.php
  4814. Author Tobias Koppers @sokra
  4815. */
  4816. // css base code, injected by the css-loader
  4817. module.exports = function(useSourceMap) {
  4818. var list = [];
  4819. // return the list of modules as css string
  4820. list.toString = function toString() {
  4821. return this.map(function (item) {
  4822. var content = cssWithMappingToString(item, useSourceMap);
  4823. if(item[2]) {
  4824. return "@media " + item[2] + "{" + content + "}";
  4825. } else {
  4826. return content;
  4827. }
  4828. }).join("");
  4829. };
  4830. // import a list of modules into the list
  4831. list.i = function(modules, mediaQuery) {
  4832. if(typeof modules === "string")
  4833. modules = [[null, modules, ""]];
  4834. var alreadyImportedModules = {};
  4835. for(var i = 0; i < this.length; i++) {
  4836. var id = this[i][0];
  4837. if(typeof id === "number")
  4838. alreadyImportedModules[id] = true;
  4839. }
  4840. for(i = 0; i < modules.length; i++) {
  4841. var item = modules[i];
  4842. // skip already imported module
  4843. // this implementation is not 100% perfect for weird media query combinations
  4844. // when a module is imported multiple times with different media queries.
  4845. // I hope this will never occur (Hey this way we have smaller bundles)
  4846. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  4847. if(mediaQuery && !item[2]) {
  4848. item[2] = mediaQuery;
  4849. } else if(mediaQuery) {
  4850. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  4851. }
  4852. list.push(item);
  4853. }
  4854. }
  4855. };
  4856. return list;
  4857. };
  4858. function cssWithMappingToString(item, useSourceMap) {
  4859. var content = item[1] || '';
  4860. var cssMapping = item[3];
  4861. if (!cssMapping) {
  4862. return content;
  4863. }
  4864. if (useSourceMap && typeof btoa === 'function') {
  4865. var sourceMapping = toComment(cssMapping);
  4866. var sourceURLs = cssMapping.sources.map(function (source) {
  4867. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  4868. });
  4869. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  4870. }
  4871. return [content].join('\n');
  4872. }
  4873. // Adapted from convert-source-map (MIT)
  4874. function toComment(sourceMap) {
  4875. // eslint-disable-next-line no-undef
  4876. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  4877. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  4878. return '/*# ' + data + ' */';
  4879. }
  4880. /***/ }),
  4881. /***/ "../../node_modules/lodash/lodash.js":
  4882. /*!*********************************************************!*\
  4883. !*** D:/Repos/Babylon.js/node_modules/lodash/lodash.js ***!
  4884. \*********************************************************/
  4885. /*! no static exports found */
  4886. /***/ (function(module, exports, __webpack_require__) {
  4887. /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
  4888. * @license
  4889. * Lodash <https://lodash.com/>
  4890. * Copyright JS Foundation and other contributors <https://js.foundation/>
  4891. * Released under MIT license <https://lodash.com/license>
  4892. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  4893. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  4894. */
  4895. ;(function() {
  4896. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  4897. var undefined;
  4898. /** Used as the semantic version number. */
  4899. var VERSION = '4.17.11';
  4900. /** Used as the size to enable large array optimizations. */
  4901. var LARGE_ARRAY_SIZE = 200;
  4902. /** Error message constants. */
  4903. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  4904. FUNC_ERROR_TEXT = 'Expected a function';
  4905. /** Used to stand-in for `undefined` hash values. */
  4906. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  4907. /** Used as the maximum memoize cache size. */
  4908. var MAX_MEMOIZE_SIZE = 500;
  4909. /** Used as the internal argument placeholder. */
  4910. var PLACEHOLDER = '__lodash_placeholder__';
  4911. /** Used to compose bitmasks for cloning. */
  4912. var CLONE_DEEP_FLAG = 1,
  4913. CLONE_FLAT_FLAG = 2,
  4914. CLONE_SYMBOLS_FLAG = 4;
  4915. /** Used to compose bitmasks for value comparisons. */
  4916. var COMPARE_PARTIAL_FLAG = 1,
  4917. COMPARE_UNORDERED_FLAG = 2;
  4918. /** Used to compose bitmasks for function metadata. */
  4919. var WRAP_BIND_FLAG = 1,
  4920. WRAP_BIND_KEY_FLAG = 2,
  4921. WRAP_CURRY_BOUND_FLAG = 4,
  4922. WRAP_CURRY_FLAG = 8,
  4923. WRAP_CURRY_RIGHT_FLAG = 16,
  4924. WRAP_PARTIAL_FLAG = 32,
  4925. WRAP_PARTIAL_RIGHT_FLAG = 64,
  4926. WRAP_ARY_FLAG = 128,
  4927. WRAP_REARG_FLAG = 256,
  4928. WRAP_FLIP_FLAG = 512;
  4929. /** Used as default options for `_.truncate`. */
  4930. var DEFAULT_TRUNC_LENGTH = 30,
  4931. DEFAULT_TRUNC_OMISSION = '...';
  4932. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  4933. var HOT_COUNT = 800,
  4934. HOT_SPAN = 16;
  4935. /** Used to indicate the type of lazy iteratees. */
  4936. var LAZY_FILTER_FLAG = 1,
  4937. LAZY_MAP_FLAG = 2,
  4938. LAZY_WHILE_FLAG = 3;
  4939. /** Used as references for various `Number` constants. */
  4940. var INFINITY = 1 / 0,
  4941. MAX_SAFE_INTEGER = 9007199254740991,
  4942. MAX_INTEGER = 1.7976931348623157e+308,
  4943. NAN = 0 / 0;
  4944. /** Used as references for the maximum length and index of an array. */
  4945. var MAX_ARRAY_LENGTH = 4294967295,
  4946. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  4947. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  4948. /** Used to associate wrap methods with their bit flags. */
  4949. var wrapFlags = [
  4950. ['ary', WRAP_ARY_FLAG],
  4951. ['bind', WRAP_BIND_FLAG],
  4952. ['bindKey', WRAP_BIND_KEY_FLAG],
  4953. ['curry', WRAP_CURRY_FLAG],
  4954. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  4955. ['flip', WRAP_FLIP_FLAG],
  4956. ['partial', WRAP_PARTIAL_FLAG],
  4957. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  4958. ['rearg', WRAP_REARG_FLAG]
  4959. ];
  4960. /** `Object#toString` result references. */
  4961. var argsTag = '[object Arguments]',
  4962. arrayTag = '[object Array]',
  4963. asyncTag = '[object AsyncFunction]',
  4964. boolTag = '[object Boolean]',
  4965. dateTag = '[object Date]',
  4966. domExcTag = '[object DOMException]',
  4967. errorTag = '[object Error]',
  4968. funcTag = '[object Function]',
  4969. genTag = '[object GeneratorFunction]',
  4970. mapTag = '[object Map]',
  4971. numberTag = '[object Number]',
  4972. nullTag = '[object Null]',
  4973. objectTag = '[object Object]',
  4974. promiseTag = '[object Promise]',
  4975. proxyTag = '[object Proxy]',
  4976. regexpTag = '[object RegExp]',
  4977. setTag = '[object Set]',
  4978. stringTag = '[object String]',
  4979. symbolTag = '[object Symbol]',
  4980. undefinedTag = '[object Undefined]',
  4981. weakMapTag = '[object WeakMap]',
  4982. weakSetTag = '[object WeakSet]';
  4983. var arrayBufferTag = '[object ArrayBuffer]',
  4984. dataViewTag = '[object DataView]',
  4985. float32Tag = '[object Float32Array]',
  4986. float64Tag = '[object Float64Array]',
  4987. int8Tag = '[object Int8Array]',
  4988. int16Tag = '[object Int16Array]',
  4989. int32Tag = '[object Int32Array]',
  4990. uint8Tag = '[object Uint8Array]',
  4991. uint8ClampedTag = '[object Uint8ClampedArray]',
  4992. uint16Tag = '[object Uint16Array]',
  4993. uint32Tag = '[object Uint32Array]';
  4994. /** Used to match empty string literals in compiled template source. */
  4995. var reEmptyStringLeading = /\b__p \+= '';/g,
  4996. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  4997. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  4998. /** Used to match HTML entities and HTML characters. */
  4999. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  5000. reUnescapedHtml = /[&<>"']/g,
  5001. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  5002. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  5003. /** Used to match template delimiters. */
  5004. var reEscape = /<%-([\s\S]+?)%>/g,
  5005. reEvaluate = /<%([\s\S]+?)%>/g,
  5006. reInterpolate = /<%=([\s\S]+?)%>/g;
  5007. /** Used to match property names within property paths. */
  5008. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  5009. reIsPlainProp = /^\w*$/,
  5010. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  5011. /**
  5012. * Used to match `RegExp`
  5013. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  5014. */
  5015. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  5016. reHasRegExpChar = RegExp(reRegExpChar.source);
  5017. /** Used to match leading and trailing whitespace. */
  5018. var reTrim = /^\s+|\s+$/g,
  5019. reTrimStart = /^\s+/,
  5020. reTrimEnd = /\s+$/;
  5021. /** Used to match wrap detail comments. */
  5022. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  5023. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  5024. reSplitDetails = /,? & /;
  5025. /** Used to match words composed of alphanumeric characters. */
  5026. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  5027. /** Used to match backslashes in property paths. */
  5028. var reEscapeChar = /\\(\\)?/g;
  5029. /**
  5030. * Used to match
  5031. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  5032. */
  5033. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  5034. /** Used to match `RegExp` flags from their coerced string values. */
  5035. var reFlags = /\w*$/;
  5036. /** Used to detect bad signed hexadecimal string values. */
  5037. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  5038. /** Used to detect binary string values. */
  5039. var reIsBinary = /^0b[01]+$/i;
  5040. /** Used to detect host constructors (Safari). */
  5041. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  5042. /** Used to detect octal string values. */
  5043. var reIsOctal = /^0o[0-7]+$/i;
  5044. /** Used to detect unsigned integer values. */
  5045. var reIsUint = /^(?:0|[1-9]\d*)$/;
  5046. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  5047. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  5048. /** Used to ensure capturing order of template delimiters. */
  5049. var reNoMatch = /($^)/;
  5050. /** Used to match unescaped characters in compiled string literals. */
  5051. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  5052. /** Used to compose unicode character classes. */
  5053. var rsAstralRange = '\\ud800-\\udfff',
  5054. rsComboMarksRange = '\\u0300-\\u036f',
  5055. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  5056. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  5057. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  5058. rsDingbatRange = '\\u2700-\\u27bf',
  5059. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  5060. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  5061. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  5062. rsPunctuationRange = '\\u2000-\\u206f',
  5063. rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  5064. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  5065. rsVarRange = '\\ufe0e\\ufe0f',
  5066. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  5067. /** Used to compose unicode capture groups. */
  5068. var rsApos = "['\u2019]",
  5069. rsAstral = '[' + rsAstralRange + ']',
  5070. rsBreak = '[' + rsBreakRange + ']',
  5071. rsCombo = '[' + rsComboRange + ']',
  5072. rsDigits = '\\d+',
  5073. rsDingbat = '[' + rsDingbatRange + ']',
  5074. rsLower = '[' + rsLowerRange + ']',
  5075. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  5076. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  5077. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  5078. rsNonAstral = '[^' + rsAstralRange + ']',
  5079. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  5080. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  5081. rsUpper = '[' + rsUpperRange + ']',
  5082. rsZWJ = '\\u200d';
  5083. /** Used to compose unicode regexes. */
  5084. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  5085. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  5086. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  5087. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  5088. reOptMod = rsModifier + '?',
  5089. rsOptVar = '[' + rsVarRange + ']?',
  5090. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  5091. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  5092. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  5093. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  5094. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  5095. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  5096. /** Used to match apostrophes. */
  5097. var reApos = RegExp(rsApos, 'g');
  5098. /**
  5099. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  5100. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  5101. */
  5102. var reComboMark = RegExp(rsCombo, 'g');
  5103. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  5104. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  5105. /** Used to match complex or compound words. */
  5106. var reUnicodeWord = RegExp([
  5107. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  5108. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  5109. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  5110. rsUpper + '+' + rsOptContrUpper,
  5111. rsOrdUpper,
  5112. rsOrdLower,
  5113. rsDigits,
  5114. rsEmoji
  5115. ].join('|'), 'g');
  5116. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  5117. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  5118. /** Used to detect strings that need a more robust regexp to match words. */
  5119. var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  5120. /** Used to assign default `context` object properties. */
  5121. var contextProps = [
  5122. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  5123. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  5124. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  5125. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  5126. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  5127. ];
  5128. /** Used to make template sourceURLs easier to identify. */
  5129. var templateCounter = -1;
  5130. /** Used to identify `toStringTag` values of typed arrays. */
  5131. var typedArrayTags = {};
  5132. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  5133. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  5134. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  5135. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  5136. typedArrayTags[uint32Tag] = true;
  5137. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  5138. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  5139. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  5140. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  5141. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  5142. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  5143. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  5144. typedArrayTags[weakMapTag] = false;
  5145. /** Used to identify `toStringTag` values supported by `_.clone`. */
  5146. var cloneableTags = {};
  5147. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  5148. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  5149. cloneableTags[boolTag] = cloneableTags[dateTag] =
  5150. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  5151. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  5152. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  5153. cloneableTags[numberTag] = cloneableTags[objectTag] =
  5154. cloneableTags[regexpTag] = cloneableTags[setTag] =
  5155. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  5156. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  5157. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  5158. cloneableTags[errorTag] = cloneableTags[funcTag] =
  5159. cloneableTags[weakMapTag] = false;
  5160. /** Used to map Latin Unicode letters to basic Latin letters. */
  5161. var deburredLetters = {
  5162. // Latin-1 Supplement block.
  5163. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  5164. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  5165. '\xc7': 'C', '\xe7': 'c',
  5166. '\xd0': 'D', '\xf0': 'd',
  5167. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  5168. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  5169. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  5170. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  5171. '\xd1': 'N', '\xf1': 'n',
  5172. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  5173. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  5174. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  5175. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  5176. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  5177. '\xc6': 'Ae', '\xe6': 'ae',
  5178. '\xde': 'Th', '\xfe': 'th',
  5179. '\xdf': 'ss',
  5180. // Latin Extended-A block.
  5181. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  5182. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  5183. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  5184. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  5185. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  5186. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  5187. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  5188. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  5189. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  5190. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  5191. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  5192. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  5193. '\u0134': 'J', '\u0135': 'j',
  5194. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  5195. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  5196. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  5197. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  5198. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  5199. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  5200. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  5201. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  5202. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  5203. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  5204. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  5205. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  5206. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  5207. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  5208. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  5209. '\u0174': 'W', '\u0175': 'w',
  5210. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  5211. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  5212. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  5213. '\u0132': 'IJ', '\u0133': 'ij',
  5214. '\u0152': 'Oe', '\u0153': 'oe',
  5215. '\u0149': "'n", '\u017f': 's'
  5216. };
  5217. /** Used to map characters to HTML entities. */
  5218. var htmlEscapes = {
  5219. '&': '&amp;',
  5220. '<': '&lt;',
  5221. '>': '&gt;',
  5222. '"': '&quot;',
  5223. "'": '&#39;'
  5224. };
  5225. /** Used to map HTML entities to characters. */
  5226. var htmlUnescapes = {
  5227. '&amp;': '&',
  5228. '&lt;': '<',
  5229. '&gt;': '>',
  5230. '&quot;': '"',
  5231. '&#39;': "'"
  5232. };
  5233. /** Used to escape characters for inclusion in compiled string literals. */
  5234. var stringEscapes = {
  5235. '\\': '\\',
  5236. "'": "'",
  5237. '\n': 'n',
  5238. '\r': 'r',
  5239. '\u2028': 'u2028',
  5240. '\u2029': 'u2029'
  5241. };
  5242. /** Built-in method references without a dependency on `root`. */
  5243. var freeParseFloat = parseFloat,
  5244. freeParseInt = parseInt;
  5245. /** Detect free variable `global` from Node.js. */
  5246. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  5247. /** Detect free variable `self`. */
  5248. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  5249. /** Used as a reference to the global object. */
  5250. var root = freeGlobal || freeSelf || Function('return this')();
  5251. /** Detect free variable `exports`. */
  5252. var freeExports = true && exports && !exports.nodeType && exports;
  5253. /** Detect free variable `module`. */
  5254. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  5255. /** Detect the popular CommonJS extension `module.exports`. */
  5256. var moduleExports = freeModule && freeModule.exports === freeExports;
  5257. /** Detect free variable `process` from Node.js. */
  5258. var freeProcess = moduleExports && freeGlobal.process;
  5259. /** Used to access faster Node.js helpers. */
  5260. var nodeUtil = (function() {
  5261. try {
  5262. // Use `util.types` for Node.js 10+.
  5263. var types = freeModule && freeModule.require && freeModule.require('util').types;
  5264. if (types) {
  5265. return types;
  5266. }
  5267. // Legacy `process.binding('util')` for Node.js < 10.
  5268. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  5269. } catch (e) {}
  5270. }());
  5271. /* Node.js helper references. */
  5272. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  5273. nodeIsDate = nodeUtil && nodeUtil.isDate,
  5274. nodeIsMap = nodeUtil && nodeUtil.isMap,
  5275. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  5276. nodeIsSet = nodeUtil && nodeUtil.isSet,
  5277. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  5278. /*--------------------------------------------------------------------------*/
  5279. /**
  5280. * A faster alternative to `Function#apply`, this function invokes `func`
  5281. * with the `this` binding of `thisArg` and the arguments of `args`.
  5282. *
  5283. * @private
  5284. * @param {Function} func The function to invoke.
  5285. * @param {*} thisArg The `this` binding of `func`.
  5286. * @param {Array} args The arguments to invoke `func` with.
  5287. * @returns {*} Returns the result of `func`.
  5288. */
  5289. function apply(func, thisArg, args) {
  5290. switch (args.length) {
  5291. case 0: return func.call(thisArg);
  5292. case 1: return func.call(thisArg, args[0]);
  5293. case 2: return func.call(thisArg, args[0], args[1]);
  5294. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  5295. }
  5296. return func.apply(thisArg, args);
  5297. }
  5298. /**
  5299. * A specialized version of `baseAggregator` for arrays.
  5300. *
  5301. * @private
  5302. * @param {Array} [array] The array to iterate over.
  5303. * @param {Function} setter The function to set `accumulator` values.
  5304. * @param {Function} iteratee The iteratee to transform keys.
  5305. * @param {Object} accumulator The initial aggregated object.
  5306. * @returns {Function} Returns `accumulator`.
  5307. */
  5308. function arrayAggregator(array, setter, iteratee, accumulator) {
  5309. var index = -1,
  5310. length = array == null ? 0 : array.length;
  5311. while (++index < length) {
  5312. var value = array[index];
  5313. setter(accumulator, value, iteratee(value), array);
  5314. }
  5315. return accumulator;
  5316. }
  5317. /**
  5318. * A specialized version of `_.forEach` for arrays without support for
  5319. * iteratee shorthands.
  5320. *
  5321. * @private
  5322. * @param {Array} [array] The array to iterate over.
  5323. * @param {Function} iteratee The function invoked per iteration.
  5324. * @returns {Array} Returns `array`.
  5325. */
  5326. function arrayEach(array, iteratee) {
  5327. var index = -1,
  5328. length = array == null ? 0 : array.length;
  5329. while (++index < length) {
  5330. if (iteratee(array[index], index, array) === false) {
  5331. break;
  5332. }
  5333. }
  5334. return array;
  5335. }
  5336. /**
  5337. * A specialized version of `_.forEachRight` for arrays without support for
  5338. * iteratee shorthands.
  5339. *
  5340. * @private
  5341. * @param {Array} [array] The array to iterate over.
  5342. * @param {Function} iteratee The function invoked per iteration.
  5343. * @returns {Array} Returns `array`.
  5344. */
  5345. function arrayEachRight(array, iteratee) {
  5346. var length = array == null ? 0 : array.length;
  5347. while (length--) {
  5348. if (iteratee(array[length], length, array) === false) {
  5349. break;
  5350. }
  5351. }
  5352. return array;
  5353. }
  5354. /**
  5355. * A specialized version of `_.every` for arrays without support for
  5356. * iteratee shorthands.
  5357. *
  5358. * @private
  5359. * @param {Array} [array] The array to iterate over.
  5360. * @param {Function} predicate The function invoked per iteration.
  5361. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  5362. * else `false`.
  5363. */
  5364. function arrayEvery(array, predicate) {
  5365. var index = -1,
  5366. length = array == null ? 0 : array.length;
  5367. while (++index < length) {
  5368. if (!predicate(array[index], index, array)) {
  5369. return false;
  5370. }
  5371. }
  5372. return true;
  5373. }
  5374. /**
  5375. * A specialized version of `_.filter` for arrays without support for
  5376. * iteratee shorthands.
  5377. *
  5378. * @private
  5379. * @param {Array} [array] The array to iterate over.
  5380. * @param {Function} predicate The function invoked per iteration.
  5381. * @returns {Array} Returns the new filtered array.
  5382. */
  5383. function arrayFilter(array, predicate) {
  5384. var index = -1,
  5385. length = array == null ? 0 : array.length,
  5386. resIndex = 0,
  5387. result = [];
  5388. while (++index < length) {
  5389. var value = array[index];
  5390. if (predicate(value, index, array)) {
  5391. result[resIndex++] = value;
  5392. }
  5393. }
  5394. return result;
  5395. }
  5396. /**
  5397. * A specialized version of `_.includes` for arrays without support for
  5398. * specifying an index to search from.
  5399. *
  5400. * @private
  5401. * @param {Array} [array] The array to inspect.
  5402. * @param {*} target The value to search for.
  5403. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  5404. */
  5405. function arrayIncludes(array, value) {
  5406. var length = array == null ? 0 : array.length;
  5407. return !!length && baseIndexOf(array, value, 0) > -1;
  5408. }
  5409. /**
  5410. * This function is like `arrayIncludes` except that it accepts a comparator.
  5411. *
  5412. * @private
  5413. * @param {Array} [array] The array to inspect.
  5414. * @param {*} target The value to search for.
  5415. * @param {Function} comparator The comparator invoked per element.
  5416. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  5417. */
  5418. function arrayIncludesWith(array, value, comparator) {
  5419. var index = -1,
  5420. length = array == null ? 0 : array.length;
  5421. while (++index < length) {
  5422. if (comparator(value, array[index])) {
  5423. return true;
  5424. }
  5425. }
  5426. return false;
  5427. }
  5428. /**
  5429. * A specialized version of `_.map` for arrays without support for iteratee
  5430. * shorthands.
  5431. *
  5432. * @private
  5433. * @param {Array} [array] The array to iterate over.
  5434. * @param {Function} iteratee The function invoked per iteration.
  5435. * @returns {Array} Returns the new mapped array.
  5436. */
  5437. function arrayMap(array, iteratee) {
  5438. var index = -1,
  5439. length = array == null ? 0 : array.length,
  5440. result = Array(length);
  5441. while (++index < length) {
  5442. result[index] = iteratee(array[index], index, array);
  5443. }
  5444. return result;
  5445. }
  5446. /**
  5447. * Appends the elements of `values` to `array`.
  5448. *
  5449. * @private
  5450. * @param {Array} array The array to modify.
  5451. * @param {Array} values The values to append.
  5452. * @returns {Array} Returns `array`.
  5453. */
  5454. function arrayPush(array, values) {
  5455. var index = -1,
  5456. length = values.length,
  5457. offset = array.length;
  5458. while (++index < length) {
  5459. array[offset + index] = values[index];
  5460. }
  5461. return array;
  5462. }
  5463. /**
  5464. * A specialized version of `_.reduce` for arrays without support for
  5465. * iteratee shorthands.
  5466. *
  5467. * @private
  5468. * @param {Array} [array] The array to iterate over.
  5469. * @param {Function} iteratee The function invoked per iteration.
  5470. * @param {*} [accumulator] The initial value.
  5471. * @param {boolean} [initAccum] Specify using the first element of `array` as
  5472. * the initial value.
  5473. * @returns {*} Returns the accumulated value.
  5474. */
  5475. function arrayReduce(array, iteratee, accumulator, initAccum) {
  5476. var index = -1,
  5477. length = array == null ? 0 : array.length;
  5478. if (initAccum && length) {
  5479. accumulator = array[++index];
  5480. }
  5481. while (++index < length) {
  5482. accumulator = iteratee(accumulator, array[index], index, array);
  5483. }
  5484. return accumulator;
  5485. }
  5486. /**
  5487. * A specialized version of `_.reduceRight` for arrays without support for
  5488. * iteratee shorthands.
  5489. *
  5490. * @private
  5491. * @param {Array} [array] The array to iterate over.
  5492. * @param {Function} iteratee The function invoked per iteration.
  5493. * @param {*} [accumulator] The initial value.
  5494. * @param {boolean} [initAccum] Specify using the last element of `array` as
  5495. * the initial value.
  5496. * @returns {*} Returns the accumulated value.
  5497. */
  5498. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  5499. var length = array == null ? 0 : array.length;
  5500. if (initAccum && length) {
  5501. accumulator = array[--length];
  5502. }
  5503. while (length--) {
  5504. accumulator = iteratee(accumulator, array[length], length, array);
  5505. }
  5506. return accumulator;
  5507. }
  5508. /**
  5509. * A specialized version of `_.some` for arrays without support for iteratee
  5510. * shorthands.
  5511. *
  5512. * @private
  5513. * @param {Array} [array] The array to iterate over.
  5514. * @param {Function} predicate The function invoked per iteration.
  5515. * @returns {boolean} Returns `true` if any element passes the predicate check,
  5516. * else `false`.
  5517. */
  5518. function arraySome(array, predicate) {
  5519. var index = -1,
  5520. length = array == null ? 0 : array.length;
  5521. while (++index < length) {
  5522. if (predicate(array[index], index, array)) {
  5523. return true;
  5524. }
  5525. }
  5526. return false;
  5527. }
  5528. /**
  5529. * Gets the size of an ASCII `string`.
  5530. *
  5531. * @private
  5532. * @param {string} string The string inspect.
  5533. * @returns {number} Returns the string size.
  5534. */
  5535. var asciiSize = baseProperty('length');
  5536. /**
  5537. * Converts an ASCII `string` to an array.
  5538. *
  5539. * @private
  5540. * @param {string} string The string to convert.
  5541. * @returns {Array} Returns the converted array.
  5542. */
  5543. function asciiToArray(string) {
  5544. return string.split('');
  5545. }
  5546. /**
  5547. * Splits an ASCII `string` into an array of its words.
  5548. *
  5549. * @private
  5550. * @param {string} The string to inspect.
  5551. * @returns {Array} Returns the words of `string`.
  5552. */
  5553. function asciiWords(string) {
  5554. return string.match(reAsciiWord) || [];
  5555. }
  5556. /**
  5557. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  5558. * without support for iteratee shorthands, which iterates over `collection`
  5559. * using `eachFunc`.
  5560. *
  5561. * @private
  5562. * @param {Array|Object} collection The collection to inspect.
  5563. * @param {Function} predicate The function invoked per iteration.
  5564. * @param {Function} eachFunc The function to iterate over `collection`.
  5565. * @returns {*} Returns the found element or its key, else `undefined`.
  5566. */
  5567. function baseFindKey(collection, predicate, eachFunc) {
  5568. var result;
  5569. eachFunc(collection, function(value, key, collection) {
  5570. if (predicate(value, key, collection)) {
  5571. result = key;
  5572. return false;
  5573. }
  5574. });
  5575. return result;
  5576. }
  5577. /**
  5578. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  5579. * support for iteratee shorthands.
  5580. *
  5581. * @private
  5582. * @param {Array} array The array to inspect.
  5583. * @param {Function} predicate The function invoked per iteration.
  5584. * @param {number} fromIndex The index to search from.
  5585. * @param {boolean} [fromRight] Specify iterating from right to left.
  5586. * @returns {number} Returns the index of the matched value, else `-1`.
  5587. */
  5588. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  5589. var length = array.length,
  5590. index = fromIndex + (fromRight ? 1 : -1);
  5591. while ((fromRight ? index-- : ++index < length)) {
  5592. if (predicate(array[index], index, array)) {
  5593. return index;
  5594. }
  5595. }
  5596. return -1;
  5597. }
  5598. /**
  5599. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  5600. *
  5601. * @private
  5602. * @param {Array} array The array to inspect.
  5603. * @param {*} value The value to search for.
  5604. * @param {number} fromIndex The index to search from.
  5605. * @returns {number} Returns the index of the matched value, else `-1`.
  5606. */
  5607. function baseIndexOf(array, value, fromIndex) {
  5608. return value === value
  5609. ? strictIndexOf(array, value, fromIndex)
  5610. : baseFindIndex(array, baseIsNaN, fromIndex);
  5611. }
  5612. /**
  5613. * This function is like `baseIndexOf` except that it accepts a comparator.
  5614. *
  5615. * @private
  5616. * @param {Array} array The array to inspect.
  5617. * @param {*} value The value to search for.
  5618. * @param {number} fromIndex The index to search from.
  5619. * @param {Function} comparator The comparator invoked per element.
  5620. * @returns {number} Returns the index of the matched value, else `-1`.
  5621. */
  5622. function baseIndexOfWith(array, value, fromIndex, comparator) {
  5623. var index = fromIndex - 1,
  5624. length = array.length;
  5625. while (++index < length) {
  5626. if (comparator(array[index], value)) {
  5627. return index;
  5628. }
  5629. }
  5630. return -1;
  5631. }
  5632. /**
  5633. * The base implementation of `_.isNaN` without support for number objects.
  5634. *
  5635. * @private
  5636. * @param {*} value The value to check.
  5637. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  5638. */
  5639. function baseIsNaN(value) {
  5640. return value !== value;
  5641. }
  5642. /**
  5643. * The base implementation of `_.mean` and `_.meanBy` without support for
  5644. * iteratee shorthands.
  5645. *
  5646. * @private
  5647. * @param {Array} array The array to iterate over.
  5648. * @param {Function} iteratee The function invoked per iteration.
  5649. * @returns {number} Returns the mean.
  5650. */
  5651. function baseMean(array, iteratee) {
  5652. var length = array == null ? 0 : array.length;
  5653. return length ? (baseSum(array, iteratee) / length) : NAN;
  5654. }
  5655. /**
  5656. * The base implementation of `_.property` without support for deep paths.
  5657. *
  5658. * @private
  5659. * @param {string} key The key of the property to get.
  5660. * @returns {Function} Returns the new accessor function.
  5661. */
  5662. function baseProperty(key) {
  5663. return function(object) {
  5664. return object == null ? undefined : object[key];
  5665. };
  5666. }
  5667. /**
  5668. * The base implementation of `_.propertyOf` without support for deep paths.
  5669. *
  5670. * @private
  5671. * @param {Object} object The object to query.
  5672. * @returns {Function} Returns the new accessor function.
  5673. */
  5674. function basePropertyOf(object) {
  5675. return function(key) {
  5676. return object == null ? undefined : object[key];
  5677. };
  5678. }
  5679. /**
  5680. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  5681. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  5682. *
  5683. * @private
  5684. * @param {Array|Object} collection The collection to iterate over.
  5685. * @param {Function} iteratee The function invoked per iteration.
  5686. * @param {*} accumulator The initial value.
  5687. * @param {boolean} initAccum Specify using the first or last element of
  5688. * `collection` as the initial value.
  5689. * @param {Function} eachFunc The function to iterate over `collection`.
  5690. * @returns {*} Returns the accumulated value.
  5691. */
  5692. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  5693. eachFunc(collection, function(value, index, collection) {
  5694. accumulator = initAccum
  5695. ? (initAccum = false, value)
  5696. : iteratee(accumulator, value, index, collection);
  5697. });
  5698. return accumulator;
  5699. }
  5700. /**
  5701. * The base implementation of `_.sortBy` which uses `comparer` to define the
  5702. * sort order of `array` and replaces criteria objects with their corresponding
  5703. * values.
  5704. *
  5705. * @private
  5706. * @param {Array} array The array to sort.
  5707. * @param {Function} comparer The function to define sort order.
  5708. * @returns {Array} Returns `array`.
  5709. */
  5710. function baseSortBy(array, comparer) {
  5711. var length = array.length;
  5712. array.sort(comparer);
  5713. while (length--) {
  5714. array[length] = array[length].value;
  5715. }
  5716. return array;
  5717. }
  5718. /**
  5719. * The base implementation of `_.sum` and `_.sumBy` without support for
  5720. * iteratee shorthands.
  5721. *
  5722. * @private
  5723. * @param {Array} array The array to iterate over.
  5724. * @param {Function} iteratee The function invoked per iteration.
  5725. * @returns {number} Returns the sum.
  5726. */
  5727. function baseSum(array, iteratee) {
  5728. var result,
  5729. index = -1,
  5730. length = array.length;
  5731. while (++index < length) {
  5732. var current = iteratee(array[index]);
  5733. if (current !== undefined) {
  5734. result = result === undefined ? current : (result + current);
  5735. }
  5736. }
  5737. return result;
  5738. }
  5739. /**
  5740. * The base implementation of `_.times` without support for iteratee shorthands
  5741. * or max array length checks.
  5742. *
  5743. * @private
  5744. * @param {number} n The number of times to invoke `iteratee`.
  5745. * @param {Function} iteratee The function invoked per iteration.
  5746. * @returns {Array} Returns the array of results.
  5747. */
  5748. function baseTimes(n, iteratee) {
  5749. var index = -1,
  5750. result = Array(n);
  5751. while (++index < n) {
  5752. result[index] = iteratee(index);
  5753. }
  5754. return result;
  5755. }
  5756. /**
  5757. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  5758. * of key-value pairs for `object` corresponding to the property names of `props`.
  5759. *
  5760. * @private
  5761. * @param {Object} object The object to query.
  5762. * @param {Array} props The property names to get values for.
  5763. * @returns {Object} Returns the key-value pairs.
  5764. */
  5765. function baseToPairs(object, props) {
  5766. return arrayMap(props, function(key) {
  5767. return [key, object[key]];
  5768. });
  5769. }
  5770. /**
  5771. * The base implementation of `_.unary` without support for storing metadata.
  5772. *
  5773. * @private
  5774. * @param {Function} func The function to cap arguments for.
  5775. * @returns {Function} Returns the new capped function.
  5776. */
  5777. function baseUnary(func) {
  5778. return function(value) {
  5779. return func(value);
  5780. };
  5781. }
  5782. /**
  5783. * The base implementation of `_.values` and `_.valuesIn` which creates an
  5784. * array of `object` property values corresponding to the property names
  5785. * of `props`.
  5786. *
  5787. * @private
  5788. * @param {Object} object The object to query.
  5789. * @param {Array} props The property names to get values for.
  5790. * @returns {Object} Returns the array of property values.
  5791. */
  5792. function baseValues(object, props) {
  5793. return arrayMap(props, function(key) {
  5794. return object[key];
  5795. });
  5796. }
  5797. /**
  5798. * Checks if a `cache` value for `key` exists.
  5799. *
  5800. * @private
  5801. * @param {Object} cache The cache to query.
  5802. * @param {string} key The key of the entry to check.
  5803. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  5804. */
  5805. function cacheHas(cache, key) {
  5806. return cache.has(key);
  5807. }
  5808. /**
  5809. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  5810. * that is not found in the character symbols.
  5811. *
  5812. * @private
  5813. * @param {Array} strSymbols The string symbols to inspect.
  5814. * @param {Array} chrSymbols The character symbols to find.
  5815. * @returns {number} Returns the index of the first unmatched string symbol.
  5816. */
  5817. function charsStartIndex(strSymbols, chrSymbols) {
  5818. var index = -1,
  5819. length = strSymbols.length;
  5820. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  5821. return index;
  5822. }
  5823. /**
  5824. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  5825. * that is not found in the character symbols.
  5826. *
  5827. * @private
  5828. * @param {Array} strSymbols The string symbols to inspect.
  5829. * @param {Array} chrSymbols The character symbols to find.
  5830. * @returns {number} Returns the index of the last unmatched string symbol.
  5831. */
  5832. function charsEndIndex(strSymbols, chrSymbols) {
  5833. var index = strSymbols.length;
  5834. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  5835. return index;
  5836. }
  5837. /**
  5838. * Gets the number of `placeholder` occurrences in `array`.
  5839. *
  5840. * @private
  5841. * @param {Array} array The array to inspect.
  5842. * @param {*} placeholder The placeholder to search for.
  5843. * @returns {number} Returns the placeholder count.
  5844. */
  5845. function countHolders(array, placeholder) {
  5846. var length = array.length,
  5847. result = 0;
  5848. while (length--) {
  5849. if (array[length] === placeholder) {
  5850. ++result;
  5851. }
  5852. }
  5853. return result;
  5854. }
  5855. /**
  5856. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  5857. * letters to basic Latin letters.
  5858. *
  5859. * @private
  5860. * @param {string} letter The matched letter to deburr.
  5861. * @returns {string} Returns the deburred letter.
  5862. */
  5863. var deburrLetter = basePropertyOf(deburredLetters);
  5864. /**
  5865. * Used by `_.escape` to convert characters to HTML entities.
  5866. *
  5867. * @private
  5868. * @param {string} chr The matched character to escape.
  5869. * @returns {string} Returns the escaped character.
  5870. */
  5871. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  5872. /**
  5873. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  5874. *
  5875. * @private
  5876. * @param {string} chr The matched character to escape.
  5877. * @returns {string} Returns the escaped character.
  5878. */
  5879. function escapeStringChar(chr) {
  5880. return '\\' + stringEscapes[chr];
  5881. }
  5882. /**
  5883. * Gets the value at `key` of `object`.
  5884. *
  5885. * @private
  5886. * @param {Object} [object] The object to query.
  5887. * @param {string} key The key of the property to get.
  5888. * @returns {*} Returns the property value.
  5889. */
  5890. function getValue(object, key) {
  5891. return object == null ? undefined : object[key];
  5892. }
  5893. /**
  5894. * Checks if `string` contains Unicode symbols.
  5895. *
  5896. * @private
  5897. * @param {string} string The string to inspect.
  5898. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  5899. */
  5900. function hasUnicode(string) {
  5901. return reHasUnicode.test(string);
  5902. }
  5903. /**
  5904. * Checks if `string` contains a word composed of Unicode symbols.
  5905. *
  5906. * @private
  5907. * @param {string} string The string to inspect.
  5908. * @returns {boolean} Returns `true` if a word is found, else `false`.
  5909. */
  5910. function hasUnicodeWord(string) {
  5911. return reHasUnicodeWord.test(string);
  5912. }
  5913. /**
  5914. * Converts `iterator` to an array.
  5915. *
  5916. * @private
  5917. * @param {Object} iterator The iterator to convert.
  5918. * @returns {Array} Returns the converted array.
  5919. */
  5920. function iteratorToArray(iterator) {
  5921. var data,
  5922. result = [];
  5923. while (!(data = iterator.next()).done) {
  5924. result.push(data.value);
  5925. }
  5926. return result;
  5927. }
  5928. /**
  5929. * Converts `map` to its key-value pairs.
  5930. *
  5931. * @private
  5932. * @param {Object} map The map to convert.
  5933. * @returns {Array} Returns the key-value pairs.
  5934. */
  5935. function mapToArray(map) {
  5936. var index = -1,
  5937. result = Array(map.size);
  5938. map.forEach(function(value, key) {
  5939. result[++index] = [key, value];
  5940. });
  5941. return result;
  5942. }
  5943. /**
  5944. * Creates a unary function that invokes `func` with its argument transformed.
  5945. *
  5946. * @private
  5947. * @param {Function} func The function to wrap.
  5948. * @param {Function} transform The argument transform.
  5949. * @returns {Function} Returns the new function.
  5950. */
  5951. function overArg(func, transform) {
  5952. return function(arg) {
  5953. return func(transform(arg));
  5954. };
  5955. }
  5956. /**
  5957. * Replaces all `placeholder` elements in `array` with an internal placeholder
  5958. * and returns an array of their indexes.
  5959. *
  5960. * @private
  5961. * @param {Array} array The array to modify.
  5962. * @param {*} placeholder The placeholder to replace.
  5963. * @returns {Array} Returns the new array of placeholder indexes.
  5964. */
  5965. function replaceHolders(array, placeholder) {
  5966. var index = -1,
  5967. length = array.length,
  5968. resIndex = 0,
  5969. result = [];
  5970. while (++index < length) {
  5971. var value = array[index];
  5972. if (value === placeholder || value === PLACEHOLDER) {
  5973. array[index] = PLACEHOLDER;
  5974. result[resIndex++] = index;
  5975. }
  5976. }
  5977. return result;
  5978. }
  5979. /**
  5980. * Converts `set` to an array of its values.
  5981. *
  5982. * @private
  5983. * @param {Object} set The set to convert.
  5984. * @returns {Array} Returns the values.
  5985. */
  5986. function setToArray(set) {
  5987. var index = -1,
  5988. result = Array(set.size);
  5989. set.forEach(function(value) {
  5990. result[++index] = value;
  5991. });
  5992. return result;
  5993. }
  5994. /**
  5995. * Converts `set` to its value-value pairs.
  5996. *
  5997. * @private
  5998. * @param {Object} set The set to convert.
  5999. * @returns {Array} Returns the value-value pairs.
  6000. */
  6001. function setToPairs(set) {
  6002. var index = -1,
  6003. result = Array(set.size);
  6004. set.forEach(function(value) {
  6005. result[++index] = [value, value];
  6006. });
  6007. return result;
  6008. }
  6009. /**
  6010. * A specialized version of `_.indexOf` which performs strict equality
  6011. * comparisons of values, i.e. `===`.
  6012. *
  6013. * @private
  6014. * @param {Array} array The array to inspect.
  6015. * @param {*} value The value to search for.
  6016. * @param {number} fromIndex The index to search from.
  6017. * @returns {number} Returns the index of the matched value, else `-1`.
  6018. */
  6019. function strictIndexOf(array, value, fromIndex) {
  6020. var index = fromIndex - 1,
  6021. length = array.length;
  6022. while (++index < length) {
  6023. if (array[index] === value) {
  6024. return index;
  6025. }
  6026. }
  6027. return -1;
  6028. }
  6029. /**
  6030. * A specialized version of `_.lastIndexOf` which performs strict equality
  6031. * comparisons of values, i.e. `===`.
  6032. *
  6033. * @private
  6034. * @param {Array} array The array to inspect.
  6035. * @param {*} value The value to search for.
  6036. * @param {number} fromIndex The index to search from.
  6037. * @returns {number} Returns the index of the matched value, else `-1`.
  6038. */
  6039. function strictLastIndexOf(array, value, fromIndex) {
  6040. var index = fromIndex + 1;
  6041. while (index--) {
  6042. if (array[index] === value) {
  6043. return index;
  6044. }
  6045. }
  6046. return index;
  6047. }
  6048. /**
  6049. * Gets the number of symbols in `string`.
  6050. *
  6051. * @private
  6052. * @param {string} string The string to inspect.
  6053. * @returns {number} Returns the string size.
  6054. */
  6055. function stringSize(string) {
  6056. return hasUnicode(string)
  6057. ? unicodeSize(string)
  6058. : asciiSize(string);
  6059. }
  6060. /**
  6061. * Converts `string` to an array.
  6062. *
  6063. * @private
  6064. * @param {string} string The string to convert.
  6065. * @returns {Array} Returns the converted array.
  6066. */
  6067. function stringToArray(string) {
  6068. return hasUnicode(string)
  6069. ? unicodeToArray(string)
  6070. : asciiToArray(string);
  6071. }
  6072. /**
  6073. * Used by `_.unescape` to convert HTML entities to characters.
  6074. *
  6075. * @private
  6076. * @param {string} chr The matched character to unescape.
  6077. * @returns {string} Returns the unescaped character.
  6078. */
  6079. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  6080. /**
  6081. * Gets the size of a Unicode `string`.
  6082. *
  6083. * @private
  6084. * @param {string} string The string inspect.
  6085. * @returns {number} Returns the string size.
  6086. */
  6087. function unicodeSize(string) {
  6088. var result = reUnicode.lastIndex = 0;
  6089. while (reUnicode.test(string)) {
  6090. ++result;
  6091. }
  6092. return result;
  6093. }
  6094. /**
  6095. * Converts a Unicode `string` to an array.
  6096. *
  6097. * @private
  6098. * @param {string} string The string to convert.
  6099. * @returns {Array} Returns the converted array.
  6100. */
  6101. function unicodeToArray(string) {
  6102. return string.match(reUnicode) || [];
  6103. }
  6104. /**
  6105. * Splits a Unicode `string` into an array of its words.
  6106. *
  6107. * @private
  6108. * @param {string} The string to inspect.
  6109. * @returns {Array} Returns the words of `string`.
  6110. */
  6111. function unicodeWords(string) {
  6112. return string.match(reUnicodeWord) || [];
  6113. }
  6114. /*--------------------------------------------------------------------------*/
  6115. /**
  6116. * Create a new pristine `lodash` function using the `context` object.
  6117. *
  6118. * @static
  6119. * @memberOf _
  6120. * @since 1.1.0
  6121. * @category Util
  6122. * @param {Object} [context=root] The context object.
  6123. * @returns {Function} Returns a new `lodash` function.
  6124. * @example
  6125. *
  6126. * _.mixin({ 'foo': _.constant('foo') });
  6127. *
  6128. * var lodash = _.runInContext();
  6129. * lodash.mixin({ 'bar': lodash.constant('bar') });
  6130. *
  6131. * _.isFunction(_.foo);
  6132. * // => true
  6133. * _.isFunction(_.bar);
  6134. * // => false
  6135. *
  6136. * lodash.isFunction(lodash.foo);
  6137. * // => false
  6138. * lodash.isFunction(lodash.bar);
  6139. * // => true
  6140. *
  6141. * // Create a suped-up `defer` in Node.js.
  6142. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  6143. */
  6144. var runInContext = (function runInContext(context) {
  6145. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  6146. /** Built-in constructor references. */
  6147. var Array = context.Array,
  6148. Date = context.Date,
  6149. Error = context.Error,
  6150. Function = context.Function,
  6151. Math = context.Math,
  6152. Object = context.Object,
  6153. RegExp = context.RegExp,
  6154. String = context.String,
  6155. TypeError = context.TypeError;
  6156. /** Used for built-in method references. */
  6157. var arrayProto = Array.prototype,
  6158. funcProto = Function.prototype,
  6159. objectProto = Object.prototype;
  6160. /** Used to detect overreaching core-js shims. */
  6161. var coreJsData = context['__core-js_shared__'];
  6162. /** Used to resolve the decompiled source of functions. */
  6163. var funcToString = funcProto.toString;
  6164. /** Used to check objects for own properties. */
  6165. var hasOwnProperty = objectProto.hasOwnProperty;
  6166. /** Used to generate unique IDs. */
  6167. var idCounter = 0;
  6168. /** Used to detect methods masquerading as native. */
  6169. var maskSrcKey = (function() {
  6170. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  6171. return uid ? ('Symbol(src)_1.' + uid) : '';
  6172. }());
  6173. /**
  6174. * Used to resolve the
  6175. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  6176. * of values.
  6177. */
  6178. var nativeObjectToString = objectProto.toString;
  6179. /** Used to infer the `Object` constructor. */
  6180. var objectCtorString = funcToString.call(Object);
  6181. /** Used to restore the original `_` reference in `_.noConflict`. */
  6182. var oldDash = root._;
  6183. /** Used to detect if a method is native. */
  6184. var reIsNative = RegExp('^' +
  6185. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  6186. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  6187. );
  6188. /** Built-in value references. */
  6189. var Buffer = moduleExports ? context.Buffer : undefined,
  6190. Symbol = context.Symbol,
  6191. Uint8Array = context.Uint8Array,
  6192. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  6193. getPrototype = overArg(Object.getPrototypeOf, Object),
  6194. objectCreate = Object.create,
  6195. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  6196. splice = arrayProto.splice,
  6197. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  6198. symIterator = Symbol ? Symbol.iterator : undefined,
  6199. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  6200. var defineProperty = (function() {
  6201. try {
  6202. var func = getNative(Object, 'defineProperty');
  6203. func({}, '', {});
  6204. return func;
  6205. } catch (e) {}
  6206. }());
  6207. /** Mocked built-ins. */
  6208. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  6209. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  6210. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  6211. /* Built-in method references for those with the same name as other `lodash` methods. */
  6212. var nativeCeil = Math.ceil,
  6213. nativeFloor = Math.floor,
  6214. nativeGetSymbols = Object.getOwnPropertySymbols,
  6215. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  6216. nativeIsFinite = context.isFinite,
  6217. nativeJoin = arrayProto.join,
  6218. nativeKeys = overArg(Object.keys, Object),
  6219. nativeMax = Math.max,
  6220. nativeMin = Math.min,
  6221. nativeNow = Date.now,
  6222. nativeParseInt = context.parseInt,
  6223. nativeRandom = Math.random,
  6224. nativeReverse = arrayProto.reverse;
  6225. /* Built-in method references that are verified to be native. */
  6226. var DataView = getNative(context, 'DataView'),
  6227. Map = getNative(context, 'Map'),
  6228. Promise = getNative(context, 'Promise'),
  6229. Set = getNative(context, 'Set'),
  6230. WeakMap = getNative(context, 'WeakMap'),
  6231. nativeCreate = getNative(Object, 'create');
  6232. /** Used to store function metadata. */
  6233. var metaMap = WeakMap && new WeakMap;
  6234. /** Used to lookup unminified function names. */
  6235. var realNames = {};
  6236. /** Used to detect maps, sets, and weakmaps. */
  6237. var dataViewCtorString = toSource(DataView),
  6238. mapCtorString = toSource(Map),
  6239. promiseCtorString = toSource(Promise),
  6240. setCtorString = toSource(Set),
  6241. weakMapCtorString = toSource(WeakMap);
  6242. /** Used to convert symbols to primitives and strings. */
  6243. var symbolProto = Symbol ? Symbol.prototype : undefined,
  6244. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  6245. symbolToString = symbolProto ? symbolProto.toString : undefined;
  6246. /*------------------------------------------------------------------------*/
  6247. /**
  6248. * Creates a `lodash` object which wraps `value` to enable implicit method
  6249. * chain sequences. Methods that operate on and return arrays, collections,
  6250. * and functions can be chained together. Methods that retrieve a single value
  6251. * or may return a primitive value will automatically end the chain sequence
  6252. * and return the unwrapped value. Otherwise, the value must be unwrapped
  6253. * with `_#value`.
  6254. *
  6255. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  6256. * enabled using `_.chain`.
  6257. *
  6258. * The execution of chained methods is lazy, that is, it's deferred until
  6259. * `_#value` is implicitly or explicitly called.
  6260. *
  6261. * Lazy evaluation allows several methods to support shortcut fusion.
  6262. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  6263. * the creation of intermediate arrays and can greatly reduce the number of
  6264. * iteratee executions. Sections of a chain sequence qualify for shortcut
  6265. * fusion if the section is applied to an array and iteratees accept only
  6266. * one argument. The heuristic for whether a section qualifies for shortcut
  6267. * fusion is subject to change.
  6268. *
  6269. * Chaining is supported in custom builds as long as the `_#value` method is
  6270. * directly or indirectly included in the build.
  6271. *
  6272. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  6273. *
  6274. * The wrapper `Array` methods are:
  6275. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  6276. *
  6277. * The wrapper `String` methods are:
  6278. * `replace` and `split`
  6279. *
  6280. * The wrapper methods that support shortcut fusion are:
  6281. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  6282. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  6283. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  6284. *
  6285. * The chainable wrapper methods are:
  6286. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  6287. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  6288. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  6289. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  6290. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  6291. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  6292. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  6293. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  6294. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  6295. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  6296. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  6297. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  6298. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  6299. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  6300. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  6301. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  6302. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  6303. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  6304. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  6305. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  6306. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  6307. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  6308. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  6309. * `zipObject`, `zipObjectDeep`, and `zipWith`
  6310. *
  6311. * The wrapper methods that are **not** chainable by default are:
  6312. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  6313. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  6314. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  6315. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  6316. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  6317. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  6318. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  6319. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  6320. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  6321. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  6322. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  6323. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  6324. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  6325. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  6326. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  6327. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  6328. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  6329. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  6330. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  6331. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  6332. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  6333. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  6334. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  6335. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  6336. * `upperFirst`, `value`, and `words`
  6337. *
  6338. * @name _
  6339. * @constructor
  6340. * @category Seq
  6341. * @param {*} value The value to wrap in a `lodash` instance.
  6342. * @returns {Object} Returns the new `lodash` wrapper instance.
  6343. * @example
  6344. *
  6345. * function square(n) {
  6346. * return n * n;
  6347. * }
  6348. *
  6349. * var wrapped = _([1, 2, 3]);
  6350. *
  6351. * // Returns an unwrapped value.
  6352. * wrapped.reduce(_.add);
  6353. * // => 6
  6354. *
  6355. * // Returns a wrapped value.
  6356. * var squares = wrapped.map(square);
  6357. *
  6358. * _.isArray(squares);
  6359. * // => false
  6360. *
  6361. * _.isArray(squares.value());
  6362. * // => true
  6363. */
  6364. function lodash(value) {
  6365. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  6366. if (value instanceof LodashWrapper) {
  6367. return value;
  6368. }
  6369. if (hasOwnProperty.call(value, '__wrapped__')) {
  6370. return wrapperClone(value);
  6371. }
  6372. }
  6373. return new LodashWrapper(value);
  6374. }
  6375. /**
  6376. * The base implementation of `_.create` without support for assigning
  6377. * properties to the created object.
  6378. *
  6379. * @private
  6380. * @param {Object} proto The object to inherit from.
  6381. * @returns {Object} Returns the new object.
  6382. */
  6383. var baseCreate = (function() {
  6384. function object() {}
  6385. return function(proto) {
  6386. if (!isObject(proto)) {
  6387. return {};
  6388. }
  6389. if (objectCreate) {
  6390. return objectCreate(proto);
  6391. }
  6392. object.prototype = proto;
  6393. var result = new object;
  6394. object.prototype = undefined;
  6395. return result;
  6396. };
  6397. }());
  6398. /**
  6399. * The function whose prototype chain sequence wrappers inherit from.
  6400. *
  6401. * @private
  6402. */
  6403. function baseLodash() {
  6404. // No operation performed.
  6405. }
  6406. /**
  6407. * The base constructor for creating `lodash` wrapper objects.
  6408. *
  6409. * @private
  6410. * @param {*} value The value to wrap.
  6411. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  6412. */
  6413. function LodashWrapper(value, chainAll) {
  6414. this.__wrapped__ = value;
  6415. this.__actions__ = [];
  6416. this.__chain__ = !!chainAll;
  6417. this.__index__ = 0;
  6418. this.__values__ = undefined;
  6419. }
  6420. /**
  6421. * By default, the template delimiters used by lodash are like those in
  6422. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  6423. * following template settings to use alternative delimiters.
  6424. *
  6425. * @static
  6426. * @memberOf _
  6427. * @type {Object}
  6428. */
  6429. lodash.templateSettings = {
  6430. /**
  6431. * Used to detect `data` property values to be HTML-escaped.
  6432. *
  6433. * @memberOf _.templateSettings
  6434. * @type {RegExp}
  6435. */
  6436. 'escape': reEscape,
  6437. /**
  6438. * Used to detect code to be evaluated.
  6439. *
  6440. * @memberOf _.templateSettings
  6441. * @type {RegExp}
  6442. */
  6443. 'evaluate': reEvaluate,
  6444. /**
  6445. * Used to detect `data` property values to inject.
  6446. *
  6447. * @memberOf _.templateSettings
  6448. * @type {RegExp}
  6449. */
  6450. 'interpolate': reInterpolate,
  6451. /**
  6452. * Used to reference the data object in the template text.
  6453. *
  6454. * @memberOf _.templateSettings
  6455. * @type {string}
  6456. */
  6457. 'variable': '',
  6458. /**
  6459. * Used to import variables into the compiled template.
  6460. *
  6461. * @memberOf _.templateSettings
  6462. * @type {Object}
  6463. */
  6464. 'imports': {
  6465. /**
  6466. * A reference to the `lodash` function.
  6467. *
  6468. * @memberOf _.templateSettings.imports
  6469. * @type {Function}
  6470. */
  6471. '_': lodash
  6472. }
  6473. };
  6474. // Ensure wrappers are instances of `baseLodash`.
  6475. lodash.prototype = baseLodash.prototype;
  6476. lodash.prototype.constructor = lodash;
  6477. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  6478. LodashWrapper.prototype.constructor = LodashWrapper;
  6479. /*------------------------------------------------------------------------*/
  6480. /**
  6481. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  6482. *
  6483. * @private
  6484. * @constructor
  6485. * @param {*} value The value to wrap.
  6486. */
  6487. function LazyWrapper(value) {
  6488. this.__wrapped__ = value;
  6489. this.__actions__ = [];
  6490. this.__dir__ = 1;
  6491. this.__filtered__ = false;
  6492. this.__iteratees__ = [];
  6493. this.__takeCount__ = MAX_ARRAY_LENGTH;
  6494. this.__views__ = [];
  6495. }
  6496. /**
  6497. * Creates a clone of the lazy wrapper object.
  6498. *
  6499. * @private
  6500. * @name clone
  6501. * @memberOf LazyWrapper
  6502. * @returns {Object} Returns the cloned `LazyWrapper` object.
  6503. */
  6504. function lazyClone() {
  6505. var result = new LazyWrapper(this.__wrapped__);
  6506. result.__actions__ = copyArray(this.__actions__);
  6507. result.__dir__ = this.__dir__;
  6508. result.__filtered__ = this.__filtered__;
  6509. result.__iteratees__ = copyArray(this.__iteratees__);
  6510. result.__takeCount__ = this.__takeCount__;
  6511. result.__views__ = copyArray(this.__views__);
  6512. return result;
  6513. }
  6514. /**
  6515. * Reverses the direction of lazy iteration.
  6516. *
  6517. * @private
  6518. * @name reverse
  6519. * @memberOf LazyWrapper
  6520. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  6521. */
  6522. function lazyReverse() {
  6523. if (this.__filtered__) {
  6524. var result = new LazyWrapper(this);
  6525. result.__dir__ = -1;
  6526. result.__filtered__ = true;
  6527. } else {
  6528. result = this.clone();
  6529. result.__dir__ *= -1;
  6530. }
  6531. return result;
  6532. }
  6533. /**
  6534. * Extracts the unwrapped value from its lazy wrapper.
  6535. *
  6536. * @private
  6537. * @name value
  6538. * @memberOf LazyWrapper
  6539. * @returns {*} Returns the unwrapped value.
  6540. */
  6541. function lazyValue() {
  6542. var array = this.__wrapped__.value(),
  6543. dir = this.__dir__,
  6544. isArr = isArray(array),
  6545. isRight = dir < 0,
  6546. arrLength = isArr ? array.length : 0,
  6547. view = getView(0, arrLength, this.__views__),
  6548. start = view.start,
  6549. end = view.end,
  6550. length = end - start,
  6551. index = isRight ? end : (start - 1),
  6552. iteratees = this.__iteratees__,
  6553. iterLength = iteratees.length,
  6554. resIndex = 0,
  6555. takeCount = nativeMin(length, this.__takeCount__);
  6556. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  6557. return baseWrapperValue(array, this.__actions__);
  6558. }
  6559. var result = [];
  6560. outer:
  6561. while (length-- && resIndex < takeCount) {
  6562. index += dir;
  6563. var iterIndex = -1,
  6564. value = array[index];
  6565. while (++iterIndex < iterLength) {
  6566. var data = iteratees[iterIndex],
  6567. iteratee = data.iteratee,
  6568. type = data.type,
  6569. computed = iteratee(value);
  6570. if (type == LAZY_MAP_FLAG) {
  6571. value = computed;
  6572. } else if (!computed) {
  6573. if (type == LAZY_FILTER_FLAG) {
  6574. continue outer;
  6575. } else {
  6576. break outer;
  6577. }
  6578. }
  6579. }
  6580. result[resIndex++] = value;
  6581. }
  6582. return result;
  6583. }
  6584. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  6585. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  6586. LazyWrapper.prototype.constructor = LazyWrapper;
  6587. /*------------------------------------------------------------------------*/
  6588. /**
  6589. * Creates a hash object.
  6590. *
  6591. * @private
  6592. * @constructor
  6593. * @param {Array} [entries] The key-value pairs to cache.
  6594. */
  6595. function Hash(entries) {
  6596. var index = -1,
  6597. length = entries == null ? 0 : entries.length;
  6598. this.clear();
  6599. while (++index < length) {
  6600. var entry = entries[index];
  6601. this.set(entry[0], entry[1]);
  6602. }
  6603. }
  6604. /**
  6605. * Removes all key-value entries from the hash.
  6606. *
  6607. * @private
  6608. * @name clear
  6609. * @memberOf Hash
  6610. */
  6611. function hashClear() {
  6612. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  6613. this.size = 0;
  6614. }
  6615. /**
  6616. * Removes `key` and its value from the hash.
  6617. *
  6618. * @private
  6619. * @name delete
  6620. * @memberOf Hash
  6621. * @param {Object} hash The hash to modify.
  6622. * @param {string} key The key of the value to remove.
  6623. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6624. */
  6625. function hashDelete(key) {
  6626. var result = this.has(key) && delete this.__data__[key];
  6627. this.size -= result ? 1 : 0;
  6628. return result;
  6629. }
  6630. /**
  6631. * Gets the hash value for `key`.
  6632. *
  6633. * @private
  6634. * @name get
  6635. * @memberOf Hash
  6636. * @param {string} key The key of the value to get.
  6637. * @returns {*} Returns the entry value.
  6638. */
  6639. function hashGet(key) {
  6640. var data = this.__data__;
  6641. if (nativeCreate) {
  6642. var result = data[key];
  6643. return result === HASH_UNDEFINED ? undefined : result;
  6644. }
  6645. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  6646. }
  6647. /**
  6648. * Checks if a hash value for `key` exists.
  6649. *
  6650. * @private
  6651. * @name has
  6652. * @memberOf Hash
  6653. * @param {string} key The key of the entry to check.
  6654. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6655. */
  6656. function hashHas(key) {
  6657. var data = this.__data__;
  6658. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  6659. }
  6660. /**
  6661. * Sets the hash `key` to `value`.
  6662. *
  6663. * @private
  6664. * @name set
  6665. * @memberOf Hash
  6666. * @param {string} key The key of the value to set.
  6667. * @param {*} value The value to set.
  6668. * @returns {Object} Returns the hash instance.
  6669. */
  6670. function hashSet(key, value) {
  6671. var data = this.__data__;
  6672. this.size += this.has(key) ? 0 : 1;
  6673. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  6674. return this;
  6675. }
  6676. // Add methods to `Hash`.
  6677. Hash.prototype.clear = hashClear;
  6678. Hash.prototype['delete'] = hashDelete;
  6679. Hash.prototype.get = hashGet;
  6680. Hash.prototype.has = hashHas;
  6681. Hash.prototype.set = hashSet;
  6682. /*------------------------------------------------------------------------*/
  6683. /**
  6684. * Creates an list cache object.
  6685. *
  6686. * @private
  6687. * @constructor
  6688. * @param {Array} [entries] The key-value pairs to cache.
  6689. */
  6690. function ListCache(entries) {
  6691. var index = -1,
  6692. length = entries == null ? 0 : entries.length;
  6693. this.clear();
  6694. while (++index < length) {
  6695. var entry = entries[index];
  6696. this.set(entry[0], entry[1]);
  6697. }
  6698. }
  6699. /**
  6700. * Removes all key-value entries from the list cache.
  6701. *
  6702. * @private
  6703. * @name clear
  6704. * @memberOf ListCache
  6705. */
  6706. function listCacheClear() {
  6707. this.__data__ = [];
  6708. this.size = 0;
  6709. }
  6710. /**
  6711. * Removes `key` and its value from the list cache.
  6712. *
  6713. * @private
  6714. * @name delete
  6715. * @memberOf ListCache
  6716. * @param {string} key The key of the value to remove.
  6717. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6718. */
  6719. function listCacheDelete(key) {
  6720. var data = this.__data__,
  6721. index = assocIndexOf(data, key);
  6722. if (index < 0) {
  6723. return false;
  6724. }
  6725. var lastIndex = data.length - 1;
  6726. if (index == lastIndex) {
  6727. data.pop();
  6728. } else {
  6729. splice.call(data, index, 1);
  6730. }
  6731. --this.size;
  6732. return true;
  6733. }
  6734. /**
  6735. * Gets the list cache value for `key`.
  6736. *
  6737. * @private
  6738. * @name get
  6739. * @memberOf ListCache
  6740. * @param {string} key The key of the value to get.
  6741. * @returns {*} Returns the entry value.
  6742. */
  6743. function listCacheGet(key) {
  6744. var data = this.__data__,
  6745. index = assocIndexOf(data, key);
  6746. return index < 0 ? undefined : data[index][1];
  6747. }
  6748. /**
  6749. * Checks if a list cache value for `key` exists.
  6750. *
  6751. * @private
  6752. * @name has
  6753. * @memberOf ListCache
  6754. * @param {string} key The key of the entry to check.
  6755. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6756. */
  6757. function listCacheHas(key) {
  6758. return assocIndexOf(this.__data__, key) > -1;
  6759. }
  6760. /**
  6761. * Sets the list cache `key` to `value`.
  6762. *
  6763. * @private
  6764. * @name set
  6765. * @memberOf ListCache
  6766. * @param {string} key The key of the value to set.
  6767. * @param {*} value The value to set.
  6768. * @returns {Object} Returns the list cache instance.
  6769. */
  6770. function listCacheSet(key, value) {
  6771. var data = this.__data__,
  6772. index = assocIndexOf(data, key);
  6773. if (index < 0) {
  6774. ++this.size;
  6775. data.push([key, value]);
  6776. } else {
  6777. data[index][1] = value;
  6778. }
  6779. return this;
  6780. }
  6781. // Add methods to `ListCache`.
  6782. ListCache.prototype.clear = listCacheClear;
  6783. ListCache.prototype['delete'] = listCacheDelete;
  6784. ListCache.prototype.get = listCacheGet;
  6785. ListCache.prototype.has = listCacheHas;
  6786. ListCache.prototype.set = listCacheSet;
  6787. /*------------------------------------------------------------------------*/
  6788. /**
  6789. * Creates a map cache object to store key-value pairs.
  6790. *
  6791. * @private
  6792. * @constructor
  6793. * @param {Array} [entries] The key-value pairs to cache.
  6794. */
  6795. function MapCache(entries) {
  6796. var index = -1,
  6797. length = entries == null ? 0 : entries.length;
  6798. this.clear();
  6799. while (++index < length) {
  6800. var entry = entries[index];
  6801. this.set(entry[0], entry[1]);
  6802. }
  6803. }
  6804. /**
  6805. * Removes all key-value entries from the map.
  6806. *
  6807. * @private
  6808. * @name clear
  6809. * @memberOf MapCache
  6810. */
  6811. function mapCacheClear() {
  6812. this.size = 0;
  6813. this.__data__ = {
  6814. 'hash': new Hash,
  6815. 'map': new (Map || ListCache),
  6816. 'string': new Hash
  6817. };
  6818. }
  6819. /**
  6820. * Removes `key` and its value from the map.
  6821. *
  6822. * @private
  6823. * @name delete
  6824. * @memberOf MapCache
  6825. * @param {string} key The key of the value to remove.
  6826. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6827. */
  6828. function mapCacheDelete(key) {
  6829. var result = getMapData(this, key)['delete'](key);
  6830. this.size -= result ? 1 : 0;
  6831. return result;
  6832. }
  6833. /**
  6834. * Gets the map value for `key`.
  6835. *
  6836. * @private
  6837. * @name get
  6838. * @memberOf MapCache
  6839. * @param {string} key The key of the value to get.
  6840. * @returns {*} Returns the entry value.
  6841. */
  6842. function mapCacheGet(key) {
  6843. return getMapData(this, key).get(key);
  6844. }
  6845. /**
  6846. * Checks if a map value for `key` exists.
  6847. *
  6848. * @private
  6849. * @name has
  6850. * @memberOf MapCache
  6851. * @param {string} key The key of the entry to check.
  6852. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6853. */
  6854. function mapCacheHas(key) {
  6855. return getMapData(this, key).has(key);
  6856. }
  6857. /**
  6858. * Sets the map `key` to `value`.
  6859. *
  6860. * @private
  6861. * @name set
  6862. * @memberOf MapCache
  6863. * @param {string} key The key of the value to set.
  6864. * @param {*} value The value to set.
  6865. * @returns {Object} Returns the map cache instance.
  6866. */
  6867. function mapCacheSet(key, value) {
  6868. var data = getMapData(this, key),
  6869. size = data.size;
  6870. data.set(key, value);
  6871. this.size += data.size == size ? 0 : 1;
  6872. return this;
  6873. }
  6874. // Add methods to `MapCache`.
  6875. MapCache.prototype.clear = mapCacheClear;
  6876. MapCache.prototype['delete'] = mapCacheDelete;
  6877. MapCache.prototype.get = mapCacheGet;
  6878. MapCache.prototype.has = mapCacheHas;
  6879. MapCache.prototype.set = mapCacheSet;
  6880. /*------------------------------------------------------------------------*/
  6881. /**
  6882. *
  6883. * Creates an array cache object to store unique values.
  6884. *
  6885. * @private
  6886. * @constructor
  6887. * @param {Array} [values] The values to cache.
  6888. */
  6889. function SetCache(values) {
  6890. var index = -1,
  6891. length = values == null ? 0 : values.length;
  6892. this.__data__ = new MapCache;
  6893. while (++index < length) {
  6894. this.add(values[index]);
  6895. }
  6896. }
  6897. /**
  6898. * Adds `value` to the array cache.
  6899. *
  6900. * @private
  6901. * @name add
  6902. * @memberOf SetCache
  6903. * @alias push
  6904. * @param {*} value The value to cache.
  6905. * @returns {Object} Returns the cache instance.
  6906. */
  6907. function setCacheAdd(value) {
  6908. this.__data__.set(value, HASH_UNDEFINED);
  6909. return this;
  6910. }
  6911. /**
  6912. * Checks if `value` is in the array cache.
  6913. *
  6914. * @private
  6915. * @name has
  6916. * @memberOf SetCache
  6917. * @param {*} value The value to search for.
  6918. * @returns {number} Returns `true` if `value` is found, else `false`.
  6919. */
  6920. function setCacheHas(value) {
  6921. return this.__data__.has(value);
  6922. }
  6923. // Add methods to `SetCache`.
  6924. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  6925. SetCache.prototype.has = setCacheHas;
  6926. /*------------------------------------------------------------------------*/
  6927. /**
  6928. * Creates a stack cache object to store key-value pairs.
  6929. *
  6930. * @private
  6931. * @constructor
  6932. * @param {Array} [entries] The key-value pairs to cache.
  6933. */
  6934. function Stack(entries) {
  6935. var data = this.__data__ = new ListCache(entries);
  6936. this.size = data.size;
  6937. }
  6938. /**
  6939. * Removes all key-value entries from the stack.
  6940. *
  6941. * @private
  6942. * @name clear
  6943. * @memberOf Stack
  6944. */
  6945. function stackClear() {
  6946. this.__data__ = new ListCache;
  6947. this.size = 0;
  6948. }
  6949. /**
  6950. * Removes `key` and its value from the stack.
  6951. *
  6952. * @private
  6953. * @name delete
  6954. * @memberOf Stack
  6955. * @param {string} key The key of the value to remove.
  6956. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6957. */
  6958. function stackDelete(key) {
  6959. var data = this.__data__,
  6960. result = data['delete'](key);
  6961. this.size = data.size;
  6962. return result;
  6963. }
  6964. /**
  6965. * Gets the stack value for `key`.
  6966. *
  6967. * @private
  6968. * @name get
  6969. * @memberOf Stack
  6970. * @param {string} key The key of the value to get.
  6971. * @returns {*} Returns the entry value.
  6972. */
  6973. function stackGet(key) {
  6974. return this.__data__.get(key);
  6975. }
  6976. /**
  6977. * Checks if a stack value for `key` exists.
  6978. *
  6979. * @private
  6980. * @name has
  6981. * @memberOf Stack
  6982. * @param {string} key The key of the entry to check.
  6983. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6984. */
  6985. function stackHas(key) {
  6986. return this.__data__.has(key);
  6987. }
  6988. /**
  6989. * Sets the stack `key` to `value`.
  6990. *
  6991. * @private
  6992. * @name set
  6993. * @memberOf Stack
  6994. * @param {string} key The key of the value to set.
  6995. * @param {*} value The value to set.
  6996. * @returns {Object} Returns the stack cache instance.
  6997. */
  6998. function stackSet(key, value) {
  6999. var data = this.__data__;
  7000. if (data instanceof ListCache) {
  7001. var pairs = data.__data__;
  7002. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  7003. pairs.push([key, value]);
  7004. this.size = ++data.size;
  7005. return this;
  7006. }
  7007. data = this.__data__ = new MapCache(pairs);
  7008. }
  7009. data.set(key, value);
  7010. this.size = data.size;
  7011. return this;
  7012. }
  7013. // Add methods to `Stack`.
  7014. Stack.prototype.clear = stackClear;
  7015. Stack.prototype['delete'] = stackDelete;
  7016. Stack.prototype.get = stackGet;
  7017. Stack.prototype.has = stackHas;
  7018. Stack.prototype.set = stackSet;
  7019. /*------------------------------------------------------------------------*/
  7020. /**
  7021. * Creates an array of the enumerable property names of the array-like `value`.
  7022. *
  7023. * @private
  7024. * @param {*} value The value to query.
  7025. * @param {boolean} inherited Specify returning inherited property names.
  7026. * @returns {Array} Returns the array of property names.
  7027. */
  7028. function arrayLikeKeys(value, inherited) {
  7029. var isArr = isArray(value),
  7030. isArg = !isArr && isArguments(value),
  7031. isBuff = !isArr && !isArg && isBuffer(value),
  7032. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  7033. skipIndexes = isArr || isArg || isBuff || isType,
  7034. result = skipIndexes ? baseTimes(value.length, String) : [],
  7035. length = result.length;
  7036. for (var key in value) {
  7037. if ((inherited || hasOwnProperty.call(value, key)) &&
  7038. !(skipIndexes && (
  7039. // Safari 9 has enumerable `arguments.length` in strict mode.
  7040. key == 'length' ||
  7041. // Node.js 0.10 has enumerable non-index properties on buffers.
  7042. (isBuff && (key == 'offset' || key == 'parent')) ||
  7043. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  7044. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  7045. // Skip index properties.
  7046. isIndex(key, length)
  7047. ))) {
  7048. result.push(key);
  7049. }
  7050. }
  7051. return result;
  7052. }
  7053. /**
  7054. * A specialized version of `_.sample` for arrays.
  7055. *
  7056. * @private
  7057. * @param {Array} array The array to sample.
  7058. * @returns {*} Returns the random element.
  7059. */
  7060. function arraySample(array) {
  7061. var length = array.length;
  7062. return length ? array[baseRandom(0, length - 1)] : undefined;
  7063. }
  7064. /**
  7065. * A specialized version of `_.sampleSize` for arrays.
  7066. *
  7067. * @private
  7068. * @param {Array} array The array to sample.
  7069. * @param {number} n The number of elements to sample.
  7070. * @returns {Array} Returns the random elements.
  7071. */
  7072. function arraySampleSize(array, n) {
  7073. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  7074. }
  7075. /**
  7076. * A specialized version of `_.shuffle` for arrays.
  7077. *
  7078. * @private
  7079. * @param {Array} array The array to shuffle.
  7080. * @returns {Array} Returns the new shuffled array.
  7081. */
  7082. function arrayShuffle(array) {
  7083. return shuffleSelf(copyArray(array));
  7084. }
  7085. /**
  7086. * This function is like `assignValue` except that it doesn't assign
  7087. * `undefined` values.
  7088. *
  7089. * @private
  7090. * @param {Object} object The object to modify.
  7091. * @param {string} key The key of the property to assign.
  7092. * @param {*} value The value to assign.
  7093. */
  7094. function assignMergeValue(object, key, value) {
  7095. if ((value !== undefined && !eq(object[key], value)) ||
  7096. (value === undefined && !(key in object))) {
  7097. baseAssignValue(object, key, value);
  7098. }
  7099. }
  7100. /**
  7101. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  7102. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  7103. * for equality comparisons.
  7104. *
  7105. * @private
  7106. * @param {Object} object The object to modify.
  7107. * @param {string} key The key of the property to assign.
  7108. * @param {*} value The value to assign.
  7109. */
  7110. function assignValue(object, key, value) {
  7111. var objValue = object[key];
  7112. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  7113. (value === undefined && !(key in object))) {
  7114. baseAssignValue(object, key, value);
  7115. }
  7116. }
  7117. /**
  7118. * Gets the index at which the `key` is found in `array` of key-value pairs.
  7119. *
  7120. * @private
  7121. * @param {Array} array The array to inspect.
  7122. * @param {*} key The key to search for.
  7123. * @returns {number} Returns the index of the matched value, else `-1`.
  7124. */
  7125. function assocIndexOf(array, key) {
  7126. var length = array.length;
  7127. while (length--) {
  7128. if (eq(array[length][0], key)) {
  7129. return length;
  7130. }
  7131. }
  7132. return -1;
  7133. }
  7134. /**
  7135. * Aggregates elements of `collection` on `accumulator` with keys transformed
  7136. * by `iteratee` and values set by `setter`.
  7137. *
  7138. * @private
  7139. * @param {Array|Object} collection The collection to iterate over.
  7140. * @param {Function} setter The function to set `accumulator` values.
  7141. * @param {Function} iteratee The iteratee to transform keys.
  7142. * @param {Object} accumulator The initial aggregated object.
  7143. * @returns {Function} Returns `accumulator`.
  7144. */
  7145. function baseAggregator(collection, setter, iteratee, accumulator) {
  7146. baseEach(collection, function(value, key, collection) {
  7147. setter(accumulator, value, iteratee(value), collection);
  7148. });
  7149. return accumulator;
  7150. }
  7151. /**
  7152. * The base implementation of `_.assign` without support for multiple sources
  7153. * or `customizer` functions.
  7154. *
  7155. * @private
  7156. * @param {Object} object The destination object.
  7157. * @param {Object} source The source object.
  7158. * @returns {Object} Returns `object`.
  7159. */
  7160. function baseAssign(object, source) {
  7161. return object && copyObject(source, keys(source), object);
  7162. }
  7163. /**
  7164. * The base implementation of `_.assignIn` without support for multiple sources
  7165. * or `customizer` functions.
  7166. *
  7167. * @private
  7168. * @param {Object} object The destination object.
  7169. * @param {Object} source The source object.
  7170. * @returns {Object} Returns `object`.
  7171. */
  7172. function baseAssignIn(object, source) {
  7173. return object && copyObject(source, keysIn(source), object);
  7174. }
  7175. /**
  7176. * The base implementation of `assignValue` and `assignMergeValue` without
  7177. * value checks.
  7178. *
  7179. * @private
  7180. * @param {Object} object The object to modify.
  7181. * @param {string} key The key of the property to assign.
  7182. * @param {*} value The value to assign.
  7183. */
  7184. function baseAssignValue(object, key, value) {
  7185. if (key == '__proto__' && defineProperty) {
  7186. defineProperty(object, key, {
  7187. 'configurable': true,
  7188. 'enumerable': true,
  7189. 'value': value,
  7190. 'writable': true
  7191. });
  7192. } else {
  7193. object[key] = value;
  7194. }
  7195. }
  7196. /**
  7197. * The base implementation of `_.at` without support for individual paths.
  7198. *
  7199. * @private
  7200. * @param {Object} object The object to iterate over.
  7201. * @param {string[]} paths The property paths to pick.
  7202. * @returns {Array} Returns the picked elements.
  7203. */
  7204. function baseAt(object, paths) {
  7205. var index = -1,
  7206. length = paths.length,
  7207. result = Array(length),
  7208. skip = object == null;
  7209. while (++index < length) {
  7210. result[index] = skip ? undefined : get(object, paths[index]);
  7211. }
  7212. return result;
  7213. }
  7214. /**
  7215. * The base implementation of `_.clamp` which doesn't coerce arguments.
  7216. *
  7217. * @private
  7218. * @param {number} number The number to clamp.
  7219. * @param {number} [lower] The lower bound.
  7220. * @param {number} upper The upper bound.
  7221. * @returns {number} Returns the clamped number.
  7222. */
  7223. function baseClamp(number, lower, upper) {
  7224. if (number === number) {
  7225. if (upper !== undefined) {
  7226. number = number <= upper ? number : upper;
  7227. }
  7228. if (lower !== undefined) {
  7229. number = number >= lower ? number : lower;
  7230. }
  7231. }
  7232. return number;
  7233. }
  7234. /**
  7235. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  7236. * traversed objects.
  7237. *
  7238. * @private
  7239. * @param {*} value The value to clone.
  7240. * @param {boolean} bitmask The bitmask flags.
  7241. * 1 - Deep clone
  7242. * 2 - Flatten inherited properties
  7243. * 4 - Clone symbols
  7244. * @param {Function} [customizer] The function to customize cloning.
  7245. * @param {string} [key] The key of `value`.
  7246. * @param {Object} [object] The parent object of `value`.
  7247. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  7248. * @returns {*} Returns the cloned value.
  7249. */
  7250. function baseClone(value, bitmask, customizer, key, object, stack) {
  7251. var result,
  7252. isDeep = bitmask & CLONE_DEEP_FLAG,
  7253. isFlat = bitmask & CLONE_FLAT_FLAG,
  7254. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  7255. if (customizer) {
  7256. result = object ? customizer(value, key, object, stack) : customizer(value);
  7257. }
  7258. if (result !== undefined) {
  7259. return result;
  7260. }
  7261. if (!isObject(value)) {
  7262. return value;
  7263. }
  7264. var isArr = isArray(value);
  7265. if (isArr) {
  7266. result = initCloneArray(value);
  7267. if (!isDeep) {
  7268. return copyArray(value, result);
  7269. }
  7270. } else {
  7271. var tag = getTag(value),
  7272. isFunc = tag == funcTag || tag == genTag;
  7273. if (isBuffer(value)) {
  7274. return cloneBuffer(value, isDeep);
  7275. }
  7276. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  7277. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  7278. if (!isDeep) {
  7279. return isFlat
  7280. ? copySymbolsIn(value, baseAssignIn(result, value))
  7281. : copySymbols(value, baseAssign(result, value));
  7282. }
  7283. } else {
  7284. if (!cloneableTags[tag]) {
  7285. return object ? value : {};
  7286. }
  7287. result = initCloneByTag(value, tag, isDeep);
  7288. }
  7289. }
  7290. // Check for circular references and return its corresponding clone.
  7291. stack || (stack = new Stack);
  7292. var stacked = stack.get(value);
  7293. if (stacked) {
  7294. return stacked;
  7295. }
  7296. stack.set(value, result);
  7297. if (isSet(value)) {
  7298. value.forEach(function(subValue) {
  7299. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  7300. });
  7301. return result;
  7302. }
  7303. if (isMap(value)) {
  7304. value.forEach(function(subValue, key) {
  7305. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  7306. });
  7307. return result;
  7308. }
  7309. var keysFunc = isFull
  7310. ? (isFlat ? getAllKeysIn : getAllKeys)
  7311. : (isFlat ? keysIn : keys);
  7312. var props = isArr ? undefined : keysFunc(value);
  7313. arrayEach(props || value, function(subValue, key) {
  7314. if (props) {
  7315. key = subValue;
  7316. subValue = value[key];
  7317. }
  7318. // Recursively populate clone (susceptible to call stack limits).
  7319. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  7320. });
  7321. return result;
  7322. }
  7323. /**
  7324. * The base implementation of `_.conforms` which doesn't clone `source`.
  7325. *
  7326. * @private
  7327. * @param {Object} source The object of property predicates to conform to.
  7328. * @returns {Function} Returns the new spec function.
  7329. */
  7330. function baseConforms(source) {
  7331. var props = keys(source);
  7332. return function(object) {
  7333. return baseConformsTo(object, source, props);
  7334. };
  7335. }
  7336. /**
  7337. * The base implementation of `_.conformsTo` which accepts `props` to check.
  7338. *
  7339. * @private
  7340. * @param {Object} object The object to inspect.
  7341. * @param {Object} source The object of property predicates to conform to.
  7342. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  7343. */
  7344. function baseConformsTo(object, source, props) {
  7345. var length = props.length;
  7346. if (object == null) {
  7347. return !length;
  7348. }
  7349. object = Object(object);
  7350. while (length--) {
  7351. var key = props[length],
  7352. predicate = source[key],
  7353. value = object[key];
  7354. if ((value === undefined && !(key in object)) || !predicate(value)) {
  7355. return false;
  7356. }
  7357. }
  7358. return true;
  7359. }
  7360. /**
  7361. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  7362. * to provide to `func`.
  7363. *
  7364. * @private
  7365. * @param {Function} func The function to delay.
  7366. * @param {number} wait The number of milliseconds to delay invocation.
  7367. * @param {Array} args The arguments to provide to `func`.
  7368. * @returns {number|Object} Returns the timer id or timeout object.
  7369. */
  7370. function baseDelay(func, wait, args) {
  7371. if (typeof func != 'function') {
  7372. throw new TypeError(FUNC_ERROR_TEXT);
  7373. }
  7374. return setTimeout(function() { func.apply(undefined, args); }, wait);
  7375. }
  7376. /**
  7377. * The base implementation of methods like `_.difference` without support
  7378. * for excluding multiple arrays or iteratee shorthands.
  7379. *
  7380. * @private
  7381. * @param {Array} array The array to inspect.
  7382. * @param {Array} values The values to exclude.
  7383. * @param {Function} [iteratee] The iteratee invoked per element.
  7384. * @param {Function} [comparator] The comparator invoked per element.
  7385. * @returns {Array} Returns the new array of filtered values.
  7386. */
  7387. function baseDifference(array, values, iteratee, comparator) {
  7388. var index = -1,
  7389. includes = arrayIncludes,
  7390. isCommon = true,
  7391. length = array.length,
  7392. result = [],
  7393. valuesLength = values.length;
  7394. if (!length) {
  7395. return result;
  7396. }
  7397. if (iteratee) {
  7398. values = arrayMap(values, baseUnary(iteratee));
  7399. }
  7400. if (comparator) {
  7401. includes = arrayIncludesWith;
  7402. isCommon = false;
  7403. }
  7404. else if (values.length >= LARGE_ARRAY_SIZE) {
  7405. includes = cacheHas;
  7406. isCommon = false;
  7407. values = new SetCache(values);
  7408. }
  7409. outer:
  7410. while (++index < length) {
  7411. var value = array[index],
  7412. computed = iteratee == null ? value : iteratee(value);
  7413. value = (comparator || value !== 0) ? value : 0;
  7414. if (isCommon && computed === computed) {
  7415. var valuesIndex = valuesLength;
  7416. while (valuesIndex--) {
  7417. if (values[valuesIndex] === computed) {
  7418. continue outer;
  7419. }
  7420. }
  7421. result.push(value);
  7422. }
  7423. else if (!includes(values, computed, comparator)) {
  7424. result.push(value);
  7425. }
  7426. }
  7427. return result;
  7428. }
  7429. /**
  7430. * The base implementation of `_.forEach` without support for iteratee shorthands.
  7431. *
  7432. * @private
  7433. * @param {Array|Object} collection The collection to iterate over.
  7434. * @param {Function} iteratee The function invoked per iteration.
  7435. * @returns {Array|Object} Returns `collection`.
  7436. */
  7437. var baseEach = createBaseEach(baseForOwn);
  7438. /**
  7439. * The base implementation of `_.forEachRight` without support for iteratee shorthands.
  7440. *
  7441. * @private
  7442. * @param {Array|Object} collection The collection to iterate over.
  7443. * @param {Function} iteratee The function invoked per iteration.
  7444. * @returns {Array|Object} Returns `collection`.
  7445. */
  7446. var baseEachRight = createBaseEach(baseForOwnRight, true);
  7447. /**
  7448. * The base implementation of `_.every` without support for iteratee shorthands.
  7449. *
  7450. * @private
  7451. * @param {Array|Object} collection The collection to iterate over.
  7452. * @param {Function} predicate The function invoked per iteration.
  7453. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  7454. * else `false`
  7455. */
  7456. function baseEvery(collection, predicate) {
  7457. var result = true;
  7458. baseEach(collection, function(value, index, collection) {
  7459. result = !!predicate(value, index, collection);
  7460. return result;
  7461. });
  7462. return result;
  7463. }
  7464. /**
  7465. * The base implementation of methods like `_.max` and `_.min` which accepts a
  7466. * `comparator` to determine the extremum value.
  7467. *
  7468. * @private
  7469. * @param {Array} array The array to iterate over.
  7470. * @param {Function} iteratee The iteratee invoked per iteration.
  7471. * @param {Function} comparator The comparator used to compare values.
  7472. * @returns {*} Returns the extremum value.
  7473. */
  7474. function baseExtremum(array, iteratee, comparator) {
  7475. var index = -1,
  7476. length = array.length;
  7477. while (++index < length) {
  7478. var value = array[index],
  7479. current = iteratee(value);
  7480. if (current != null && (computed === undefined
  7481. ? (current === current && !isSymbol(current))
  7482. : comparator(current, computed)
  7483. )) {
  7484. var computed = current,
  7485. result = value;
  7486. }
  7487. }
  7488. return result;
  7489. }
  7490. /**
  7491. * The base implementation of `_.fill` without an iteratee call guard.
  7492. *
  7493. * @private
  7494. * @param {Array} array The array to fill.
  7495. * @param {*} value The value to fill `array` with.
  7496. * @param {number} [start=0] The start position.
  7497. * @param {number} [end=array.length] The end position.
  7498. * @returns {Array} Returns `array`.
  7499. */
  7500. function baseFill(array, value, start, end) {
  7501. var length = array.length;
  7502. start = toInteger(start);
  7503. if (start < 0) {
  7504. start = -start > length ? 0 : (length + start);
  7505. }
  7506. end = (end === undefined || end > length) ? length : toInteger(end);
  7507. if (end < 0) {
  7508. end += length;
  7509. }
  7510. end = start > end ? 0 : toLength(end);
  7511. while (start < end) {
  7512. array[start++] = value;
  7513. }
  7514. return array;
  7515. }
  7516. /**
  7517. * The base implementation of `_.filter` without support for iteratee shorthands.
  7518. *
  7519. * @private
  7520. * @param {Array|Object} collection The collection to iterate over.
  7521. * @param {Function} predicate The function invoked per iteration.
  7522. * @returns {Array} Returns the new filtered array.
  7523. */
  7524. function baseFilter(collection, predicate) {
  7525. var result = [];
  7526. baseEach(collection, function(value, index, collection) {
  7527. if (predicate(value, index, collection)) {
  7528. result.push(value);
  7529. }
  7530. });
  7531. return result;
  7532. }
  7533. /**
  7534. * The base implementation of `_.flatten` with support for restricting flattening.
  7535. *
  7536. * @private
  7537. * @param {Array} array The array to flatten.
  7538. * @param {number} depth The maximum recursion depth.
  7539. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  7540. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  7541. * @param {Array} [result=[]] The initial result value.
  7542. * @returns {Array} Returns the new flattened array.
  7543. */
  7544. function baseFlatten(array, depth, predicate, isStrict, result) {
  7545. var index = -1,
  7546. length = array.length;
  7547. predicate || (predicate = isFlattenable);
  7548. result || (result = []);
  7549. while (++index < length) {
  7550. var value = array[index];
  7551. if (depth > 0 && predicate(value)) {
  7552. if (depth > 1) {
  7553. // Recursively flatten arrays (susceptible to call stack limits).
  7554. baseFlatten(value, depth - 1, predicate, isStrict, result);
  7555. } else {
  7556. arrayPush(result, value);
  7557. }
  7558. } else if (!isStrict) {
  7559. result[result.length] = value;
  7560. }
  7561. }
  7562. return result;
  7563. }
  7564. /**
  7565. * The base implementation of `baseForOwn` which iterates over `object`
  7566. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  7567. * Iteratee functions may exit iteration early by explicitly returning `false`.
  7568. *
  7569. * @private
  7570. * @param {Object} object The object to iterate over.
  7571. * @param {Function} iteratee The function invoked per iteration.
  7572. * @param {Function} keysFunc The function to get the keys of `object`.
  7573. * @returns {Object} Returns `object`.
  7574. */
  7575. var baseFor = createBaseFor();
  7576. /**
  7577. * This function is like `baseFor` except that it iterates over properties
  7578. * in the opposite order.
  7579. *
  7580. * @private
  7581. * @param {Object} object The object to iterate over.
  7582. * @param {Function} iteratee The function invoked per iteration.
  7583. * @param {Function} keysFunc The function to get the keys of `object`.
  7584. * @returns {Object} Returns `object`.
  7585. */
  7586. var baseForRight = createBaseFor(true);
  7587. /**
  7588. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  7589. *
  7590. * @private
  7591. * @param {Object} object The object to iterate over.
  7592. * @param {Function} iteratee The function invoked per iteration.
  7593. * @returns {Object} Returns `object`.
  7594. */
  7595. function baseForOwn(object, iteratee) {
  7596. return object && baseFor(object, iteratee, keys);
  7597. }
  7598. /**
  7599. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  7600. *
  7601. * @private
  7602. * @param {Object} object The object to iterate over.
  7603. * @param {Function} iteratee The function invoked per iteration.
  7604. * @returns {Object} Returns `object`.
  7605. */
  7606. function baseForOwnRight(object, iteratee) {
  7607. return object && baseForRight(object, iteratee, keys);
  7608. }
  7609. /**
  7610. * The base implementation of `_.functions` which creates an array of
  7611. * `object` function property names filtered from `props`.
  7612. *
  7613. * @private
  7614. * @param {Object} object The object to inspect.
  7615. * @param {Array} props The property names to filter.
  7616. * @returns {Array} Returns the function names.
  7617. */
  7618. function baseFunctions(object, props) {
  7619. return arrayFilter(props, function(key) {
  7620. return isFunction(object[key]);
  7621. });
  7622. }
  7623. /**
  7624. * The base implementation of `_.get` without support for default values.
  7625. *
  7626. * @private
  7627. * @param {Object} object The object to query.
  7628. * @param {Array|string} path The path of the property to get.
  7629. * @returns {*} Returns the resolved value.
  7630. */
  7631. function baseGet(object, path) {
  7632. path = castPath(path, object);
  7633. var index = 0,
  7634. length = path.length;
  7635. while (object != null && index < length) {
  7636. object = object[toKey(path[index++])];
  7637. }
  7638. return (index && index == length) ? object : undefined;
  7639. }
  7640. /**
  7641. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  7642. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  7643. * symbols of `object`.
  7644. *
  7645. * @private
  7646. * @param {Object} object The object to query.
  7647. * @param {Function} keysFunc The function to get the keys of `object`.
  7648. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  7649. * @returns {Array} Returns the array of property names and symbols.
  7650. */
  7651. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  7652. var result = keysFunc(object);
  7653. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  7654. }
  7655. /**
  7656. * The base implementation of `getTag` without fallbacks for buggy environments.
  7657. *
  7658. * @private
  7659. * @param {*} value The value to query.
  7660. * @returns {string} Returns the `toStringTag`.
  7661. */
  7662. function baseGetTag(value) {
  7663. if (value == null) {
  7664. return value === undefined ? undefinedTag : nullTag;
  7665. }
  7666. return (symToStringTag && symToStringTag in Object(value))
  7667. ? getRawTag(value)
  7668. : objectToString(value);
  7669. }
  7670. /**
  7671. * The base implementation of `_.gt` which doesn't coerce arguments.
  7672. *
  7673. * @private
  7674. * @param {*} value The value to compare.
  7675. * @param {*} other The other value to compare.
  7676. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  7677. * else `false`.
  7678. */
  7679. function baseGt(value, other) {
  7680. return value > other;
  7681. }
  7682. /**
  7683. * The base implementation of `_.has` without support for deep paths.
  7684. *
  7685. * @private
  7686. * @param {Object} [object] The object to query.
  7687. * @param {Array|string} key The key to check.
  7688. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7689. */
  7690. function baseHas(object, key) {
  7691. return object != null && hasOwnProperty.call(object, key);
  7692. }
  7693. /**
  7694. * The base implementation of `_.hasIn` without support for deep paths.
  7695. *
  7696. * @private
  7697. * @param {Object} [object] The object to query.
  7698. * @param {Array|string} key The key to check.
  7699. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7700. */
  7701. function baseHasIn(object, key) {
  7702. return object != null && key in Object(object);
  7703. }
  7704. /**
  7705. * The base implementation of `_.inRange` which doesn't coerce arguments.
  7706. *
  7707. * @private
  7708. * @param {number} number The number to check.
  7709. * @param {number} start The start of the range.
  7710. * @param {number} end The end of the range.
  7711. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  7712. */
  7713. function baseInRange(number, start, end) {
  7714. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  7715. }
  7716. /**
  7717. * The base implementation of methods like `_.intersection`, without support
  7718. * for iteratee shorthands, that accepts an array of arrays to inspect.
  7719. *
  7720. * @private
  7721. * @param {Array} arrays The arrays to inspect.
  7722. * @param {Function} [iteratee] The iteratee invoked per element.
  7723. * @param {Function} [comparator] The comparator invoked per element.
  7724. * @returns {Array} Returns the new array of shared values.
  7725. */
  7726. function baseIntersection(arrays, iteratee, comparator) {
  7727. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  7728. length = arrays[0].length,
  7729. othLength = arrays.length,
  7730. othIndex = othLength,
  7731. caches = Array(othLength),
  7732. maxLength = Infinity,
  7733. result = [];
  7734. while (othIndex--) {
  7735. var array = arrays[othIndex];
  7736. if (othIndex && iteratee) {
  7737. array = arrayMap(array, baseUnary(iteratee));
  7738. }
  7739. maxLength = nativeMin(array.length, maxLength);
  7740. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  7741. ? new SetCache(othIndex && array)
  7742. : undefined;
  7743. }
  7744. array = arrays[0];
  7745. var index = -1,
  7746. seen = caches[0];
  7747. outer:
  7748. while (++index < length && result.length < maxLength) {
  7749. var value = array[index],
  7750. computed = iteratee ? iteratee(value) : value;
  7751. value = (comparator || value !== 0) ? value : 0;
  7752. if (!(seen
  7753. ? cacheHas(seen, computed)
  7754. : includes(result, computed, comparator)
  7755. )) {
  7756. othIndex = othLength;
  7757. while (--othIndex) {
  7758. var cache = caches[othIndex];
  7759. if (!(cache
  7760. ? cacheHas(cache, computed)
  7761. : includes(arrays[othIndex], computed, comparator))
  7762. ) {
  7763. continue outer;
  7764. }
  7765. }
  7766. if (seen) {
  7767. seen.push(computed);
  7768. }
  7769. result.push(value);
  7770. }
  7771. }
  7772. return result;
  7773. }
  7774. /**
  7775. * The base implementation of `_.invert` and `_.invertBy` which inverts
  7776. * `object` with values transformed by `iteratee` and set by `setter`.
  7777. *
  7778. * @private
  7779. * @param {Object} object The object to iterate over.
  7780. * @param {Function} setter The function to set `accumulator` values.
  7781. * @param {Function} iteratee The iteratee to transform values.
  7782. * @param {Object} accumulator The initial inverted object.
  7783. * @returns {Function} Returns `accumulator`.
  7784. */
  7785. function baseInverter(object, setter, iteratee, accumulator) {
  7786. baseForOwn(object, function(value, key, object) {
  7787. setter(accumulator, iteratee(value), key, object);
  7788. });
  7789. return accumulator;
  7790. }
  7791. /**
  7792. * The base implementation of `_.invoke` without support for individual
  7793. * method arguments.
  7794. *
  7795. * @private
  7796. * @param {Object} object The object to query.
  7797. * @param {Array|string} path The path of the method to invoke.
  7798. * @param {Array} args The arguments to invoke the method with.
  7799. * @returns {*} Returns the result of the invoked method.
  7800. */
  7801. function baseInvoke(object, path, args) {
  7802. path = castPath(path, object);
  7803. object = parent(object, path);
  7804. var func = object == null ? object : object[toKey(last(path))];
  7805. return func == null ? undefined : apply(func, object, args);
  7806. }
  7807. /**
  7808. * The base implementation of `_.isArguments`.
  7809. *
  7810. * @private
  7811. * @param {*} value The value to check.
  7812. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  7813. */
  7814. function baseIsArguments(value) {
  7815. return isObjectLike(value) && baseGetTag(value) == argsTag;
  7816. }
  7817. /**
  7818. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  7819. *
  7820. * @private
  7821. * @param {*} value The value to check.
  7822. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  7823. */
  7824. function baseIsArrayBuffer(value) {
  7825. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  7826. }
  7827. /**
  7828. * The base implementation of `_.isDate` without Node.js optimizations.
  7829. *
  7830. * @private
  7831. * @param {*} value The value to check.
  7832. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  7833. */
  7834. function baseIsDate(value) {
  7835. return isObjectLike(value) && baseGetTag(value) == dateTag;
  7836. }
  7837. /**
  7838. * The base implementation of `_.isEqual` which supports partial comparisons
  7839. * and tracks traversed objects.
  7840. *
  7841. * @private
  7842. * @param {*} value The value to compare.
  7843. * @param {*} other The other value to compare.
  7844. * @param {boolean} bitmask The bitmask flags.
  7845. * 1 - Unordered comparison
  7846. * 2 - Partial comparison
  7847. * @param {Function} [customizer] The function to customize comparisons.
  7848. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  7849. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  7850. */
  7851. function baseIsEqual(value, other, bitmask, customizer, stack) {
  7852. if (value === other) {
  7853. return true;
  7854. }
  7855. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  7856. return value !== value && other !== other;
  7857. }
  7858. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  7859. }
  7860. /**
  7861. * A specialized version of `baseIsEqual` for arrays and objects which performs
  7862. * deep comparisons and tracks traversed objects enabling objects with circular
  7863. * references to be compared.
  7864. *
  7865. * @private
  7866. * @param {Object} object The object to compare.
  7867. * @param {Object} other The other object to compare.
  7868. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7869. * @param {Function} customizer The function to customize comparisons.
  7870. * @param {Function} equalFunc The function to determine equivalents of values.
  7871. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  7872. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7873. */
  7874. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  7875. var objIsArr = isArray(object),
  7876. othIsArr = isArray(other),
  7877. objTag = objIsArr ? arrayTag : getTag(object),
  7878. othTag = othIsArr ? arrayTag : getTag(other);
  7879. objTag = objTag == argsTag ? objectTag : objTag;
  7880. othTag = othTag == argsTag ? objectTag : othTag;
  7881. var objIsObj = objTag == objectTag,
  7882. othIsObj = othTag == objectTag,
  7883. isSameTag = objTag == othTag;
  7884. if (isSameTag && isBuffer(object)) {
  7885. if (!isBuffer(other)) {
  7886. return false;
  7887. }
  7888. objIsArr = true;
  7889. objIsObj = false;
  7890. }
  7891. if (isSameTag && !objIsObj) {
  7892. stack || (stack = new Stack);
  7893. return (objIsArr || isTypedArray(object))
  7894. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  7895. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  7896. }
  7897. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  7898. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  7899. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  7900. if (objIsWrapped || othIsWrapped) {
  7901. var objUnwrapped = objIsWrapped ? object.value() : object,
  7902. othUnwrapped = othIsWrapped ? other.value() : other;
  7903. stack || (stack = new Stack);
  7904. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  7905. }
  7906. }
  7907. if (!isSameTag) {
  7908. return false;
  7909. }
  7910. stack || (stack = new Stack);
  7911. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  7912. }
  7913. /**
  7914. * The base implementation of `_.isMap` without Node.js optimizations.
  7915. *
  7916. * @private
  7917. * @param {*} value The value to check.
  7918. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  7919. */
  7920. function baseIsMap(value) {
  7921. return isObjectLike(value) && getTag(value) == mapTag;
  7922. }
  7923. /**
  7924. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  7925. *
  7926. * @private
  7927. * @param {Object} object The object to inspect.
  7928. * @param {Object} source The object of property values to match.
  7929. * @param {Array} matchData The property names, values, and compare flags to match.
  7930. * @param {Function} [customizer] The function to customize comparisons.
  7931. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  7932. */
  7933. function baseIsMatch(object, source, matchData, customizer) {
  7934. var index = matchData.length,
  7935. length = index,
  7936. noCustomizer = !customizer;
  7937. if (object == null) {
  7938. return !length;
  7939. }
  7940. object = Object(object);
  7941. while (index--) {
  7942. var data = matchData[index];
  7943. if ((noCustomizer && data[2])
  7944. ? data[1] !== object[data[0]]
  7945. : !(data[0] in object)
  7946. ) {
  7947. return false;
  7948. }
  7949. }
  7950. while (++index < length) {
  7951. data = matchData[index];
  7952. var key = data[0],
  7953. objValue = object[key],
  7954. srcValue = data[1];
  7955. if (noCustomizer && data[2]) {
  7956. if (objValue === undefined && !(key in object)) {
  7957. return false;
  7958. }
  7959. } else {
  7960. var stack = new Stack;
  7961. if (customizer) {
  7962. var result = customizer(objValue, srcValue, key, object, source, stack);
  7963. }
  7964. if (!(result === undefined
  7965. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  7966. : result
  7967. )) {
  7968. return false;
  7969. }
  7970. }
  7971. }
  7972. return true;
  7973. }
  7974. /**
  7975. * The base implementation of `_.isNative` without bad shim checks.
  7976. *
  7977. * @private
  7978. * @param {*} value The value to check.
  7979. * @returns {boolean} Returns `true` if `value` is a native function,
  7980. * else `false`.
  7981. */
  7982. function baseIsNative(value) {
  7983. if (!isObject(value) || isMasked(value)) {
  7984. return false;
  7985. }
  7986. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  7987. return pattern.test(toSource(value));
  7988. }
  7989. /**
  7990. * The base implementation of `_.isRegExp` without Node.js optimizations.
  7991. *
  7992. * @private
  7993. * @param {*} value The value to check.
  7994. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  7995. */
  7996. function baseIsRegExp(value) {
  7997. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  7998. }
  7999. /**
  8000. * The base implementation of `_.isSet` without Node.js optimizations.
  8001. *
  8002. * @private
  8003. * @param {*} value The value to check.
  8004. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  8005. */
  8006. function baseIsSet(value) {
  8007. return isObjectLike(value) && getTag(value) == setTag;
  8008. }
  8009. /**
  8010. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  8011. *
  8012. * @private
  8013. * @param {*} value The value to check.
  8014. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  8015. */
  8016. function baseIsTypedArray(value) {
  8017. return isObjectLike(value) &&
  8018. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  8019. }
  8020. /**
  8021. * The base implementation of `_.iteratee`.
  8022. *
  8023. * @private
  8024. * @param {*} [value=_.identity] The value to convert to an iteratee.
  8025. * @returns {Function} Returns the iteratee.
  8026. */
  8027. function baseIteratee(value) {
  8028. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  8029. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  8030. if (typeof value == 'function') {
  8031. return value;
  8032. }
  8033. if (value == null) {
  8034. return identity;
  8035. }
  8036. if (typeof value == 'object') {
  8037. return isArray(value)
  8038. ? baseMatchesProperty(value[0], value[1])
  8039. : baseMatches(value);
  8040. }
  8041. return property(value);
  8042. }
  8043. /**
  8044. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  8045. *
  8046. * @private
  8047. * @param {Object} object The object to query.
  8048. * @returns {Array} Returns the array of property names.
  8049. */
  8050. function baseKeys(object) {
  8051. if (!isPrototype(object)) {
  8052. return nativeKeys(object);
  8053. }
  8054. var result = [];
  8055. for (var key in Object(object)) {
  8056. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  8057. result.push(key);
  8058. }
  8059. }
  8060. return result;
  8061. }
  8062. /**
  8063. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  8064. *
  8065. * @private
  8066. * @param {Object} object The object to query.
  8067. * @returns {Array} Returns the array of property names.
  8068. */
  8069. function baseKeysIn(object) {
  8070. if (!isObject(object)) {
  8071. return nativeKeysIn(object);
  8072. }
  8073. var isProto = isPrototype(object),
  8074. result = [];
  8075. for (var key in object) {
  8076. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  8077. result.push(key);
  8078. }
  8079. }
  8080. return result;
  8081. }
  8082. /**
  8083. * The base implementation of `_.lt` which doesn't coerce arguments.
  8084. *
  8085. * @private
  8086. * @param {*} value The value to compare.
  8087. * @param {*} other The other value to compare.
  8088. * @returns {boolean} Returns `true` if `value` is less than `other`,
  8089. * else `false`.
  8090. */
  8091. function baseLt(value, other) {
  8092. return value < other;
  8093. }
  8094. /**
  8095. * The base implementation of `_.map` without support for iteratee shorthands.
  8096. *
  8097. * @private
  8098. * @param {Array|Object} collection The collection to iterate over.
  8099. * @param {Function} iteratee The function invoked per iteration.
  8100. * @returns {Array} Returns the new mapped array.
  8101. */
  8102. function baseMap(collection, iteratee) {
  8103. var index = -1,
  8104. result = isArrayLike(collection) ? Array(collection.length) : [];
  8105. baseEach(collection, function(value, key, collection) {
  8106. result[++index] = iteratee(value, key, collection);
  8107. });
  8108. return result;
  8109. }
  8110. /**
  8111. * The base implementation of `_.matches` which doesn't clone `source`.
  8112. *
  8113. * @private
  8114. * @param {Object} source The object of property values to match.
  8115. * @returns {Function} Returns the new spec function.
  8116. */
  8117. function baseMatches(source) {
  8118. var matchData = getMatchData(source);
  8119. if (matchData.length == 1 && matchData[0][2]) {
  8120. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  8121. }
  8122. return function(object) {
  8123. return object === source || baseIsMatch(object, source, matchData);
  8124. };
  8125. }
  8126. /**
  8127. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  8128. *
  8129. * @private
  8130. * @param {string} path The path of the property to get.
  8131. * @param {*} srcValue The value to match.
  8132. * @returns {Function} Returns the new spec function.
  8133. */
  8134. function baseMatchesProperty(path, srcValue) {
  8135. if (isKey(path) && isStrictComparable(srcValue)) {
  8136. return matchesStrictComparable(toKey(path), srcValue);
  8137. }
  8138. return function(object) {
  8139. var objValue = get(object, path);
  8140. return (objValue === undefined && objValue === srcValue)
  8141. ? hasIn(object, path)
  8142. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  8143. };
  8144. }
  8145. /**
  8146. * The base implementation of `_.merge` without support for multiple sources.
  8147. *
  8148. * @private
  8149. * @param {Object} object The destination object.
  8150. * @param {Object} source The source object.
  8151. * @param {number} srcIndex The index of `source`.
  8152. * @param {Function} [customizer] The function to customize merged values.
  8153. * @param {Object} [stack] Tracks traversed source values and their merged
  8154. * counterparts.
  8155. */
  8156. function baseMerge(object, source, srcIndex, customizer, stack) {
  8157. if (object === source) {
  8158. return;
  8159. }
  8160. baseFor(source, function(srcValue, key) {
  8161. if (isObject(srcValue)) {
  8162. stack || (stack = new Stack);
  8163. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  8164. }
  8165. else {
  8166. var newValue = customizer
  8167. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  8168. : undefined;
  8169. if (newValue === undefined) {
  8170. newValue = srcValue;
  8171. }
  8172. assignMergeValue(object, key, newValue);
  8173. }
  8174. }, keysIn);
  8175. }
  8176. /**
  8177. * A specialized version of `baseMerge` for arrays and objects which performs
  8178. * deep merges and tracks traversed objects enabling objects with circular
  8179. * references to be merged.
  8180. *
  8181. * @private
  8182. * @param {Object} object The destination object.
  8183. * @param {Object} source The source object.
  8184. * @param {string} key The key of the value to merge.
  8185. * @param {number} srcIndex The index of `source`.
  8186. * @param {Function} mergeFunc The function to merge values.
  8187. * @param {Function} [customizer] The function to customize assigned values.
  8188. * @param {Object} [stack] Tracks traversed source values and their merged
  8189. * counterparts.
  8190. */
  8191. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  8192. var objValue = safeGet(object, key),
  8193. srcValue = safeGet(source, key),
  8194. stacked = stack.get(srcValue);
  8195. if (stacked) {
  8196. assignMergeValue(object, key, stacked);
  8197. return;
  8198. }
  8199. var newValue = customizer
  8200. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  8201. : undefined;
  8202. var isCommon = newValue === undefined;
  8203. if (isCommon) {
  8204. var isArr = isArray(srcValue),
  8205. isBuff = !isArr && isBuffer(srcValue),
  8206. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  8207. newValue = srcValue;
  8208. if (isArr || isBuff || isTyped) {
  8209. if (isArray(objValue)) {
  8210. newValue = objValue;
  8211. }
  8212. else if (isArrayLikeObject(objValue)) {
  8213. newValue = copyArray(objValue);
  8214. }
  8215. else if (isBuff) {
  8216. isCommon = false;
  8217. newValue = cloneBuffer(srcValue, true);
  8218. }
  8219. else if (isTyped) {
  8220. isCommon = false;
  8221. newValue = cloneTypedArray(srcValue, true);
  8222. }
  8223. else {
  8224. newValue = [];
  8225. }
  8226. }
  8227. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  8228. newValue = objValue;
  8229. if (isArguments(objValue)) {
  8230. newValue = toPlainObject(objValue);
  8231. }
  8232. else if (!isObject(objValue) || isFunction(objValue)) {
  8233. newValue = initCloneObject(srcValue);
  8234. }
  8235. }
  8236. else {
  8237. isCommon = false;
  8238. }
  8239. }
  8240. if (isCommon) {
  8241. // Recursively merge objects and arrays (susceptible to call stack limits).
  8242. stack.set(srcValue, newValue);
  8243. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  8244. stack['delete'](srcValue);
  8245. }
  8246. assignMergeValue(object, key, newValue);
  8247. }
  8248. /**
  8249. * The base implementation of `_.nth` which doesn't coerce arguments.
  8250. *
  8251. * @private
  8252. * @param {Array} array The array to query.
  8253. * @param {number} n The index of the element to return.
  8254. * @returns {*} Returns the nth element of `array`.
  8255. */
  8256. function baseNth(array, n) {
  8257. var length = array.length;
  8258. if (!length) {
  8259. return;
  8260. }
  8261. n += n < 0 ? length : 0;
  8262. return isIndex(n, length) ? array[n] : undefined;
  8263. }
  8264. /**
  8265. * The base implementation of `_.orderBy` without param guards.
  8266. *
  8267. * @private
  8268. * @param {Array|Object} collection The collection to iterate over.
  8269. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  8270. * @param {string[]} orders The sort orders of `iteratees`.
  8271. * @returns {Array} Returns the new sorted array.
  8272. */
  8273. function baseOrderBy(collection, iteratees, orders) {
  8274. var index = -1;
  8275. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  8276. var result = baseMap(collection, function(value, key, collection) {
  8277. var criteria = arrayMap(iteratees, function(iteratee) {
  8278. return iteratee(value);
  8279. });
  8280. return { 'criteria': criteria, 'index': ++index, 'value': value };
  8281. });
  8282. return baseSortBy(result, function(object, other) {
  8283. return compareMultiple(object, other, orders);
  8284. });
  8285. }
  8286. /**
  8287. * The base implementation of `_.pick` without support for individual
  8288. * property identifiers.
  8289. *
  8290. * @private
  8291. * @param {Object} object The source object.
  8292. * @param {string[]} paths The property paths to pick.
  8293. * @returns {Object} Returns the new object.
  8294. */
  8295. function basePick(object, paths) {
  8296. return basePickBy(object, paths, function(value, path) {
  8297. return hasIn(object, path);
  8298. });
  8299. }
  8300. /**
  8301. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  8302. *
  8303. * @private
  8304. * @param {Object} object The source object.
  8305. * @param {string[]} paths The property paths to pick.
  8306. * @param {Function} predicate The function invoked per property.
  8307. * @returns {Object} Returns the new object.
  8308. */
  8309. function basePickBy(object, paths, predicate) {
  8310. var index = -1,
  8311. length = paths.length,
  8312. result = {};
  8313. while (++index < length) {
  8314. var path = paths[index],
  8315. value = baseGet(object, path);
  8316. if (predicate(value, path)) {
  8317. baseSet(result, castPath(path, object), value);
  8318. }
  8319. }
  8320. return result;
  8321. }
  8322. /**
  8323. * A specialized version of `baseProperty` which supports deep paths.
  8324. *
  8325. * @private
  8326. * @param {Array|string} path The path of the property to get.
  8327. * @returns {Function} Returns the new accessor function.
  8328. */
  8329. function basePropertyDeep(path) {
  8330. return function(object) {
  8331. return baseGet(object, path);
  8332. };
  8333. }
  8334. /**
  8335. * The base implementation of `_.pullAllBy` without support for iteratee
  8336. * shorthands.
  8337. *
  8338. * @private
  8339. * @param {Array} array The array to modify.
  8340. * @param {Array} values The values to remove.
  8341. * @param {Function} [iteratee] The iteratee invoked per element.
  8342. * @param {Function} [comparator] The comparator invoked per element.
  8343. * @returns {Array} Returns `array`.
  8344. */
  8345. function basePullAll(array, values, iteratee, comparator) {
  8346. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  8347. index = -1,
  8348. length = values.length,
  8349. seen = array;
  8350. if (array === values) {
  8351. values = copyArray(values);
  8352. }
  8353. if (iteratee) {
  8354. seen = arrayMap(array, baseUnary(iteratee));
  8355. }
  8356. while (++index < length) {
  8357. var fromIndex = 0,
  8358. value = values[index],
  8359. computed = iteratee ? iteratee(value) : value;
  8360. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  8361. if (seen !== array) {
  8362. splice.call(seen, fromIndex, 1);
  8363. }
  8364. splice.call(array, fromIndex, 1);
  8365. }
  8366. }
  8367. return array;
  8368. }
  8369. /**
  8370. * The base implementation of `_.pullAt` without support for individual
  8371. * indexes or capturing the removed elements.
  8372. *
  8373. * @private
  8374. * @param {Array} array The array to modify.
  8375. * @param {number[]} indexes The indexes of elements to remove.
  8376. * @returns {Array} Returns `array`.
  8377. */
  8378. function basePullAt(array, indexes) {
  8379. var length = array ? indexes.length : 0,
  8380. lastIndex = length - 1;
  8381. while (length--) {
  8382. var index = indexes[length];
  8383. if (length == lastIndex || index !== previous) {
  8384. var previous = index;
  8385. if (isIndex(index)) {
  8386. splice.call(array, index, 1);
  8387. } else {
  8388. baseUnset(array, index);
  8389. }
  8390. }
  8391. }
  8392. return array;
  8393. }
  8394. /**
  8395. * The base implementation of `_.random` without support for returning
  8396. * floating-point numbers.
  8397. *
  8398. * @private
  8399. * @param {number} lower The lower bound.
  8400. * @param {number} upper The upper bound.
  8401. * @returns {number} Returns the random number.
  8402. */
  8403. function baseRandom(lower, upper) {
  8404. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  8405. }
  8406. /**
  8407. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  8408. * coerce arguments.
  8409. *
  8410. * @private
  8411. * @param {number} start The start of the range.
  8412. * @param {number} end The end of the range.
  8413. * @param {number} step The value to increment or decrement by.
  8414. * @param {boolean} [fromRight] Specify iterating from right to left.
  8415. * @returns {Array} Returns the range of numbers.
  8416. */
  8417. function baseRange(start, end, step, fromRight) {
  8418. var index = -1,
  8419. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  8420. result = Array(length);
  8421. while (length--) {
  8422. result[fromRight ? length : ++index] = start;
  8423. start += step;
  8424. }
  8425. return result;
  8426. }
  8427. /**
  8428. * The base implementation of `_.repeat` which doesn't coerce arguments.
  8429. *
  8430. * @private
  8431. * @param {string} string The string to repeat.
  8432. * @param {number} n The number of times to repeat the string.
  8433. * @returns {string} Returns the repeated string.
  8434. */
  8435. function baseRepeat(string, n) {
  8436. var result = '';
  8437. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  8438. return result;
  8439. }
  8440. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  8441. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  8442. do {
  8443. if (n % 2) {
  8444. result += string;
  8445. }
  8446. n = nativeFloor(n / 2);
  8447. if (n) {
  8448. string += string;
  8449. }
  8450. } while (n);
  8451. return result;
  8452. }
  8453. /**
  8454. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  8455. *
  8456. * @private
  8457. * @param {Function} func The function to apply a rest parameter to.
  8458. * @param {number} [start=func.length-1] The start position of the rest parameter.
  8459. * @returns {Function} Returns the new function.
  8460. */
  8461. function baseRest(func, start) {
  8462. return setToString(overRest(func, start, identity), func + '');
  8463. }
  8464. /**
  8465. * The base implementation of `_.sample`.
  8466. *
  8467. * @private
  8468. * @param {Array|Object} collection The collection to sample.
  8469. * @returns {*} Returns the random element.
  8470. */
  8471. function baseSample(collection) {
  8472. return arraySample(values(collection));
  8473. }
  8474. /**
  8475. * The base implementation of `_.sampleSize` without param guards.
  8476. *
  8477. * @private
  8478. * @param {Array|Object} collection The collection to sample.
  8479. * @param {number} n The number of elements to sample.
  8480. * @returns {Array} Returns the random elements.
  8481. */
  8482. function baseSampleSize(collection, n) {
  8483. var array = values(collection);
  8484. return shuffleSelf(array, baseClamp(n, 0, array.length));
  8485. }
  8486. /**
  8487. * The base implementation of `_.set`.
  8488. *
  8489. * @private
  8490. * @param {Object} object The object to modify.
  8491. * @param {Array|string} path The path of the property to set.
  8492. * @param {*} value The value to set.
  8493. * @param {Function} [customizer] The function to customize path creation.
  8494. * @returns {Object} Returns `object`.
  8495. */
  8496. function baseSet(object, path, value, customizer) {
  8497. if (!isObject(object)) {
  8498. return object;
  8499. }
  8500. path = castPath(path, object);
  8501. var index = -1,
  8502. length = path.length,
  8503. lastIndex = length - 1,
  8504. nested = object;
  8505. while (nested != null && ++index < length) {
  8506. var key = toKey(path[index]),
  8507. newValue = value;
  8508. if (index != lastIndex) {
  8509. var objValue = nested[key];
  8510. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  8511. if (newValue === undefined) {
  8512. newValue = isObject(objValue)
  8513. ? objValue
  8514. : (isIndex(path[index + 1]) ? [] : {});
  8515. }
  8516. }
  8517. assignValue(nested, key, newValue);
  8518. nested = nested[key];
  8519. }
  8520. return object;
  8521. }
  8522. /**
  8523. * The base implementation of `setData` without support for hot loop shorting.
  8524. *
  8525. * @private
  8526. * @param {Function} func The function to associate metadata with.
  8527. * @param {*} data The metadata.
  8528. * @returns {Function} Returns `func`.
  8529. */
  8530. var baseSetData = !metaMap ? identity : function(func, data) {
  8531. metaMap.set(func, data);
  8532. return func;
  8533. };
  8534. /**
  8535. * The base implementation of `setToString` without support for hot loop shorting.
  8536. *
  8537. * @private
  8538. * @param {Function} func The function to modify.
  8539. * @param {Function} string The `toString` result.
  8540. * @returns {Function} Returns `func`.
  8541. */
  8542. var baseSetToString = !defineProperty ? identity : function(func, string) {
  8543. return defineProperty(func, 'toString', {
  8544. 'configurable': true,
  8545. 'enumerable': false,
  8546. 'value': constant(string),
  8547. 'writable': true
  8548. });
  8549. };
  8550. /**
  8551. * The base implementation of `_.shuffle`.
  8552. *
  8553. * @private
  8554. * @param {Array|Object} collection The collection to shuffle.
  8555. * @returns {Array} Returns the new shuffled array.
  8556. */
  8557. function baseShuffle(collection) {
  8558. return shuffleSelf(values(collection));
  8559. }
  8560. /**
  8561. * The base implementation of `_.slice` without an iteratee call guard.
  8562. *
  8563. * @private
  8564. * @param {Array} array The array to slice.
  8565. * @param {number} [start=0] The start position.
  8566. * @param {number} [end=array.length] The end position.
  8567. * @returns {Array} Returns the slice of `array`.
  8568. */
  8569. function baseSlice(array, start, end) {
  8570. var index = -1,
  8571. length = array.length;
  8572. if (start < 0) {
  8573. start = -start > length ? 0 : (length + start);
  8574. }
  8575. end = end > length ? length : end;
  8576. if (end < 0) {
  8577. end += length;
  8578. }
  8579. length = start > end ? 0 : ((end - start) >>> 0);
  8580. start >>>= 0;
  8581. var result = Array(length);
  8582. while (++index < length) {
  8583. result[index] = array[index + start];
  8584. }
  8585. return result;
  8586. }
  8587. /**
  8588. * The base implementation of `_.some` without support for iteratee shorthands.
  8589. *
  8590. * @private
  8591. * @param {Array|Object} collection The collection to iterate over.
  8592. * @param {Function} predicate The function invoked per iteration.
  8593. * @returns {boolean} Returns `true` if any element passes the predicate check,
  8594. * else `false`.
  8595. */
  8596. function baseSome(collection, predicate) {
  8597. var result;
  8598. baseEach(collection, function(value, index, collection) {
  8599. result = predicate(value, index, collection);
  8600. return !result;
  8601. });
  8602. return !!result;
  8603. }
  8604. /**
  8605. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  8606. * performs a binary search of `array` to determine the index at which `value`
  8607. * should be inserted into `array` in order to maintain its sort order.
  8608. *
  8609. * @private
  8610. * @param {Array} array The sorted array to inspect.
  8611. * @param {*} value The value to evaluate.
  8612. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  8613. * @returns {number} Returns the index at which `value` should be inserted
  8614. * into `array`.
  8615. */
  8616. function baseSortedIndex(array, value, retHighest) {
  8617. var low = 0,
  8618. high = array == null ? low : array.length;
  8619. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  8620. while (low < high) {
  8621. var mid = (low + high) >>> 1,
  8622. computed = array[mid];
  8623. if (computed !== null && !isSymbol(computed) &&
  8624. (retHighest ? (computed <= value) : (computed < value))) {
  8625. low = mid + 1;
  8626. } else {
  8627. high = mid;
  8628. }
  8629. }
  8630. return high;
  8631. }
  8632. return baseSortedIndexBy(array, value, identity, retHighest);
  8633. }
  8634. /**
  8635. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  8636. * which invokes `iteratee` for `value` and each element of `array` to compute
  8637. * their sort ranking. The iteratee is invoked with one argument; (value).
  8638. *
  8639. * @private
  8640. * @param {Array} array The sorted array to inspect.
  8641. * @param {*} value The value to evaluate.
  8642. * @param {Function} iteratee The iteratee invoked per element.
  8643. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  8644. * @returns {number} Returns the index at which `value` should be inserted
  8645. * into `array`.
  8646. */
  8647. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  8648. value = iteratee(value);
  8649. var low = 0,
  8650. high = array == null ? 0 : array.length,
  8651. valIsNaN = value !== value,
  8652. valIsNull = value === null,
  8653. valIsSymbol = isSymbol(value),
  8654. valIsUndefined = value === undefined;
  8655. while (low < high) {
  8656. var mid = nativeFloor((low + high) / 2),
  8657. computed = iteratee(array[mid]),
  8658. othIsDefined = computed !== undefined,
  8659. othIsNull = computed === null,
  8660. othIsReflexive = computed === computed,
  8661. othIsSymbol = isSymbol(computed);
  8662. if (valIsNaN) {
  8663. var setLow = retHighest || othIsReflexive;
  8664. } else if (valIsUndefined) {
  8665. setLow = othIsReflexive && (retHighest || othIsDefined);
  8666. } else if (valIsNull) {
  8667. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  8668. } else if (valIsSymbol) {
  8669. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  8670. } else if (othIsNull || othIsSymbol) {
  8671. setLow = false;
  8672. } else {
  8673. setLow = retHighest ? (computed <= value) : (computed < value);
  8674. }
  8675. if (setLow) {
  8676. low = mid + 1;
  8677. } else {
  8678. high = mid;
  8679. }
  8680. }
  8681. return nativeMin(high, MAX_ARRAY_INDEX);
  8682. }
  8683. /**
  8684. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  8685. * support for iteratee shorthands.
  8686. *
  8687. * @private
  8688. * @param {Array} array The array to inspect.
  8689. * @param {Function} [iteratee] The iteratee invoked per element.
  8690. * @returns {Array} Returns the new duplicate free array.
  8691. */
  8692. function baseSortedUniq(array, iteratee) {
  8693. var index = -1,
  8694. length = array.length,
  8695. resIndex = 0,
  8696. result = [];
  8697. while (++index < length) {
  8698. var value = array[index],
  8699. computed = iteratee ? iteratee(value) : value;
  8700. if (!index || !eq(computed, seen)) {
  8701. var seen = computed;
  8702. result[resIndex++] = value === 0 ? 0 : value;
  8703. }
  8704. }
  8705. return result;
  8706. }
  8707. /**
  8708. * The base implementation of `_.toNumber` which doesn't ensure correct
  8709. * conversions of binary, hexadecimal, or octal string values.
  8710. *
  8711. * @private
  8712. * @param {*} value The value to process.
  8713. * @returns {number} Returns the number.
  8714. */
  8715. function baseToNumber(value) {
  8716. if (typeof value == 'number') {
  8717. return value;
  8718. }
  8719. if (isSymbol(value)) {
  8720. return NAN;
  8721. }
  8722. return +value;
  8723. }
  8724. /**
  8725. * The base implementation of `_.toString` which doesn't convert nullish
  8726. * values to empty strings.
  8727. *
  8728. * @private
  8729. * @param {*} value The value to process.
  8730. * @returns {string} Returns the string.
  8731. */
  8732. function baseToString(value) {
  8733. // Exit early for strings to avoid a performance hit in some environments.
  8734. if (typeof value == 'string') {
  8735. return value;
  8736. }
  8737. if (isArray(value)) {
  8738. // Recursively convert values (susceptible to call stack limits).
  8739. return arrayMap(value, baseToString) + '';
  8740. }
  8741. if (isSymbol(value)) {
  8742. return symbolToString ? symbolToString.call(value) : '';
  8743. }
  8744. var result = (value + '');
  8745. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  8746. }
  8747. /**
  8748. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  8749. *
  8750. * @private
  8751. * @param {Array} array The array to inspect.
  8752. * @param {Function} [iteratee] The iteratee invoked per element.
  8753. * @param {Function} [comparator] The comparator invoked per element.
  8754. * @returns {Array} Returns the new duplicate free array.
  8755. */
  8756. function baseUniq(array, iteratee, comparator) {
  8757. var index = -1,
  8758. includes = arrayIncludes,
  8759. length = array.length,
  8760. isCommon = true,
  8761. result = [],
  8762. seen = result;
  8763. if (comparator) {
  8764. isCommon = false;
  8765. includes = arrayIncludesWith;
  8766. }
  8767. else if (length >= LARGE_ARRAY_SIZE) {
  8768. var set = iteratee ? null : createSet(array);
  8769. if (set) {
  8770. return setToArray(set);
  8771. }
  8772. isCommon = false;
  8773. includes = cacheHas;
  8774. seen = new SetCache;
  8775. }
  8776. else {
  8777. seen = iteratee ? [] : result;
  8778. }
  8779. outer:
  8780. while (++index < length) {
  8781. var value = array[index],
  8782. computed = iteratee ? iteratee(value) : value;
  8783. value = (comparator || value !== 0) ? value : 0;
  8784. if (isCommon && computed === computed) {
  8785. var seenIndex = seen.length;
  8786. while (seenIndex--) {
  8787. if (seen[seenIndex] === computed) {
  8788. continue outer;
  8789. }
  8790. }
  8791. if (iteratee) {
  8792. seen.push(computed);
  8793. }
  8794. result.push(value);
  8795. }
  8796. else if (!includes(seen, computed, comparator)) {
  8797. if (seen !== result) {
  8798. seen.push(computed);
  8799. }
  8800. result.push(value);
  8801. }
  8802. }
  8803. return result;
  8804. }
  8805. /**
  8806. * The base implementation of `_.unset`.
  8807. *
  8808. * @private
  8809. * @param {Object} object The object to modify.
  8810. * @param {Array|string} path The property path to unset.
  8811. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  8812. */
  8813. function baseUnset(object, path) {
  8814. path = castPath(path, object);
  8815. object = parent(object, path);
  8816. return object == null || delete object[toKey(last(path))];
  8817. }
  8818. /**
  8819. * The base implementation of `_.update`.
  8820. *
  8821. * @private
  8822. * @param {Object} object The object to modify.
  8823. * @param {Array|string} path The path of the property to update.
  8824. * @param {Function} updater The function to produce the updated value.
  8825. * @param {Function} [customizer] The function to customize path creation.
  8826. * @returns {Object} Returns `object`.
  8827. */
  8828. function baseUpdate(object, path, updater, customizer) {
  8829. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  8830. }
  8831. /**
  8832. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  8833. * without support for iteratee shorthands.
  8834. *
  8835. * @private
  8836. * @param {Array} array The array to query.
  8837. * @param {Function} predicate The function invoked per iteration.
  8838. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  8839. * @param {boolean} [fromRight] Specify iterating from right to left.
  8840. * @returns {Array} Returns the slice of `array`.
  8841. */
  8842. function baseWhile(array, predicate, isDrop, fromRight) {
  8843. var length = array.length,
  8844. index = fromRight ? length : -1;
  8845. while ((fromRight ? index-- : ++index < length) &&
  8846. predicate(array[index], index, array)) {}
  8847. return isDrop
  8848. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  8849. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  8850. }
  8851. /**
  8852. * The base implementation of `wrapperValue` which returns the result of
  8853. * performing a sequence of actions on the unwrapped `value`, where each
  8854. * successive action is supplied the return value of the previous.
  8855. *
  8856. * @private
  8857. * @param {*} value The unwrapped value.
  8858. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  8859. * @returns {*} Returns the resolved value.
  8860. */
  8861. function baseWrapperValue(value, actions) {
  8862. var result = value;
  8863. if (result instanceof LazyWrapper) {
  8864. result = result.value();
  8865. }
  8866. return arrayReduce(actions, function(result, action) {
  8867. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  8868. }, result);
  8869. }
  8870. /**
  8871. * The base implementation of methods like `_.xor`, without support for
  8872. * iteratee shorthands, that accepts an array of arrays to inspect.
  8873. *
  8874. * @private
  8875. * @param {Array} arrays The arrays to inspect.
  8876. * @param {Function} [iteratee] The iteratee invoked per element.
  8877. * @param {Function} [comparator] The comparator invoked per element.
  8878. * @returns {Array} Returns the new array of values.
  8879. */
  8880. function baseXor(arrays, iteratee, comparator) {
  8881. var length = arrays.length;
  8882. if (length < 2) {
  8883. return length ? baseUniq(arrays[0]) : [];
  8884. }
  8885. var index = -1,
  8886. result = Array(length);
  8887. while (++index < length) {
  8888. var array = arrays[index],
  8889. othIndex = -1;
  8890. while (++othIndex < length) {
  8891. if (othIndex != index) {
  8892. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  8893. }
  8894. }
  8895. }
  8896. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  8897. }
  8898. /**
  8899. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  8900. *
  8901. * @private
  8902. * @param {Array} props The property identifiers.
  8903. * @param {Array} values The property values.
  8904. * @param {Function} assignFunc The function to assign values.
  8905. * @returns {Object} Returns the new object.
  8906. */
  8907. function baseZipObject(props, values, assignFunc) {
  8908. var index = -1,
  8909. length = props.length,
  8910. valsLength = values.length,
  8911. result = {};
  8912. while (++index < length) {
  8913. var value = index < valsLength ? values[index] : undefined;
  8914. assignFunc(result, props[index], value);
  8915. }
  8916. return result;
  8917. }
  8918. /**
  8919. * Casts `value` to an empty array if it's not an array like object.
  8920. *
  8921. * @private
  8922. * @param {*} value The value to inspect.
  8923. * @returns {Array|Object} Returns the cast array-like object.
  8924. */
  8925. function castArrayLikeObject(value) {
  8926. return isArrayLikeObject(value) ? value : [];
  8927. }
  8928. /**
  8929. * Casts `value` to `identity` if it's not a function.
  8930. *
  8931. * @private
  8932. * @param {*} value The value to inspect.
  8933. * @returns {Function} Returns cast function.
  8934. */
  8935. function castFunction(value) {
  8936. return typeof value == 'function' ? value : identity;
  8937. }
  8938. /**
  8939. * Casts `value` to a path array if it's not one.
  8940. *
  8941. * @private
  8942. * @param {*} value The value to inspect.
  8943. * @param {Object} [object] The object to query keys on.
  8944. * @returns {Array} Returns the cast property path array.
  8945. */
  8946. function castPath(value, object) {
  8947. if (isArray(value)) {
  8948. return value;
  8949. }
  8950. return isKey(value, object) ? [value] : stringToPath(toString(value));
  8951. }
  8952. /**
  8953. * A `baseRest` alias which can be replaced with `identity` by module
  8954. * replacement plugins.
  8955. *
  8956. * @private
  8957. * @type {Function}
  8958. * @param {Function} func The function to apply a rest parameter to.
  8959. * @returns {Function} Returns the new function.
  8960. */
  8961. var castRest = baseRest;
  8962. /**
  8963. * Casts `array` to a slice if it's needed.
  8964. *
  8965. * @private
  8966. * @param {Array} array The array to inspect.
  8967. * @param {number} start The start position.
  8968. * @param {number} [end=array.length] The end position.
  8969. * @returns {Array} Returns the cast slice.
  8970. */
  8971. function castSlice(array, start, end) {
  8972. var length = array.length;
  8973. end = end === undefined ? length : end;
  8974. return (!start && end >= length) ? array : baseSlice(array, start, end);
  8975. }
  8976. /**
  8977. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  8978. *
  8979. * @private
  8980. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  8981. */
  8982. var clearTimeout = ctxClearTimeout || function(id) {
  8983. return root.clearTimeout(id);
  8984. };
  8985. /**
  8986. * Creates a clone of `buffer`.
  8987. *
  8988. * @private
  8989. * @param {Buffer} buffer The buffer to clone.
  8990. * @param {boolean} [isDeep] Specify a deep clone.
  8991. * @returns {Buffer} Returns the cloned buffer.
  8992. */
  8993. function cloneBuffer(buffer, isDeep) {
  8994. if (isDeep) {
  8995. return buffer.slice();
  8996. }
  8997. var length = buffer.length,
  8998. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  8999. buffer.copy(result);
  9000. return result;
  9001. }
  9002. /**
  9003. * Creates a clone of `arrayBuffer`.
  9004. *
  9005. * @private
  9006. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  9007. * @returns {ArrayBuffer} Returns the cloned array buffer.
  9008. */
  9009. function cloneArrayBuffer(arrayBuffer) {
  9010. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  9011. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  9012. return result;
  9013. }
  9014. /**
  9015. * Creates a clone of `dataView`.
  9016. *
  9017. * @private
  9018. * @param {Object} dataView The data view to clone.
  9019. * @param {boolean} [isDeep] Specify a deep clone.
  9020. * @returns {Object} Returns the cloned data view.
  9021. */
  9022. function cloneDataView(dataView, isDeep) {
  9023. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  9024. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  9025. }
  9026. /**
  9027. * Creates a clone of `regexp`.
  9028. *
  9029. * @private
  9030. * @param {Object} regexp The regexp to clone.
  9031. * @returns {Object} Returns the cloned regexp.
  9032. */
  9033. function cloneRegExp(regexp) {
  9034. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  9035. result.lastIndex = regexp.lastIndex;
  9036. return result;
  9037. }
  9038. /**
  9039. * Creates a clone of the `symbol` object.
  9040. *
  9041. * @private
  9042. * @param {Object} symbol The symbol object to clone.
  9043. * @returns {Object} Returns the cloned symbol object.
  9044. */
  9045. function cloneSymbol(symbol) {
  9046. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  9047. }
  9048. /**
  9049. * Creates a clone of `typedArray`.
  9050. *
  9051. * @private
  9052. * @param {Object} typedArray The typed array to clone.
  9053. * @param {boolean} [isDeep] Specify a deep clone.
  9054. * @returns {Object} Returns the cloned typed array.
  9055. */
  9056. function cloneTypedArray(typedArray, isDeep) {
  9057. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  9058. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  9059. }
  9060. /**
  9061. * Compares values to sort them in ascending order.
  9062. *
  9063. * @private
  9064. * @param {*} value The value to compare.
  9065. * @param {*} other The other value to compare.
  9066. * @returns {number} Returns the sort order indicator for `value`.
  9067. */
  9068. function compareAscending(value, other) {
  9069. if (value !== other) {
  9070. var valIsDefined = value !== undefined,
  9071. valIsNull = value === null,
  9072. valIsReflexive = value === value,
  9073. valIsSymbol = isSymbol(value);
  9074. var othIsDefined = other !== undefined,
  9075. othIsNull = other === null,
  9076. othIsReflexive = other === other,
  9077. othIsSymbol = isSymbol(other);
  9078. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  9079. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  9080. (valIsNull && othIsDefined && othIsReflexive) ||
  9081. (!valIsDefined && othIsReflexive) ||
  9082. !valIsReflexive) {
  9083. return 1;
  9084. }
  9085. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  9086. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  9087. (othIsNull && valIsDefined && valIsReflexive) ||
  9088. (!othIsDefined && valIsReflexive) ||
  9089. !othIsReflexive) {
  9090. return -1;
  9091. }
  9092. }
  9093. return 0;
  9094. }
  9095. /**
  9096. * Used by `_.orderBy` to compare multiple properties of a value to another
  9097. * and stable sort them.
  9098. *
  9099. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  9100. * specify an order of "desc" for descending or "asc" for ascending sort order
  9101. * of corresponding values.
  9102. *
  9103. * @private
  9104. * @param {Object} object The object to compare.
  9105. * @param {Object} other The other object to compare.
  9106. * @param {boolean[]|string[]} orders The order to sort by for each property.
  9107. * @returns {number} Returns the sort order indicator for `object`.
  9108. */
  9109. function compareMultiple(object, other, orders) {
  9110. var index = -1,
  9111. objCriteria = object.criteria,
  9112. othCriteria = other.criteria,
  9113. length = objCriteria.length,
  9114. ordersLength = orders.length;
  9115. while (++index < length) {
  9116. var result = compareAscending(objCriteria[index], othCriteria[index]);
  9117. if (result) {
  9118. if (index >= ordersLength) {
  9119. return result;
  9120. }
  9121. var order = orders[index];
  9122. return result * (order == 'desc' ? -1 : 1);
  9123. }
  9124. }
  9125. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  9126. // that causes it, under certain circumstances, to provide the same value for
  9127. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  9128. // for more details.
  9129. //
  9130. // This also ensures a stable sort in V8 and other engines.
  9131. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  9132. return object.index - other.index;
  9133. }
  9134. /**
  9135. * Creates an array that is the composition of partially applied arguments,
  9136. * placeholders, and provided arguments into a single array of arguments.
  9137. *
  9138. * @private
  9139. * @param {Array} args The provided arguments.
  9140. * @param {Array} partials The arguments to prepend to those provided.
  9141. * @param {Array} holders The `partials` placeholder indexes.
  9142. * @params {boolean} [isCurried] Specify composing for a curried function.
  9143. * @returns {Array} Returns the new array of composed arguments.
  9144. */
  9145. function composeArgs(args, partials, holders, isCurried) {
  9146. var argsIndex = -1,
  9147. argsLength = args.length,
  9148. holdersLength = holders.length,
  9149. leftIndex = -1,
  9150. leftLength = partials.length,
  9151. rangeLength = nativeMax(argsLength - holdersLength, 0),
  9152. result = Array(leftLength + rangeLength),
  9153. isUncurried = !isCurried;
  9154. while (++leftIndex < leftLength) {
  9155. result[leftIndex] = partials[leftIndex];
  9156. }
  9157. while (++argsIndex < holdersLength) {
  9158. if (isUncurried || argsIndex < argsLength) {
  9159. result[holders[argsIndex]] = args[argsIndex];
  9160. }
  9161. }
  9162. while (rangeLength--) {
  9163. result[leftIndex++] = args[argsIndex++];
  9164. }
  9165. return result;
  9166. }
  9167. /**
  9168. * This function is like `composeArgs` except that the arguments composition
  9169. * is tailored for `_.partialRight`.
  9170. *
  9171. * @private
  9172. * @param {Array} args The provided arguments.
  9173. * @param {Array} partials The arguments to append to those provided.
  9174. * @param {Array} holders The `partials` placeholder indexes.
  9175. * @params {boolean} [isCurried] Specify composing for a curried function.
  9176. * @returns {Array} Returns the new array of composed arguments.
  9177. */
  9178. function composeArgsRight(args, partials, holders, isCurried) {
  9179. var argsIndex = -1,
  9180. argsLength = args.length,
  9181. holdersIndex = -1,
  9182. holdersLength = holders.length,
  9183. rightIndex = -1,
  9184. rightLength = partials.length,
  9185. rangeLength = nativeMax(argsLength - holdersLength, 0),
  9186. result = Array(rangeLength + rightLength),
  9187. isUncurried = !isCurried;
  9188. while (++argsIndex < rangeLength) {
  9189. result[argsIndex] = args[argsIndex];
  9190. }
  9191. var offset = argsIndex;
  9192. while (++rightIndex < rightLength) {
  9193. result[offset + rightIndex] = partials[rightIndex];
  9194. }
  9195. while (++holdersIndex < holdersLength) {
  9196. if (isUncurried || argsIndex < argsLength) {
  9197. result[offset + holders[holdersIndex]] = args[argsIndex++];
  9198. }
  9199. }
  9200. return result;
  9201. }
  9202. /**
  9203. * Copies the values of `source` to `array`.
  9204. *
  9205. * @private
  9206. * @param {Array} source The array to copy values from.
  9207. * @param {Array} [array=[]] The array to copy values to.
  9208. * @returns {Array} Returns `array`.
  9209. */
  9210. function copyArray(source, array) {
  9211. var index = -1,
  9212. length = source.length;
  9213. array || (array = Array(length));
  9214. while (++index < length) {
  9215. array[index] = source[index];
  9216. }
  9217. return array;
  9218. }
  9219. /**
  9220. * Copies properties of `source` to `object`.
  9221. *
  9222. * @private
  9223. * @param {Object} source The object to copy properties from.
  9224. * @param {Array} props The property identifiers to copy.
  9225. * @param {Object} [object={}] The object to copy properties to.
  9226. * @param {Function} [customizer] The function to customize copied values.
  9227. * @returns {Object} Returns `object`.
  9228. */
  9229. function copyObject(source, props, object, customizer) {
  9230. var isNew = !object;
  9231. object || (object = {});
  9232. var index = -1,
  9233. length = props.length;
  9234. while (++index < length) {
  9235. var key = props[index];
  9236. var newValue = customizer
  9237. ? customizer(object[key], source[key], key, object, source)
  9238. : undefined;
  9239. if (newValue === undefined) {
  9240. newValue = source[key];
  9241. }
  9242. if (isNew) {
  9243. baseAssignValue(object, key, newValue);
  9244. } else {
  9245. assignValue(object, key, newValue);
  9246. }
  9247. }
  9248. return object;
  9249. }
  9250. /**
  9251. * Copies own symbols of `source` to `object`.
  9252. *
  9253. * @private
  9254. * @param {Object} source The object to copy symbols from.
  9255. * @param {Object} [object={}] The object to copy symbols to.
  9256. * @returns {Object} Returns `object`.
  9257. */
  9258. function copySymbols(source, object) {
  9259. return copyObject(source, getSymbols(source), object);
  9260. }
  9261. /**
  9262. * Copies own and inherited symbols of `source` to `object`.
  9263. *
  9264. * @private
  9265. * @param {Object} source The object to copy symbols from.
  9266. * @param {Object} [object={}] The object to copy symbols to.
  9267. * @returns {Object} Returns `object`.
  9268. */
  9269. function copySymbolsIn(source, object) {
  9270. return copyObject(source, getSymbolsIn(source), object);
  9271. }
  9272. /**
  9273. * Creates a function like `_.groupBy`.
  9274. *
  9275. * @private
  9276. * @param {Function} setter The function to set accumulator values.
  9277. * @param {Function} [initializer] The accumulator object initializer.
  9278. * @returns {Function} Returns the new aggregator function.
  9279. */
  9280. function createAggregator(setter, initializer) {
  9281. return function(collection, iteratee) {
  9282. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  9283. accumulator = initializer ? initializer() : {};
  9284. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  9285. };
  9286. }
  9287. /**
  9288. * Creates a function like `_.assign`.
  9289. *
  9290. * @private
  9291. * @param {Function} assigner The function to assign values.
  9292. * @returns {Function} Returns the new assigner function.
  9293. */
  9294. function createAssigner(assigner) {
  9295. return baseRest(function(object, sources) {
  9296. var index = -1,
  9297. length = sources.length,
  9298. customizer = length > 1 ? sources[length - 1] : undefined,
  9299. guard = length > 2 ? sources[2] : undefined;
  9300. customizer = (assigner.length > 3 && typeof customizer == 'function')
  9301. ? (length--, customizer)
  9302. : undefined;
  9303. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  9304. customizer = length < 3 ? undefined : customizer;
  9305. length = 1;
  9306. }
  9307. object = Object(object);
  9308. while (++index < length) {
  9309. var source = sources[index];
  9310. if (source) {
  9311. assigner(object, source, index, customizer);
  9312. }
  9313. }
  9314. return object;
  9315. });
  9316. }
  9317. /**
  9318. * Creates a `baseEach` or `baseEachRight` function.
  9319. *
  9320. * @private
  9321. * @param {Function} eachFunc The function to iterate over a collection.
  9322. * @param {boolean} [fromRight] Specify iterating from right to left.
  9323. * @returns {Function} Returns the new base function.
  9324. */
  9325. function createBaseEach(eachFunc, fromRight) {
  9326. return function(collection, iteratee) {
  9327. if (collection == null) {
  9328. return collection;
  9329. }
  9330. if (!isArrayLike(collection)) {
  9331. return eachFunc(collection, iteratee);
  9332. }
  9333. var length = collection.length,
  9334. index = fromRight ? length : -1,
  9335. iterable = Object(collection);
  9336. while ((fromRight ? index-- : ++index < length)) {
  9337. if (iteratee(iterable[index], index, iterable) === false) {
  9338. break;
  9339. }
  9340. }
  9341. return collection;
  9342. };
  9343. }
  9344. /**
  9345. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  9346. *
  9347. * @private
  9348. * @param {boolean} [fromRight] Specify iterating from right to left.
  9349. * @returns {Function} Returns the new base function.
  9350. */
  9351. function createBaseFor(fromRight) {
  9352. return function(object, iteratee, keysFunc) {
  9353. var index = -1,
  9354. iterable = Object(object),
  9355. props = keysFunc(object),
  9356. length = props.length;
  9357. while (length--) {
  9358. var key = props[fromRight ? length : ++index];
  9359. if (iteratee(iterable[key], key, iterable) === false) {
  9360. break;
  9361. }
  9362. }
  9363. return object;
  9364. };
  9365. }
  9366. /**
  9367. * Creates a function that wraps `func` to invoke it with the optional `this`
  9368. * binding of `thisArg`.
  9369. *
  9370. * @private
  9371. * @param {Function} func The function to wrap.
  9372. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9373. * @param {*} [thisArg] The `this` binding of `func`.
  9374. * @returns {Function} Returns the new wrapped function.
  9375. */
  9376. function createBind(func, bitmask, thisArg) {
  9377. var isBind = bitmask & WRAP_BIND_FLAG,
  9378. Ctor = createCtor(func);
  9379. function wrapper() {
  9380. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  9381. return fn.apply(isBind ? thisArg : this, arguments);
  9382. }
  9383. return wrapper;
  9384. }
  9385. /**
  9386. * Creates a function like `_.lowerFirst`.
  9387. *
  9388. * @private
  9389. * @param {string} methodName The name of the `String` case method to use.
  9390. * @returns {Function} Returns the new case function.
  9391. */
  9392. function createCaseFirst(methodName) {
  9393. return function(string) {
  9394. string = toString(string);
  9395. var strSymbols = hasUnicode(string)
  9396. ? stringToArray(string)
  9397. : undefined;
  9398. var chr = strSymbols
  9399. ? strSymbols[0]
  9400. : string.charAt(0);
  9401. var trailing = strSymbols
  9402. ? castSlice(strSymbols, 1).join('')
  9403. : string.slice(1);
  9404. return chr[methodName]() + trailing;
  9405. };
  9406. }
  9407. /**
  9408. * Creates a function like `_.camelCase`.
  9409. *
  9410. * @private
  9411. * @param {Function} callback The function to combine each word.
  9412. * @returns {Function} Returns the new compounder function.
  9413. */
  9414. function createCompounder(callback) {
  9415. return function(string) {
  9416. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  9417. };
  9418. }
  9419. /**
  9420. * Creates a function that produces an instance of `Ctor` regardless of
  9421. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  9422. *
  9423. * @private
  9424. * @param {Function} Ctor The constructor to wrap.
  9425. * @returns {Function} Returns the new wrapped function.
  9426. */
  9427. function createCtor(Ctor) {
  9428. return function() {
  9429. // Use a `switch` statement to work with class constructors. See
  9430. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  9431. // for more details.
  9432. var args = arguments;
  9433. switch (args.length) {
  9434. case 0: return new Ctor;
  9435. case 1: return new Ctor(args[0]);
  9436. case 2: return new Ctor(args[0], args[1]);
  9437. case 3: return new Ctor(args[0], args[1], args[2]);
  9438. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  9439. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  9440. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  9441. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  9442. }
  9443. var thisBinding = baseCreate(Ctor.prototype),
  9444. result = Ctor.apply(thisBinding, args);
  9445. // Mimic the constructor's `return` behavior.
  9446. // See https://es5.github.io/#x13.2.2 for more details.
  9447. return isObject(result) ? result : thisBinding;
  9448. };
  9449. }
  9450. /**
  9451. * Creates a function that wraps `func` to enable currying.
  9452. *
  9453. * @private
  9454. * @param {Function} func The function to wrap.
  9455. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9456. * @param {number} arity The arity of `func`.
  9457. * @returns {Function} Returns the new wrapped function.
  9458. */
  9459. function createCurry(func, bitmask, arity) {
  9460. var Ctor = createCtor(func);
  9461. function wrapper() {
  9462. var length = arguments.length,
  9463. args = Array(length),
  9464. index = length,
  9465. placeholder = getHolder(wrapper);
  9466. while (index--) {
  9467. args[index] = arguments[index];
  9468. }
  9469. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  9470. ? []
  9471. : replaceHolders(args, placeholder);
  9472. length -= holders.length;
  9473. if (length < arity) {
  9474. return createRecurry(
  9475. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  9476. args, holders, undefined, undefined, arity - length);
  9477. }
  9478. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  9479. return apply(fn, this, args);
  9480. }
  9481. return wrapper;
  9482. }
  9483. /**
  9484. * Creates a `_.find` or `_.findLast` function.
  9485. *
  9486. * @private
  9487. * @param {Function} findIndexFunc The function to find the collection index.
  9488. * @returns {Function} Returns the new find function.
  9489. */
  9490. function createFind(findIndexFunc) {
  9491. return function(collection, predicate, fromIndex) {
  9492. var iterable = Object(collection);
  9493. if (!isArrayLike(collection)) {
  9494. var iteratee = getIteratee(predicate, 3);
  9495. collection = keys(collection);
  9496. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  9497. }
  9498. var index = findIndexFunc(collection, predicate, fromIndex);
  9499. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  9500. };
  9501. }
  9502. /**
  9503. * Creates a `_.flow` or `_.flowRight` function.
  9504. *
  9505. * @private
  9506. * @param {boolean} [fromRight] Specify iterating from right to left.
  9507. * @returns {Function} Returns the new flow function.
  9508. */
  9509. function createFlow(fromRight) {
  9510. return flatRest(function(funcs) {
  9511. var length = funcs.length,
  9512. index = length,
  9513. prereq = LodashWrapper.prototype.thru;
  9514. if (fromRight) {
  9515. funcs.reverse();
  9516. }
  9517. while (index--) {
  9518. var func = funcs[index];
  9519. if (typeof func != 'function') {
  9520. throw new TypeError(FUNC_ERROR_TEXT);
  9521. }
  9522. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  9523. var wrapper = new LodashWrapper([], true);
  9524. }
  9525. }
  9526. index = wrapper ? index : length;
  9527. while (++index < length) {
  9528. func = funcs[index];
  9529. var funcName = getFuncName(func),
  9530. data = funcName == 'wrapper' ? getData(func) : undefined;
  9531. if (data && isLaziable(data[0]) &&
  9532. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  9533. !data[4].length && data[9] == 1
  9534. ) {
  9535. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  9536. } else {
  9537. wrapper = (func.length == 1 && isLaziable(func))
  9538. ? wrapper[funcName]()
  9539. : wrapper.thru(func);
  9540. }
  9541. }
  9542. return function() {
  9543. var args = arguments,
  9544. value = args[0];
  9545. if (wrapper && args.length == 1 && isArray(value)) {
  9546. return wrapper.plant(value).value();
  9547. }
  9548. var index = 0,
  9549. result = length ? funcs[index].apply(this, args) : value;
  9550. while (++index < length) {
  9551. result = funcs[index].call(this, result);
  9552. }
  9553. return result;
  9554. };
  9555. });
  9556. }
  9557. /**
  9558. * Creates a function that wraps `func` to invoke it with optional `this`
  9559. * binding of `thisArg`, partial application, and currying.
  9560. *
  9561. * @private
  9562. * @param {Function|string} func The function or method name to wrap.
  9563. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9564. * @param {*} [thisArg] The `this` binding of `func`.
  9565. * @param {Array} [partials] The arguments to prepend to those provided to
  9566. * the new function.
  9567. * @param {Array} [holders] The `partials` placeholder indexes.
  9568. * @param {Array} [partialsRight] The arguments to append to those provided
  9569. * to the new function.
  9570. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  9571. * @param {Array} [argPos] The argument positions of the new function.
  9572. * @param {number} [ary] The arity cap of `func`.
  9573. * @param {number} [arity] The arity of `func`.
  9574. * @returns {Function} Returns the new wrapped function.
  9575. */
  9576. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  9577. var isAry = bitmask & WRAP_ARY_FLAG,
  9578. isBind = bitmask & WRAP_BIND_FLAG,
  9579. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  9580. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  9581. isFlip = bitmask & WRAP_FLIP_FLAG,
  9582. Ctor = isBindKey ? undefined : createCtor(func);
  9583. function wrapper() {
  9584. var length = arguments.length,
  9585. args = Array(length),
  9586. index = length;
  9587. while (index--) {
  9588. args[index] = arguments[index];
  9589. }
  9590. if (isCurried) {
  9591. var placeholder = getHolder(wrapper),
  9592. holdersCount = countHolders(args, placeholder);
  9593. }
  9594. if (partials) {
  9595. args = composeArgs(args, partials, holders, isCurried);
  9596. }
  9597. if (partialsRight) {
  9598. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  9599. }
  9600. length -= holdersCount;
  9601. if (isCurried && length < arity) {
  9602. var newHolders = replaceHolders(args, placeholder);
  9603. return createRecurry(
  9604. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  9605. args, newHolders, argPos, ary, arity - length
  9606. );
  9607. }
  9608. var thisBinding = isBind ? thisArg : this,
  9609. fn = isBindKey ? thisBinding[func] : func;
  9610. length = args.length;
  9611. if (argPos) {
  9612. args = reorder(args, argPos);
  9613. } else if (isFlip && length > 1) {
  9614. args.reverse();
  9615. }
  9616. if (isAry && ary < length) {
  9617. args.length = ary;
  9618. }
  9619. if (this && this !== root && this instanceof wrapper) {
  9620. fn = Ctor || createCtor(fn);
  9621. }
  9622. return fn.apply(thisBinding, args);
  9623. }
  9624. return wrapper;
  9625. }
  9626. /**
  9627. * Creates a function like `_.invertBy`.
  9628. *
  9629. * @private
  9630. * @param {Function} setter The function to set accumulator values.
  9631. * @param {Function} toIteratee The function to resolve iteratees.
  9632. * @returns {Function} Returns the new inverter function.
  9633. */
  9634. function createInverter(setter, toIteratee) {
  9635. return function(object, iteratee) {
  9636. return baseInverter(object, setter, toIteratee(iteratee), {});
  9637. };
  9638. }
  9639. /**
  9640. * Creates a function that performs a mathematical operation on two values.
  9641. *
  9642. * @private
  9643. * @param {Function} operator The function to perform the operation.
  9644. * @param {number} [defaultValue] The value used for `undefined` arguments.
  9645. * @returns {Function} Returns the new mathematical operation function.
  9646. */
  9647. function createMathOperation(operator, defaultValue) {
  9648. return function(value, other) {
  9649. var result;
  9650. if (value === undefined && other === undefined) {
  9651. return defaultValue;
  9652. }
  9653. if (value !== undefined) {
  9654. result = value;
  9655. }
  9656. if (other !== undefined) {
  9657. if (result === undefined) {
  9658. return other;
  9659. }
  9660. if (typeof value == 'string' || typeof other == 'string') {
  9661. value = baseToString(value);
  9662. other = baseToString(other);
  9663. } else {
  9664. value = baseToNumber(value);
  9665. other = baseToNumber(other);
  9666. }
  9667. result = operator(value, other);
  9668. }
  9669. return result;
  9670. };
  9671. }
  9672. /**
  9673. * Creates a function like `_.over`.
  9674. *
  9675. * @private
  9676. * @param {Function} arrayFunc The function to iterate over iteratees.
  9677. * @returns {Function} Returns the new over function.
  9678. */
  9679. function createOver(arrayFunc) {
  9680. return flatRest(function(iteratees) {
  9681. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  9682. return baseRest(function(args) {
  9683. var thisArg = this;
  9684. return arrayFunc(iteratees, function(iteratee) {
  9685. return apply(iteratee, thisArg, args);
  9686. });
  9687. });
  9688. });
  9689. }
  9690. /**
  9691. * Creates the padding for `string` based on `length`. The `chars` string
  9692. * is truncated if the number of characters exceeds `length`.
  9693. *
  9694. * @private
  9695. * @param {number} length The padding length.
  9696. * @param {string} [chars=' '] The string used as padding.
  9697. * @returns {string} Returns the padding for `string`.
  9698. */
  9699. function createPadding(length, chars) {
  9700. chars = chars === undefined ? ' ' : baseToString(chars);
  9701. var charsLength = chars.length;
  9702. if (charsLength < 2) {
  9703. return charsLength ? baseRepeat(chars, length) : chars;
  9704. }
  9705. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  9706. return hasUnicode(chars)
  9707. ? castSlice(stringToArray(result), 0, length).join('')
  9708. : result.slice(0, length);
  9709. }
  9710. /**
  9711. * Creates a function that wraps `func` to invoke it with the `this` binding
  9712. * of `thisArg` and `partials` prepended to the arguments it receives.
  9713. *
  9714. * @private
  9715. * @param {Function} func The function to wrap.
  9716. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9717. * @param {*} thisArg The `this` binding of `func`.
  9718. * @param {Array} partials The arguments to prepend to those provided to
  9719. * the new function.
  9720. * @returns {Function} Returns the new wrapped function.
  9721. */
  9722. function createPartial(func, bitmask, thisArg, partials) {
  9723. var isBind = bitmask & WRAP_BIND_FLAG,
  9724. Ctor = createCtor(func);
  9725. function wrapper() {
  9726. var argsIndex = -1,
  9727. argsLength = arguments.length,
  9728. leftIndex = -1,
  9729. leftLength = partials.length,
  9730. args = Array(leftLength + argsLength),
  9731. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  9732. while (++leftIndex < leftLength) {
  9733. args[leftIndex] = partials[leftIndex];
  9734. }
  9735. while (argsLength--) {
  9736. args[leftIndex++] = arguments[++argsIndex];
  9737. }
  9738. return apply(fn, isBind ? thisArg : this, args);
  9739. }
  9740. return wrapper;
  9741. }
  9742. /**
  9743. * Creates a `_.range` or `_.rangeRight` function.
  9744. *
  9745. * @private
  9746. * @param {boolean} [fromRight] Specify iterating from right to left.
  9747. * @returns {Function} Returns the new range function.
  9748. */
  9749. function createRange(fromRight) {
  9750. return function(start, end, step) {
  9751. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  9752. end = step = undefined;
  9753. }
  9754. // Ensure the sign of `-0` is preserved.
  9755. start = toFinite(start);
  9756. if (end === undefined) {
  9757. end = start;
  9758. start = 0;
  9759. } else {
  9760. end = toFinite(end);
  9761. }
  9762. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  9763. return baseRange(start, end, step, fromRight);
  9764. };
  9765. }
  9766. /**
  9767. * Creates a function that performs a relational operation on two values.
  9768. *
  9769. * @private
  9770. * @param {Function} operator The function to perform the operation.
  9771. * @returns {Function} Returns the new relational operation function.
  9772. */
  9773. function createRelationalOperation(operator) {
  9774. return function(value, other) {
  9775. if (!(typeof value == 'string' && typeof other == 'string')) {
  9776. value = toNumber(value);
  9777. other = toNumber(other);
  9778. }
  9779. return operator(value, other);
  9780. };
  9781. }
  9782. /**
  9783. * Creates a function that wraps `func` to continue currying.
  9784. *
  9785. * @private
  9786. * @param {Function} func The function to wrap.
  9787. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9788. * @param {Function} wrapFunc The function to create the `func` wrapper.
  9789. * @param {*} placeholder The placeholder value.
  9790. * @param {*} [thisArg] The `this` binding of `func`.
  9791. * @param {Array} [partials] The arguments to prepend to those provided to
  9792. * the new function.
  9793. * @param {Array} [holders] The `partials` placeholder indexes.
  9794. * @param {Array} [argPos] The argument positions of the new function.
  9795. * @param {number} [ary] The arity cap of `func`.
  9796. * @param {number} [arity] The arity of `func`.
  9797. * @returns {Function} Returns the new wrapped function.
  9798. */
  9799. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  9800. var isCurry = bitmask & WRAP_CURRY_FLAG,
  9801. newHolders = isCurry ? holders : undefined,
  9802. newHoldersRight = isCurry ? undefined : holders,
  9803. newPartials = isCurry ? partials : undefined,
  9804. newPartialsRight = isCurry ? undefined : partials;
  9805. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  9806. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  9807. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  9808. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  9809. }
  9810. var newData = [
  9811. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  9812. newHoldersRight, argPos, ary, arity
  9813. ];
  9814. var result = wrapFunc.apply(undefined, newData);
  9815. if (isLaziable(func)) {
  9816. setData(result, newData);
  9817. }
  9818. result.placeholder = placeholder;
  9819. return setWrapToString(result, func, bitmask);
  9820. }
  9821. /**
  9822. * Creates a function like `_.round`.
  9823. *
  9824. * @private
  9825. * @param {string} methodName The name of the `Math` method to use when rounding.
  9826. * @returns {Function} Returns the new round function.
  9827. */
  9828. function createRound(methodName) {
  9829. var func = Math[methodName];
  9830. return function(number, precision) {
  9831. number = toNumber(number);
  9832. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  9833. if (precision) {
  9834. // Shift with exponential notation to avoid floating-point issues.
  9835. // See [MDN](https://mdn.io/round#Examples) for more details.
  9836. var pair = (toString(number) + 'e').split('e'),
  9837. value = func(pair[0] + 'e' + (+pair[1] + precision));
  9838. pair = (toString(value) + 'e').split('e');
  9839. return +(pair[0] + 'e' + (+pair[1] - precision));
  9840. }
  9841. return func(number);
  9842. };
  9843. }
  9844. /**
  9845. * Creates a set object of `values`.
  9846. *
  9847. * @private
  9848. * @param {Array} values The values to add to the set.
  9849. * @returns {Object} Returns the new set.
  9850. */
  9851. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  9852. return new Set(values);
  9853. };
  9854. /**
  9855. * Creates a `_.toPairs` or `_.toPairsIn` function.
  9856. *
  9857. * @private
  9858. * @param {Function} keysFunc The function to get the keys of a given object.
  9859. * @returns {Function} Returns the new pairs function.
  9860. */
  9861. function createToPairs(keysFunc) {
  9862. return function(object) {
  9863. var tag = getTag(object);
  9864. if (tag == mapTag) {
  9865. return mapToArray(object);
  9866. }
  9867. if (tag == setTag) {
  9868. return setToPairs(object);
  9869. }
  9870. return baseToPairs(object, keysFunc(object));
  9871. };
  9872. }
  9873. /**
  9874. * Creates a function that either curries or invokes `func` with optional
  9875. * `this` binding and partially applied arguments.
  9876. *
  9877. * @private
  9878. * @param {Function|string} func The function or method name to wrap.
  9879. * @param {number} bitmask The bitmask flags.
  9880. * 1 - `_.bind`
  9881. * 2 - `_.bindKey`
  9882. * 4 - `_.curry` or `_.curryRight` of a bound function
  9883. * 8 - `_.curry`
  9884. * 16 - `_.curryRight`
  9885. * 32 - `_.partial`
  9886. * 64 - `_.partialRight`
  9887. * 128 - `_.rearg`
  9888. * 256 - `_.ary`
  9889. * 512 - `_.flip`
  9890. * @param {*} [thisArg] The `this` binding of `func`.
  9891. * @param {Array} [partials] The arguments to be partially applied.
  9892. * @param {Array} [holders] The `partials` placeholder indexes.
  9893. * @param {Array} [argPos] The argument positions of the new function.
  9894. * @param {number} [ary] The arity cap of `func`.
  9895. * @param {number} [arity] The arity of `func`.
  9896. * @returns {Function} Returns the new wrapped function.
  9897. */
  9898. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  9899. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  9900. if (!isBindKey && typeof func != 'function') {
  9901. throw new TypeError(FUNC_ERROR_TEXT);
  9902. }
  9903. var length = partials ? partials.length : 0;
  9904. if (!length) {
  9905. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  9906. partials = holders = undefined;
  9907. }
  9908. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  9909. arity = arity === undefined ? arity : toInteger(arity);
  9910. length -= holders ? holders.length : 0;
  9911. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  9912. var partialsRight = partials,
  9913. holdersRight = holders;
  9914. partials = holders = undefined;
  9915. }
  9916. var data = isBindKey ? undefined : getData(func);
  9917. var newData = [
  9918. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  9919. argPos, ary, arity
  9920. ];
  9921. if (data) {
  9922. mergeData(newData, data);
  9923. }
  9924. func = newData[0];
  9925. bitmask = newData[1];
  9926. thisArg = newData[2];
  9927. partials = newData[3];
  9928. holders = newData[4];
  9929. arity = newData[9] = newData[9] === undefined
  9930. ? (isBindKey ? 0 : func.length)
  9931. : nativeMax(newData[9] - length, 0);
  9932. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  9933. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  9934. }
  9935. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  9936. var result = createBind(func, bitmask, thisArg);
  9937. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  9938. result = createCurry(func, bitmask, arity);
  9939. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  9940. result = createPartial(func, bitmask, thisArg, partials);
  9941. } else {
  9942. result = createHybrid.apply(undefined, newData);
  9943. }
  9944. var setter = data ? baseSetData : setData;
  9945. return setWrapToString(setter(result, newData), func, bitmask);
  9946. }
  9947. /**
  9948. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  9949. * of source objects to the destination object for all destination properties
  9950. * that resolve to `undefined`.
  9951. *
  9952. * @private
  9953. * @param {*} objValue The destination value.
  9954. * @param {*} srcValue The source value.
  9955. * @param {string} key The key of the property to assign.
  9956. * @param {Object} object The parent object of `objValue`.
  9957. * @returns {*} Returns the value to assign.
  9958. */
  9959. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  9960. if (objValue === undefined ||
  9961. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  9962. return srcValue;
  9963. }
  9964. return objValue;
  9965. }
  9966. /**
  9967. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  9968. * objects into destination objects that are passed thru.
  9969. *
  9970. * @private
  9971. * @param {*} objValue The destination value.
  9972. * @param {*} srcValue The source value.
  9973. * @param {string} key The key of the property to merge.
  9974. * @param {Object} object The parent object of `objValue`.
  9975. * @param {Object} source The parent object of `srcValue`.
  9976. * @param {Object} [stack] Tracks traversed source values and their merged
  9977. * counterparts.
  9978. * @returns {*} Returns the value to assign.
  9979. */
  9980. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  9981. if (isObject(objValue) && isObject(srcValue)) {
  9982. // Recursively merge objects and arrays (susceptible to call stack limits).
  9983. stack.set(srcValue, objValue);
  9984. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  9985. stack['delete'](srcValue);
  9986. }
  9987. return objValue;
  9988. }
  9989. /**
  9990. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  9991. * objects.
  9992. *
  9993. * @private
  9994. * @param {*} value The value to inspect.
  9995. * @param {string} key The key of the property to inspect.
  9996. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  9997. */
  9998. function customOmitClone(value) {
  9999. return isPlainObject(value) ? undefined : value;
  10000. }
  10001. /**
  10002. * A specialized version of `baseIsEqualDeep` for arrays with support for
  10003. * partial deep comparisons.
  10004. *
  10005. * @private
  10006. * @param {Array} array The array to compare.
  10007. * @param {Array} other The other array to compare.
  10008. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10009. * @param {Function} customizer The function to customize comparisons.
  10010. * @param {Function} equalFunc The function to determine equivalents of values.
  10011. * @param {Object} stack Tracks traversed `array` and `other` objects.
  10012. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  10013. */
  10014. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  10015. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  10016. arrLength = array.length,
  10017. othLength = other.length;
  10018. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  10019. return false;
  10020. }
  10021. // Assume cyclic values are equal.
  10022. var stacked = stack.get(array);
  10023. if (stacked && stack.get(other)) {
  10024. return stacked == other;
  10025. }
  10026. var index = -1,
  10027. result = true,
  10028. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  10029. stack.set(array, other);
  10030. stack.set(other, array);
  10031. // Ignore non-index properties.
  10032. while (++index < arrLength) {
  10033. var arrValue = array[index],
  10034. othValue = other[index];
  10035. if (customizer) {
  10036. var compared = isPartial
  10037. ? customizer(othValue, arrValue, index, other, array, stack)
  10038. : customizer(arrValue, othValue, index, array, other, stack);
  10039. }
  10040. if (compared !== undefined) {
  10041. if (compared) {
  10042. continue;
  10043. }
  10044. result = false;
  10045. break;
  10046. }
  10047. // Recursively compare arrays (susceptible to call stack limits).
  10048. if (seen) {
  10049. if (!arraySome(other, function(othValue, othIndex) {
  10050. if (!cacheHas(seen, othIndex) &&
  10051. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  10052. return seen.push(othIndex);
  10053. }
  10054. })) {
  10055. result = false;
  10056. break;
  10057. }
  10058. } else if (!(
  10059. arrValue === othValue ||
  10060. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  10061. )) {
  10062. result = false;
  10063. break;
  10064. }
  10065. }
  10066. stack['delete'](array);
  10067. stack['delete'](other);
  10068. return result;
  10069. }
  10070. /**
  10071. * A specialized version of `baseIsEqualDeep` for comparing objects of
  10072. * the same `toStringTag`.
  10073. *
  10074. * **Note:** This function only supports comparing values with tags of
  10075. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  10076. *
  10077. * @private
  10078. * @param {Object} object The object to compare.
  10079. * @param {Object} other The other object to compare.
  10080. * @param {string} tag The `toStringTag` of the objects to compare.
  10081. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10082. * @param {Function} customizer The function to customize comparisons.
  10083. * @param {Function} equalFunc The function to determine equivalents of values.
  10084. * @param {Object} stack Tracks traversed `object` and `other` objects.
  10085. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10086. */
  10087. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  10088. switch (tag) {
  10089. case dataViewTag:
  10090. if ((object.byteLength != other.byteLength) ||
  10091. (object.byteOffset != other.byteOffset)) {
  10092. return false;
  10093. }
  10094. object = object.buffer;
  10095. other = other.buffer;
  10096. case arrayBufferTag:
  10097. if ((object.byteLength != other.byteLength) ||
  10098. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  10099. return false;
  10100. }
  10101. return true;
  10102. case boolTag:
  10103. case dateTag:
  10104. case numberTag:
  10105. // Coerce booleans to `1` or `0` and dates to milliseconds.
  10106. // Invalid dates are coerced to `NaN`.
  10107. return eq(+object, +other);
  10108. case errorTag:
  10109. return object.name == other.name && object.message == other.message;
  10110. case regexpTag:
  10111. case stringTag:
  10112. // Coerce regexes to strings and treat strings, primitives and objects,
  10113. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  10114. // for more details.
  10115. return object == (other + '');
  10116. case mapTag:
  10117. var convert = mapToArray;
  10118. case setTag:
  10119. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  10120. convert || (convert = setToArray);
  10121. if (object.size != other.size && !isPartial) {
  10122. return false;
  10123. }
  10124. // Assume cyclic values are equal.
  10125. var stacked = stack.get(object);
  10126. if (stacked) {
  10127. return stacked == other;
  10128. }
  10129. bitmask |= COMPARE_UNORDERED_FLAG;
  10130. // Recursively compare objects (susceptible to call stack limits).
  10131. stack.set(object, other);
  10132. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  10133. stack['delete'](object);
  10134. return result;
  10135. case symbolTag:
  10136. if (symbolValueOf) {
  10137. return symbolValueOf.call(object) == symbolValueOf.call(other);
  10138. }
  10139. }
  10140. return false;
  10141. }
  10142. /**
  10143. * A specialized version of `baseIsEqualDeep` for objects with support for
  10144. * partial deep comparisons.
  10145. *
  10146. * @private
  10147. * @param {Object} object The object to compare.
  10148. * @param {Object} other The other object to compare.
  10149. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10150. * @param {Function} customizer The function to customize comparisons.
  10151. * @param {Function} equalFunc The function to determine equivalents of values.
  10152. * @param {Object} stack Tracks traversed `object` and `other` objects.
  10153. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10154. */
  10155. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  10156. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  10157. objProps = getAllKeys(object),
  10158. objLength = objProps.length,
  10159. othProps = getAllKeys(other),
  10160. othLength = othProps.length;
  10161. if (objLength != othLength && !isPartial) {
  10162. return false;
  10163. }
  10164. var index = objLength;
  10165. while (index--) {
  10166. var key = objProps[index];
  10167. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  10168. return false;
  10169. }
  10170. }
  10171. // Assume cyclic values are equal.
  10172. var stacked = stack.get(object);
  10173. if (stacked && stack.get(other)) {
  10174. return stacked == other;
  10175. }
  10176. var result = true;
  10177. stack.set(object, other);
  10178. stack.set(other, object);
  10179. var skipCtor = isPartial;
  10180. while (++index < objLength) {
  10181. key = objProps[index];
  10182. var objValue = object[key],
  10183. othValue = other[key];
  10184. if (customizer) {
  10185. var compared = isPartial
  10186. ? customizer(othValue, objValue, key, other, object, stack)
  10187. : customizer(objValue, othValue, key, object, other, stack);
  10188. }
  10189. // Recursively compare objects (susceptible to call stack limits).
  10190. if (!(compared === undefined
  10191. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  10192. : compared
  10193. )) {
  10194. result = false;
  10195. break;
  10196. }
  10197. skipCtor || (skipCtor = key == 'constructor');
  10198. }
  10199. if (result && !skipCtor) {
  10200. var objCtor = object.constructor,
  10201. othCtor = other.constructor;
  10202. // Non `Object` object instances with different constructors are not equal.
  10203. if (objCtor != othCtor &&
  10204. ('constructor' in object && 'constructor' in other) &&
  10205. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  10206. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  10207. result = false;
  10208. }
  10209. }
  10210. stack['delete'](object);
  10211. stack['delete'](other);
  10212. return result;
  10213. }
  10214. /**
  10215. * A specialized version of `baseRest` which flattens the rest array.
  10216. *
  10217. * @private
  10218. * @param {Function} func The function to apply a rest parameter to.
  10219. * @returns {Function} Returns the new function.
  10220. */
  10221. function flatRest(func) {
  10222. return setToString(overRest(func, undefined, flatten), func + '');
  10223. }
  10224. /**
  10225. * Creates an array of own enumerable property names and symbols of `object`.
  10226. *
  10227. * @private
  10228. * @param {Object} object The object to query.
  10229. * @returns {Array} Returns the array of property names and symbols.
  10230. */
  10231. function getAllKeys(object) {
  10232. return baseGetAllKeys(object, keys, getSymbols);
  10233. }
  10234. /**
  10235. * Creates an array of own and inherited enumerable property names and
  10236. * symbols of `object`.
  10237. *
  10238. * @private
  10239. * @param {Object} object The object to query.
  10240. * @returns {Array} Returns the array of property names and symbols.
  10241. */
  10242. function getAllKeysIn(object) {
  10243. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  10244. }
  10245. /**
  10246. * Gets metadata for `func`.
  10247. *
  10248. * @private
  10249. * @param {Function} func The function to query.
  10250. * @returns {*} Returns the metadata for `func`.
  10251. */
  10252. var getData = !metaMap ? noop : function(func) {
  10253. return metaMap.get(func);
  10254. };
  10255. /**
  10256. * Gets the name of `func`.
  10257. *
  10258. * @private
  10259. * @param {Function} func The function to query.
  10260. * @returns {string} Returns the function name.
  10261. */
  10262. function getFuncName(func) {
  10263. var result = (func.name + ''),
  10264. array = realNames[result],
  10265. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  10266. while (length--) {
  10267. var data = array[length],
  10268. otherFunc = data.func;
  10269. if (otherFunc == null || otherFunc == func) {
  10270. return data.name;
  10271. }
  10272. }
  10273. return result;
  10274. }
  10275. /**
  10276. * Gets the argument placeholder value for `func`.
  10277. *
  10278. * @private
  10279. * @param {Function} func The function to inspect.
  10280. * @returns {*} Returns the placeholder value.
  10281. */
  10282. function getHolder(func) {
  10283. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  10284. return object.placeholder;
  10285. }
  10286. /**
  10287. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  10288. * this function returns the custom method, otherwise it returns `baseIteratee`.
  10289. * If arguments are provided, the chosen function is invoked with them and
  10290. * its result is returned.
  10291. *
  10292. * @private
  10293. * @param {*} [value] The value to convert to an iteratee.
  10294. * @param {number} [arity] The arity of the created iteratee.
  10295. * @returns {Function} Returns the chosen function or its result.
  10296. */
  10297. function getIteratee() {
  10298. var result = lodash.iteratee || iteratee;
  10299. result = result === iteratee ? baseIteratee : result;
  10300. return arguments.length ? result(arguments[0], arguments[1]) : result;
  10301. }
  10302. /**
  10303. * Gets the data for `map`.
  10304. *
  10305. * @private
  10306. * @param {Object} map The map to query.
  10307. * @param {string} key The reference key.
  10308. * @returns {*} Returns the map data.
  10309. */
  10310. function getMapData(map, key) {
  10311. var data = map.__data__;
  10312. return isKeyable(key)
  10313. ? data[typeof key == 'string' ? 'string' : 'hash']
  10314. : data.map;
  10315. }
  10316. /**
  10317. * Gets the property names, values, and compare flags of `object`.
  10318. *
  10319. * @private
  10320. * @param {Object} object The object to query.
  10321. * @returns {Array} Returns the match data of `object`.
  10322. */
  10323. function getMatchData(object) {
  10324. var result = keys(object),
  10325. length = result.length;
  10326. while (length--) {
  10327. var key = result[length],
  10328. value = object[key];
  10329. result[length] = [key, value, isStrictComparable(value)];
  10330. }
  10331. return result;
  10332. }
  10333. /**
  10334. * Gets the native function at `key` of `object`.
  10335. *
  10336. * @private
  10337. * @param {Object} object The object to query.
  10338. * @param {string} key The key of the method to get.
  10339. * @returns {*} Returns the function if it's native, else `undefined`.
  10340. */
  10341. function getNative(object, key) {
  10342. var value = getValue(object, key);
  10343. return baseIsNative(value) ? value : undefined;
  10344. }
  10345. /**
  10346. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  10347. *
  10348. * @private
  10349. * @param {*} value The value to query.
  10350. * @returns {string} Returns the raw `toStringTag`.
  10351. */
  10352. function getRawTag(value) {
  10353. var isOwn = hasOwnProperty.call(value, symToStringTag),
  10354. tag = value[symToStringTag];
  10355. try {
  10356. value[symToStringTag] = undefined;
  10357. var unmasked = true;
  10358. } catch (e) {}
  10359. var result = nativeObjectToString.call(value);
  10360. if (unmasked) {
  10361. if (isOwn) {
  10362. value[symToStringTag] = tag;
  10363. } else {
  10364. delete value[symToStringTag];
  10365. }
  10366. }
  10367. return result;
  10368. }
  10369. /**
  10370. * Creates an array of the own enumerable symbols of `object`.
  10371. *
  10372. * @private
  10373. * @param {Object} object The object to query.
  10374. * @returns {Array} Returns the array of symbols.
  10375. */
  10376. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  10377. if (object == null) {
  10378. return [];
  10379. }
  10380. object = Object(object);
  10381. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  10382. return propertyIsEnumerable.call(object, symbol);
  10383. });
  10384. };
  10385. /**
  10386. * Creates an array of the own and inherited enumerable symbols of `object`.
  10387. *
  10388. * @private
  10389. * @param {Object} object The object to query.
  10390. * @returns {Array} Returns the array of symbols.
  10391. */
  10392. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  10393. var result = [];
  10394. while (object) {
  10395. arrayPush(result, getSymbols(object));
  10396. object = getPrototype(object);
  10397. }
  10398. return result;
  10399. };
  10400. /**
  10401. * Gets the `toStringTag` of `value`.
  10402. *
  10403. * @private
  10404. * @param {*} value The value to query.
  10405. * @returns {string} Returns the `toStringTag`.
  10406. */
  10407. var getTag = baseGetTag;
  10408. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  10409. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  10410. (Map && getTag(new Map) != mapTag) ||
  10411. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  10412. (Set && getTag(new Set) != setTag) ||
  10413. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  10414. getTag = function(value) {
  10415. var result = baseGetTag(value),
  10416. Ctor = result == objectTag ? value.constructor : undefined,
  10417. ctorString = Ctor ? toSource(Ctor) : '';
  10418. if (ctorString) {
  10419. switch (ctorString) {
  10420. case dataViewCtorString: return dataViewTag;
  10421. case mapCtorString: return mapTag;
  10422. case promiseCtorString: return promiseTag;
  10423. case setCtorString: return setTag;
  10424. case weakMapCtorString: return weakMapTag;
  10425. }
  10426. }
  10427. return result;
  10428. };
  10429. }
  10430. /**
  10431. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  10432. *
  10433. * @private
  10434. * @param {number} start The start of the view.
  10435. * @param {number} end The end of the view.
  10436. * @param {Array} transforms The transformations to apply to the view.
  10437. * @returns {Object} Returns an object containing the `start` and `end`
  10438. * positions of the view.
  10439. */
  10440. function getView(start, end, transforms) {
  10441. var index = -1,
  10442. length = transforms.length;
  10443. while (++index < length) {
  10444. var data = transforms[index],
  10445. size = data.size;
  10446. switch (data.type) {
  10447. case 'drop': start += size; break;
  10448. case 'dropRight': end -= size; break;
  10449. case 'take': end = nativeMin(end, start + size); break;
  10450. case 'takeRight': start = nativeMax(start, end - size); break;
  10451. }
  10452. }
  10453. return { 'start': start, 'end': end };
  10454. }
  10455. /**
  10456. * Extracts wrapper details from the `source` body comment.
  10457. *
  10458. * @private
  10459. * @param {string} source The source to inspect.
  10460. * @returns {Array} Returns the wrapper details.
  10461. */
  10462. function getWrapDetails(source) {
  10463. var match = source.match(reWrapDetails);
  10464. return match ? match[1].split(reSplitDetails) : [];
  10465. }
  10466. /**
  10467. * Checks if `path` exists on `object`.
  10468. *
  10469. * @private
  10470. * @param {Object} object The object to query.
  10471. * @param {Array|string} path The path to check.
  10472. * @param {Function} hasFunc The function to check properties.
  10473. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  10474. */
  10475. function hasPath(object, path, hasFunc) {
  10476. path = castPath(path, object);
  10477. var index = -1,
  10478. length = path.length,
  10479. result = false;
  10480. while (++index < length) {
  10481. var key = toKey(path[index]);
  10482. if (!(result = object != null && hasFunc(object, key))) {
  10483. break;
  10484. }
  10485. object = object[key];
  10486. }
  10487. if (result || ++index != length) {
  10488. return result;
  10489. }
  10490. length = object == null ? 0 : object.length;
  10491. return !!length && isLength(length) && isIndex(key, length) &&
  10492. (isArray(object) || isArguments(object));
  10493. }
  10494. /**
  10495. * Initializes an array clone.
  10496. *
  10497. * @private
  10498. * @param {Array} array The array to clone.
  10499. * @returns {Array} Returns the initialized clone.
  10500. */
  10501. function initCloneArray(array) {
  10502. var length = array.length,
  10503. result = new array.constructor(length);
  10504. // Add properties assigned by `RegExp#exec`.
  10505. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  10506. result.index = array.index;
  10507. result.input = array.input;
  10508. }
  10509. return result;
  10510. }
  10511. /**
  10512. * Initializes an object clone.
  10513. *
  10514. * @private
  10515. * @param {Object} object The object to clone.
  10516. * @returns {Object} Returns the initialized clone.
  10517. */
  10518. function initCloneObject(object) {
  10519. return (typeof object.constructor == 'function' && !isPrototype(object))
  10520. ? baseCreate(getPrototype(object))
  10521. : {};
  10522. }
  10523. /**
  10524. * Initializes an object clone based on its `toStringTag`.
  10525. *
  10526. * **Note:** This function only supports cloning values with tags of
  10527. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  10528. *
  10529. * @private
  10530. * @param {Object} object The object to clone.
  10531. * @param {string} tag The `toStringTag` of the object to clone.
  10532. * @param {boolean} [isDeep] Specify a deep clone.
  10533. * @returns {Object} Returns the initialized clone.
  10534. */
  10535. function initCloneByTag(object, tag, isDeep) {
  10536. var Ctor = object.constructor;
  10537. switch (tag) {
  10538. case arrayBufferTag:
  10539. return cloneArrayBuffer(object);
  10540. case boolTag:
  10541. case dateTag:
  10542. return new Ctor(+object);
  10543. case dataViewTag:
  10544. return cloneDataView(object, isDeep);
  10545. case float32Tag: case float64Tag:
  10546. case int8Tag: case int16Tag: case int32Tag:
  10547. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  10548. return cloneTypedArray(object, isDeep);
  10549. case mapTag:
  10550. return new Ctor;
  10551. case numberTag:
  10552. case stringTag:
  10553. return new Ctor(object);
  10554. case regexpTag:
  10555. return cloneRegExp(object);
  10556. case setTag:
  10557. return new Ctor;
  10558. case symbolTag:
  10559. return cloneSymbol(object);
  10560. }
  10561. }
  10562. /**
  10563. * Inserts wrapper `details` in a comment at the top of the `source` body.
  10564. *
  10565. * @private
  10566. * @param {string} source The source to modify.
  10567. * @returns {Array} details The details to insert.
  10568. * @returns {string} Returns the modified source.
  10569. */
  10570. function insertWrapDetails(source, details) {
  10571. var length = details.length;
  10572. if (!length) {
  10573. return source;
  10574. }
  10575. var lastIndex = length - 1;
  10576. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  10577. details = details.join(length > 2 ? ', ' : ' ');
  10578. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  10579. }
  10580. /**
  10581. * Checks if `value` is a flattenable `arguments` object or array.
  10582. *
  10583. * @private
  10584. * @param {*} value The value to check.
  10585. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  10586. */
  10587. function isFlattenable(value) {
  10588. return isArray(value) || isArguments(value) ||
  10589. !!(spreadableSymbol && value && value[spreadableSymbol]);
  10590. }
  10591. /**
  10592. * Checks if `value` is a valid array-like index.
  10593. *
  10594. * @private
  10595. * @param {*} value The value to check.
  10596. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  10597. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  10598. */
  10599. function isIndex(value, length) {
  10600. var type = typeof value;
  10601. length = length == null ? MAX_SAFE_INTEGER : length;
  10602. return !!length &&
  10603. (type == 'number' ||
  10604. (type != 'symbol' && reIsUint.test(value))) &&
  10605. (value > -1 && value % 1 == 0 && value < length);
  10606. }
  10607. /**
  10608. * Checks if the given arguments are from an iteratee call.
  10609. *
  10610. * @private
  10611. * @param {*} value The potential iteratee value argument.
  10612. * @param {*} index The potential iteratee index or key argument.
  10613. * @param {*} object The potential iteratee object argument.
  10614. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  10615. * else `false`.
  10616. */
  10617. function isIterateeCall(value, index, object) {
  10618. if (!isObject(object)) {
  10619. return false;
  10620. }
  10621. var type = typeof index;
  10622. if (type == 'number'
  10623. ? (isArrayLike(object) && isIndex(index, object.length))
  10624. : (type == 'string' && index in object)
  10625. ) {
  10626. return eq(object[index], value);
  10627. }
  10628. return false;
  10629. }
  10630. /**
  10631. * Checks if `value` is a property name and not a property path.
  10632. *
  10633. * @private
  10634. * @param {*} value The value to check.
  10635. * @param {Object} [object] The object to query keys on.
  10636. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  10637. */
  10638. function isKey(value, object) {
  10639. if (isArray(value)) {
  10640. return false;
  10641. }
  10642. var type = typeof value;
  10643. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  10644. value == null || isSymbol(value)) {
  10645. return true;
  10646. }
  10647. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  10648. (object != null && value in Object(object));
  10649. }
  10650. /**
  10651. * Checks if `value` is suitable for use as unique object key.
  10652. *
  10653. * @private
  10654. * @param {*} value The value to check.
  10655. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  10656. */
  10657. function isKeyable(value) {
  10658. var type = typeof value;
  10659. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  10660. ? (value !== '__proto__')
  10661. : (value === null);
  10662. }
  10663. /**
  10664. * Checks if `func` has a lazy counterpart.
  10665. *
  10666. * @private
  10667. * @param {Function} func The function to check.
  10668. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  10669. * else `false`.
  10670. */
  10671. function isLaziable(func) {
  10672. var funcName = getFuncName(func),
  10673. other = lodash[funcName];
  10674. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  10675. return false;
  10676. }
  10677. if (func === other) {
  10678. return true;
  10679. }
  10680. var data = getData(other);
  10681. return !!data && func === data[0];
  10682. }
  10683. /**
  10684. * Checks if `func` has its source masked.
  10685. *
  10686. * @private
  10687. * @param {Function} func The function to check.
  10688. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  10689. */
  10690. function isMasked(func) {
  10691. return !!maskSrcKey && (maskSrcKey in func);
  10692. }
  10693. /**
  10694. * Checks if `func` is capable of being masked.
  10695. *
  10696. * @private
  10697. * @param {*} value The value to check.
  10698. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  10699. */
  10700. var isMaskable = coreJsData ? isFunction : stubFalse;
  10701. /**
  10702. * Checks if `value` is likely a prototype object.
  10703. *
  10704. * @private
  10705. * @param {*} value The value to check.
  10706. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  10707. */
  10708. function isPrototype(value) {
  10709. var Ctor = value && value.constructor,
  10710. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  10711. return value === proto;
  10712. }
  10713. /**
  10714. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  10715. *
  10716. * @private
  10717. * @param {*} value The value to check.
  10718. * @returns {boolean} Returns `true` if `value` if suitable for strict
  10719. * equality comparisons, else `false`.
  10720. */
  10721. function isStrictComparable(value) {
  10722. return value === value && !isObject(value);
  10723. }
  10724. /**
  10725. * A specialized version of `matchesProperty` for source values suitable
  10726. * for strict equality comparisons, i.e. `===`.
  10727. *
  10728. * @private
  10729. * @param {string} key The key of the property to get.
  10730. * @param {*} srcValue The value to match.
  10731. * @returns {Function} Returns the new spec function.
  10732. */
  10733. function matchesStrictComparable(key, srcValue) {
  10734. return function(object) {
  10735. if (object == null) {
  10736. return false;
  10737. }
  10738. return object[key] === srcValue &&
  10739. (srcValue !== undefined || (key in Object(object)));
  10740. };
  10741. }
  10742. /**
  10743. * A specialized version of `_.memoize` which clears the memoized function's
  10744. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  10745. *
  10746. * @private
  10747. * @param {Function} func The function to have its output memoized.
  10748. * @returns {Function} Returns the new memoized function.
  10749. */
  10750. function memoizeCapped(func) {
  10751. var result = memoize(func, function(key) {
  10752. if (cache.size === MAX_MEMOIZE_SIZE) {
  10753. cache.clear();
  10754. }
  10755. return key;
  10756. });
  10757. var cache = result.cache;
  10758. return result;
  10759. }
  10760. /**
  10761. * Merges the function metadata of `source` into `data`.
  10762. *
  10763. * Merging metadata reduces the number of wrappers used to invoke a function.
  10764. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  10765. * may be applied regardless of execution order. Methods like `_.ary` and
  10766. * `_.rearg` modify function arguments, making the order in which they are
  10767. * executed important, preventing the merging of metadata. However, we make
  10768. * an exception for a safe combined case where curried functions have `_.ary`
  10769. * and or `_.rearg` applied.
  10770. *
  10771. * @private
  10772. * @param {Array} data The destination metadata.
  10773. * @param {Array} source The source metadata.
  10774. * @returns {Array} Returns `data`.
  10775. */
  10776. function mergeData(data, source) {
  10777. var bitmask = data[1],
  10778. srcBitmask = source[1],
  10779. newBitmask = bitmask | srcBitmask,
  10780. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  10781. var isCombo =
  10782. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  10783. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  10784. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  10785. // Exit early if metadata can't be merged.
  10786. if (!(isCommon || isCombo)) {
  10787. return data;
  10788. }
  10789. // Use source `thisArg` if available.
  10790. if (srcBitmask & WRAP_BIND_FLAG) {
  10791. data[2] = source[2];
  10792. // Set when currying a bound function.
  10793. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  10794. }
  10795. // Compose partial arguments.
  10796. var value = source[3];
  10797. if (value) {
  10798. var partials = data[3];
  10799. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  10800. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  10801. }
  10802. // Compose partial right arguments.
  10803. value = source[5];
  10804. if (value) {
  10805. partials = data[5];
  10806. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  10807. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  10808. }
  10809. // Use source `argPos` if available.
  10810. value = source[7];
  10811. if (value) {
  10812. data[7] = value;
  10813. }
  10814. // Use source `ary` if it's smaller.
  10815. if (srcBitmask & WRAP_ARY_FLAG) {
  10816. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  10817. }
  10818. // Use source `arity` if one is not provided.
  10819. if (data[9] == null) {
  10820. data[9] = source[9];
  10821. }
  10822. // Use source `func` and merge bitmasks.
  10823. data[0] = source[0];
  10824. data[1] = newBitmask;
  10825. return data;
  10826. }
  10827. /**
  10828. * This function is like
  10829. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  10830. * except that it includes inherited enumerable properties.
  10831. *
  10832. * @private
  10833. * @param {Object} object The object to query.
  10834. * @returns {Array} Returns the array of property names.
  10835. */
  10836. function nativeKeysIn(object) {
  10837. var result = [];
  10838. if (object != null) {
  10839. for (var key in Object(object)) {
  10840. result.push(key);
  10841. }
  10842. }
  10843. return result;
  10844. }
  10845. /**
  10846. * Converts `value` to a string using `Object.prototype.toString`.
  10847. *
  10848. * @private
  10849. * @param {*} value The value to convert.
  10850. * @returns {string} Returns the converted string.
  10851. */
  10852. function objectToString(value) {
  10853. return nativeObjectToString.call(value);
  10854. }
  10855. /**
  10856. * A specialized version of `baseRest` which transforms the rest array.
  10857. *
  10858. * @private
  10859. * @param {Function} func The function to apply a rest parameter to.
  10860. * @param {number} [start=func.length-1] The start position of the rest parameter.
  10861. * @param {Function} transform The rest array transform.
  10862. * @returns {Function} Returns the new function.
  10863. */
  10864. function overRest(func, start, transform) {
  10865. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  10866. return function() {
  10867. var args = arguments,
  10868. index = -1,
  10869. length = nativeMax(args.length - start, 0),
  10870. array = Array(length);
  10871. while (++index < length) {
  10872. array[index] = args[start + index];
  10873. }
  10874. index = -1;
  10875. var otherArgs = Array(start + 1);
  10876. while (++index < start) {
  10877. otherArgs[index] = args[index];
  10878. }
  10879. otherArgs[start] = transform(array);
  10880. return apply(func, this, otherArgs);
  10881. };
  10882. }
  10883. /**
  10884. * Gets the parent value at `path` of `object`.
  10885. *
  10886. * @private
  10887. * @param {Object} object The object to query.
  10888. * @param {Array} path The path to get the parent value of.
  10889. * @returns {*} Returns the parent value.
  10890. */
  10891. function parent(object, path) {
  10892. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  10893. }
  10894. /**
  10895. * Reorder `array` according to the specified indexes where the element at
  10896. * the first index is assigned as the first element, the element at
  10897. * the second index is assigned as the second element, and so on.
  10898. *
  10899. * @private
  10900. * @param {Array} array The array to reorder.
  10901. * @param {Array} indexes The arranged array indexes.
  10902. * @returns {Array} Returns `array`.
  10903. */
  10904. function reorder(array, indexes) {
  10905. var arrLength = array.length,
  10906. length = nativeMin(indexes.length, arrLength),
  10907. oldArray = copyArray(array);
  10908. while (length--) {
  10909. var index = indexes[length];
  10910. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  10911. }
  10912. return array;
  10913. }
  10914. /**
  10915. * Gets the value at `key`, unless `key` is "__proto__".
  10916. *
  10917. * @private
  10918. * @param {Object} object The object to query.
  10919. * @param {string} key The key of the property to get.
  10920. * @returns {*} Returns the property value.
  10921. */
  10922. function safeGet(object, key) {
  10923. if (key == '__proto__') {
  10924. return;
  10925. }
  10926. return object[key];
  10927. }
  10928. /**
  10929. * Sets metadata for `func`.
  10930. *
  10931. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  10932. * period of time, it will trip its breaker and transition to an identity
  10933. * function to avoid garbage collection pauses in V8. See
  10934. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  10935. * for more details.
  10936. *
  10937. * @private
  10938. * @param {Function} func The function to associate metadata with.
  10939. * @param {*} data The metadata.
  10940. * @returns {Function} Returns `func`.
  10941. */
  10942. var setData = shortOut(baseSetData);
  10943. /**
  10944. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  10945. *
  10946. * @private
  10947. * @param {Function} func The function to delay.
  10948. * @param {number} wait The number of milliseconds to delay invocation.
  10949. * @returns {number|Object} Returns the timer id or timeout object.
  10950. */
  10951. var setTimeout = ctxSetTimeout || function(func, wait) {
  10952. return root.setTimeout(func, wait);
  10953. };
  10954. /**
  10955. * Sets the `toString` method of `func` to return `string`.
  10956. *
  10957. * @private
  10958. * @param {Function} func The function to modify.
  10959. * @param {Function} string The `toString` result.
  10960. * @returns {Function} Returns `func`.
  10961. */
  10962. var setToString = shortOut(baseSetToString);
  10963. /**
  10964. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  10965. * with wrapper details in a comment at the top of the source body.
  10966. *
  10967. * @private
  10968. * @param {Function} wrapper The function to modify.
  10969. * @param {Function} reference The reference function.
  10970. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  10971. * @returns {Function} Returns `wrapper`.
  10972. */
  10973. function setWrapToString(wrapper, reference, bitmask) {
  10974. var source = (reference + '');
  10975. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  10976. }
  10977. /**
  10978. * Creates a function that'll short out and invoke `identity` instead
  10979. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  10980. * milliseconds.
  10981. *
  10982. * @private
  10983. * @param {Function} func The function to restrict.
  10984. * @returns {Function} Returns the new shortable function.
  10985. */
  10986. function shortOut(func) {
  10987. var count = 0,
  10988. lastCalled = 0;
  10989. return function() {
  10990. var stamp = nativeNow(),
  10991. remaining = HOT_SPAN - (stamp - lastCalled);
  10992. lastCalled = stamp;
  10993. if (remaining > 0) {
  10994. if (++count >= HOT_COUNT) {
  10995. return arguments[0];
  10996. }
  10997. } else {
  10998. count = 0;
  10999. }
  11000. return func.apply(undefined, arguments);
  11001. };
  11002. }
  11003. /**
  11004. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  11005. *
  11006. * @private
  11007. * @param {Array} array The array to shuffle.
  11008. * @param {number} [size=array.length] The size of `array`.
  11009. * @returns {Array} Returns `array`.
  11010. */
  11011. function shuffleSelf(array, size) {
  11012. var index = -1,
  11013. length = array.length,
  11014. lastIndex = length - 1;
  11015. size = size === undefined ? length : size;
  11016. while (++index < size) {
  11017. var rand = baseRandom(index, lastIndex),
  11018. value = array[rand];
  11019. array[rand] = array[index];
  11020. array[index] = value;
  11021. }
  11022. array.length = size;
  11023. return array;
  11024. }
  11025. /**
  11026. * Converts `string` to a property path array.
  11027. *
  11028. * @private
  11029. * @param {string} string The string to convert.
  11030. * @returns {Array} Returns the property path array.
  11031. */
  11032. var stringToPath = memoizeCapped(function(string) {
  11033. var result = [];
  11034. if (string.charCodeAt(0) === 46 /* . */) {
  11035. result.push('');
  11036. }
  11037. string.replace(rePropName, function(match, number, quote, subString) {
  11038. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  11039. });
  11040. return result;
  11041. });
  11042. /**
  11043. * Converts `value` to a string key if it's not a string or symbol.
  11044. *
  11045. * @private
  11046. * @param {*} value The value to inspect.
  11047. * @returns {string|symbol} Returns the key.
  11048. */
  11049. function toKey(value) {
  11050. if (typeof value == 'string' || isSymbol(value)) {
  11051. return value;
  11052. }
  11053. var result = (value + '');
  11054. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11055. }
  11056. /**
  11057. * Converts `func` to its source code.
  11058. *
  11059. * @private
  11060. * @param {Function} func The function to convert.
  11061. * @returns {string} Returns the source code.
  11062. */
  11063. function toSource(func) {
  11064. if (func != null) {
  11065. try {
  11066. return funcToString.call(func);
  11067. } catch (e) {}
  11068. try {
  11069. return (func + '');
  11070. } catch (e) {}
  11071. }
  11072. return '';
  11073. }
  11074. /**
  11075. * Updates wrapper `details` based on `bitmask` flags.
  11076. *
  11077. * @private
  11078. * @returns {Array} details The details to modify.
  11079. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  11080. * @returns {Array} Returns `details`.
  11081. */
  11082. function updateWrapDetails(details, bitmask) {
  11083. arrayEach(wrapFlags, function(pair) {
  11084. var value = '_.' + pair[0];
  11085. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  11086. details.push(value);
  11087. }
  11088. });
  11089. return details.sort();
  11090. }
  11091. /**
  11092. * Creates a clone of `wrapper`.
  11093. *
  11094. * @private
  11095. * @param {Object} wrapper The wrapper to clone.
  11096. * @returns {Object} Returns the cloned wrapper.
  11097. */
  11098. function wrapperClone(wrapper) {
  11099. if (wrapper instanceof LazyWrapper) {
  11100. return wrapper.clone();
  11101. }
  11102. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  11103. result.__actions__ = copyArray(wrapper.__actions__);
  11104. result.__index__ = wrapper.__index__;
  11105. result.__values__ = wrapper.__values__;
  11106. return result;
  11107. }
  11108. /*------------------------------------------------------------------------*/
  11109. /**
  11110. * Creates an array of elements split into groups the length of `size`.
  11111. * If `array` can't be split evenly, the final chunk will be the remaining
  11112. * elements.
  11113. *
  11114. * @static
  11115. * @memberOf _
  11116. * @since 3.0.0
  11117. * @category Array
  11118. * @param {Array} array The array to process.
  11119. * @param {number} [size=1] The length of each chunk
  11120. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  11121. * @returns {Array} Returns the new array of chunks.
  11122. * @example
  11123. *
  11124. * _.chunk(['a', 'b', 'c', 'd'], 2);
  11125. * // => [['a', 'b'], ['c', 'd']]
  11126. *
  11127. * _.chunk(['a', 'b', 'c', 'd'], 3);
  11128. * // => [['a', 'b', 'c'], ['d']]
  11129. */
  11130. function chunk(array, size, guard) {
  11131. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  11132. size = 1;
  11133. } else {
  11134. size = nativeMax(toInteger(size), 0);
  11135. }
  11136. var length = array == null ? 0 : array.length;
  11137. if (!length || size < 1) {
  11138. return [];
  11139. }
  11140. var index = 0,
  11141. resIndex = 0,
  11142. result = Array(nativeCeil(length / size));
  11143. while (index < length) {
  11144. result[resIndex++] = baseSlice(array, index, (index += size));
  11145. }
  11146. return result;
  11147. }
  11148. /**
  11149. * Creates an array with all falsey values removed. The values `false`, `null`,
  11150. * `0`, `""`, `undefined`, and `NaN` are falsey.
  11151. *
  11152. * @static
  11153. * @memberOf _
  11154. * @since 0.1.0
  11155. * @category Array
  11156. * @param {Array} array The array to compact.
  11157. * @returns {Array} Returns the new array of filtered values.
  11158. * @example
  11159. *
  11160. * _.compact([0, 1, false, 2, '', 3]);
  11161. * // => [1, 2, 3]
  11162. */
  11163. function compact(array) {
  11164. var index = -1,
  11165. length = array == null ? 0 : array.length,
  11166. resIndex = 0,
  11167. result = [];
  11168. while (++index < length) {
  11169. var value = array[index];
  11170. if (value) {
  11171. result[resIndex++] = value;
  11172. }
  11173. }
  11174. return result;
  11175. }
  11176. /**
  11177. * Creates a new array concatenating `array` with any additional arrays
  11178. * and/or values.
  11179. *
  11180. * @static
  11181. * @memberOf _
  11182. * @since 4.0.0
  11183. * @category Array
  11184. * @param {Array} array The array to concatenate.
  11185. * @param {...*} [values] The values to concatenate.
  11186. * @returns {Array} Returns the new concatenated array.
  11187. * @example
  11188. *
  11189. * var array = [1];
  11190. * var other = _.concat(array, 2, [3], [[4]]);
  11191. *
  11192. * console.log(other);
  11193. * // => [1, 2, 3, [4]]
  11194. *
  11195. * console.log(array);
  11196. * // => [1]
  11197. */
  11198. function concat() {
  11199. var length = arguments.length;
  11200. if (!length) {
  11201. return [];
  11202. }
  11203. var args = Array(length - 1),
  11204. array = arguments[0],
  11205. index = length;
  11206. while (index--) {
  11207. args[index - 1] = arguments[index];
  11208. }
  11209. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  11210. }
  11211. /**
  11212. * Creates an array of `array` values not included in the other given arrays
  11213. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11214. * for equality comparisons. The order and references of result values are
  11215. * determined by the first array.
  11216. *
  11217. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  11218. *
  11219. * @static
  11220. * @memberOf _
  11221. * @since 0.1.0
  11222. * @category Array
  11223. * @param {Array} array The array to inspect.
  11224. * @param {...Array} [values] The values to exclude.
  11225. * @returns {Array} Returns the new array of filtered values.
  11226. * @see _.without, _.xor
  11227. * @example
  11228. *
  11229. * _.difference([2, 1], [2, 3]);
  11230. * // => [1]
  11231. */
  11232. var difference = baseRest(function(array, values) {
  11233. return isArrayLikeObject(array)
  11234. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  11235. : [];
  11236. });
  11237. /**
  11238. * This method is like `_.difference` except that it accepts `iteratee` which
  11239. * is invoked for each element of `array` and `values` to generate the criterion
  11240. * by which they're compared. The order and references of result values are
  11241. * determined by the first array. The iteratee is invoked with one argument:
  11242. * (value).
  11243. *
  11244. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  11245. *
  11246. * @static
  11247. * @memberOf _
  11248. * @since 4.0.0
  11249. * @category Array
  11250. * @param {Array} array The array to inspect.
  11251. * @param {...Array} [values] The values to exclude.
  11252. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  11253. * @returns {Array} Returns the new array of filtered values.
  11254. * @example
  11255. *
  11256. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  11257. * // => [1.2]
  11258. *
  11259. * // The `_.property` iteratee shorthand.
  11260. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  11261. * // => [{ 'x': 2 }]
  11262. */
  11263. var differenceBy = baseRest(function(array, values) {
  11264. var iteratee = last(values);
  11265. if (isArrayLikeObject(iteratee)) {
  11266. iteratee = undefined;
  11267. }
  11268. return isArrayLikeObject(array)
  11269. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  11270. : [];
  11271. });
  11272. /**
  11273. * This method is like `_.difference` except that it accepts `comparator`
  11274. * which is invoked to compare elements of `array` to `values`. The order and
  11275. * references of result values are determined by the first array. The comparator
  11276. * is invoked with two arguments: (arrVal, othVal).
  11277. *
  11278. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  11279. *
  11280. * @static
  11281. * @memberOf _
  11282. * @since 4.0.0
  11283. * @category Array
  11284. * @param {Array} array The array to inspect.
  11285. * @param {...Array} [values] The values to exclude.
  11286. * @param {Function} [comparator] The comparator invoked per element.
  11287. * @returns {Array} Returns the new array of filtered values.
  11288. * @example
  11289. *
  11290. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  11291. *
  11292. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  11293. * // => [{ 'x': 2, 'y': 1 }]
  11294. */
  11295. var differenceWith = baseRest(function(array, values) {
  11296. var comparator = last(values);
  11297. if (isArrayLikeObject(comparator)) {
  11298. comparator = undefined;
  11299. }
  11300. return isArrayLikeObject(array)
  11301. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  11302. : [];
  11303. });
  11304. /**
  11305. * Creates a slice of `array` with `n` elements dropped from the beginning.
  11306. *
  11307. * @static
  11308. * @memberOf _
  11309. * @since 0.5.0
  11310. * @category Array
  11311. * @param {Array} array The array to query.
  11312. * @param {number} [n=1] The number of elements to drop.
  11313. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  11314. * @returns {Array} Returns the slice of `array`.
  11315. * @example
  11316. *
  11317. * _.drop([1, 2, 3]);
  11318. * // => [2, 3]
  11319. *
  11320. * _.drop([1, 2, 3], 2);
  11321. * // => [3]
  11322. *
  11323. * _.drop([1, 2, 3], 5);
  11324. * // => []
  11325. *
  11326. * _.drop([1, 2, 3], 0);
  11327. * // => [1, 2, 3]
  11328. */
  11329. function drop(array, n, guard) {
  11330. var length = array == null ? 0 : array.length;
  11331. if (!length) {
  11332. return [];
  11333. }
  11334. n = (guard || n === undefined) ? 1 : toInteger(n);
  11335. return baseSlice(array, n < 0 ? 0 : n, length);
  11336. }
  11337. /**
  11338. * Creates a slice of `array` with `n` elements dropped from the end.
  11339. *
  11340. * @static
  11341. * @memberOf _
  11342. * @since 3.0.0
  11343. * @category Array
  11344. * @param {Array} array The array to query.
  11345. * @param {number} [n=1] The number of elements to drop.
  11346. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  11347. * @returns {Array} Returns the slice of `array`.
  11348. * @example
  11349. *
  11350. * _.dropRight([1, 2, 3]);
  11351. * // => [1, 2]
  11352. *
  11353. * _.dropRight([1, 2, 3], 2);
  11354. * // => [1]
  11355. *
  11356. * _.dropRight([1, 2, 3], 5);
  11357. * // => []
  11358. *
  11359. * _.dropRight([1, 2, 3], 0);
  11360. * // => [1, 2, 3]
  11361. */
  11362. function dropRight(array, n, guard) {
  11363. var length = array == null ? 0 : array.length;
  11364. if (!length) {
  11365. return [];
  11366. }
  11367. n = (guard || n === undefined) ? 1 : toInteger(n);
  11368. n = length - n;
  11369. return baseSlice(array, 0, n < 0 ? 0 : n);
  11370. }
  11371. /**
  11372. * Creates a slice of `array` excluding elements dropped from the end.
  11373. * Elements are dropped until `predicate` returns falsey. The predicate is
  11374. * invoked with three arguments: (value, index, array).
  11375. *
  11376. * @static
  11377. * @memberOf _
  11378. * @since 3.0.0
  11379. * @category Array
  11380. * @param {Array} array The array to query.
  11381. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11382. * @returns {Array} Returns the slice of `array`.
  11383. * @example
  11384. *
  11385. * var users = [
  11386. * { 'user': 'barney', 'active': true },
  11387. * { 'user': 'fred', 'active': false },
  11388. * { 'user': 'pebbles', 'active': false }
  11389. * ];
  11390. *
  11391. * _.dropRightWhile(users, function(o) { return !o.active; });
  11392. * // => objects for ['barney']
  11393. *
  11394. * // The `_.matches` iteratee shorthand.
  11395. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  11396. * // => objects for ['barney', 'fred']
  11397. *
  11398. * // The `_.matchesProperty` iteratee shorthand.
  11399. * _.dropRightWhile(users, ['active', false]);
  11400. * // => objects for ['barney']
  11401. *
  11402. * // The `_.property` iteratee shorthand.
  11403. * _.dropRightWhile(users, 'active');
  11404. * // => objects for ['barney', 'fred', 'pebbles']
  11405. */
  11406. function dropRightWhile(array, predicate) {
  11407. return (array && array.length)
  11408. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  11409. : [];
  11410. }
  11411. /**
  11412. * Creates a slice of `array` excluding elements dropped from the beginning.
  11413. * Elements are dropped until `predicate` returns falsey. The predicate is
  11414. * invoked with three arguments: (value, index, array).
  11415. *
  11416. * @static
  11417. * @memberOf _
  11418. * @since 3.0.0
  11419. * @category Array
  11420. * @param {Array} array The array to query.
  11421. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11422. * @returns {Array} Returns the slice of `array`.
  11423. * @example
  11424. *
  11425. * var users = [
  11426. * { 'user': 'barney', 'active': false },
  11427. * { 'user': 'fred', 'active': false },
  11428. * { 'user': 'pebbles', 'active': true }
  11429. * ];
  11430. *
  11431. * _.dropWhile(users, function(o) { return !o.active; });
  11432. * // => objects for ['pebbles']
  11433. *
  11434. * // The `_.matches` iteratee shorthand.
  11435. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  11436. * // => objects for ['fred', 'pebbles']
  11437. *
  11438. * // The `_.matchesProperty` iteratee shorthand.
  11439. * _.dropWhile(users, ['active', false]);
  11440. * // => objects for ['pebbles']
  11441. *
  11442. * // The `_.property` iteratee shorthand.
  11443. * _.dropWhile(users, 'active');
  11444. * // => objects for ['barney', 'fred', 'pebbles']
  11445. */
  11446. function dropWhile(array, predicate) {
  11447. return (array && array.length)
  11448. ? baseWhile(array, getIteratee(predicate, 3), true)
  11449. : [];
  11450. }
  11451. /**
  11452. * Fills elements of `array` with `value` from `start` up to, but not
  11453. * including, `end`.
  11454. *
  11455. * **Note:** This method mutates `array`.
  11456. *
  11457. * @static
  11458. * @memberOf _
  11459. * @since 3.2.0
  11460. * @category Array
  11461. * @param {Array} array The array to fill.
  11462. * @param {*} value The value to fill `array` with.
  11463. * @param {number} [start=0] The start position.
  11464. * @param {number} [end=array.length] The end position.
  11465. * @returns {Array} Returns `array`.
  11466. * @example
  11467. *
  11468. * var array = [1, 2, 3];
  11469. *
  11470. * _.fill(array, 'a');
  11471. * console.log(array);
  11472. * // => ['a', 'a', 'a']
  11473. *
  11474. * _.fill(Array(3), 2);
  11475. * // => [2, 2, 2]
  11476. *
  11477. * _.fill([4, 6, 8, 10], '*', 1, 3);
  11478. * // => [4, '*', '*', 10]
  11479. */
  11480. function fill(array, value, start, end) {
  11481. var length = array == null ? 0 : array.length;
  11482. if (!length) {
  11483. return [];
  11484. }
  11485. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  11486. start = 0;
  11487. end = length;
  11488. }
  11489. return baseFill(array, value, start, end);
  11490. }
  11491. /**
  11492. * This method is like `_.find` except that it returns the index of the first
  11493. * element `predicate` returns truthy for instead of the element itself.
  11494. *
  11495. * @static
  11496. * @memberOf _
  11497. * @since 1.1.0
  11498. * @category Array
  11499. * @param {Array} array The array to inspect.
  11500. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11501. * @param {number} [fromIndex=0] The index to search from.
  11502. * @returns {number} Returns the index of the found element, else `-1`.
  11503. * @example
  11504. *
  11505. * var users = [
  11506. * { 'user': 'barney', 'active': false },
  11507. * { 'user': 'fred', 'active': false },
  11508. * { 'user': 'pebbles', 'active': true }
  11509. * ];
  11510. *
  11511. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  11512. * // => 0
  11513. *
  11514. * // The `_.matches` iteratee shorthand.
  11515. * _.findIndex(users, { 'user': 'fred', 'active': false });
  11516. * // => 1
  11517. *
  11518. * // The `_.matchesProperty` iteratee shorthand.
  11519. * _.findIndex(users, ['active', false]);
  11520. * // => 0
  11521. *
  11522. * // The `_.property` iteratee shorthand.
  11523. * _.findIndex(users, 'active');
  11524. * // => 2
  11525. */
  11526. function findIndex(array, predicate, fromIndex) {
  11527. var length = array == null ? 0 : array.length;
  11528. if (!length) {
  11529. return -1;
  11530. }
  11531. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  11532. if (index < 0) {
  11533. index = nativeMax(length + index, 0);
  11534. }
  11535. return baseFindIndex(array, getIteratee(predicate, 3), index);
  11536. }
  11537. /**
  11538. * This method is like `_.findIndex` except that it iterates over elements
  11539. * of `collection` from right to left.
  11540. *
  11541. * @static
  11542. * @memberOf _
  11543. * @since 2.0.0
  11544. * @category Array
  11545. * @param {Array} array The array to inspect.
  11546. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11547. * @param {number} [fromIndex=array.length-1] The index to search from.
  11548. * @returns {number} Returns the index of the found element, else `-1`.
  11549. * @example
  11550. *
  11551. * var users = [
  11552. * { 'user': 'barney', 'active': true },
  11553. * { 'user': 'fred', 'active': false },
  11554. * { 'user': 'pebbles', 'active': false }
  11555. * ];
  11556. *
  11557. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  11558. * // => 2
  11559. *
  11560. * // The `_.matches` iteratee shorthand.
  11561. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  11562. * // => 0
  11563. *
  11564. * // The `_.matchesProperty` iteratee shorthand.
  11565. * _.findLastIndex(users, ['active', false]);
  11566. * // => 2
  11567. *
  11568. * // The `_.property` iteratee shorthand.
  11569. * _.findLastIndex(users, 'active');
  11570. * // => 0
  11571. */
  11572. function findLastIndex(array, predicate, fromIndex) {
  11573. var length = array == null ? 0 : array.length;
  11574. if (!length) {
  11575. return -1;
  11576. }
  11577. var index = length - 1;
  11578. if (fromIndex !== undefined) {
  11579. index = toInteger(fromIndex);
  11580. index = fromIndex < 0
  11581. ? nativeMax(length + index, 0)
  11582. : nativeMin(index, length - 1);
  11583. }
  11584. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  11585. }
  11586. /**
  11587. * Flattens `array` a single level deep.
  11588. *
  11589. * @static
  11590. * @memberOf _
  11591. * @since 0.1.0
  11592. * @category Array
  11593. * @param {Array} array The array to flatten.
  11594. * @returns {Array} Returns the new flattened array.
  11595. * @example
  11596. *
  11597. * _.flatten([1, [2, [3, [4]], 5]]);
  11598. * // => [1, 2, [3, [4]], 5]
  11599. */
  11600. function flatten(array) {
  11601. var length = array == null ? 0 : array.length;
  11602. return length ? baseFlatten(array, 1) : [];
  11603. }
  11604. /**
  11605. * Recursively flattens `array`.
  11606. *
  11607. * @static
  11608. * @memberOf _
  11609. * @since 3.0.0
  11610. * @category Array
  11611. * @param {Array} array The array to flatten.
  11612. * @returns {Array} Returns the new flattened array.
  11613. * @example
  11614. *
  11615. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  11616. * // => [1, 2, 3, 4, 5]
  11617. */
  11618. function flattenDeep(array) {
  11619. var length = array == null ? 0 : array.length;
  11620. return length ? baseFlatten(array, INFINITY) : [];
  11621. }
  11622. /**
  11623. * Recursively flatten `array` up to `depth` times.
  11624. *
  11625. * @static
  11626. * @memberOf _
  11627. * @since 4.4.0
  11628. * @category Array
  11629. * @param {Array} array The array to flatten.
  11630. * @param {number} [depth=1] The maximum recursion depth.
  11631. * @returns {Array} Returns the new flattened array.
  11632. * @example
  11633. *
  11634. * var array = [1, [2, [3, [4]], 5]];
  11635. *
  11636. * _.flattenDepth(array, 1);
  11637. * // => [1, 2, [3, [4]], 5]
  11638. *
  11639. * _.flattenDepth(array, 2);
  11640. * // => [1, 2, 3, [4], 5]
  11641. */
  11642. function flattenDepth(array, depth) {
  11643. var length = array == null ? 0 : array.length;
  11644. if (!length) {
  11645. return [];
  11646. }
  11647. depth = depth === undefined ? 1 : toInteger(depth);
  11648. return baseFlatten(array, depth);
  11649. }
  11650. /**
  11651. * The inverse of `_.toPairs`; this method returns an object composed
  11652. * from key-value `pairs`.
  11653. *
  11654. * @static
  11655. * @memberOf _
  11656. * @since 4.0.0
  11657. * @category Array
  11658. * @param {Array} pairs The key-value pairs.
  11659. * @returns {Object} Returns the new object.
  11660. * @example
  11661. *
  11662. * _.fromPairs([['a', 1], ['b', 2]]);
  11663. * // => { 'a': 1, 'b': 2 }
  11664. */
  11665. function fromPairs(pairs) {
  11666. var index = -1,
  11667. length = pairs == null ? 0 : pairs.length,
  11668. result = {};
  11669. while (++index < length) {
  11670. var pair = pairs[index];
  11671. result[pair[0]] = pair[1];
  11672. }
  11673. return result;
  11674. }
  11675. /**
  11676. * Gets the first element of `array`.
  11677. *
  11678. * @static
  11679. * @memberOf _
  11680. * @since 0.1.0
  11681. * @alias first
  11682. * @category Array
  11683. * @param {Array} array The array to query.
  11684. * @returns {*} Returns the first element of `array`.
  11685. * @example
  11686. *
  11687. * _.head([1, 2, 3]);
  11688. * // => 1
  11689. *
  11690. * _.head([]);
  11691. * // => undefined
  11692. */
  11693. function head(array) {
  11694. return (array && array.length) ? array[0] : undefined;
  11695. }
  11696. /**
  11697. * Gets the index at which the first occurrence of `value` is found in `array`
  11698. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11699. * for equality comparisons. If `fromIndex` is negative, it's used as the
  11700. * offset from the end of `array`.
  11701. *
  11702. * @static
  11703. * @memberOf _
  11704. * @since 0.1.0
  11705. * @category Array
  11706. * @param {Array} array The array to inspect.
  11707. * @param {*} value The value to search for.
  11708. * @param {number} [fromIndex=0] The index to search from.
  11709. * @returns {number} Returns the index of the matched value, else `-1`.
  11710. * @example
  11711. *
  11712. * _.indexOf([1, 2, 1, 2], 2);
  11713. * // => 1
  11714. *
  11715. * // Search from the `fromIndex`.
  11716. * _.indexOf([1, 2, 1, 2], 2, 2);
  11717. * // => 3
  11718. */
  11719. function indexOf(array, value, fromIndex) {
  11720. var length = array == null ? 0 : array.length;
  11721. if (!length) {
  11722. return -1;
  11723. }
  11724. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  11725. if (index < 0) {
  11726. index = nativeMax(length + index, 0);
  11727. }
  11728. return baseIndexOf(array, value, index);
  11729. }
  11730. /**
  11731. * Gets all but the last element of `array`.
  11732. *
  11733. * @static
  11734. * @memberOf _
  11735. * @since 0.1.0
  11736. * @category Array
  11737. * @param {Array} array The array to query.
  11738. * @returns {Array} Returns the slice of `array`.
  11739. * @example
  11740. *
  11741. * _.initial([1, 2, 3]);
  11742. * // => [1, 2]
  11743. */
  11744. function initial(array) {
  11745. var length = array == null ? 0 : array.length;
  11746. return length ? baseSlice(array, 0, -1) : [];
  11747. }
  11748. /**
  11749. * Creates an array of unique values that are included in all given arrays
  11750. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11751. * for equality comparisons. The order and references of result values are
  11752. * determined by the first array.
  11753. *
  11754. * @static
  11755. * @memberOf _
  11756. * @since 0.1.0
  11757. * @category Array
  11758. * @param {...Array} [arrays] The arrays to inspect.
  11759. * @returns {Array} Returns the new array of intersecting values.
  11760. * @example
  11761. *
  11762. * _.intersection([2, 1], [2, 3]);
  11763. * // => [2]
  11764. */
  11765. var intersection = baseRest(function(arrays) {
  11766. var mapped = arrayMap(arrays, castArrayLikeObject);
  11767. return (mapped.length && mapped[0] === arrays[0])
  11768. ? baseIntersection(mapped)
  11769. : [];
  11770. });
  11771. /**
  11772. * This method is like `_.intersection` except that it accepts `iteratee`
  11773. * which is invoked for each element of each `arrays` to generate the criterion
  11774. * by which they're compared. The order and references of result values are
  11775. * determined by the first array. The iteratee is invoked with one argument:
  11776. * (value).
  11777. *
  11778. * @static
  11779. * @memberOf _
  11780. * @since 4.0.0
  11781. * @category Array
  11782. * @param {...Array} [arrays] The arrays to inspect.
  11783. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  11784. * @returns {Array} Returns the new array of intersecting values.
  11785. * @example
  11786. *
  11787. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  11788. * // => [2.1]
  11789. *
  11790. * // The `_.property` iteratee shorthand.
  11791. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  11792. * // => [{ 'x': 1 }]
  11793. */
  11794. var intersectionBy = baseRest(function(arrays) {
  11795. var iteratee = last(arrays),
  11796. mapped = arrayMap(arrays, castArrayLikeObject);
  11797. if (iteratee === last(mapped)) {
  11798. iteratee = undefined;
  11799. } else {
  11800. mapped.pop();
  11801. }
  11802. return (mapped.length && mapped[0] === arrays[0])
  11803. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  11804. : [];
  11805. });
  11806. /**
  11807. * This method is like `_.intersection` except that it accepts `comparator`
  11808. * which is invoked to compare elements of `arrays`. The order and references
  11809. * of result values are determined by the first array. The comparator is
  11810. * invoked with two arguments: (arrVal, othVal).
  11811. *
  11812. * @static
  11813. * @memberOf _
  11814. * @since 4.0.0
  11815. * @category Array
  11816. * @param {...Array} [arrays] The arrays to inspect.
  11817. * @param {Function} [comparator] The comparator invoked per element.
  11818. * @returns {Array} Returns the new array of intersecting values.
  11819. * @example
  11820. *
  11821. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  11822. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  11823. *
  11824. * _.intersectionWith(objects, others, _.isEqual);
  11825. * // => [{ 'x': 1, 'y': 2 }]
  11826. */
  11827. var intersectionWith = baseRest(function(arrays) {
  11828. var comparator = last(arrays),
  11829. mapped = arrayMap(arrays, castArrayLikeObject);
  11830. comparator = typeof comparator == 'function' ? comparator : undefined;
  11831. if (comparator) {
  11832. mapped.pop();
  11833. }
  11834. return (mapped.length && mapped[0] === arrays[0])
  11835. ? baseIntersection(mapped, undefined, comparator)
  11836. : [];
  11837. });
  11838. /**
  11839. * Converts all elements in `array` into a string separated by `separator`.
  11840. *
  11841. * @static
  11842. * @memberOf _
  11843. * @since 4.0.0
  11844. * @category Array
  11845. * @param {Array} array The array to convert.
  11846. * @param {string} [separator=','] The element separator.
  11847. * @returns {string} Returns the joined string.
  11848. * @example
  11849. *
  11850. * _.join(['a', 'b', 'c'], '~');
  11851. * // => 'a~b~c'
  11852. */
  11853. function join(array, separator) {
  11854. return array == null ? '' : nativeJoin.call(array, separator);
  11855. }
  11856. /**
  11857. * Gets the last element of `array`.
  11858. *
  11859. * @static
  11860. * @memberOf _
  11861. * @since 0.1.0
  11862. * @category Array
  11863. * @param {Array} array The array to query.
  11864. * @returns {*} Returns the last element of `array`.
  11865. * @example
  11866. *
  11867. * _.last([1, 2, 3]);
  11868. * // => 3
  11869. */
  11870. function last(array) {
  11871. var length = array == null ? 0 : array.length;
  11872. return length ? array[length - 1] : undefined;
  11873. }
  11874. /**
  11875. * This method is like `_.indexOf` except that it iterates over elements of
  11876. * `array` from right to left.
  11877. *
  11878. * @static
  11879. * @memberOf _
  11880. * @since 0.1.0
  11881. * @category Array
  11882. * @param {Array} array The array to inspect.
  11883. * @param {*} value The value to search for.
  11884. * @param {number} [fromIndex=array.length-1] The index to search from.
  11885. * @returns {number} Returns the index of the matched value, else `-1`.
  11886. * @example
  11887. *
  11888. * _.lastIndexOf([1, 2, 1, 2], 2);
  11889. * // => 3
  11890. *
  11891. * // Search from the `fromIndex`.
  11892. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  11893. * // => 1
  11894. */
  11895. function lastIndexOf(array, value, fromIndex) {
  11896. var length = array == null ? 0 : array.length;
  11897. if (!length) {
  11898. return -1;
  11899. }
  11900. var index = length;
  11901. if (fromIndex !== undefined) {
  11902. index = toInteger(fromIndex);
  11903. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  11904. }
  11905. return value === value
  11906. ? strictLastIndexOf(array, value, index)
  11907. : baseFindIndex(array, baseIsNaN, index, true);
  11908. }
  11909. /**
  11910. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  11911. * element from the end is returned.
  11912. *
  11913. * @static
  11914. * @memberOf _
  11915. * @since 4.11.0
  11916. * @category Array
  11917. * @param {Array} array The array to query.
  11918. * @param {number} [n=0] The index of the element to return.
  11919. * @returns {*} Returns the nth element of `array`.
  11920. * @example
  11921. *
  11922. * var array = ['a', 'b', 'c', 'd'];
  11923. *
  11924. * _.nth(array, 1);
  11925. * // => 'b'
  11926. *
  11927. * _.nth(array, -2);
  11928. * // => 'c';
  11929. */
  11930. function nth(array, n) {
  11931. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  11932. }
  11933. /**
  11934. * Removes all given values from `array` using
  11935. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11936. * for equality comparisons.
  11937. *
  11938. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  11939. * to remove elements from an array by predicate.
  11940. *
  11941. * @static
  11942. * @memberOf _
  11943. * @since 2.0.0
  11944. * @category Array
  11945. * @param {Array} array The array to modify.
  11946. * @param {...*} [values] The values to remove.
  11947. * @returns {Array} Returns `array`.
  11948. * @example
  11949. *
  11950. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  11951. *
  11952. * _.pull(array, 'a', 'c');
  11953. * console.log(array);
  11954. * // => ['b', 'b']
  11955. */
  11956. var pull = baseRest(pullAll);
  11957. /**
  11958. * This method is like `_.pull` except that it accepts an array of values to remove.
  11959. *
  11960. * **Note:** Unlike `_.difference`, this method mutates `array`.
  11961. *
  11962. * @static
  11963. * @memberOf _
  11964. * @since 4.0.0
  11965. * @category Array
  11966. * @param {Array} array The array to modify.
  11967. * @param {Array} values The values to remove.
  11968. * @returns {Array} Returns `array`.
  11969. * @example
  11970. *
  11971. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  11972. *
  11973. * _.pullAll(array, ['a', 'c']);
  11974. * console.log(array);
  11975. * // => ['b', 'b']
  11976. */
  11977. function pullAll(array, values) {
  11978. return (array && array.length && values && values.length)
  11979. ? basePullAll(array, values)
  11980. : array;
  11981. }
  11982. /**
  11983. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  11984. * invoked for each element of `array` and `values` to generate the criterion
  11985. * by which they're compared. The iteratee is invoked with one argument: (value).
  11986. *
  11987. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  11988. *
  11989. * @static
  11990. * @memberOf _
  11991. * @since 4.0.0
  11992. * @category Array
  11993. * @param {Array} array The array to modify.
  11994. * @param {Array} values The values to remove.
  11995. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  11996. * @returns {Array} Returns `array`.
  11997. * @example
  11998. *
  11999. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  12000. *
  12001. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  12002. * console.log(array);
  12003. * // => [{ 'x': 2 }]
  12004. */
  12005. function pullAllBy(array, values, iteratee) {
  12006. return (array && array.length && values && values.length)
  12007. ? basePullAll(array, values, getIteratee(iteratee, 2))
  12008. : array;
  12009. }
  12010. /**
  12011. * This method is like `_.pullAll` except that it accepts `comparator` which
  12012. * is invoked to compare elements of `array` to `values`. The comparator is
  12013. * invoked with two arguments: (arrVal, othVal).
  12014. *
  12015. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  12016. *
  12017. * @static
  12018. * @memberOf _
  12019. * @since 4.6.0
  12020. * @category Array
  12021. * @param {Array} array The array to modify.
  12022. * @param {Array} values The values to remove.
  12023. * @param {Function} [comparator] The comparator invoked per element.
  12024. * @returns {Array} Returns `array`.
  12025. * @example
  12026. *
  12027. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  12028. *
  12029. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  12030. * console.log(array);
  12031. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  12032. */
  12033. function pullAllWith(array, values, comparator) {
  12034. return (array && array.length && values && values.length)
  12035. ? basePullAll(array, values, undefined, comparator)
  12036. : array;
  12037. }
  12038. /**
  12039. * Removes elements from `array` corresponding to `indexes` and returns an
  12040. * array of removed elements.
  12041. *
  12042. * **Note:** Unlike `_.at`, this method mutates `array`.
  12043. *
  12044. * @static
  12045. * @memberOf _
  12046. * @since 3.0.0
  12047. * @category Array
  12048. * @param {Array} array The array to modify.
  12049. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  12050. * @returns {Array} Returns the new array of removed elements.
  12051. * @example
  12052. *
  12053. * var array = ['a', 'b', 'c', 'd'];
  12054. * var pulled = _.pullAt(array, [1, 3]);
  12055. *
  12056. * console.log(array);
  12057. * // => ['a', 'c']
  12058. *
  12059. * console.log(pulled);
  12060. * // => ['b', 'd']
  12061. */
  12062. var pullAt = flatRest(function(array, indexes) {
  12063. var length = array == null ? 0 : array.length,
  12064. result = baseAt(array, indexes);
  12065. basePullAt(array, arrayMap(indexes, function(index) {
  12066. return isIndex(index, length) ? +index : index;
  12067. }).sort(compareAscending));
  12068. return result;
  12069. });
  12070. /**
  12071. * Removes all elements from `array` that `predicate` returns truthy for
  12072. * and returns an array of the removed elements. The predicate is invoked
  12073. * with three arguments: (value, index, array).
  12074. *
  12075. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  12076. * to pull elements from an array by value.
  12077. *
  12078. * @static
  12079. * @memberOf _
  12080. * @since 2.0.0
  12081. * @category Array
  12082. * @param {Array} array The array to modify.
  12083. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  12084. * @returns {Array} Returns the new array of removed elements.
  12085. * @example
  12086. *
  12087. * var array = [1, 2, 3, 4];
  12088. * var evens = _.remove(array, function(n) {
  12089. * return n % 2 == 0;
  12090. * });
  12091. *
  12092. * console.log(array);
  12093. * // => [1, 3]
  12094. *
  12095. * console.log(evens);
  12096. * // => [2, 4]
  12097. */
  12098. function remove(array, predicate) {
  12099. var result = [];
  12100. if (!(array && array.length)) {
  12101. return result;
  12102. }
  12103. var index = -1,
  12104. indexes = [],
  12105. length = array.length;
  12106. predicate = getIteratee(predicate, 3);
  12107. while (++index < length) {
  12108. var value = array[index];
  12109. if (predicate(value, index, array)) {
  12110. result.push(value);
  12111. indexes.push(index);
  12112. }
  12113. }
  12114. basePullAt(array, indexes);
  12115. return result;
  12116. }
  12117. /**
  12118. * Reverses `array` so that the first element becomes the last, the second
  12119. * element becomes the second to last, and so on.
  12120. *
  12121. * **Note:** This method mutates `array` and is based on
  12122. * [`Array#reverse`](https://mdn.io/Array/reverse).
  12123. *
  12124. * @static
  12125. * @memberOf _
  12126. * @since 4.0.0
  12127. * @category Array
  12128. * @param {Array} array The array to modify.
  12129. * @returns {Array} Returns `array`.
  12130. * @example
  12131. *
  12132. * var array = [1, 2, 3];
  12133. *
  12134. * _.reverse(array);
  12135. * // => [3, 2, 1]
  12136. *
  12137. * console.log(array);
  12138. * // => [3, 2, 1]
  12139. */
  12140. function reverse(array) {
  12141. return array == null ? array : nativeReverse.call(array);
  12142. }
  12143. /**
  12144. * Creates a slice of `array` from `start` up to, but not including, `end`.
  12145. *
  12146. * **Note:** This method is used instead of
  12147. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  12148. * returned.
  12149. *
  12150. * @static
  12151. * @memberOf _
  12152. * @since 3.0.0
  12153. * @category Array
  12154. * @param {Array} array The array to slice.
  12155. * @param {number} [start=0] The start position.
  12156. * @param {number} [end=array.length] The end position.
  12157. * @returns {Array} Returns the slice of `array`.
  12158. */
  12159. function slice(array, start, end) {
  12160. var length = array == null ? 0 : array.length;
  12161. if (!length) {
  12162. return [];
  12163. }
  12164. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  12165. start = 0;
  12166. end = length;
  12167. }
  12168. else {
  12169. start = start == null ? 0 : toInteger(start);
  12170. end = end === undefined ? length : toInteger(end);
  12171. }
  12172. return baseSlice(array, start, end);
  12173. }
  12174. /**
  12175. * Uses a binary search to determine the lowest index at which `value`
  12176. * should be inserted into `array` in order to maintain its sort order.
  12177. *
  12178. * @static
  12179. * @memberOf _
  12180. * @since 0.1.0
  12181. * @category Array
  12182. * @param {Array} array The sorted array to inspect.
  12183. * @param {*} value The value to evaluate.
  12184. * @returns {number} Returns the index at which `value` should be inserted
  12185. * into `array`.
  12186. * @example
  12187. *
  12188. * _.sortedIndex([30, 50], 40);
  12189. * // => 1
  12190. */
  12191. function sortedIndex(array, value) {
  12192. return baseSortedIndex(array, value);
  12193. }
  12194. /**
  12195. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  12196. * which is invoked for `value` and each element of `array` to compute their
  12197. * sort ranking. The iteratee is invoked with one argument: (value).
  12198. *
  12199. * @static
  12200. * @memberOf _
  12201. * @since 4.0.0
  12202. * @category Array
  12203. * @param {Array} array The sorted array to inspect.
  12204. * @param {*} value The value to evaluate.
  12205. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12206. * @returns {number} Returns the index at which `value` should be inserted
  12207. * into `array`.
  12208. * @example
  12209. *
  12210. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  12211. *
  12212. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  12213. * // => 0
  12214. *
  12215. * // The `_.property` iteratee shorthand.
  12216. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  12217. * // => 0
  12218. */
  12219. function sortedIndexBy(array, value, iteratee) {
  12220. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  12221. }
  12222. /**
  12223. * This method is like `_.indexOf` except that it performs a binary
  12224. * search on a sorted `array`.
  12225. *
  12226. * @static
  12227. * @memberOf _
  12228. * @since 4.0.0
  12229. * @category Array
  12230. * @param {Array} array The array to inspect.
  12231. * @param {*} value The value to search for.
  12232. * @returns {number} Returns the index of the matched value, else `-1`.
  12233. * @example
  12234. *
  12235. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  12236. * // => 1
  12237. */
  12238. function sortedIndexOf(array, value) {
  12239. var length = array == null ? 0 : array.length;
  12240. if (length) {
  12241. var index = baseSortedIndex(array, value);
  12242. if (index < length && eq(array[index], value)) {
  12243. return index;
  12244. }
  12245. }
  12246. return -1;
  12247. }
  12248. /**
  12249. * This method is like `_.sortedIndex` except that it returns the highest
  12250. * index at which `value` should be inserted into `array` in order to
  12251. * maintain its sort order.
  12252. *
  12253. * @static
  12254. * @memberOf _
  12255. * @since 3.0.0
  12256. * @category Array
  12257. * @param {Array} array The sorted array to inspect.
  12258. * @param {*} value The value to evaluate.
  12259. * @returns {number} Returns the index at which `value` should be inserted
  12260. * into `array`.
  12261. * @example
  12262. *
  12263. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  12264. * // => 4
  12265. */
  12266. function sortedLastIndex(array, value) {
  12267. return baseSortedIndex(array, value, true);
  12268. }
  12269. /**
  12270. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  12271. * which is invoked for `value` and each element of `array` to compute their
  12272. * sort ranking. The iteratee is invoked with one argument: (value).
  12273. *
  12274. * @static
  12275. * @memberOf _
  12276. * @since 4.0.0
  12277. * @category Array
  12278. * @param {Array} array The sorted array to inspect.
  12279. * @param {*} value The value to evaluate.
  12280. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12281. * @returns {number} Returns the index at which `value` should be inserted
  12282. * into `array`.
  12283. * @example
  12284. *
  12285. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  12286. *
  12287. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  12288. * // => 1
  12289. *
  12290. * // The `_.property` iteratee shorthand.
  12291. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  12292. * // => 1
  12293. */
  12294. function sortedLastIndexBy(array, value, iteratee) {
  12295. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  12296. }
  12297. /**
  12298. * This method is like `_.lastIndexOf` except that it performs a binary
  12299. * search on a sorted `array`.
  12300. *
  12301. * @static
  12302. * @memberOf _
  12303. * @since 4.0.0
  12304. * @category Array
  12305. * @param {Array} array The array to inspect.
  12306. * @param {*} value The value to search for.
  12307. * @returns {number} Returns the index of the matched value, else `-1`.
  12308. * @example
  12309. *
  12310. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  12311. * // => 3
  12312. */
  12313. function sortedLastIndexOf(array, value) {
  12314. var length = array == null ? 0 : array.length;
  12315. if (length) {
  12316. var index = baseSortedIndex(array, value, true) - 1;
  12317. if (eq(array[index], value)) {
  12318. return index;
  12319. }
  12320. }
  12321. return -1;
  12322. }
  12323. /**
  12324. * This method is like `_.uniq` except that it's designed and optimized
  12325. * for sorted arrays.
  12326. *
  12327. * @static
  12328. * @memberOf _
  12329. * @since 4.0.0
  12330. * @category Array
  12331. * @param {Array} array The array to inspect.
  12332. * @returns {Array} Returns the new duplicate free array.
  12333. * @example
  12334. *
  12335. * _.sortedUniq([1, 1, 2]);
  12336. * // => [1, 2]
  12337. */
  12338. function sortedUniq(array) {
  12339. return (array && array.length)
  12340. ? baseSortedUniq(array)
  12341. : [];
  12342. }
  12343. /**
  12344. * This method is like `_.uniqBy` except that it's designed and optimized
  12345. * for sorted arrays.
  12346. *
  12347. * @static
  12348. * @memberOf _
  12349. * @since 4.0.0
  12350. * @category Array
  12351. * @param {Array} array The array to inspect.
  12352. * @param {Function} [iteratee] The iteratee invoked per element.
  12353. * @returns {Array} Returns the new duplicate free array.
  12354. * @example
  12355. *
  12356. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  12357. * // => [1.1, 2.3]
  12358. */
  12359. function sortedUniqBy(array, iteratee) {
  12360. return (array && array.length)
  12361. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  12362. : [];
  12363. }
  12364. /**
  12365. * Gets all but the first element of `array`.
  12366. *
  12367. * @static
  12368. * @memberOf _
  12369. * @since 4.0.0
  12370. * @category Array
  12371. * @param {Array} array The array to query.
  12372. * @returns {Array} Returns the slice of `array`.
  12373. * @example
  12374. *
  12375. * _.tail([1, 2, 3]);
  12376. * // => [2, 3]
  12377. */
  12378. function tail(array) {
  12379. var length = array == null ? 0 : array.length;
  12380. return length ? baseSlice(array, 1, length) : [];
  12381. }
  12382. /**
  12383. * Creates a slice of `array` with `n` elements taken from the beginning.
  12384. *
  12385. * @static
  12386. * @memberOf _
  12387. * @since 0.1.0
  12388. * @category Array
  12389. * @param {Array} array The array to query.
  12390. * @param {number} [n=1] The number of elements to take.
  12391. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  12392. * @returns {Array} Returns the slice of `array`.
  12393. * @example
  12394. *
  12395. * _.take([1, 2, 3]);
  12396. * // => [1]
  12397. *
  12398. * _.take([1, 2, 3], 2);
  12399. * // => [1, 2]
  12400. *
  12401. * _.take([1, 2, 3], 5);
  12402. * // => [1, 2, 3]
  12403. *
  12404. * _.take([1, 2, 3], 0);
  12405. * // => []
  12406. */
  12407. function take(array, n, guard) {
  12408. if (!(array && array.length)) {
  12409. return [];
  12410. }
  12411. n = (guard || n === undefined) ? 1 : toInteger(n);
  12412. return baseSlice(array, 0, n < 0 ? 0 : n);
  12413. }
  12414. /**
  12415. * Creates a slice of `array` with `n` elements taken from the end.
  12416. *
  12417. * @static
  12418. * @memberOf _
  12419. * @since 3.0.0
  12420. * @category Array
  12421. * @param {Array} array The array to query.
  12422. * @param {number} [n=1] The number of elements to take.
  12423. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  12424. * @returns {Array} Returns the slice of `array`.
  12425. * @example
  12426. *
  12427. * _.takeRight([1, 2, 3]);
  12428. * // => [3]
  12429. *
  12430. * _.takeRight([1, 2, 3], 2);
  12431. * // => [2, 3]
  12432. *
  12433. * _.takeRight([1, 2, 3], 5);
  12434. * // => [1, 2, 3]
  12435. *
  12436. * _.takeRight([1, 2, 3], 0);
  12437. * // => []
  12438. */
  12439. function takeRight(array, n, guard) {
  12440. var length = array == null ? 0 : array.length;
  12441. if (!length) {
  12442. return [];
  12443. }
  12444. n = (guard || n === undefined) ? 1 : toInteger(n);
  12445. n = length - n;
  12446. return baseSlice(array, n < 0 ? 0 : n, length);
  12447. }
  12448. /**
  12449. * Creates a slice of `array` with elements taken from the end. Elements are
  12450. * taken until `predicate` returns falsey. The predicate is invoked with
  12451. * three arguments: (value, index, array).
  12452. *
  12453. * @static
  12454. * @memberOf _
  12455. * @since 3.0.0
  12456. * @category Array
  12457. * @param {Array} array The array to query.
  12458. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  12459. * @returns {Array} Returns the slice of `array`.
  12460. * @example
  12461. *
  12462. * var users = [
  12463. * { 'user': 'barney', 'active': true },
  12464. * { 'user': 'fred', 'active': false },
  12465. * { 'user': 'pebbles', 'active': false }
  12466. * ];
  12467. *
  12468. * _.takeRightWhile(users, function(o) { return !o.active; });
  12469. * // => objects for ['fred', 'pebbles']
  12470. *
  12471. * // The `_.matches` iteratee shorthand.
  12472. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  12473. * // => objects for ['pebbles']
  12474. *
  12475. * // The `_.matchesProperty` iteratee shorthand.
  12476. * _.takeRightWhile(users, ['active', false]);
  12477. * // => objects for ['fred', 'pebbles']
  12478. *
  12479. * // The `_.property` iteratee shorthand.
  12480. * _.takeRightWhile(users, 'active');
  12481. * // => []
  12482. */
  12483. function takeRightWhile(array, predicate) {
  12484. return (array && array.length)
  12485. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  12486. : [];
  12487. }
  12488. /**
  12489. * Creates a slice of `array` with elements taken from the beginning. Elements
  12490. * are taken until `predicate` returns falsey. The predicate is invoked with
  12491. * three arguments: (value, index, array).
  12492. *
  12493. * @static
  12494. * @memberOf _
  12495. * @since 3.0.0
  12496. * @category Array
  12497. * @param {Array} array The array to query.
  12498. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  12499. * @returns {Array} Returns the slice of `array`.
  12500. * @example
  12501. *
  12502. * var users = [
  12503. * { 'user': 'barney', 'active': false },
  12504. * { 'user': 'fred', 'active': false },
  12505. * { 'user': 'pebbles', 'active': true }
  12506. * ];
  12507. *
  12508. * _.takeWhile(users, function(o) { return !o.active; });
  12509. * // => objects for ['barney', 'fred']
  12510. *
  12511. * // The `_.matches` iteratee shorthand.
  12512. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  12513. * // => objects for ['barney']
  12514. *
  12515. * // The `_.matchesProperty` iteratee shorthand.
  12516. * _.takeWhile(users, ['active', false]);
  12517. * // => objects for ['barney', 'fred']
  12518. *
  12519. * // The `_.property` iteratee shorthand.
  12520. * _.takeWhile(users, 'active');
  12521. * // => []
  12522. */
  12523. function takeWhile(array, predicate) {
  12524. return (array && array.length)
  12525. ? baseWhile(array, getIteratee(predicate, 3))
  12526. : [];
  12527. }
  12528. /**
  12529. * Creates an array of unique values, in order, from all given arrays using
  12530. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12531. * for equality comparisons.
  12532. *
  12533. * @static
  12534. * @memberOf _
  12535. * @since 0.1.0
  12536. * @category Array
  12537. * @param {...Array} [arrays] The arrays to inspect.
  12538. * @returns {Array} Returns the new array of combined values.
  12539. * @example
  12540. *
  12541. * _.union([2], [1, 2]);
  12542. * // => [2, 1]
  12543. */
  12544. var union = baseRest(function(arrays) {
  12545. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  12546. });
  12547. /**
  12548. * This method is like `_.union` except that it accepts `iteratee` which is
  12549. * invoked for each element of each `arrays` to generate the criterion by
  12550. * which uniqueness is computed. Result values are chosen from the first
  12551. * array in which the value occurs. The iteratee is invoked with one argument:
  12552. * (value).
  12553. *
  12554. * @static
  12555. * @memberOf _
  12556. * @since 4.0.0
  12557. * @category Array
  12558. * @param {...Array} [arrays] The arrays to inspect.
  12559. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12560. * @returns {Array} Returns the new array of combined values.
  12561. * @example
  12562. *
  12563. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  12564. * // => [2.1, 1.2]
  12565. *
  12566. * // The `_.property` iteratee shorthand.
  12567. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  12568. * // => [{ 'x': 1 }, { 'x': 2 }]
  12569. */
  12570. var unionBy = baseRest(function(arrays) {
  12571. var iteratee = last(arrays);
  12572. if (isArrayLikeObject(iteratee)) {
  12573. iteratee = undefined;
  12574. }
  12575. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  12576. });
  12577. /**
  12578. * This method is like `_.union` except that it accepts `comparator` which
  12579. * is invoked to compare elements of `arrays`. Result values are chosen from
  12580. * the first array in which the value occurs. The comparator is invoked
  12581. * with two arguments: (arrVal, othVal).
  12582. *
  12583. * @static
  12584. * @memberOf _
  12585. * @since 4.0.0
  12586. * @category Array
  12587. * @param {...Array} [arrays] The arrays to inspect.
  12588. * @param {Function} [comparator] The comparator invoked per element.
  12589. * @returns {Array} Returns the new array of combined values.
  12590. * @example
  12591. *
  12592. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  12593. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  12594. *
  12595. * _.unionWith(objects, others, _.isEqual);
  12596. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  12597. */
  12598. var unionWith = baseRest(function(arrays) {
  12599. var comparator = last(arrays);
  12600. comparator = typeof comparator == 'function' ? comparator : undefined;
  12601. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  12602. });
  12603. /**
  12604. * Creates a duplicate-free version of an array, using
  12605. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12606. * for equality comparisons, in which only the first occurrence of each element
  12607. * is kept. The order of result values is determined by the order they occur
  12608. * in the array.
  12609. *
  12610. * @static
  12611. * @memberOf _
  12612. * @since 0.1.0
  12613. * @category Array
  12614. * @param {Array} array The array to inspect.
  12615. * @returns {Array} Returns the new duplicate free array.
  12616. * @example
  12617. *
  12618. * _.uniq([2, 1, 2]);
  12619. * // => [2, 1]
  12620. */
  12621. function uniq(array) {
  12622. return (array && array.length) ? baseUniq(array) : [];
  12623. }
  12624. /**
  12625. * This method is like `_.uniq` except that it accepts `iteratee` which is
  12626. * invoked for each element in `array` to generate the criterion by which
  12627. * uniqueness is computed. The order of result values is determined by the
  12628. * order they occur in the array. The iteratee is invoked with one argument:
  12629. * (value).
  12630. *
  12631. * @static
  12632. * @memberOf _
  12633. * @since 4.0.0
  12634. * @category Array
  12635. * @param {Array} array The array to inspect.
  12636. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12637. * @returns {Array} Returns the new duplicate free array.
  12638. * @example
  12639. *
  12640. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  12641. * // => [2.1, 1.2]
  12642. *
  12643. * // The `_.property` iteratee shorthand.
  12644. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  12645. * // => [{ 'x': 1 }, { 'x': 2 }]
  12646. */
  12647. function uniqBy(array, iteratee) {
  12648. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  12649. }
  12650. /**
  12651. * This method is like `_.uniq` except that it accepts `comparator` which
  12652. * is invoked to compare elements of `array`. The order of result values is
  12653. * determined by the order they occur in the array.The comparator is invoked
  12654. * with two arguments: (arrVal, othVal).
  12655. *
  12656. * @static
  12657. * @memberOf _
  12658. * @since 4.0.0
  12659. * @category Array
  12660. * @param {Array} array The array to inspect.
  12661. * @param {Function} [comparator] The comparator invoked per element.
  12662. * @returns {Array} Returns the new duplicate free array.
  12663. * @example
  12664. *
  12665. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  12666. *
  12667. * _.uniqWith(objects, _.isEqual);
  12668. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  12669. */
  12670. function uniqWith(array, comparator) {
  12671. comparator = typeof comparator == 'function' ? comparator : undefined;
  12672. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  12673. }
  12674. /**
  12675. * This method is like `_.zip` except that it accepts an array of grouped
  12676. * elements and creates an array regrouping the elements to their pre-zip
  12677. * configuration.
  12678. *
  12679. * @static
  12680. * @memberOf _
  12681. * @since 1.2.0
  12682. * @category Array
  12683. * @param {Array} array The array of grouped elements to process.
  12684. * @returns {Array} Returns the new array of regrouped elements.
  12685. * @example
  12686. *
  12687. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  12688. * // => [['a', 1, true], ['b', 2, false]]
  12689. *
  12690. * _.unzip(zipped);
  12691. * // => [['a', 'b'], [1, 2], [true, false]]
  12692. */
  12693. function unzip(array) {
  12694. if (!(array && array.length)) {
  12695. return [];
  12696. }
  12697. var length = 0;
  12698. array = arrayFilter(array, function(group) {
  12699. if (isArrayLikeObject(group)) {
  12700. length = nativeMax(group.length, length);
  12701. return true;
  12702. }
  12703. });
  12704. return baseTimes(length, function(index) {
  12705. return arrayMap(array, baseProperty(index));
  12706. });
  12707. }
  12708. /**
  12709. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  12710. * how regrouped values should be combined. The iteratee is invoked with the
  12711. * elements of each group: (...group).
  12712. *
  12713. * @static
  12714. * @memberOf _
  12715. * @since 3.8.0
  12716. * @category Array
  12717. * @param {Array} array The array of grouped elements to process.
  12718. * @param {Function} [iteratee=_.identity] The function to combine
  12719. * regrouped values.
  12720. * @returns {Array} Returns the new array of regrouped elements.
  12721. * @example
  12722. *
  12723. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  12724. * // => [[1, 10, 100], [2, 20, 200]]
  12725. *
  12726. * _.unzipWith(zipped, _.add);
  12727. * // => [3, 30, 300]
  12728. */
  12729. function unzipWith(array, iteratee) {
  12730. if (!(array && array.length)) {
  12731. return [];
  12732. }
  12733. var result = unzip(array);
  12734. if (iteratee == null) {
  12735. return result;
  12736. }
  12737. return arrayMap(result, function(group) {
  12738. return apply(iteratee, undefined, group);
  12739. });
  12740. }
  12741. /**
  12742. * Creates an array excluding all given values using
  12743. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12744. * for equality comparisons.
  12745. *
  12746. * **Note:** Unlike `_.pull`, this method returns a new array.
  12747. *
  12748. * @static
  12749. * @memberOf _
  12750. * @since 0.1.0
  12751. * @category Array
  12752. * @param {Array} array The array to inspect.
  12753. * @param {...*} [values] The values to exclude.
  12754. * @returns {Array} Returns the new array of filtered values.
  12755. * @see _.difference, _.xor
  12756. * @example
  12757. *
  12758. * _.without([2, 1, 2, 3], 1, 2);
  12759. * // => [3]
  12760. */
  12761. var without = baseRest(function(array, values) {
  12762. return isArrayLikeObject(array)
  12763. ? baseDifference(array, values)
  12764. : [];
  12765. });
  12766. /**
  12767. * Creates an array of unique values that is the
  12768. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  12769. * of the given arrays. The order of result values is determined by the order
  12770. * they occur in the arrays.
  12771. *
  12772. * @static
  12773. * @memberOf _
  12774. * @since 2.4.0
  12775. * @category Array
  12776. * @param {...Array} [arrays] The arrays to inspect.
  12777. * @returns {Array} Returns the new array of filtered values.
  12778. * @see _.difference, _.without
  12779. * @example
  12780. *
  12781. * _.xor([2, 1], [2, 3]);
  12782. * // => [1, 3]
  12783. */
  12784. var xor = baseRest(function(arrays) {
  12785. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  12786. });
  12787. /**
  12788. * This method is like `_.xor` except that it accepts `iteratee` which is
  12789. * invoked for each element of each `arrays` to generate the criterion by
  12790. * which by which they're compared. The order of result values is determined
  12791. * by the order they occur in the arrays. The iteratee is invoked with one
  12792. * argument: (value).
  12793. *
  12794. * @static
  12795. * @memberOf _
  12796. * @since 4.0.0
  12797. * @category Array
  12798. * @param {...Array} [arrays] The arrays to inspect.
  12799. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12800. * @returns {Array} Returns the new array of filtered values.
  12801. * @example
  12802. *
  12803. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  12804. * // => [1.2, 3.4]
  12805. *
  12806. * // The `_.property` iteratee shorthand.
  12807. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  12808. * // => [{ 'x': 2 }]
  12809. */
  12810. var xorBy = baseRest(function(arrays) {
  12811. var iteratee = last(arrays);
  12812. if (isArrayLikeObject(iteratee)) {
  12813. iteratee = undefined;
  12814. }
  12815. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  12816. });
  12817. /**
  12818. * This method is like `_.xor` except that it accepts `comparator` which is
  12819. * invoked to compare elements of `arrays`. The order of result values is
  12820. * determined by the order they occur in the arrays. The comparator is invoked
  12821. * with two arguments: (arrVal, othVal).
  12822. *
  12823. * @static
  12824. * @memberOf _
  12825. * @since 4.0.0
  12826. * @category Array
  12827. * @param {...Array} [arrays] The arrays to inspect.
  12828. * @param {Function} [comparator] The comparator invoked per element.
  12829. * @returns {Array} Returns the new array of filtered values.
  12830. * @example
  12831. *
  12832. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  12833. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  12834. *
  12835. * _.xorWith(objects, others, _.isEqual);
  12836. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  12837. */
  12838. var xorWith = baseRest(function(arrays) {
  12839. var comparator = last(arrays);
  12840. comparator = typeof comparator == 'function' ? comparator : undefined;
  12841. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  12842. });
  12843. /**
  12844. * Creates an array of grouped elements, the first of which contains the
  12845. * first elements of the given arrays, the second of which contains the
  12846. * second elements of the given arrays, and so on.
  12847. *
  12848. * @static
  12849. * @memberOf _
  12850. * @since 0.1.0
  12851. * @category Array
  12852. * @param {...Array} [arrays] The arrays to process.
  12853. * @returns {Array} Returns the new array of grouped elements.
  12854. * @example
  12855. *
  12856. * _.zip(['a', 'b'], [1, 2], [true, false]);
  12857. * // => [['a', 1, true], ['b', 2, false]]
  12858. */
  12859. var zip = baseRest(unzip);
  12860. /**
  12861. * This method is like `_.fromPairs` except that it accepts two arrays,
  12862. * one of property identifiers and one of corresponding values.
  12863. *
  12864. * @static
  12865. * @memberOf _
  12866. * @since 0.4.0
  12867. * @category Array
  12868. * @param {Array} [props=[]] The property identifiers.
  12869. * @param {Array} [values=[]] The property values.
  12870. * @returns {Object} Returns the new object.
  12871. * @example
  12872. *
  12873. * _.zipObject(['a', 'b'], [1, 2]);
  12874. * // => { 'a': 1, 'b': 2 }
  12875. */
  12876. function zipObject(props, values) {
  12877. return baseZipObject(props || [], values || [], assignValue);
  12878. }
  12879. /**
  12880. * This method is like `_.zipObject` except that it supports property paths.
  12881. *
  12882. * @static
  12883. * @memberOf _
  12884. * @since 4.1.0
  12885. * @category Array
  12886. * @param {Array} [props=[]] The property identifiers.
  12887. * @param {Array} [values=[]] The property values.
  12888. * @returns {Object} Returns the new object.
  12889. * @example
  12890. *
  12891. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  12892. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  12893. */
  12894. function zipObjectDeep(props, values) {
  12895. return baseZipObject(props || [], values || [], baseSet);
  12896. }
  12897. /**
  12898. * This method is like `_.zip` except that it accepts `iteratee` to specify
  12899. * how grouped values should be combined. The iteratee is invoked with the
  12900. * elements of each group: (...group).
  12901. *
  12902. * @static
  12903. * @memberOf _
  12904. * @since 3.8.0
  12905. * @category Array
  12906. * @param {...Array} [arrays] The arrays to process.
  12907. * @param {Function} [iteratee=_.identity] The function to combine
  12908. * grouped values.
  12909. * @returns {Array} Returns the new array of grouped elements.
  12910. * @example
  12911. *
  12912. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  12913. * return a + b + c;
  12914. * });
  12915. * // => [111, 222]
  12916. */
  12917. var zipWith = baseRest(function(arrays) {
  12918. var length = arrays.length,
  12919. iteratee = length > 1 ? arrays[length - 1] : undefined;
  12920. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  12921. return unzipWith(arrays, iteratee);
  12922. });
  12923. /*------------------------------------------------------------------------*/
  12924. /**
  12925. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  12926. * chain sequences enabled. The result of such sequences must be unwrapped
  12927. * with `_#value`.
  12928. *
  12929. * @static
  12930. * @memberOf _
  12931. * @since 1.3.0
  12932. * @category Seq
  12933. * @param {*} value The value to wrap.
  12934. * @returns {Object} Returns the new `lodash` wrapper instance.
  12935. * @example
  12936. *
  12937. * var users = [
  12938. * { 'user': 'barney', 'age': 36 },
  12939. * { 'user': 'fred', 'age': 40 },
  12940. * { 'user': 'pebbles', 'age': 1 }
  12941. * ];
  12942. *
  12943. * var youngest = _
  12944. * .chain(users)
  12945. * .sortBy('age')
  12946. * .map(function(o) {
  12947. * return o.user + ' is ' + o.age;
  12948. * })
  12949. * .head()
  12950. * .value();
  12951. * // => 'pebbles is 1'
  12952. */
  12953. function chain(value) {
  12954. var result = lodash(value);
  12955. result.__chain__ = true;
  12956. return result;
  12957. }
  12958. /**
  12959. * This method invokes `interceptor` and returns `value`. The interceptor
  12960. * is invoked with one argument; (value). The purpose of this method is to
  12961. * "tap into" a method chain sequence in order to modify intermediate results.
  12962. *
  12963. * @static
  12964. * @memberOf _
  12965. * @since 0.1.0
  12966. * @category Seq
  12967. * @param {*} value The value to provide to `interceptor`.
  12968. * @param {Function} interceptor The function to invoke.
  12969. * @returns {*} Returns `value`.
  12970. * @example
  12971. *
  12972. * _([1, 2, 3])
  12973. * .tap(function(array) {
  12974. * // Mutate input array.
  12975. * array.pop();
  12976. * })
  12977. * .reverse()
  12978. * .value();
  12979. * // => [2, 1]
  12980. */
  12981. function tap(value, interceptor) {
  12982. interceptor(value);
  12983. return value;
  12984. }
  12985. /**
  12986. * This method is like `_.tap` except that it returns the result of `interceptor`.
  12987. * The purpose of this method is to "pass thru" values replacing intermediate
  12988. * results in a method chain sequence.
  12989. *
  12990. * @static
  12991. * @memberOf _
  12992. * @since 3.0.0
  12993. * @category Seq
  12994. * @param {*} value The value to provide to `interceptor`.
  12995. * @param {Function} interceptor The function to invoke.
  12996. * @returns {*} Returns the result of `interceptor`.
  12997. * @example
  12998. *
  12999. * _(' abc ')
  13000. * .chain()
  13001. * .trim()
  13002. * .thru(function(value) {
  13003. * return [value];
  13004. * })
  13005. * .value();
  13006. * // => ['abc']
  13007. */
  13008. function thru(value, interceptor) {
  13009. return interceptor(value);
  13010. }
  13011. /**
  13012. * This method is the wrapper version of `_.at`.
  13013. *
  13014. * @name at
  13015. * @memberOf _
  13016. * @since 1.0.0
  13017. * @category Seq
  13018. * @param {...(string|string[])} [paths] The property paths to pick.
  13019. * @returns {Object} Returns the new `lodash` wrapper instance.
  13020. * @example
  13021. *
  13022. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  13023. *
  13024. * _(object).at(['a[0].b.c', 'a[1]']).value();
  13025. * // => [3, 4]
  13026. */
  13027. var wrapperAt = flatRest(function(paths) {
  13028. var length = paths.length,
  13029. start = length ? paths[0] : 0,
  13030. value = this.__wrapped__,
  13031. interceptor = function(object) { return baseAt(object, paths); };
  13032. if (length > 1 || this.__actions__.length ||
  13033. !(value instanceof LazyWrapper) || !isIndex(start)) {
  13034. return this.thru(interceptor);
  13035. }
  13036. value = value.slice(start, +start + (length ? 1 : 0));
  13037. value.__actions__.push({
  13038. 'func': thru,
  13039. 'args': [interceptor],
  13040. 'thisArg': undefined
  13041. });
  13042. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  13043. if (length && !array.length) {
  13044. array.push(undefined);
  13045. }
  13046. return array;
  13047. });
  13048. });
  13049. /**
  13050. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  13051. *
  13052. * @name chain
  13053. * @memberOf _
  13054. * @since 0.1.0
  13055. * @category Seq
  13056. * @returns {Object} Returns the new `lodash` wrapper instance.
  13057. * @example
  13058. *
  13059. * var users = [
  13060. * { 'user': 'barney', 'age': 36 },
  13061. * { 'user': 'fred', 'age': 40 }
  13062. * ];
  13063. *
  13064. * // A sequence without explicit chaining.
  13065. * _(users).head();
  13066. * // => { 'user': 'barney', 'age': 36 }
  13067. *
  13068. * // A sequence with explicit chaining.
  13069. * _(users)
  13070. * .chain()
  13071. * .head()
  13072. * .pick('user')
  13073. * .value();
  13074. * // => { 'user': 'barney' }
  13075. */
  13076. function wrapperChain() {
  13077. return chain(this);
  13078. }
  13079. /**
  13080. * Executes the chain sequence and returns the wrapped result.
  13081. *
  13082. * @name commit
  13083. * @memberOf _
  13084. * @since 3.2.0
  13085. * @category Seq
  13086. * @returns {Object} Returns the new `lodash` wrapper instance.
  13087. * @example
  13088. *
  13089. * var array = [1, 2];
  13090. * var wrapped = _(array).push(3);
  13091. *
  13092. * console.log(array);
  13093. * // => [1, 2]
  13094. *
  13095. * wrapped = wrapped.commit();
  13096. * console.log(array);
  13097. * // => [1, 2, 3]
  13098. *
  13099. * wrapped.last();
  13100. * // => 3
  13101. *
  13102. * console.log(array);
  13103. * // => [1, 2, 3]
  13104. */
  13105. function wrapperCommit() {
  13106. return new LodashWrapper(this.value(), this.__chain__);
  13107. }
  13108. /**
  13109. * Gets the next value on a wrapped object following the
  13110. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  13111. *
  13112. * @name next
  13113. * @memberOf _
  13114. * @since 4.0.0
  13115. * @category Seq
  13116. * @returns {Object} Returns the next iterator value.
  13117. * @example
  13118. *
  13119. * var wrapped = _([1, 2]);
  13120. *
  13121. * wrapped.next();
  13122. * // => { 'done': false, 'value': 1 }
  13123. *
  13124. * wrapped.next();
  13125. * // => { 'done': false, 'value': 2 }
  13126. *
  13127. * wrapped.next();
  13128. * // => { 'done': true, 'value': undefined }
  13129. */
  13130. function wrapperNext() {
  13131. if (this.__values__ === undefined) {
  13132. this.__values__ = toArray(this.value());
  13133. }
  13134. var done = this.__index__ >= this.__values__.length,
  13135. value = done ? undefined : this.__values__[this.__index__++];
  13136. return { 'done': done, 'value': value };
  13137. }
  13138. /**
  13139. * Enables the wrapper to be iterable.
  13140. *
  13141. * @name Symbol.iterator
  13142. * @memberOf _
  13143. * @since 4.0.0
  13144. * @category Seq
  13145. * @returns {Object} Returns the wrapper object.
  13146. * @example
  13147. *
  13148. * var wrapped = _([1, 2]);
  13149. *
  13150. * wrapped[Symbol.iterator]() === wrapped;
  13151. * // => true
  13152. *
  13153. * Array.from(wrapped);
  13154. * // => [1, 2]
  13155. */
  13156. function wrapperToIterator() {
  13157. return this;
  13158. }
  13159. /**
  13160. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  13161. *
  13162. * @name plant
  13163. * @memberOf _
  13164. * @since 3.2.0
  13165. * @category Seq
  13166. * @param {*} value The value to plant.
  13167. * @returns {Object} Returns the new `lodash` wrapper instance.
  13168. * @example
  13169. *
  13170. * function square(n) {
  13171. * return n * n;
  13172. * }
  13173. *
  13174. * var wrapped = _([1, 2]).map(square);
  13175. * var other = wrapped.plant([3, 4]);
  13176. *
  13177. * other.value();
  13178. * // => [9, 16]
  13179. *
  13180. * wrapped.value();
  13181. * // => [1, 4]
  13182. */
  13183. function wrapperPlant(value) {
  13184. var result,
  13185. parent = this;
  13186. while (parent instanceof baseLodash) {
  13187. var clone = wrapperClone(parent);
  13188. clone.__index__ = 0;
  13189. clone.__values__ = undefined;
  13190. if (result) {
  13191. previous.__wrapped__ = clone;
  13192. } else {
  13193. result = clone;
  13194. }
  13195. var previous = clone;
  13196. parent = parent.__wrapped__;
  13197. }
  13198. previous.__wrapped__ = value;
  13199. return result;
  13200. }
  13201. /**
  13202. * This method is the wrapper version of `_.reverse`.
  13203. *
  13204. * **Note:** This method mutates the wrapped array.
  13205. *
  13206. * @name reverse
  13207. * @memberOf _
  13208. * @since 0.1.0
  13209. * @category Seq
  13210. * @returns {Object} Returns the new `lodash` wrapper instance.
  13211. * @example
  13212. *
  13213. * var array = [1, 2, 3];
  13214. *
  13215. * _(array).reverse().value()
  13216. * // => [3, 2, 1]
  13217. *
  13218. * console.log(array);
  13219. * // => [3, 2, 1]
  13220. */
  13221. function wrapperReverse() {
  13222. var value = this.__wrapped__;
  13223. if (value instanceof LazyWrapper) {
  13224. var wrapped = value;
  13225. if (this.__actions__.length) {
  13226. wrapped = new LazyWrapper(this);
  13227. }
  13228. wrapped = wrapped.reverse();
  13229. wrapped.__actions__.push({
  13230. 'func': thru,
  13231. 'args': [reverse],
  13232. 'thisArg': undefined
  13233. });
  13234. return new LodashWrapper(wrapped, this.__chain__);
  13235. }
  13236. return this.thru(reverse);
  13237. }
  13238. /**
  13239. * Executes the chain sequence to resolve the unwrapped value.
  13240. *
  13241. * @name value
  13242. * @memberOf _
  13243. * @since 0.1.0
  13244. * @alias toJSON, valueOf
  13245. * @category Seq
  13246. * @returns {*} Returns the resolved unwrapped value.
  13247. * @example
  13248. *
  13249. * _([1, 2, 3]).value();
  13250. * // => [1, 2, 3]
  13251. */
  13252. function wrapperValue() {
  13253. return baseWrapperValue(this.__wrapped__, this.__actions__);
  13254. }
  13255. /*------------------------------------------------------------------------*/
  13256. /**
  13257. * Creates an object composed of keys generated from the results of running
  13258. * each element of `collection` thru `iteratee`. The corresponding value of
  13259. * each key is the number of times the key was returned by `iteratee`. The
  13260. * iteratee is invoked with one argument: (value).
  13261. *
  13262. * @static
  13263. * @memberOf _
  13264. * @since 0.5.0
  13265. * @category Collection
  13266. * @param {Array|Object} collection The collection to iterate over.
  13267. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  13268. * @returns {Object} Returns the composed aggregate object.
  13269. * @example
  13270. *
  13271. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  13272. * // => { '4': 1, '6': 2 }
  13273. *
  13274. * // The `_.property` iteratee shorthand.
  13275. * _.countBy(['one', 'two', 'three'], 'length');
  13276. * // => { '3': 2, '5': 1 }
  13277. */
  13278. var countBy = createAggregator(function(result, value, key) {
  13279. if (hasOwnProperty.call(result, key)) {
  13280. ++result[key];
  13281. } else {
  13282. baseAssignValue(result, key, 1);
  13283. }
  13284. });
  13285. /**
  13286. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  13287. * Iteration is stopped once `predicate` returns falsey. The predicate is
  13288. * invoked with three arguments: (value, index|key, collection).
  13289. *
  13290. * **Note:** This method returns `true` for
  13291. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  13292. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  13293. * elements of empty collections.
  13294. *
  13295. * @static
  13296. * @memberOf _
  13297. * @since 0.1.0
  13298. * @category Collection
  13299. * @param {Array|Object} collection The collection to iterate over.
  13300. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13301. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  13302. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  13303. * else `false`.
  13304. * @example
  13305. *
  13306. * _.every([true, 1, null, 'yes'], Boolean);
  13307. * // => false
  13308. *
  13309. * var users = [
  13310. * { 'user': 'barney', 'age': 36, 'active': false },
  13311. * { 'user': 'fred', 'age': 40, 'active': false }
  13312. * ];
  13313. *
  13314. * // The `_.matches` iteratee shorthand.
  13315. * _.every(users, { 'user': 'barney', 'active': false });
  13316. * // => false
  13317. *
  13318. * // The `_.matchesProperty` iteratee shorthand.
  13319. * _.every(users, ['active', false]);
  13320. * // => true
  13321. *
  13322. * // The `_.property` iteratee shorthand.
  13323. * _.every(users, 'active');
  13324. * // => false
  13325. */
  13326. function every(collection, predicate, guard) {
  13327. var func = isArray(collection) ? arrayEvery : baseEvery;
  13328. if (guard && isIterateeCall(collection, predicate, guard)) {
  13329. predicate = undefined;
  13330. }
  13331. return func(collection, getIteratee(predicate, 3));
  13332. }
  13333. /**
  13334. * Iterates over elements of `collection`, returning an array of all elements
  13335. * `predicate` returns truthy for. The predicate is invoked with three
  13336. * arguments: (value, index|key, collection).
  13337. *
  13338. * **Note:** Unlike `_.remove`, this method returns a new array.
  13339. *
  13340. * @static
  13341. * @memberOf _
  13342. * @since 0.1.0
  13343. * @category Collection
  13344. * @param {Array|Object} collection The collection to iterate over.
  13345. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13346. * @returns {Array} Returns the new filtered array.
  13347. * @see _.reject
  13348. * @example
  13349. *
  13350. * var users = [
  13351. * { 'user': 'barney', 'age': 36, 'active': true },
  13352. * { 'user': 'fred', 'age': 40, 'active': false }
  13353. * ];
  13354. *
  13355. * _.filter(users, function(o) { return !o.active; });
  13356. * // => objects for ['fred']
  13357. *
  13358. * // The `_.matches` iteratee shorthand.
  13359. * _.filter(users, { 'age': 36, 'active': true });
  13360. * // => objects for ['barney']
  13361. *
  13362. * // The `_.matchesProperty` iteratee shorthand.
  13363. * _.filter(users, ['active', false]);
  13364. * // => objects for ['fred']
  13365. *
  13366. * // The `_.property` iteratee shorthand.
  13367. * _.filter(users, 'active');
  13368. * // => objects for ['barney']
  13369. */
  13370. function filter(collection, predicate) {
  13371. var func = isArray(collection) ? arrayFilter : baseFilter;
  13372. return func(collection, getIteratee(predicate, 3));
  13373. }
  13374. /**
  13375. * Iterates over elements of `collection`, returning the first element
  13376. * `predicate` returns truthy for. The predicate is invoked with three
  13377. * arguments: (value, index|key, collection).
  13378. *
  13379. * @static
  13380. * @memberOf _
  13381. * @since 0.1.0
  13382. * @category Collection
  13383. * @param {Array|Object} collection The collection to inspect.
  13384. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13385. * @param {number} [fromIndex=0] The index to search from.
  13386. * @returns {*} Returns the matched element, else `undefined`.
  13387. * @example
  13388. *
  13389. * var users = [
  13390. * { 'user': 'barney', 'age': 36, 'active': true },
  13391. * { 'user': 'fred', 'age': 40, 'active': false },
  13392. * { 'user': 'pebbles', 'age': 1, 'active': true }
  13393. * ];
  13394. *
  13395. * _.find(users, function(o) { return o.age < 40; });
  13396. * // => object for 'barney'
  13397. *
  13398. * // The `_.matches` iteratee shorthand.
  13399. * _.find(users, { 'age': 1, 'active': true });
  13400. * // => object for 'pebbles'
  13401. *
  13402. * // The `_.matchesProperty` iteratee shorthand.
  13403. * _.find(users, ['active', false]);
  13404. * // => object for 'fred'
  13405. *
  13406. * // The `_.property` iteratee shorthand.
  13407. * _.find(users, 'active');
  13408. * // => object for 'barney'
  13409. */
  13410. var find = createFind(findIndex);
  13411. /**
  13412. * This method is like `_.find` except that it iterates over elements of
  13413. * `collection` from right to left.
  13414. *
  13415. * @static
  13416. * @memberOf _
  13417. * @since 2.0.0
  13418. * @category Collection
  13419. * @param {Array|Object} collection The collection to inspect.
  13420. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13421. * @param {number} [fromIndex=collection.length-1] The index to search from.
  13422. * @returns {*} Returns the matched element, else `undefined`.
  13423. * @example
  13424. *
  13425. * _.findLast([1, 2, 3, 4], function(n) {
  13426. * return n % 2 == 1;
  13427. * });
  13428. * // => 3
  13429. */
  13430. var findLast = createFind(findLastIndex);
  13431. /**
  13432. * Creates a flattened array of values by running each element in `collection`
  13433. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  13434. * with three arguments: (value, index|key, collection).
  13435. *
  13436. * @static
  13437. * @memberOf _
  13438. * @since 4.0.0
  13439. * @category Collection
  13440. * @param {Array|Object} collection The collection to iterate over.
  13441. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13442. * @returns {Array} Returns the new flattened array.
  13443. * @example
  13444. *
  13445. * function duplicate(n) {
  13446. * return [n, n];
  13447. * }
  13448. *
  13449. * _.flatMap([1, 2], duplicate);
  13450. * // => [1, 1, 2, 2]
  13451. */
  13452. function flatMap(collection, iteratee) {
  13453. return baseFlatten(map(collection, iteratee), 1);
  13454. }
  13455. /**
  13456. * This method is like `_.flatMap` except that it recursively flattens the
  13457. * mapped results.
  13458. *
  13459. * @static
  13460. * @memberOf _
  13461. * @since 4.7.0
  13462. * @category Collection
  13463. * @param {Array|Object} collection The collection to iterate over.
  13464. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13465. * @returns {Array} Returns the new flattened array.
  13466. * @example
  13467. *
  13468. * function duplicate(n) {
  13469. * return [[[n, n]]];
  13470. * }
  13471. *
  13472. * _.flatMapDeep([1, 2], duplicate);
  13473. * // => [1, 1, 2, 2]
  13474. */
  13475. function flatMapDeep(collection, iteratee) {
  13476. return baseFlatten(map(collection, iteratee), INFINITY);
  13477. }
  13478. /**
  13479. * This method is like `_.flatMap` except that it recursively flattens the
  13480. * mapped results up to `depth` times.
  13481. *
  13482. * @static
  13483. * @memberOf _
  13484. * @since 4.7.0
  13485. * @category Collection
  13486. * @param {Array|Object} collection The collection to iterate over.
  13487. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13488. * @param {number} [depth=1] The maximum recursion depth.
  13489. * @returns {Array} Returns the new flattened array.
  13490. * @example
  13491. *
  13492. * function duplicate(n) {
  13493. * return [[[n, n]]];
  13494. * }
  13495. *
  13496. * _.flatMapDepth([1, 2], duplicate, 2);
  13497. * // => [[1, 1], [2, 2]]
  13498. */
  13499. function flatMapDepth(collection, iteratee, depth) {
  13500. depth = depth === undefined ? 1 : toInteger(depth);
  13501. return baseFlatten(map(collection, iteratee), depth);
  13502. }
  13503. /**
  13504. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  13505. * The iteratee is invoked with three arguments: (value, index|key, collection).
  13506. * Iteratee functions may exit iteration early by explicitly returning `false`.
  13507. *
  13508. * **Note:** As with other "Collections" methods, objects with a "length"
  13509. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  13510. * or `_.forOwn` for object iteration.
  13511. *
  13512. * @static
  13513. * @memberOf _
  13514. * @since 0.1.0
  13515. * @alias each
  13516. * @category Collection
  13517. * @param {Array|Object} collection The collection to iterate over.
  13518. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13519. * @returns {Array|Object} Returns `collection`.
  13520. * @see _.forEachRight
  13521. * @example
  13522. *
  13523. * _.forEach([1, 2], function(value) {
  13524. * console.log(value);
  13525. * });
  13526. * // => Logs `1` then `2`.
  13527. *
  13528. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  13529. * console.log(key);
  13530. * });
  13531. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  13532. */
  13533. function forEach(collection, iteratee) {
  13534. var func = isArray(collection) ? arrayEach : baseEach;
  13535. return func(collection, getIteratee(iteratee, 3));
  13536. }
  13537. /**
  13538. * This method is like `_.forEach` except that it iterates over elements of
  13539. * `collection` from right to left.
  13540. *
  13541. * @static
  13542. * @memberOf _
  13543. * @since 2.0.0
  13544. * @alias eachRight
  13545. * @category Collection
  13546. * @param {Array|Object} collection The collection to iterate over.
  13547. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13548. * @returns {Array|Object} Returns `collection`.
  13549. * @see _.forEach
  13550. * @example
  13551. *
  13552. * _.forEachRight([1, 2], function(value) {
  13553. * console.log(value);
  13554. * });
  13555. * // => Logs `2` then `1`.
  13556. */
  13557. function forEachRight(collection, iteratee) {
  13558. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  13559. return func(collection, getIteratee(iteratee, 3));
  13560. }
  13561. /**
  13562. * Creates an object composed of keys generated from the results of running
  13563. * each element of `collection` thru `iteratee`. The order of grouped values
  13564. * is determined by the order they occur in `collection`. The corresponding
  13565. * value of each key is an array of elements responsible for generating the
  13566. * key. The iteratee is invoked with one argument: (value).
  13567. *
  13568. * @static
  13569. * @memberOf _
  13570. * @since 0.1.0
  13571. * @category Collection
  13572. * @param {Array|Object} collection The collection to iterate over.
  13573. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  13574. * @returns {Object} Returns the composed aggregate object.
  13575. * @example
  13576. *
  13577. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  13578. * // => { '4': [4.2], '6': [6.1, 6.3] }
  13579. *
  13580. * // The `_.property` iteratee shorthand.
  13581. * _.groupBy(['one', 'two', 'three'], 'length');
  13582. * // => { '3': ['one', 'two'], '5': ['three'] }
  13583. */
  13584. var groupBy = createAggregator(function(result, value, key) {
  13585. if (hasOwnProperty.call(result, key)) {
  13586. result[key].push(value);
  13587. } else {
  13588. baseAssignValue(result, key, [value]);
  13589. }
  13590. });
  13591. /**
  13592. * Checks if `value` is in `collection`. If `collection` is a string, it's
  13593. * checked for a substring of `value`, otherwise
  13594. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  13595. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  13596. * the offset from the end of `collection`.
  13597. *
  13598. * @static
  13599. * @memberOf _
  13600. * @since 0.1.0
  13601. * @category Collection
  13602. * @param {Array|Object|string} collection The collection to inspect.
  13603. * @param {*} value The value to search for.
  13604. * @param {number} [fromIndex=0] The index to search from.
  13605. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  13606. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  13607. * @example
  13608. *
  13609. * _.includes([1, 2, 3], 1);
  13610. * // => true
  13611. *
  13612. * _.includes([1, 2, 3], 1, 2);
  13613. * // => false
  13614. *
  13615. * _.includes({ 'a': 1, 'b': 2 }, 1);
  13616. * // => true
  13617. *
  13618. * _.includes('abcd', 'bc');
  13619. * // => true
  13620. */
  13621. function includes(collection, value, fromIndex, guard) {
  13622. collection = isArrayLike(collection) ? collection : values(collection);
  13623. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  13624. var length = collection.length;
  13625. if (fromIndex < 0) {
  13626. fromIndex = nativeMax(length + fromIndex, 0);
  13627. }
  13628. return isString(collection)
  13629. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  13630. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  13631. }
  13632. /**
  13633. * Invokes the method at `path` of each element in `collection`, returning
  13634. * an array of the results of each invoked method. Any additional arguments
  13635. * are provided to each invoked method. If `path` is a function, it's invoked
  13636. * for, and `this` bound to, each element in `collection`.
  13637. *
  13638. * @static
  13639. * @memberOf _
  13640. * @since 4.0.0
  13641. * @category Collection
  13642. * @param {Array|Object} collection The collection to iterate over.
  13643. * @param {Array|Function|string} path The path of the method to invoke or
  13644. * the function invoked per iteration.
  13645. * @param {...*} [args] The arguments to invoke each method with.
  13646. * @returns {Array} Returns the array of results.
  13647. * @example
  13648. *
  13649. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  13650. * // => [[1, 5, 7], [1, 2, 3]]
  13651. *
  13652. * _.invokeMap([123, 456], String.prototype.split, '');
  13653. * // => [['1', '2', '3'], ['4', '5', '6']]
  13654. */
  13655. var invokeMap = baseRest(function(collection, path, args) {
  13656. var index = -1,
  13657. isFunc = typeof path == 'function',
  13658. result = isArrayLike(collection) ? Array(collection.length) : [];
  13659. baseEach(collection, function(value) {
  13660. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  13661. });
  13662. return result;
  13663. });
  13664. /**
  13665. * Creates an object composed of keys generated from the results of running
  13666. * each element of `collection` thru `iteratee`. The corresponding value of
  13667. * each key is the last element responsible for generating the key. The
  13668. * iteratee is invoked with one argument: (value).
  13669. *
  13670. * @static
  13671. * @memberOf _
  13672. * @since 4.0.0
  13673. * @category Collection
  13674. * @param {Array|Object} collection The collection to iterate over.
  13675. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  13676. * @returns {Object} Returns the composed aggregate object.
  13677. * @example
  13678. *
  13679. * var array = [
  13680. * { 'dir': 'left', 'code': 97 },
  13681. * { 'dir': 'right', 'code': 100 }
  13682. * ];
  13683. *
  13684. * _.keyBy(array, function(o) {
  13685. * return String.fromCharCode(o.code);
  13686. * });
  13687. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  13688. *
  13689. * _.keyBy(array, 'dir');
  13690. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  13691. */
  13692. var keyBy = createAggregator(function(result, value, key) {
  13693. baseAssignValue(result, key, value);
  13694. });
  13695. /**
  13696. * Creates an array of values by running each element in `collection` thru
  13697. * `iteratee`. The iteratee is invoked with three arguments:
  13698. * (value, index|key, collection).
  13699. *
  13700. * Many lodash methods are guarded to work as iteratees for methods like
  13701. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  13702. *
  13703. * The guarded methods are:
  13704. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  13705. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  13706. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  13707. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  13708. *
  13709. * @static
  13710. * @memberOf _
  13711. * @since 0.1.0
  13712. * @category Collection
  13713. * @param {Array|Object} collection The collection to iterate over.
  13714. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13715. * @returns {Array} Returns the new mapped array.
  13716. * @example
  13717. *
  13718. * function square(n) {
  13719. * return n * n;
  13720. * }
  13721. *
  13722. * _.map([4, 8], square);
  13723. * // => [16, 64]
  13724. *
  13725. * _.map({ 'a': 4, 'b': 8 }, square);
  13726. * // => [16, 64] (iteration order is not guaranteed)
  13727. *
  13728. * var users = [
  13729. * { 'user': 'barney' },
  13730. * { 'user': 'fred' }
  13731. * ];
  13732. *
  13733. * // The `_.property` iteratee shorthand.
  13734. * _.map(users, 'user');
  13735. * // => ['barney', 'fred']
  13736. */
  13737. function map(collection, iteratee) {
  13738. var func = isArray(collection) ? arrayMap : baseMap;
  13739. return func(collection, getIteratee(iteratee, 3));
  13740. }
  13741. /**
  13742. * This method is like `_.sortBy` except that it allows specifying the sort
  13743. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  13744. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  13745. * descending or "asc" for ascending sort order of corresponding values.
  13746. *
  13747. * @static
  13748. * @memberOf _
  13749. * @since 4.0.0
  13750. * @category Collection
  13751. * @param {Array|Object} collection The collection to iterate over.
  13752. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  13753. * The iteratees to sort by.
  13754. * @param {string[]} [orders] The sort orders of `iteratees`.
  13755. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  13756. * @returns {Array} Returns the new sorted array.
  13757. * @example
  13758. *
  13759. * var users = [
  13760. * { 'user': 'fred', 'age': 48 },
  13761. * { 'user': 'barney', 'age': 34 },
  13762. * { 'user': 'fred', 'age': 40 },
  13763. * { 'user': 'barney', 'age': 36 }
  13764. * ];
  13765. *
  13766. * // Sort by `user` in ascending order and by `age` in descending order.
  13767. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  13768. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  13769. */
  13770. function orderBy(collection, iteratees, orders, guard) {
  13771. if (collection == null) {
  13772. return [];
  13773. }
  13774. if (!isArray(iteratees)) {
  13775. iteratees = iteratees == null ? [] : [iteratees];
  13776. }
  13777. orders = guard ? undefined : orders;
  13778. if (!isArray(orders)) {
  13779. orders = orders == null ? [] : [orders];
  13780. }
  13781. return baseOrderBy(collection, iteratees, orders);
  13782. }
  13783. /**
  13784. * Creates an array of elements split into two groups, the first of which
  13785. * contains elements `predicate` returns truthy for, the second of which
  13786. * contains elements `predicate` returns falsey for. The predicate is
  13787. * invoked with one argument: (value).
  13788. *
  13789. * @static
  13790. * @memberOf _
  13791. * @since 3.0.0
  13792. * @category Collection
  13793. * @param {Array|Object} collection The collection to iterate over.
  13794. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13795. * @returns {Array} Returns the array of grouped elements.
  13796. * @example
  13797. *
  13798. * var users = [
  13799. * { 'user': 'barney', 'age': 36, 'active': false },
  13800. * { 'user': 'fred', 'age': 40, 'active': true },
  13801. * { 'user': 'pebbles', 'age': 1, 'active': false }
  13802. * ];
  13803. *
  13804. * _.partition(users, function(o) { return o.active; });
  13805. * // => objects for [['fred'], ['barney', 'pebbles']]
  13806. *
  13807. * // The `_.matches` iteratee shorthand.
  13808. * _.partition(users, { 'age': 1, 'active': false });
  13809. * // => objects for [['pebbles'], ['barney', 'fred']]
  13810. *
  13811. * // The `_.matchesProperty` iteratee shorthand.
  13812. * _.partition(users, ['active', false]);
  13813. * // => objects for [['barney', 'pebbles'], ['fred']]
  13814. *
  13815. * // The `_.property` iteratee shorthand.
  13816. * _.partition(users, 'active');
  13817. * // => objects for [['fred'], ['barney', 'pebbles']]
  13818. */
  13819. var partition = createAggregator(function(result, value, key) {
  13820. result[key ? 0 : 1].push(value);
  13821. }, function() { return [[], []]; });
  13822. /**
  13823. * Reduces `collection` to a value which is the accumulated result of running
  13824. * each element in `collection` thru `iteratee`, where each successive
  13825. * invocation is supplied the return value of the previous. If `accumulator`
  13826. * is not given, the first element of `collection` is used as the initial
  13827. * value. The iteratee is invoked with four arguments:
  13828. * (accumulator, value, index|key, collection).
  13829. *
  13830. * Many lodash methods are guarded to work as iteratees for methods like
  13831. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  13832. *
  13833. * The guarded methods are:
  13834. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  13835. * and `sortBy`
  13836. *
  13837. * @static
  13838. * @memberOf _
  13839. * @since 0.1.0
  13840. * @category Collection
  13841. * @param {Array|Object} collection The collection to iterate over.
  13842. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13843. * @param {*} [accumulator] The initial value.
  13844. * @returns {*} Returns the accumulated value.
  13845. * @see _.reduceRight
  13846. * @example
  13847. *
  13848. * _.reduce([1, 2], function(sum, n) {
  13849. * return sum + n;
  13850. * }, 0);
  13851. * // => 3
  13852. *
  13853. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  13854. * (result[value] || (result[value] = [])).push(key);
  13855. * return result;
  13856. * }, {});
  13857. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  13858. */
  13859. function reduce(collection, iteratee, accumulator) {
  13860. var func = isArray(collection) ? arrayReduce : baseReduce,
  13861. initAccum = arguments.length < 3;
  13862. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  13863. }
  13864. /**
  13865. * This method is like `_.reduce` except that it iterates over elements of
  13866. * `collection` from right to left.
  13867. *
  13868. * @static
  13869. * @memberOf _
  13870. * @since 0.1.0
  13871. * @category Collection
  13872. * @param {Array|Object} collection The collection to iterate over.
  13873. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13874. * @param {*} [accumulator] The initial value.
  13875. * @returns {*} Returns the accumulated value.
  13876. * @see _.reduce
  13877. * @example
  13878. *
  13879. * var array = [[0, 1], [2, 3], [4, 5]];
  13880. *
  13881. * _.reduceRight(array, function(flattened, other) {
  13882. * return flattened.concat(other);
  13883. * }, []);
  13884. * // => [4, 5, 2, 3, 0, 1]
  13885. */
  13886. function reduceRight(collection, iteratee, accumulator) {
  13887. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  13888. initAccum = arguments.length < 3;
  13889. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  13890. }
  13891. /**
  13892. * The opposite of `_.filter`; this method returns the elements of `collection`
  13893. * that `predicate` does **not** return truthy for.
  13894. *
  13895. * @static
  13896. * @memberOf _
  13897. * @since 0.1.0
  13898. * @category Collection
  13899. * @param {Array|Object} collection The collection to iterate over.
  13900. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13901. * @returns {Array} Returns the new filtered array.
  13902. * @see _.filter
  13903. * @example
  13904. *
  13905. * var users = [
  13906. * { 'user': 'barney', 'age': 36, 'active': false },
  13907. * { 'user': 'fred', 'age': 40, 'active': true }
  13908. * ];
  13909. *
  13910. * _.reject(users, function(o) { return !o.active; });
  13911. * // => objects for ['fred']
  13912. *
  13913. * // The `_.matches` iteratee shorthand.
  13914. * _.reject(users, { 'age': 40, 'active': true });
  13915. * // => objects for ['barney']
  13916. *
  13917. * // The `_.matchesProperty` iteratee shorthand.
  13918. * _.reject(users, ['active', false]);
  13919. * // => objects for ['fred']
  13920. *
  13921. * // The `_.property` iteratee shorthand.
  13922. * _.reject(users, 'active');
  13923. * // => objects for ['barney']
  13924. */
  13925. function reject(collection, predicate) {
  13926. var func = isArray(collection) ? arrayFilter : baseFilter;
  13927. return func(collection, negate(getIteratee(predicate, 3)));
  13928. }
  13929. /**
  13930. * Gets a random element from `collection`.
  13931. *
  13932. * @static
  13933. * @memberOf _
  13934. * @since 2.0.0
  13935. * @category Collection
  13936. * @param {Array|Object} collection The collection to sample.
  13937. * @returns {*} Returns the random element.
  13938. * @example
  13939. *
  13940. * _.sample([1, 2, 3, 4]);
  13941. * // => 2
  13942. */
  13943. function sample(collection) {
  13944. var func = isArray(collection) ? arraySample : baseSample;
  13945. return func(collection);
  13946. }
  13947. /**
  13948. * Gets `n` random elements at unique keys from `collection` up to the
  13949. * size of `collection`.
  13950. *
  13951. * @static
  13952. * @memberOf _
  13953. * @since 4.0.0
  13954. * @category Collection
  13955. * @param {Array|Object} collection The collection to sample.
  13956. * @param {number} [n=1] The number of elements to sample.
  13957. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  13958. * @returns {Array} Returns the random elements.
  13959. * @example
  13960. *
  13961. * _.sampleSize([1, 2, 3], 2);
  13962. * // => [3, 1]
  13963. *
  13964. * _.sampleSize([1, 2, 3], 4);
  13965. * // => [2, 3, 1]
  13966. */
  13967. function sampleSize(collection, n, guard) {
  13968. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  13969. n = 1;
  13970. } else {
  13971. n = toInteger(n);
  13972. }
  13973. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  13974. return func(collection, n);
  13975. }
  13976. /**
  13977. * Creates an array of shuffled values, using a version of the
  13978. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  13979. *
  13980. * @static
  13981. * @memberOf _
  13982. * @since 0.1.0
  13983. * @category Collection
  13984. * @param {Array|Object} collection The collection to shuffle.
  13985. * @returns {Array} Returns the new shuffled array.
  13986. * @example
  13987. *
  13988. * _.shuffle([1, 2, 3, 4]);
  13989. * // => [4, 1, 3, 2]
  13990. */
  13991. function shuffle(collection) {
  13992. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  13993. return func(collection);
  13994. }
  13995. /**
  13996. * Gets the size of `collection` by returning its length for array-like
  13997. * values or the number of own enumerable string keyed properties for objects.
  13998. *
  13999. * @static
  14000. * @memberOf _
  14001. * @since 0.1.0
  14002. * @category Collection
  14003. * @param {Array|Object|string} collection The collection to inspect.
  14004. * @returns {number} Returns the collection size.
  14005. * @example
  14006. *
  14007. * _.size([1, 2, 3]);
  14008. * // => 3
  14009. *
  14010. * _.size({ 'a': 1, 'b': 2 });
  14011. * // => 2
  14012. *
  14013. * _.size('pebbles');
  14014. * // => 7
  14015. */
  14016. function size(collection) {
  14017. if (collection == null) {
  14018. return 0;
  14019. }
  14020. if (isArrayLike(collection)) {
  14021. return isString(collection) ? stringSize(collection) : collection.length;
  14022. }
  14023. var tag = getTag(collection);
  14024. if (tag == mapTag || tag == setTag) {
  14025. return collection.size;
  14026. }
  14027. return baseKeys(collection).length;
  14028. }
  14029. /**
  14030. * Checks if `predicate` returns truthy for **any** element of `collection`.
  14031. * Iteration is stopped once `predicate` returns truthy. The predicate is
  14032. * invoked with three arguments: (value, index|key, collection).
  14033. *
  14034. * @static
  14035. * @memberOf _
  14036. * @since 0.1.0
  14037. * @category Collection
  14038. * @param {Array|Object} collection The collection to iterate over.
  14039. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14040. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14041. * @returns {boolean} Returns `true` if any element passes the predicate check,
  14042. * else `false`.
  14043. * @example
  14044. *
  14045. * _.some([null, 0, 'yes', false], Boolean);
  14046. * // => true
  14047. *
  14048. * var users = [
  14049. * { 'user': 'barney', 'active': true },
  14050. * { 'user': 'fred', 'active': false }
  14051. * ];
  14052. *
  14053. * // The `_.matches` iteratee shorthand.
  14054. * _.some(users, { 'user': 'barney', 'active': false });
  14055. * // => false
  14056. *
  14057. * // The `_.matchesProperty` iteratee shorthand.
  14058. * _.some(users, ['active', false]);
  14059. * // => true
  14060. *
  14061. * // The `_.property` iteratee shorthand.
  14062. * _.some(users, 'active');
  14063. * // => true
  14064. */
  14065. function some(collection, predicate, guard) {
  14066. var func = isArray(collection) ? arraySome : baseSome;
  14067. if (guard && isIterateeCall(collection, predicate, guard)) {
  14068. predicate = undefined;
  14069. }
  14070. return func(collection, getIteratee(predicate, 3));
  14071. }
  14072. /**
  14073. * Creates an array of elements, sorted in ascending order by the results of
  14074. * running each element in a collection thru each iteratee. This method
  14075. * performs a stable sort, that is, it preserves the original sort order of
  14076. * equal elements. The iteratees are invoked with one argument: (value).
  14077. *
  14078. * @static
  14079. * @memberOf _
  14080. * @since 0.1.0
  14081. * @category Collection
  14082. * @param {Array|Object} collection The collection to iterate over.
  14083. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  14084. * The iteratees to sort by.
  14085. * @returns {Array} Returns the new sorted array.
  14086. * @example
  14087. *
  14088. * var users = [
  14089. * { 'user': 'fred', 'age': 48 },
  14090. * { 'user': 'barney', 'age': 36 },
  14091. * { 'user': 'fred', 'age': 40 },
  14092. * { 'user': 'barney', 'age': 34 }
  14093. * ];
  14094. *
  14095. * _.sortBy(users, [function(o) { return o.user; }]);
  14096. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  14097. *
  14098. * _.sortBy(users, ['user', 'age']);
  14099. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  14100. */
  14101. var sortBy = baseRest(function(collection, iteratees) {
  14102. if (collection == null) {
  14103. return [];
  14104. }
  14105. var length = iteratees.length;
  14106. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  14107. iteratees = [];
  14108. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  14109. iteratees = [iteratees[0]];
  14110. }
  14111. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  14112. });
  14113. /*------------------------------------------------------------------------*/
  14114. /**
  14115. * Gets the timestamp of the number of milliseconds that have elapsed since
  14116. * the Unix epoch (1 January 1970 00:00:00 UTC).
  14117. *
  14118. * @static
  14119. * @memberOf _
  14120. * @since 2.4.0
  14121. * @category Date
  14122. * @returns {number} Returns the timestamp.
  14123. * @example
  14124. *
  14125. * _.defer(function(stamp) {
  14126. * console.log(_.now() - stamp);
  14127. * }, _.now());
  14128. * // => Logs the number of milliseconds it took for the deferred invocation.
  14129. */
  14130. var now = ctxNow || function() {
  14131. return root.Date.now();
  14132. };
  14133. /*------------------------------------------------------------------------*/
  14134. /**
  14135. * The opposite of `_.before`; this method creates a function that invokes
  14136. * `func` once it's called `n` or more times.
  14137. *
  14138. * @static
  14139. * @memberOf _
  14140. * @since 0.1.0
  14141. * @category Function
  14142. * @param {number} n The number of calls before `func` is invoked.
  14143. * @param {Function} func The function to restrict.
  14144. * @returns {Function} Returns the new restricted function.
  14145. * @example
  14146. *
  14147. * var saves = ['profile', 'settings'];
  14148. *
  14149. * var done = _.after(saves.length, function() {
  14150. * console.log('done saving!');
  14151. * });
  14152. *
  14153. * _.forEach(saves, function(type) {
  14154. * asyncSave({ 'type': type, 'complete': done });
  14155. * });
  14156. * // => Logs 'done saving!' after the two async saves have completed.
  14157. */
  14158. function after(n, func) {
  14159. if (typeof func != 'function') {
  14160. throw new TypeError(FUNC_ERROR_TEXT);
  14161. }
  14162. n = toInteger(n);
  14163. return function() {
  14164. if (--n < 1) {
  14165. return func.apply(this, arguments);
  14166. }
  14167. };
  14168. }
  14169. /**
  14170. * Creates a function that invokes `func`, with up to `n` arguments,
  14171. * ignoring any additional arguments.
  14172. *
  14173. * @static
  14174. * @memberOf _
  14175. * @since 3.0.0
  14176. * @category Function
  14177. * @param {Function} func The function to cap arguments for.
  14178. * @param {number} [n=func.length] The arity cap.
  14179. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14180. * @returns {Function} Returns the new capped function.
  14181. * @example
  14182. *
  14183. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  14184. * // => [6, 8, 10]
  14185. */
  14186. function ary(func, n, guard) {
  14187. n = guard ? undefined : n;
  14188. n = (func && n == null) ? func.length : n;
  14189. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  14190. }
  14191. /**
  14192. * Creates a function that invokes `func`, with the `this` binding and arguments
  14193. * of the created function, while it's called less than `n` times. Subsequent
  14194. * calls to the created function return the result of the last `func` invocation.
  14195. *
  14196. * @static
  14197. * @memberOf _
  14198. * @since 3.0.0
  14199. * @category Function
  14200. * @param {number} n The number of calls at which `func` is no longer invoked.
  14201. * @param {Function} func The function to restrict.
  14202. * @returns {Function} Returns the new restricted function.
  14203. * @example
  14204. *
  14205. * jQuery(element).on('click', _.before(5, addContactToList));
  14206. * // => Allows adding up to 4 contacts to the list.
  14207. */
  14208. function before(n, func) {
  14209. var result;
  14210. if (typeof func != 'function') {
  14211. throw new TypeError(FUNC_ERROR_TEXT);
  14212. }
  14213. n = toInteger(n);
  14214. return function() {
  14215. if (--n > 0) {
  14216. result = func.apply(this, arguments);
  14217. }
  14218. if (n <= 1) {
  14219. func = undefined;
  14220. }
  14221. return result;
  14222. };
  14223. }
  14224. /**
  14225. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  14226. * and `partials` prepended to the arguments it receives.
  14227. *
  14228. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  14229. * may be used as a placeholder for partially applied arguments.
  14230. *
  14231. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  14232. * property of bound functions.
  14233. *
  14234. * @static
  14235. * @memberOf _
  14236. * @since 0.1.0
  14237. * @category Function
  14238. * @param {Function} func The function to bind.
  14239. * @param {*} thisArg The `this` binding of `func`.
  14240. * @param {...*} [partials] The arguments to be partially applied.
  14241. * @returns {Function} Returns the new bound function.
  14242. * @example
  14243. *
  14244. * function greet(greeting, punctuation) {
  14245. * return greeting + ' ' + this.user + punctuation;
  14246. * }
  14247. *
  14248. * var object = { 'user': 'fred' };
  14249. *
  14250. * var bound = _.bind(greet, object, 'hi');
  14251. * bound('!');
  14252. * // => 'hi fred!'
  14253. *
  14254. * // Bound with placeholders.
  14255. * var bound = _.bind(greet, object, _, '!');
  14256. * bound('hi');
  14257. * // => 'hi fred!'
  14258. */
  14259. var bind = baseRest(function(func, thisArg, partials) {
  14260. var bitmask = WRAP_BIND_FLAG;
  14261. if (partials.length) {
  14262. var holders = replaceHolders(partials, getHolder(bind));
  14263. bitmask |= WRAP_PARTIAL_FLAG;
  14264. }
  14265. return createWrap(func, bitmask, thisArg, partials, holders);
  14266. });
  14267. /**
  14268. * Creates a function that invokes the method at `object[key]` with `partials`
  14269. * prepended to the arguments it receives.
  14270. *
  14271. * This method differs from `_.bind` by allowing bound functions to reference
  14272. * methods that may be redefined or don't yet exist. See
  14273. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  14274. * for more details.
  14275. *
  14276. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  14277. * builds, may be used as a placeholder for partially applied arguments.
  14278. *
  14279. * @static
  14280. * @memberOf _
  14281. * @since 0.10.0
  14282. * @category Function
  14283. * @param {Object} object The object to invoke the method on.
  14284. * @param {string} key The key of the method.
  14285. * @param {...*} [partials] The arguments to be partially applied.
  14286. * @returns {Function} Returns the new bound function.
  14287. * @example
  14288. *
  14289. * var object = {
  14290. * 'user': 'fred',
  14291. * 'greet': function(greeting, punctuation) {
  14292. * return greeting + ' ' + this.user + punctuation;
  14293. * }
  14294. * };
  14295. *
  14296. * var bound = _.bindKey(object, 'greet', 'hi');
  14297. * bound('!');
  14298. * // => 'hi fred!'
  14299. *
  14300. * object.greet = function(greeting, punctuation) {
  14301. * return greeting + 'ya ' + this.user + punctuation;
  14302. * };
  14303. *
  14304. * bound('!');
  14305. * // => 'hiya fred!'
  14306. *
  14307. * // Bound with placeholders.
  14308. * var bound = _.bindKey(object, 'greet', _, '!');
  14309. * bound('hi');
  14310. * // => 'hiya fred!'
  14311. */
  14312. var bindKey = baseRest(function(object, key, partials) {
  14313. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  14314. if (partials.length) {
  14315. var holders = replaceHolders(partials, getHolder(bindKey));
  14316. bitmask |= WRAP_PARTIAL_FLAG;
  14317. }
  14318. return createWrap(key, bitmask, object, partials, holders);
  14319. });
  14320. /**
  14321. * Creates a function that accepts arguments of `func` and either invokes
  14322. * `func` returning its result, if at least `arity` number of arguments have
  14323. * been provided, or returns a function that accepts the remaining `func`
  14324. * arguments, and so on. The arity of `func` may be specified if `func.length`
  14325. * is not sufficient.
  14326. *
  14327. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  14328. * may be used as a placeholder for provided arguments.
  14329. *
  14330. * **Note:** This method doesn't set the "length" property of curried functions.
  14331. *
  14332. * @static
  14333. * @memberOf _
  14334. * @since 2.0.0
  14335. * @category Function
  14336. * @param {Function} func The function to curry.
  14337. * @param {number} [arity=func.length] The arity of `func`.
  14338. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14339. * @returns {Function} Returns the new curried function.
  14340. * @example
  14341. *
  14342. * var abc = function(a, b, c) {
  14343. * return [a, b, c];
  14344. * };
  14345. *
  14346. * var curried = _.curry(abc);
  14347. *
  14348. * curried(1)(2)(3);
  14349. * // => [1, 2, 3]
  14350. *
  14351. * curried(1, 2)(3);
  14352. * // => [1, 2, 3]
  14353. *
  14354. * curried(1, 2, 3);
  14355. * // => [1, 2, 3]
  14356. *
  14357. * // Curried with placeholders.
  14358. * curried(1)(_, 3)(2);
  14359. * // => [1, 2, 3]
  14360. */
  14361. function curry(func, arity, guard) {
  14362. arity = guard ? undefined : arity;
  14363. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  14364. result.placeholder = curry.placeholder;
  14365. return result;
  14366. }
  14367. /**
  14368. * This method is like `_.curry` except that arguments are applied to `func`
  14369. * in the manner of `_.partialRight` instead of `_.partial`.
  14370. *
  14371. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  14372. * builds, may be used as a placeholder for provided arguments.
  14373. *
  14374. * **Note:** This method doesn't set the "length" property of curried functions.
  14375. *
  14376. * @static
  14377. * @memberOf _
  14378. * @since 3.0.0
  14379. * @category Function
  14380. * @param {Function} func The function to curry.
  14381. * @param {number} [arity=func.length] The arity of `func`.
  14382. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14383. * @returns {Function} Returns the new curried function.
  14384. * @example
  14385. *
  14386. * var abc = function(a, b, c) {
  14387. * return [a, b, c];
  14388. * };
  14389. *
  14390. * var curried = _.curryRight(abc);
  14391. *
  14392. * curried(3)(2)(1);
  14393. * // => [1, 2, 3]
  14394. *
  14395. * curried(2, 3)(1);
  14396. * // => [1, 2, 3]
  14397. *
  14398. * curried(1, 2, 3);
  14399. * // => [1, 2, 3]
  14400. *
  14401. * // Curried with placeholders.
  14402. * curried(3)(1, _)(2);
  14403. * // => [1, 2, 3]
  14404. */
  14405. function curryRight(func, arity, guard) {
  14406. arity = guard ? undefined : arity;
  14407. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  14408. result.placeholder = curryRight.placeholder;
  14409. return result;
  14410. }
  14411. /**
  14412. * Creates a debounced function that delays invoking `func` until after `wait`
  14413. * milliseconds have elapsed since the last time the debounced function was
  14414. * invoked. The debounced function comes with a `cancel` method to cancel
  14415. * delayed `func` invocations and a `flush` method to immediately invoke them.
  14416. * Provide `options` to indicate whether `func` should be invoked on the
  14417. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  14418. * with the last arguments provided to the debounced function. Subsequent
  14419. * calls to the debounced function return the result of the last `func`
  14420. * invocation.
  14421. *
  14422. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  14423. * invoked on the trailing edge of the timeout only if the debounced function
  14424. * is invoked more than once during the `wait` timeout.
  14425. *
  14426. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  14427. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  14428. *
  14429. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  14430. * for details over the differences between `_.debounce` and `_.throttle`.
  14431. *
  14432. * @static
  14433. * @memberOf _
  14434. * @since 0.1.0
  14435. * @category Function
  14436. * @param {Function} func The function to debounce.
  14437. * @param {number} [wait=0] The number of milliseconds to delay.
  14438. * @param {Object} [options={}] The options object.
  14439. * @param {boolean} [options.leading=false]
  14440. * Specify invoking on the leading edge of the timeout.
  14441. * @param {number} [options.maxWait]
  14442. * The maximum time `func` is allowed to be delayed before it's invoked.
  14443. * @param {boolean} [options.trailing=true]
  14444. * Specify invoking on the trailing edge of the timeout.
  14445. * @returns {Function} Returns the new debounced function.
  14446. * @example
  14447. *
  14448. * // Avoid costly calculations while the window size is in flux.
  14449. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  14450. *
  14451. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  14452. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  14453. * 'leading': true,
  14454. * 'trailing': false
  14455. * }));
  14456. *
  14457. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  14458. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  14459. * var source = new EventSource('/stream');
  14460. * jQuery(source).on('message', debounced);
  14461. *
  14462. * // Cancel the trailing debounced invocation.
  14463. * jQuery(window).on('popstate', debounced.cancel);
  14464. */
  14465. function debounce(func, wait, options) {
  14466. var lastArgs,
  14467. lastThis,
  14468. maxWait,
  14469. result,
  14470. timerId,
  14471. lastCallTime,
  14472. lastInvokeTime = 0,
  14473. leading = false,
  14474. maxing = false,
  14475. trailing = true;
  14476. if (typeof func != 'function') {
  14477. throw new TypeError(FUNC_ERROR_TEXT);
  14478. }
  14479. wait = toNumber(wait) || 0;
  14480. if (isObject(options)) {
  14481. leading = !!options.leading;
  14482. maxing = 'maxWait' in options;
  14483. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  14484. trailing = 'trailing' in options ? !!options.trailing : trailing;
  14485. }
  14486. function invokeFunc(time) {
  14487. var args = lastArgs,
  14488. thisArg = lastThis;
  14489. lastArgs = lastThis = undefined;
  14490. lastInvokeTime = time;
  14491. result = func.apply(thisArg, args);
  14492. return result;
  14493. }
  14494. function leadingEdge(time) {
  14495. // Reset any `maxWait` timer.
  14496. lastInvokeTime = time;
  14497. // Start the timer for the trailing edge.
  14498. timerId = setTimeout(timerExpired, wait);
  14499. // Invoke the leading edge.
  14500. return leading ? invokeFunc(time) : result;
  14501. }
  14502. function remainingWait(time) {
  14503. var timeSinceLastCall = time - lastCallTime,
  14504. timeSinceLastInvoke = time - lastInvokeTime,
  14505. timeWaiting = wait - timeSinceLastCall;
  14506. return maxing
  14507. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  14508. : timeWaiting;
  14509. }
  14510. function shouldInvoke(time) {
  14511. var timeSinceLastCall = time - lastCallTime,
  14512. timeSinceLastInvoke = time - lastInvokeTime;
  14513. // Either this is the first call, activity has stopped and we're at the
  14514. // trailing edge, the system time has gone backwards and we're treating
  14515. // it as the trailing edge, or we've hit the `maxWait` limit.
  14516. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  14517. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  14518. }
  14519. function timerExpired() {
  14520. var time = now();
  14521. if (shouldInvoke(time)) {
  14522. return trailingEdge(time);
  14523. }
  14524. // Restart the timer.
  14525. timerId = setTimeout(timerExpired, remainingWait(time));
  14526. }
  14527. function trailingEdge(time) {
  14528. timerId = undefined;
  14529. // Only invoke if we have `lastArgs` which means `func` has been
  14530. // debounced at least once.
  14531. if (trailing && lastArgs) {
  14532. return invokeFunc(time);
  14533. }
  14534. lastArgs = lastThis = undefined;
  14535. return result;
  14536. }
  14537. function cancel() {
  14538. if (timerId !== undefined) {
  14539. clearTimeout(timerId);
  14540. }
  14541. lastInvokeTime = 0;
  14542. lastArgs = lastCallTime = lastThis = timerId = undefined;
  14543. }
  14544. function flush() {
  14545. return timerId === undefined ? result : trailingEdge(now());
  14546. }
  14547. function debounced() {
  14548. var time = now(),
  14549. isInvoking = shouldInvoke(time);
  14550. lastArgs = arguments;
  14551. lastThis = this;
  14552. lastCallTime = time;
  14553. if (isInvoking) {
  14554. if (timerId === undefined) {
  14555. return leadingEdge(lastCallTime);
  14556. }
  14557. if (maxing) {
  14558. // Handle invocations in a tight loop.
  14559. timerId = setTimeout(timerExpired, wait);
  14560. return invokeFunc(lastCallTime);
  14561. }
  14562. }
  14563. if (timerId === undefined) {
  14564. timerId = setTimeout(timerExpired, wait);
  14565. }
  14566. return result;
  14567. }
  14568. debounced.cancel = cancel;
  14569. debounced.flush = flush;
  14570. return debounced;
  14571. }
  14572. /**
  14573. * Defers invoking the `func` until the current call stack has cleared. Any
  14574. * additional arguments are provided to `func` when it's invoked.
  14575. *
  14576. * @static
  14577. * @memberOf _
  14578. * @since 0.1.0
  14579. * @category Function
  14580. * @param {Function} func The function to defer.
  14581. * @param {...*} [args] The arguments to invoke `func` with.
  14582. * @returns {number} Returns the timer id.
  14583. * @example
  14584. *
  14585. * _.defer(function(text) {
  14586. * console.log(text);
  14587. * }, 'deferred');
  14588. * // => Logs 'deferred' after one millisecond.
  14589. */
  14590. var defer = baseRest(function(func, args) {
  14591. return baseDelay(func, 1, args);
  14592. });
  14593. /**
  14594. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  14595. * provided to `func` when it's invoked.
  14596. *
  14597. * @static
  14598. * @memberOf _
  14599. * @since 0.1.0
  14600. * @category Function
  14601. * @param {Function} func The function to delay.
  14602. * @param {number} wait The number of milliseconds to delay invocation.
  14603. * @param {...*} [args] The arguments to invoke `func` with.
  14604. * @returns {number} Returns the timer id.
  14605. * @example
  14606. *
  14607. * _.delay(function(text) {
  14608. * console.log(text);
  14609. * }, 1000, 'later');
  14610. * // => Logs 'later' after one second.
  14611. */
  14612. var delay = baseRest(function(func, wait, args) {
  14613. return baseDelay(func, toNumber(wait) || 0, args);
  14614. });
  14615. /**
  14616. * Creates a function that invokes `func` with arguments reversed.
  14617. *
  14618. * @static
  14619. * @memberOf _
  14620. * @since 4.0.0
  14621. * @category Function
  14622. * @param {Function} func The function to flip arguments for.
  14623. * @returns {Function} Returns the new flipped function.
  14624. * @example
  14625. *
  14626. * var flipped = _.flip(function() {
  14627. * return _.toArray(arguments);
  14628. * });
  14629. *
  14630. * flipped('a', 'b', 'c', 'd');
  14631. * // => ['d', 'c', 'b', 'a']
  14632. */
  14633. function flip(func) {
  14634. return createWrap(func, WRAP_FLIP_FLAG);
  14635. }
  14636. /**
  14637. * Creates a function that memoizes the result of `func`. If `resolver` is
  14638. * provided, it determines the cache key for storing the result based on the
  14639. * arguments provided to the memoized function. By default, the first argument
  14640. * provided to the memoized function is used as the map cache key. The `func`
  14641. * is invoked with the `this` binding of the memoized function.
  14642. *
  14643. * **Note:** The cache is exposed as the `cache` property on the memoized
  14644. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  14645. * constructor with one whose instances implement the
  14646. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  14647. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  14648. *
  14649. * @static
  14650. * @memberOf _
  14651. * @since 0.1.0
  14652. * @category Function
  14653. * @param {Function} func The function to have its output memoized.
  14654. * @param {Function} [resolver] The function to resolve the cache key.
  14655. * @returns {Function} Returns the new memoized function.
  14656. * @example
  14657. *
  14658. * var object = { 'a': 1, 'b': 2 };
  14659. * var other = { 'c': 3, 'd': 4 };
  14660. *
  14661. * var values = _.memoize(_.values);
  14662. * values(object);
  14663. * // => [1, 2]
  14664. *
  14665. * values(other);
  14666. * // => [3, 4]
  14667. *
  14668. * object.a = 2;
  14669. * values(object);
  14670. * // => [1, 2]
  14671. *
  14672. * // Modify the result cache.
  14673. * values.cache.set(object, ['a', 'b']);
  14674. * values(object);
  14675. * // => ['a', 'b']
  14676. *
  14677. * // Replace `_.memoize.Cache`.
  14678. * _.memoize.Cache = WeakMap;
  14679. */
  14680. function memoize(func, resolver) {
  14681. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  14682. throw new TypeError(FUNC_ERROR_TEXT);
  14683. }
  14684. var memoized = function() {
  14685. var args = arguments,
  14686. key = resolver ? resolver.apply(this, args) : args[0],
  14687. cache = memoized.cache;
  14688. if (cache.has(key)) {
  14689. return cache.get(key);
  14690. }
  14691. var result = func.apply(this, args);
  14692. memoized.cache = cache.set(key, result) || cache;
  14693. return result;
  14694. };
  14695. memoized.cache = new (memoize.Cache || MapCache);
  14696. return memoized;
  14697. }
  14698. // Expose `MapCache`.
  14699. memoize.Cache = MapCache;
  14700. /**
  14701. * Creates a function that negates the result of the predicate `func`. The
  14702. * `func` predicate is invoked with the `this` binding and arguments of the
  14703. * created function.
  14704. *
  14705. * @static
  14706. * @memberOf _
  14707. * @since 3.0.0
  14708. * @category Function
  14709. * @param {Function} predicate The predicate to negate.
  14710. * @returns {Function} Returns the new negated function.
  14711. * @example
  14712. *
  14713. * function isEven(n) {
  14714. * return n % 2 == 0;
  14715. * }
  14716. *
  14717. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  14718. * // => [1, 3, 5]
  14719. */
  14720. function negate(predicate) {
  14721. if (typeof predicate != 'function') {
  14722. throw new TypeError(FUNC_ERROR_TEXT);
  14723. }
  14724. return function() {
  14725. var args = arguments;
  14726. switch (args.length) {
  14727. case 0: return !predicate.call(this);
  14728. case 1: return !predicate.call(this, args[0]);
  14729. case 2: return !predicate.call(this, args[0], args[1]);
  14730. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  14731. }
  14732. return !predicate.apply(this, args);
  14733. };
  14734. }
  14735. /**
  14736. * Creates a function that is restricted to invoking `func` once. Repeat calls
  14737. * to the function return the value of the first invocation. The `func` is
  14738. * invoked with the `this` binding and arguments of the created function.
  14739. *
  14740. * @static
  14741. * @memberOf _
  14742. * @since 0.1.0
  14743. * @category Function
  14744. * @param {Function} func The function to restrict.
  14745. * @returns {Function} Returns the new restricted function.
  14746. * @example
  14747. *
  14748. * var initialize = _.once(createApplication);
  14749. * initialize();
  14750. * initialize();
  14751. * // => `createApplication` is invoked once
  14752. */
  14753. function once(func) {
  14754. return before(2, func);
  14755. }
  14756. /**
  14757. * Creates a function that invokes `func` with its arguments transformed.
  14758. *
  14759. * @static
  14760. * @since 4.0.0
  14761. * @memberOf _
  14762. * @category Function
  14763. * @param {Function} func The function to wrap.
  14764. * @param {...(Function|Function[])} [transforms=[_.identity]]
  14765. * The argument transforms.
  14766. * @returns {Function} Returns the new function.
  14767. * @example
  14768. *
  14769. * function doubled(n) {
  14770. * return n * 2;
  14771. * }
  14772. *
  14773. * function square(n) {
  14774. * return n * n;
  14775. * }
  14776. *
  14777. * var func = _.overArgs(function(x, y) {
  14778. * return [x, y];
  14779. * }, [square, doubled]);
  14780. *
  14781. * func(9, 3);
  14782. * // => [81, 6]
  14783. *
  14784. * func(10, 5);
  14785. * // => [100, 10]
  14786. */
  14787. var overArgs = castRest(function(func, transforms) {
  14788. transforms = (transforms.length == 1 && isArray(transforms[0]))
  14789. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  14790. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  14791. var funcsLength = transforms.length;
  14792. return baseRest(function(args) {
  14793. var index = -1,
  14794. length = nativeMin(args.length, funcsLength);
  14795. while (++index < length) {
  14796. args[index] = transforms[index].call(this, args[index]);
  14797. }
  14798. return apply(func, this, args);
  14799. });
  14800. });
  14801. /**
  14802. * Creates a function that invokes `func` with `partials` prepended to the
  14803. * arguments it receives. This method is like `_.bind` except it does **not**
  14804. * alter the `this` binding.
  14805. *
  14806. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  14807. * builds, may be used as a placeholder for partially applied arguments.
  14808. *
  14809. * **Note:** This method doesn't set the "length" property of partially
  14810. * applied functions.
  14811. *
  14812. * @static
  14813. * @memberOf _
  14814. * @since 0.2.0
  14815. * @category Function
  14816. * @param {Function} func The function to partially apply arguments to.
  14817. * @param {...*} [partials] The arguments to be partially applied.
  14818. * @returns {Function} Returns the new partially applied function.
  14819. * @example
  14820. *
  14821. * function greet(greeting, name) {
  14822. * return greeting + ' ' + name;
  14823. * }
  14824. *
  14825. * var sayHelloTo = _.partial(greet, 'hello');
  14826. * sayHelloTo('fred');
  14827. * // => 'hello fred'
  14828. *
  14829. * // Partially applied with placeholders.
  14830. * var greetFred = _.partial(greet, _, 'fred');
  14831. * greetFred('hi');
  14832. * // => 'hi fred'
  14833. */
  14834. var partial = baseRest(function(func, partials) {
  14835. var holders = replaceHolders(partials, getHolder(partial));
  14836. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  14837. });
  14838. /**
  14839. * This method is like `_.partial` except that partially applied arguments
  14840. * are appended to the arguments it receives.
  14841. *
  14842. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  14843. * builds, may be used as a placeholder for partially applied arguments.
  14844. *
  14845. * **Note:** This method doesn't set the "length" property of partially
  14846. * applied functions.
  14847. *
  14848. * @static
  14849. * @memberOf _
  14850. * @since 1.0.0
  14851. * @category Function
  14852. * @param {Function} func The function to partially apply arguments to.
  14853. * @param {...*} [partials] The arguments to be partially applied.
  14854. * @returns {Function} Returns the new partially applied function.
  14855. * @example
  14856. *
  14857. * function greet(greeting, name) {
  14858. * return greeting + ' ' + name;
  14859. * }
  14860. *
  14861. * var greetFred = _.partialRight(greet, 'fred');
  14862. * greetFred('hi');
  14863. * // => 'hi fred'
  14864. *
  14865. * // Partially applied with placeholders.
  14866. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  14867. * sayHelloTo('fred');
  14868. * // => 'hello fred'
  14869. */
  14870. var partialRight = baseRest(function(func, partials) {
  14871. var holders = replaceHolders(partials, getHolder(partialRight));
  14872. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  14873. });
  14874. /**
  14875. * Creates a function that invokes `func` with arguments arranged according
  14876. * to the specified `indexes` where the argument value at the first index is
  14877. * provided as the first argument, the argument value at the second index is
  14878. * provided as the second argument, and so on.
  14879. *
  14880. * @static
  14881. * @memberOf _
  14882. * @since 3.0.0
  14883. * @category Function
  14884. * @param {Function} func The function to rearrange arguments for.
  14885. * @param {...(number|number[])} indexes The arranged argument indexes.
  14886. * @returns {Function} Returns the new function.
  14887. * @example
  14888. *
  14889. * var rearged = _.rearg(function(a, b, c) {
  14890. * return [a, b, c];
  14891. * }, [2, 0, 1]);
  14892. *
  14893. * rearged('b', 'c', 'a')
  14894. * // => ['a', 'b', 'c']
  14895. */
  14896. var rearg = flatRest(function(func, indexes) {
  14897. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  14898. });
  14899. /**
  14900. * Creates a function that invokes `func` with the `this` binding of the
  14901. * created function and arguments from `start` and beyond provided as
  14902. * an array.
  14903. *
  14904. * **Note:** This method is based on the
  14905. * [rest parameter](https://mdn.io/rest_parameters).
  14906. *
  14907. * @static
  14908. * @memberOf _
  14909. * @since 4.0.0
  14910. * @category Function
  14911. * @param {Function} func The function to apply a rest parameter to.
  14912. * @param {number} [start=func.length-1] The start position of the rest parameter.
  14913. * @returns {Function} Returns the new function.
  14914. * @example
  14915. *
  14916. * var say = _.rest(function(what, names) {
  14917. * return what + ' ' + _.initial(names).join(', ') +
  14918. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  14919. * });
  14920. *
  14921. * say('hello', 'fred', 'barney', 'pebbles');
  14922. * // => 'hello fred, barney, & pebbles'
  14923. */
  14924. function rest(func, start) {
  14925. if (typeof func != 'function') {
  14926. throw new TypeError(FUNC_ERROR_TEXT);
  14927. }
  14928. start = start === undefined ? start : toInteger(start);
  14929. return baseRest(func, start);
  14930. }
  14931. /**
  14932. * Creates a function that invokes `func` with the `this` binding of the
  14933. * create function and an array of arguments much like
  14934. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  14935. *
  14936. * **Note:** This method is based on the
  14937. * [spread operator](https://mdn.io/spread_operator).
  14938. *
  14939. * @static
  14940. * @memberOf _
  14941. * @since 3.2.0
  14942. * @category Function
  14943. * @param {Function} func The function to spread arguments over.
  14944. * @param {number} [start=0] The start position of the spread.
  14945. * @returns {Function} Returns the new function.
  14946. * @example
  14947. *
  14948. * var say = _.spread(function(who, what) {
  14949. * return who + ' says ' + what;
  14950. * });
  14951. *
  14952. * say(['fred', 'hello']);
  14953. * // => 'fred says hello'
  14954. *
  14955. * var numbers = Promise.all([
  14956. * Promise.resolve(40),
  14957. * Promise.resolve(36)
  14958. * ]);
  14959. *
  14960. * numbers.then(_.spread(function(x, y) {
  14961. * return x + y;
  14962. * }));
  14963. * // => a Promise of 76
  14964. */
  14965. function spread(func, start) {
  14966. if (typeof func != 'function') {
  14967. throw new TypeError(FUNC_ERROR_TEXT);
  14968. }
  14969. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  14970. return baseRest(function(args) {
  14971. var array = args[start],
  14972. otherArgs = castSlice(args, 0, start);
  14973. if (array) {
  14974. arrayPush(otherArgs, array);
  14975. }
  14976. return apply(func, this, otherArgs);
  14977. });
  14978. }
  14979. /**
  14980. * Creates a throttled function that only invokes `func` at most once per
  14981. * every `wait` milliseconds. The throttled function comes with a `cancel`
  14982. * method to cancel delayed `func` invocations and a `flush` method to
  14983. * immediately invoke them. Provide `options` to indicate whether `func`
  14984. * should be invoked on the leading and/or trailing edge of the `wait`
  14985. * timeout. The `func` is invoked with the last arguments provided to the
  14986. * throttled function. Subsequent calls to the throttled function return the
  14987. * result of the last `func` invocation.
  14988. *
  14989. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  14990. * invoked on the trailing edge of the timeout only if the throttled function
  14991. * is invoked more than once during the `wait` timeout.
  14992. *
  14993. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  14994. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  14995. *
  14996. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  14997. * for details over the differences between `_.throttle` and `_.debounce`.
  14998. *
  14999. * @static
  15000. * @memberOf _
  15001. * @since 0.1.0
  15002. * @category Function
  15003. * @param {Function} func The function to throttle.
  15004. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  15005. * @param {Object} [options={}] The options object.
  15006. * @param {boolean} [options.leading=true]
  15007. * Specify invoking on the leading edge of the timeout.
  15008. * @param {boolean} [options.trailing=true]
  15009. * Specify invoking on the trailing edge of the timeout.
  15010. * @returns {Function} Returns the new throttled function.
  15011. * @example
  15012. *
  15013. * // Avoid excessively updating the position while scrolling.
  15014. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  15015. *
  15016. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  15017. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  15018. * jQuery(element).on('click', throttled);
  15019. *
  15020. * // Cancel the trailing throttled invocation.
  15021. * jQuery(window).on('popstate', throttled.cancel);
  15022. */
  15023. function throttle(func, wait, options) {
  15024. var leading = true,
  15025. trailing = true;
  15026. if (typeof func != 'function') {
  15027. throw new TypeError(FUNC_ERROR_TEXT);
  15028. }
  15029. if (isObject(options)) {
  15030. leading = 'leading' in options ? !!options.leading : leading;
  15031. trailing = 'trailing' in options ? !!options.trailing : trailing;
  15032. }
  15033. return debounce(func, wait, {
  15034. 'leading': leading,
  15035. 'maxWait': wait,
  15036. 'trailing': trailing
  15037. });
  15038. }
  15039. /**
  15040. * Creates a function that accepts up to one argument, ignoring any
  15041. * additional arguments.
  15042. *
  15043. * @static
  15044. * @memberOf _
  15045. * @since 4.0.0
  15046. * @category Function
  15047. * @param {Function} func The function to cap arguments for.
  15048. * @returns {Function} Returns the new capped function.
  15049. * @example
  15050. *
  15051. * _.map(['6', '8', '10'], _.unary(parseInt));
  15052. * // => [6, 8, 10]
  15053. */
  15054. function unary(func) {
  15055. return ary(func, 1);
  15056. }
  15057. /**
  15058. * Creates a function that provides `value` to `wrapper` as its first
  15059. * argument. Any additional arguments provided to the function are appended
  15060. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  15061. * binding of the created function.
  15062. *
  15063. * @static
  15064. * @memberOf _
  15065. * @since 0.1.0
  15066. * @category Function
  15067. * @param {*} value The value to wrap.
  15068. * @param {Function} [wrapper=identity] The wrapper function.
  15069. * @returns {Function} Returns the new function.
  15070. * @example
  15071. *
  15072. * var p = _.wrap(_.escape, function(func, text) {
  15073. * return '<p>' + func(text) + '</p>';
  15074. * });
  15075. *
  15076. * p('fred, barney, & pebbles');
  15077. * // => '<p>fred, barney, &amp; pebbles</p>'
  15078. */
  15079. function wrap(value, wrapper) {
  15080. return partial(castFunction(wrapper), value);
  15081. }
  15082. /*------------------------------------------------------------------------*/
  15083. /**
  15084. * Casts `value` as an array if it's not one.
  15085. *
  15086. * @static
  15087. * @memberOf _
  15088. * @since 4.4.0
  15089. * @category Lang
  15090. * @param {*} value The value to inspect.
  15091. * @returns {Array} Returns the cast array.
  15092. * @example
  15093. *
  15094. * _.castArray(1);
  15095. * // => [1]
  15096. *
  15097. * _.castArray({ 'a': 1 });
  15098. * // => [{ 'a': 1 }]
  15099. *
  15100. * _.castArray('abc');
  15101. * // => ['abc']
  15102. *
  15103. * _.castArray(null);
  15104. * // => [null]
  15105. *
  15106. * _.castArray(undefined);
  15107. * // => [undefined]
  15108. *
  15109. * _.castArray();
  15110. * // => []
  15111. *
  15112. * var array = [1, 2, 3];
  15113. * console.log(_.castArray(array) === array);
  15114. * // => true
  15115. */
  15116. function castArray() {
  15117. if (!arguments.length) {
  15118. return [];
  15119. }
  15120. var value = arguments[0];
  15121. return isArray(value) ? value : [value];
  15122. }
  15123. /**
  15124. * Creates a shallow clone of `value`.
  15125. *
  15126. * **Note:** This method is loosely based on the
  15127. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  15128. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  15129. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  15130. * arrays. The own enumerable properties of `arguments` objects are cloned
  15131. * as plain objects. An empty object is returned for uncloneable values such
  15132. * as error objects, functions, DOM nodes, and WeakMaps.
  15133. *
  15134. * @static
  15135. * @memberOf _
  15136. * @since 0.1.0
  15137. * @category Lang
  15138. * @param {*} value The value to clone.
  15139. * @returns {*} Returns the cloned value.
  15140. * @see _.cloneDeep
  15141. * @example
  15142. *
  15143. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  15144. *
  15145. * var shallow = _.clone(objects);
  15146. * console.log(shallow[0] === objects[0]);
  15147. * // => true
  15148. */
  15149. function clone(value) {
  15150. return baseClone(value, CLONE_SYMBOLS_FLAG);
  15151. }
  15152. /**
  15153. * This method is like `_.clone` except that it accepts `customizer` which
  15154. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  15155. * cloning is handled by the method instead. The `customizer` is invoked with
  15156. * up to four arguments; (value [, index|key, object, stack]).
  15157. *
  15158. * @static
  15159. * @memberOf _
  15160. * @since 4.0.0
  15161. * @category Lang
  15162. * @param {*} value The value to clone.
  15163. * @param {Function} [customizer] The function to customize cloning.
  15164. * @returns {*} Returns the cloned value.
  15165. * @see _.cloneDeepWith
  15166. * @example
  15167. *
  15168. * function customizer(value) {
  15169. * if (_.isElement(value)) {
  15170. * return value.cloneNode(false);
  15171. * }
  15172. * }
  15173. *
  15174. * var el = _.cloneWith(document.body, customizer);
  15175. *
  15176. * console.log(el === document.body);
  15177. * // => false
  15178. * console.log(el.nodeName);
  15179. * // => 'BODY'
  15180. * console.log(el.childNodes.length);
  15181. * // => 0
  15182. */
  15183. function cloneWith(value, customizer) {
  15184. customizer = typeof customizer == 'function' ? customizer : undefined;
  15185. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  15186. }
  15187. /**
  15188. * This method is like `_.clone` except that it recursively clones `value`.
  15189. *
  15190. * @static
  15191. * @memberOf _
  15192. * @since 1.0.0
  15193. * @category Lang
  15194. * @param {*} value The value to recursively clone.
  15195. * @returns {*} Returns the deep cloned value.
  15196. * @see _.clone
  15197. * @example
  15198. *
  15199. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  15200. *
  15201. * var deep = _.cloneDeep(objects);
  15202. * console.log(deep[0] === objects[0]);
  15203. * // => false
  15204. */
  15205. function cloneDeep(value) {
  15206. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  15207. }
  15208. /**
  15209. * This method is like `_.cloneWith` except that it recursively clones `value`.
  15210. *
  15211. * @static
  15212. * @memberOf _
  15213. * @since 4.0.0
  15214. * @category Lang
  15215. * @param {*} value The value to recursively clone.
  15216. * @param {Function} [customizer] The function to customize cloning.
  15217. * @returns {*} Returns the deep cloned value.
  15218. * @see _.cloneWith
  15219. * @example
  15220. *
  15221. * function customizer(value) {
  15222. * if (_.isElement(value)) {
  15223. * return value.cloneNode(true);
  15224. * }
  15225. * }
  15226. *
  15227. * var el = _.cloneDeepWith(document.body, customizer);
  15228. *
  15229. * console.log(el === document.body);
  15230. * // => false
  15231. * console.log(el.nodeName);
  15232. * // => 'BODY'
  15233. * console.log(el.childNodes.length);
  15234. * // => 20
  15235. */
  15236. function cloneDeepWith(value, customizer) {
  15237. customizer = typeof customizer == 'function' ? customizer : undefined;
  15238. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  15239. }
  15240. /**
  15241. * Checks if `object` conforms to `source` by invoking the predicate
  15242. * properties of `source` with the corresponding property values of `object`.
  15243. *
  15244. * **Note:** This method is equivalent to `_.conforms` when `source` is
  15245. * partially applied.
  15246. *
  15247. * @static
  15248. * @memberOf _
  15249. * @since 4.14.0
  15250. * @category Lang
  15251. * @param {Object} object The object to inspect.
  15252. * @param {Object} source The object of property predicates to conform to.
  15253. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  15254. * @example
  15255. *
  15256. * var object = { 'a': 1, 'b': 2 };
  15257. *
  15258. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  15259. * // => true
  15260. *
  15261. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  15262. * // => false
  15263. */
  15264. function conformsTo(object, source) {
  15265. return source == null || baseConformsTo(object, source, keys(source));
  15266. }
  15267. /**
  15268. * Performs a
  15269. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  15270. * comparison between two values to determine if they are equivalent.
  15271. *
  15272. * @static
  15273. * @memberOf _
  15274. * @since 4.0.0
  15275. * @category Lang
  15276. * @param {*} value The value to compare.
  15277. * @param {*} other The other value to compare.
  15278. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15279. * @example
  15280. *
  15281. * var object = { 'a': 1 };
  15282. * var other = { 'a': 1 };
  15283. *
  15284. * _.eq(object, object);
  15285. * // => true
  15286. *
  15287. * _.eq(object, other);
  15288. * // => false
  15289. *
  15290. * _.eq('a', 'a');
  15291. * // => true
  15292. *
  15293. * _.eq('a', Object('a'));
  15294. * // => false
  15295. *
  15296. * _.eq(NaN, NaN);
  15297. * // => true
  15298. */
  15299. function eq(value, other) {
  15300. return value === other || (value !== value && other !== other);
  15301. }
  15302. /**
  15303. * Checks if `value` is greater than `other`.
  15304. *
  15305. * @static
  15306. * @memberOf _
  15307. * @since 3.9.0
  15308. * @category Lang
  15309. * @param {*} value The value to compare.
  15310. * @param {*} other The other value to compare.
  15311. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  15312. * else `false`.
  15313. * @see _.lt
  15314. * @example
  15315. *
  15316. * _.gt(3, 1);
  15317. * // => true
  15318. *
  15319. * _.gt(3, 3);
  15320. * // => false
  15321. *
  15322. * _.gt(1, 3);
  15323. * // => false
  15324. */
  15325. var gt = createRelationalOperation(baseGt);
  15326. /**
  15327. * Checks if `value` is greater than or equal to `other`.
  15328. *
  15329. * @static
  15330. * @memberOf _
  15331. * @since 3.9.0
  15332. * @category Lang
  15333. * @param {*} value The value to compare.
  15334. * @param {*} other The other value to compare.
  15335. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  15336. * `other`, else `false`.
  15337. * @see _.lte
  15338. * @example
  15339. *
  15340. * _.gte(3, 1);
  15341. * // => true
  15342. *
  15343. * _.gte(3, 3);
  15344. * // => true
  15345. *
  15346. * _.gte(1, 3);
  15347. * // => false
  15348. */
  15349. var gte = createRelationalOperation(function(value, other) {
  15350. return value >= other;
  15351. });
  15352. /**
  15353. * Checks if `value` is likely an `arguments` object.
  15354. *
  15355. * @static
  15356. * @memberOf _
  15357. * @since 0.1.0
  15358. * @category Lang
  15359. * @param {*} value The value to check.
  15360. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15361. * else `false`.
  15362. * @example
  15363. *
  15364. * _.isArguments(function() { return arguments; }());
  15365. * // => true
  15366. *
  15367. * _.isArguments([1, 2, 3]);
  15368. * // => false
  15369. */
  15370. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15371. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15372. !propertyIsEnumerable.call(value, 'callee');
  15373. };
  15374. /**
  15375. * Checks if `value` is classified as an `Array` object.
  15376. *
  15377. * @static
  15378. * @memberOf _
  15379. * @since 0.1.0
  15380. * @category Lang
  15381. * @param {*} value The value to check.
  15382. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15383. * @example
  15384. *
  15385. * _.isArray([1, 2, 3]);
  15386. * // => true
  15387. *
  15388. * _.isArray(document.body.children);
  15389. * // => false
  15390. *
  15391. * _.isArray('abc');
  15392. * // => false
  15393. *
  15394. * _.isArray(_.noop);
  15395. * // => false
  15396. */
  15397. var isArray = Array.isArray;
  15398. /**
  15399. * Checks if `value` is classified as an `ArrayBuffer` object.
  15400. *
  15401. * @static
  15402. * @memberOf _
  15403. * @since 4.3.0
  15404. * @category Lang
  15405. * @param {*} value The value to check.
  15406. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  15407. * @example
  15408. *
  15409. * _.isArrayBuffer(new ArrayBuffer(2));
  15410. * // => true
  15411. *
  15412. * _.isArrayBuffer(new Array(2));
  15413. * // => false
  15414. */
  15415. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  15416. /**
  15417. * Checks if `value` is array-like. A value is considered array-like if it's
  15418. * not a function and has a `value.length` that's an integer greater than or
  15419. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15420. *
  15421. * @static
  15422. * @memberOf _
  15423. * @since 4.0.0
  15424. * @category Lang
  15425. * @param {*} value The value to check.
  15426. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15427. * @example
  15428. *
  15429. * _.isArrayLike([1, 2, 3]);
  15430. * // => true
  15431. *
  15432. * _.isArrayLike(document.body.children);
  15433. * // => true
  15434. *
  15435. * _.isArrayLike('abc');
  15436. * // => true
  15437. *
  15438. * _.isArrayLike(_.noop);
  15439. * // => false
  15440. */
  15441. function isArrayLike(value) {
  15442. return value != null && isLength(value.length) && !isFunction(value);
  15443. }
  15444. /**
  15445. * This method is like `_.isArrayLike` except that it also checks if `value`
  15446. * is an object.
  15447. *
  15448. * @static
  15449. * @memberOf _
  15450. * @since 4.0.0
  15451. * @category Lang
  15452. * @param {*} value The value to check.
  15453. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15454. * else `false`.
  15455. * @example
  15456. *
  15457. * _.isArrayLikeObject([1, 2, 3]);
  15458. * // => true
  15459. *
  15460. * _.isArrayLikeObject(document.body.children);
  15461. * // => true
  15462. *
  15463. * _.isArrayLikeObject('abc');
  15464. * // => false
  15465. *
  15466. * _.isArrayLikeObject(_.noop);
  15467. * // => false
  15468. */
  15469. function isArrayLikeObject(value) {
  15470. return isObjectLike(value) && isArrayLike(value);
  15471. }
  15472. /**
  15473. * Checks if `value` is classified as a boolean primitive or object.
  15474. *
  15475. * @static
  15476. * @memberOf _
  15477. * @since 0.1.0
  15478. * @category Lang
  15479. * @param {*} value The value to check.
  15480. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  15481. * @example
  15482. *
  15483. * _.isBoolean(false);
  15484. * // => true
  15485. *
  15486. * _.isBoolean(null);
  15487. * // => false
  15488. */
  15489. function isBoolean(value) {
  15490. return value === true || value === false ||
  15491. (isObjectLike(value) && baseGetTag(value) == boolTag);
  15492. }
  15493. /**
  15494. * Checks if `value` is a buffer.
  15495. *
  15496. * @static
  15497. * @memberOf _
  15498. * @since 4.3.0
  15499. * @category Lang
  15500. * @param {*} value The value to check.
  15501. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15502. * @example
  15503. *
  15504. * _.isBuffer(new Buffer(2));
  15505. * // => true
  15506. *
  15507. * _.isBuffer(new Uint8Array(2));
  15508. * // => false
  15509. */
  15510. var isBuffer = nativeIsBuffer || stubFalse;
  15511. /**
  15512. * Checks if `value` is classified as a `Date` object.
  15513. *
  15514. * @static
  15515. * @memberOf _
  15516. * @since 0.1.0
  15517. * @category Lang
  15518. * @param {*} value The value to check.
  15519. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  15520. * @example
  15521. *
  15522. * _.isDate(new Date);
  15523. * // => true
  15524. *
  15525. * _.isDate('Mon April 23 2012');
  15526. * // => false
  15527. */
  15528. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  15529. /**
  15530. * Checks if `value` is likely a DOM element.
  15531. *
  15532. * @static
  15533. * @memberOf _
  15534. * @since 0.1.0
  15535. * @category Lang
  15536. * @param {*} value The value to check.
  15537. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  15538. * @example
  15539. *
  15540. * _.isElement(document.body);
  15541. * // => true
  15542. *
  15543. * _.isElement('<body>');
  15544. * // => false
  15545. */
  15546. function isElement(value) {
  15547. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  15548. }
  15549. /**
  15550. * Checks if `value` is an empty object, collection, map, or set.
  15551. *
  15552. * Objects are considered empty if they have no own enumerable string keyed
  15553. * properties.
  15554. *
  15555. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15556. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15557. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15558. *
  15559. * @static
  15560. * @memberOf _
  15561. * @since 0.1.0
  15562. * @category Lang
  15563. * @param {*} value The value to check.
  15564. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15565. * @example
  15566. *
  15567. * _.isEmpty(null);
  15568. * // => true
  15569. *
  15570. * _.isEmpty(true);
  15571. * // => true
  15572. *
  15573. * _.isEmpty(1);
  15574. * // => true
  15575. *
  15576. * _.isEmpty([1, 2, 3]);
  15577. * // => false
  15578. *
  15579. * _.isEmpty({ 'a': 1 });
  15580. * // => false
  15581. */
  15582. function isEmpty(value) {
  15583. if (value == null) {
  15584. return true;
  15585. }
  15586. if (isArrayLike(value) &&
  15587. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15588. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15589. return !value.length;
  15590. }
  15591. var tag = getTag(value);
  15592. if (tag == mapTag || tag == setTag) {
  15593. return !value.size;
  15594. }
  15595. if (isPrototype(value)) {
  15596. return !baseKeys(value).length;
  15597. }
  15598. for (var key in value) {
  15599. if (hasOwnProperty.call(value, key)) {
  15600. return false;
  15601. }
  15602. }
  15603. return true;
  15604. }
  15605. /**
  15606. * Performs a deep comparison between two values to determine if they are
  15607. * equivalent.
  15608. *
  15609. * **Note:** This method supports comparing arrays, array buffers, booleans,
  15610. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  15611. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  15612. * by their own, not inherited, enumerable properties. Functions and DOM
  15613. * nodes are compared by strict equality, i.e. `===`.
  15614. *
  15615. * @static
  15616. * @memberOf _
  15617. * @since 0.1.0
  15618. * @category Lang
  15619. * @param {*} value The value to compare.
  15620. * @param {*} other The other value to compare.
  15621. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15622. * @example
  15623. *
  15624. * var object = { 'a': 1 };
  15625. * var other = { 'a': 1 };
  15626. *
  15627. * _.isEqual(object, other);
  15628. * // => true
  15629. *
  15630. * object === other;
  15631. * // => false
  15632. */
  15633. function isEqual(value, other) {
  15634. return baseIsEqual(value, other);
  15635. }
  15636. /**
  15637. * This method is like `_.isEqual` except that it accepts `customizer` which
  15638. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  15639. * are handled by the method instead. The `customizer` is invoked with up to
  15640. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  15641. *
  15642. * @static
  15643. * @memberOf _
  15644. * @since 4.0.0
  15645. * @category Lang
  15646. * @param {*} value The value to compare.
  15647. * @param {*} other The other value to compare.
  15648. * @param {Function} [customizer] The function to customize comparisons.
  15649. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15650. * @example
  15651. *
  15652. * function isGreeting(value) {
  15653. * return /^h(?:i|ello)$/.test(value);
  15654. * }
  15655. *
  15656. * function customizer(objValue, othValue) {
  15657. * if (isGreeting(objValue) && isGreeting(othValue)) {
  15658. * return true;
  15659. * }
  15660. * }
  15661. *
  15662. * var array = ['hello', 'goodbye'];
  15663. * var other = ['hi', 'goodbye'];
  15664. *
  15665. * _.isEqualWith(array, other, customizer);
  15666. * // => true
  15667. */
  15668. function isEqualWith(value, other, customizer) {
  15669. customizer = typeof customizer == 'function' ? customizer : undefined;
  15670. var result = customizer ? customizer(value, other) : undefined;
  15671. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  15672. }
  15673. /**
  15674. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  15675. * `SyntaxError`, `TypeError`, or `URIError` object.
  15676. *
  15677. * @static
  15678. * @memberOf _
  15679. * @since 3.0.0
  15680. * @category Lang
  15681. * @param {*} value The value to check.
  15682. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  15683. * @example
  15684. *
  15685. * _.isError(new Error);
  15686. * // => true
  15687. *
  15688. * _.isError(Error);
  15689. * // => false
  15690. */
  15691. function isError(value) {
  15692. if (!isObjectLike(value)) {
  15693. return false;
  15694. }
  15695. var tag = baseGetTag(value);
  15696. return tag == errorTag || tag == domExcTag ||
  15697. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  15698. }
  15699. /**
  15700. * Checks if `value` is a finite primitive number.
  15701. *
  15702. * **Note:** This method is based on
  15703. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  15704. *
  15705. * @static
  15706. * @memberOf _
  15707. * @since 0.1.0
  15708. * @category Lang
  15709. * @param {*} value The value to check.
  15710. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  15711. * @example
  15712. *
  15713. * _.isFinite(3);
  15714. * // => true
  15715. *
  15716. * _.isFinite(Number.MIN_VALUE);
  15717. * // => true
  15718. *
  15719. * _.isFinite(Infinity);
  15720. * // => false
  15721. *
  15722. * _.isFinite('3');
  15723. * // => false
  15724. */
  15725. function isFinite(value) {
  15726. return typeof value == 'number' && nativeIsFinite(value);
  15727. }
  15728. /**
  15729. * Checks if `value` is classified as a `Function` object.
  15730. *
  15731. * @static
  15732. * @memberOf _
  15733. * @since 0.1.0
  15734. * @category Lang
  15735. * @param {*} value The value to check.
  15736. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15737. * @example
  15738. *
  15739. * _.isFunction(_);
  15740. * // => true
  15741. *
  15742. * _.isFunction(/abc/);
  15743. * // => false
  15744. */
  15745. function isFunction(value) {
  15746. if (!isObject(value)) {
  15747. return false;
  15748. }
  15749. // The use of `Object#toString` avoids issues with the `typeof` operator
  15750. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15751. var tag = baseGetTag(value);
  15752. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15753. }
  15754. /**
  15755. * Checks if `value` is an integer.
  15756. *
  15757. * **Note:** This method is based on
  15758. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  15759. *
  15760. * @static
  15761. * @memberOf _
  15762. * @since 4.0.0
  15763. * @category Lang
  15764. * @param {*} value The value to check.
  15765. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  15766. * @example
  15767. *
  15768. * _.isInteger(3);
  15769. * // => true
  15770. *
  15771. * _.isInteger(Number.MIN_VALUE);
  15772. * // => false
  15773. *
  15774. * _.isInteger(Infinity);
  15775. * // => false
  15776. *
  15777. * _.isInteger('3');
  15778. * // => false
  15779. */
  15780. function isInteger(value) {
  15781. return typeof value == 'number' && value == toInteger(value);
  15782. }
  15783. /**
  15784. * Checks if `value` is a valid array-like length.
  15785. *
  15786. * **Note:** This method is loosely based on
  15787. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15788. *
  15789. * @static
  15790. * @memberOf _
  15791. * @since 4.0.0
  15792. * @category Lang
  15793. * @param {*} value The value to check.
  15794. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15795. * @example
  15796. *
  15797. * _.isLength(3);
  15798. * // => true
  15799. *
  15800. * _.isLength(Number.MIN_VALUE);
  15801. * // => false
  15802. *
  15803. * _.isLength(Infinity);
  15804. * // => false
  15805. *
  15806. * _.isLength('3');
  15807. * // => false
  15808. */
  15809. function isLength(value) {
  15810. return typeof value == 'number' &&
  15811. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15812. }
  15813. /**
  15814. * Checks if `value` is the
  15815. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15816. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15817. *
  15818. * @static
  15819. * @memberOf _
  15820. * @since 0.1.0
  15821. * @category Lang
  15822. * @param {*} value The value to check.
  15823. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15824. * @example
  15825. *
  15826. * _.isObject({});
  15827. * // => true
  15828. *
  15829. * _.isObject([1, 2, 3]);
  15830. * // => true
  15831. *
  15832. * _.isObject(_.noop);
  15833. * // => true
  15834. *
  15835. * _.isObject(null);
  15836. * // => false
  15837. */
  15838. function isObject(value) {
  15839. var type = typeof value;
  15840. return value != null && (type == 'object' || type == 'function');
  15841. }
  15842. /**
  15843. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15844. * and has a `typeof` result of "object".
  15845. *
  15846. * @static
  15847. * @memberOf _
  15848. * @since 4.0.0
  15849. * @category Lang
  15850. * @param {*} value The value to check.
  15851. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15852. * @example
  15853. *
  15854. * _.isObjectLike({});
  15855. * // => true
  15856. *
  15857. * _.isObjectLike([1, 2, 3]);
  15858. * // => true
  15859. *
  15860. * _.isObjectLike(_.noop);
  15861. * // => false
  15862. *
  15863. * _.isObjectLike(null);
  15864. * // => false
  15865. */
  15866. function isObjectLike(value) {
  15867. return value != null && typeof value == 'object';
  15868. }
  15869. /**
  15870. * Checks if `value` is classified as a `Map` object.
  15871. *
  15872. * @static
  15873. * @memberOf _
  15874. * @since 4.3.0
  15875. * @category Lang
  15876. * @param {*} value The value to check.
  15877. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15878. * @example
  15879. *
  15880. * _.isMap(new Map);
  15881. * // => true
  15882. *
  15883. * _.isMap(new WeakMap);
  15884. * // => false
  15885. */
  15886. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15887. /**
  15888. * Performs a partial deep comparison between `object` and `source` to
  15889. * determine if `object` contains equivalent property values.
  15890. *
  15891. * **Note:** This method is equivalent to `_.matches` when `source` is
  15892. * partially applied.
  15893. *
  15894. * Partial comparisons will match empty array and empty object `source`
  15895. * values against any array or object value, respectively. See `_.isEqual`
  15896. * for a list of supported value comparisons.
  15897. *
  15898. * @static
  15899. * @memberOf _
  15900. * @since 3.0.0
  15901. * @category Lang
  15902. * @param {Object} object The object to inspect.
  15903. * @param {Object} source The object of property values to match.
  15904. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  15905. * @example
  15906. *
  15907. * var object = { 'a': 1, 'b': 2 };
  15908. *
  15909. * _.isMatch(object, { 'b': 2 });
  15910. * // => true
  15911. *
  15912. * _.isMatch(object, { 'b': 1 });
  15913. * // => false
  15914. */
  15915. function isMatch(object, source) {
  15916. return object === source || baseIsMatch(object, source, getMatchData(source));
  15917. }
  15918. /**
  15919. * This method is like `_.isMatch` except that it accepts `customizer` which
  15920. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  15921. * are handled by the method instead. The `customizer` is invoked with five
  15922. * arguments: (objValue, srcValue, index|key, object, source).
  15923. *
  15924. * @static
  15925. * @memberOf _
  15926. * @since 4.0.0
  15927. * @category Lang
  15928. * @param {Object} object The object to inspect.
  15929. * @param {Object} source The object of property values to match.
  15930. * @param {Function} [customizer] The function to customize comparisons.
  15931. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  15932. * @example
  15933. *
  15934. * function isGreeting(value) {
  15935. * return /^h(?:i|ello)$/.test(value);
  15936. * }
  15937. *
  15938. * function customizer(objValue, srcValue) {
  15939. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  15940. * return true;
  15941. * }
  15942. * }
  15943. *
  15944. * var object = { 'greeting': 'hello' };
  15945. * var source = { 'greeting': 'hi' };
  15946. *
  15947. * _.isMatchWith(object, source, customizer);
  15948. * // => true
  15949. */
  15950. function isMatchWith(object, source, customizer) {
  15951. customizer = typeof customizer == 'function' ? customizer : undefined;
  15952. return baseIsMatch(object, source, getMatchData(source), customizer);
  15953. }
  15954. /**
  15955. * Checks if `value` is `NaN`.
  15956. *
  15957. * **Note:** This method is based on
  15958. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  15959. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  15960. * `undefined` and other non-number values.
  15961. *
  15962. * @static
  15963. * @memberOf _
  15964. * @since 0.1.0
  15965. * @category Lang
  15966. * @param {*} value The value to check.
  15967. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  15968. * @example
  15969. *
  15970. * _.isNaN(NaN);
  15971. * // => true
  15972. *
  15973. * _.isNaN(new Number(NaN));
  15974. * // => true
  15975. *
  15976. * isNaN(undefined);
  15977. * // => true
  15978. *
  15979. * _.isNaN(undefined);
  15980. * // => false
  15981. */
  15982. function isNaN(value) {
  15983. // An `NaN` primitive is the only value that is not equal to itself.
  15984. // Perform the `toStringTag` check first to avoid errors with some
  15985. // ActiveX objects in IE.
  15986. return isNumber(value) && value != +value;
  15987. }
  15988. /**
  15989. * Checks if `value` is a pristine native function.
  15990. *
  15991. * **Note:** This method can't reliably detect native functions in the presence
  15992. * of the core-js package because core-js circumvents this kind of detection.
  15993. * Despite multiple requests, the core-js maintainer has made it clear: any
  15994. * attempt to fix the detection will be obstructed. As a result, we're left
  15995. * with little choice but to throw an error. Unfortunately, this also affects
  15996. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  15997. * which rely on core-js.
  15998. *
  15999. * @static
  16000. * @memberOf _
  16001. * @since 3.0.0
  16002. * @category Lang
  16003. * @param {*} value The value to check.
  16004. * @returns {boolean} Returns `true` if `value` is a native function,
  16005. * else `false`.
  16006. * @example
  16007. *
  16008. * _.isNative(Array.prototype.push);
  16009. * // => true
  16010. *
  16011. * _.isNative(_);
  16012. * // => false
  16013. */
  16014. function isNative(value) {
  16015. if (isMaskable(value)) {
  16016. throw new Error(CORE_ERROR_TEXT);
  16017. }
  16018. return baseIsNative(value);
  16019. }
  16020. /**
  16021. * Checks if `value` is `null`.
  16022. *
  16023. * @static
  16024. * @memberOf _
  16025. * @since 0.1.0
  16026. * @category Lang
  16027. * @param {*} value The value to check.
  16028. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  16029. * @example
  16030. *
  16031. * _.isNull(null);
  16032. * // => true
  16033. *
  16034. * _.isNull(void 0);
  16035. * // => false
  16036. */
  16037. function isNull(value) {
  16038. return value === null;
  16039. }
  16040. /**
  16041. * Checks if `value` is `null` or `undefined`.
  16042. *
  16043. * @static
  16044. * @memberOf _
  16045. * @since 4.0.0
  16046. * @category Lang
  16047. * @param {*} value The value to check.
  16048. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  16049. * @example
  16050. *
  16051. * _.isNil(null);
  16052. * // => true
  16053. *
  16054. * _.isNil(void 0);
  16055. * // => true
  16056. *
  16057. * _.isNil(NaN);
  16058. * // => false
  16059. */
  16060. function isNil(value) {
  16061. return value == null;
  16062. }
  16063. /**
  16064. * Checks if `value` is classified as a `Number` primitive or object.
  16065. *
  16066. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  16067. * classified as numbers, use the `_.isFinite` method.
  16068. *
  16069. * @static
  16070. * @memberOf _
  16071. * @since 0.1.0
  16072. * @category Lang
  16073. * @param {*} value The value to check.
  16074. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  16075. * @example
  16076. *
  16077. * _.isNumber(3);
  16078. * // => true
  16079. *
  16080. * _.isNumber(Number.MIN_VALUE);
  16081. * // => true
  16082. *
  16083. * _.isNumber(Infinity);
  16084. * // => true
  16085. *
  16086. * _.isNumber('3');
  16087. * // => false
  16088. */
  16089. function isNumber(value) {
  16090. return typeof value == 'number' ||
  16091. (isObjectLike(value) && baseGetTag(value) == numberTag);
  16092. }
  16093. /**
  16094. * Checks if `value` is a plain object, that is, an object created by the
  16095. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  16096. *
  16097. * @static
  16098. * @memberOf _
  16099. * @since 0.8.0
  16100. * @category Lang
  16101. * @param {*} value The value to check.
  16102. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  16103. * @example
  16104. *
  16105. * function Foo() {
  16106. * this.a = 1;
  16107. * }
  16108. *
  16109. * _.isPlainObject(new Foo);
  16110. * // => false
  16111. *
  16112. * _.isPlainObject([1, 2, 3]);
  16113. * // => false
  16114. *
  16115. * _.isPlainObject({ 'x': 0, 'y': 0 });
  16116. * // => true
  16117. *
  16118. * _.isPlainObject(Object.create(null));
  16119. * // => true
  16120. */
  16121. function isPlainObject(value) {
  16122. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  16123. return false;
  16124. }
  16125. var proto = getPrototype(value);
  16126. if (proto === null) {
  16127. return true;
  16128. }
  16129. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  16130. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  16131. funcToString.call(Ctor) == objectCtorString;
  16132. }
  16133. /**
  16134. * Checks if `value` is classified as a `RegExp` object.
  16135. *
  16136. * @static
  16137. * @memberOf _
  16138. * @since 0.1.0
  16139. * @category Lang
  16140. * @param {*} value The value to check.
  16141. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  16142. * @example
  16143. *
  16144. * _.isRegExp(/abc/);
  16145. * // => true
  16146. *
  16147. * _.isRegExp('/abc/');
  16148. * // => false
  16149. */
  16150. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  16151. /**
  16152. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  16153. * double precision number which isn't the result of a rounded unsafe integer.
  16154. *
  16155. * **Note:** This method is based on
  16156. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  16157. *
  16158. * @static
  16159. * @memberOf _
  16160. * @since 4.0.0
  16161. * @category Lang
  16162. * @param {*} value The value to check.
  16163. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  16164. * @example
  16165. *
  16166. * _.isSafeInteger(3);
  16167. * // => true
  16168. *
  16169. * _.isSafeInteger(Number.MIN_VALUE);
  16170. * // => false
  16171. *
  16172. * _.isSafeInteger(Infinity);
  16173. * // => false
  16174. *
  16175. * _.isSafeInteger('3');
  16176. * // => false
  16177. */
  16178. function isSafeInteger(value) {
  16179. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  16180. }
  16181. /**
  16182. * Checks if `value` is classified as a `Set` object.
  16183. *
  16184. * @static
  16185. * @memberOf _
  16186. * @since 4.3.0
  16187. * @category Lang
  16188. * @param {*} value The value to check.
  16189. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  16190. * @example
  16191. *
  16192. * _.isSet(new Set);
  16193. * // => true
  16194. *
  16195. * _.isSet(new WeakSet);
  16196. * // => false
  16197. */
  16198. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  16199. /**
  16200. * Checks if `value` is classified as a `String` primitive or object.
  16201. *
  16202. * @static
  16203. * @since 0.1.0
  16204. * @memberOf _
  16205. * @category Lang
  16206. * @param {*} value The value to check.
  16207. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  16208. * @example
  16209. *
  16210. * _.isString('abc');
  16211. * // => true
  16212. *
  16213. * _.isString(1);
  16214. * // => false
  16215. */
  16216. function isString(value) {
  16217. return typeof value == 'string' ||
  16218. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  16219. }
  16220. /**
  16221. * Checks if `value` is classified as a `Symbol` primitive or object.
  16222. *
  16223. * @static
  16224. * @memberOf _
  16225. * @since 4.0.0
  16226. * @category Lang
  16227. * @param {*} value The value to check.
  16228. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  16229. * @example
  16230. *
  16231. * _.isSymbol(Symbol.iterator);
  16232. * // => true
  16233. *
  16234. * _.isSymbol('abc');
  16235. * // => false
  16236. */
  16237. function isSymbol(value) {
  16238. return typeof value == 'symbol' ||
  16239. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  16240. }
  16241. /**
  16242. * Checks if `value` is classified as a typed array.
  16243. *
  16244. * @static
  16245. * @memberOf _
  16246. * @since 3.0.0
  16247. * @category Lang
  16248. * @param {*} value The value to check.
  16249. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  16250. * @example
  16251. *
  16252. * _.isTypedArray(new Uint8Array);
  16253. * // => true
  16254. *
  16255. * _.isTypedArray([]);
  16256. * // => false
  16257. */
  16258. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  16259. /**
  16260. * Checks if `value` is `undefined`.
  16261. *
  16262. * @static
  16263. * @since 0.1.0
  16264. * @memberOf _
  16265. * @category Lang
  16266. * @param {*} value The value to check.
  16267. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  16268. * @example
  16269. *
  16270. * _.isUndefined(void 0);
  16271. * // => true
  16272. *
  16273. * _.isUndefined(null);
  16274. * // => false
  16275. */
  16276. function isUndefined(value) {
  16277. return value === undefined;
  16278. }
  16279. /**
  16280. * Checks if `value` is classified as a `WeakMap` object.
  16281. *
  16282. * @static
  16283. * @memberOf _
  16284. * @since 4.3.0
  16285. * @category Lang
  16286. * @param {*} value The value to check.
  16287. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  16288. * @example
  16289. *
  16290. * _.isWeakMap(new WeakMap);
  16291. * // => true
  16292. *
  16293. * _.isWeakMap(new Map);
  16294. * // => false
  16295. */
  16296. function isWeakMap(value) {
  16297. return isObjectLike(value) && getTag(value) == weakMapTag;
  16298. }
  16299. /**
  16300. * Checks if `value` is classified as a `WeakSet` object.
  16301. *
  16302. * @static
  16303. * @memberOf _
  16304. * @since 4.3.0
  16305. * @category Lang
  16306. * @param {*} value The value to check.
  16307. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  16308. * @example
  16309. *
  16310. * _.isWeakSet(new WeakSet);
  16311. * // => true
  16312. *
  16313. * _.isWeakSet(new Set);
  16314. * // => false
  16315. */
  16316. function isWeakSet(value) {
  16317. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  16318. }
  16319. /**
  16320. * Checks if `value` is less than `other`.
  16321. *
  16322. * @static
  16323. * @memberOf _
  16324. * @since 3.9.0
  16325. * @category Lang
  16326. * @param {*} value The value to compare.
  16327. * @param {*} other The other value to compare.
  16328. * @returns {boolean} Returns `true` if `value` is less than `other`,
  16329. * else `false`.
  16330. * @see _.gt
  16331. * @example
  16332. *
  16333. * _.lt(1, 3);
  16334. * // => true
  16335. *
  16336. * _.lt(3, 3);
  16337. * // => false
  16338. *
  16339. * _.lt(3, 1);
  16340. * // => false
  16341. */
  16342. var lt = createRelationalOperation(baseLt);
  16343. /**
  16344. * Checks if `value` is less than or equal to `other`.
  16345. *
  16346. * @static
  16347. * @memberOf _
  16348. * @since 3.9.0
  16349. * @category Lang
  16350. * @param {*} value The value to compare.
  16351. * @param {*} other The other value to compare.
  16352. * @returns {boolean} Returns `true` if `value` is less than or equal to
  16353. * `other`, else `false`.
  16354. * @see _.gte
  16355. * @example
  16356. *
  16357. * _.lte(1, 3);
  16358. * // => true
  16359. *
  16360. * _.lte(3, 3);
  16361. * // => true
  16362. *
  16363. * _.lte(3, 1);
  16364. * // => false
  16365. */
  16366. var lte = createRelationalOperation(function(value, other) {
  16367. return value <= other;
  16368. });
  16369. /**
  16370. * Converts `value` to an array.
  16371. *
  16372. * @static
  16373. * @since 0.1.0
  16374. * @memberOf _
  16375. * @category Lang
  16376. * @param {*} value The value to convert.
  16377. * @returns {Array} Returns the converted array.
  16378. * @example
  16379. *
  16380. * _.toArray({ 'a': 1, 'b': 2 });
  16381. * // => [1, 2]
  16382. *
  16383. * _.toArray('abc');
  16384. * // => ['a', 'b', 'c']
  16385. *
  16386. * _.toArray(1);
  16387. * // => []
  16388. *
  16389. * _.toArray(null);
  16390. * // => []
  16391. */
  16392. function toArray(value) {
  16393. if (!value) {
  16394. return [];
  16395. }
  16396. if (isArrayLike(value)) {
  16397. return isString(value) ? stringToArray(value) : copyArray(value);
  16398. }
  16399. if (symIterator && value[symIterator]) {
  16400. return iteratorToArray(value[symIterator]());
  16401. }
  16402. var tag = getTag(value),
  16403. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  16404. return func(value);
  16405. }
  16406. /**
  16407. * Converts `value` to a finite number.
  16408. *
  16409. * @static
  16410. * @memberOf _
  16411. * @since 4.12.0
  16412. * @category Lang
  16413. * @param {*} value The value to convert.
  16414. * @returns {number} Returns the converted number.
  16415. * @example
  16416. *
  16417. * _.toFinite(3.2);
  16418. * // => 3.2
  16419. *
  16420. * _.toFinite(Number.MIN_VALUE);
  16421. * // => 5e-324
  16422. *
  16423. * _.toFinite(Infinity);
  16424. * // => 1.7976931348623157e+308
  16425. *
  16426. * _.toFinite('3.2');
  16427. * // => 3.2
  16428. */
  16429. function toFinite(value) {
  16430. if (!value) {
  16431. return value === 0 ? value : 0;
  16432. }
  16433. value = toNumber(value);
  16434. if (value === INFINITY || value === -INFINITY) {
  16435. var sign = (value < 0 ? -1 : 1);
  16436. return sign * MAX_INTEGER;
  16437. }
  16438. return value === value ? value : 0;
  16439. }
  16440. /**
  16441. * Converts `value` to an integer.
  16442. *
  16443. * **Note:** This method is loosely based on
  16444. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  16445. *
  16446. * @static
  16447. * @memberOf _
  16448. * @since 4.0.0
  16449. * @category Lang
  16450. * @param {*} value The value to convert.
  16451. * @returns {number} Returns the converted integer.
  16452. * @example
  16453. *
  16454. * _.toInteger(3.2);
  16455. * // => 3
  16456. *
  16457. * _.toInteger(Number.MIN_VALUE);
  16458. * // => 0
  16459. *
  16460. * _.toInteger(Infinity);
  16461. * // => 1.7976931348623157e+308
  16462. *
  16463. * _.toInteger('3.2');
  16464. * // => 3
  16465. */
  16466. function toInteger(value) {
  16467. var result = toFinite(value),
  16468. remainder = result % 1;
  16469. return result === result ? (remainder ? result - remainder : result) : 0;
  16470. }
  16471. /**
  16472. * Converts `value` to an integer suitable for use as the length of an
  16473. * array-like object.
  16474. *
  16475. * **Note:** This method is based on
  16476. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  16477. *
  16478. * @static
  16479. * @memberOf _
  16480. * @since 4.0.0
  16481. * @category Lang
  16482. * @param {*} value The value to convert.
  16483. * @returns {number} Returns the converted integer.
  16484. * @example
  16485. *
  16486. * _.toLength(3.2);
  16487. * // => 3
  16488. *
  16489. * _.toLength(Number.MIN_VALUE);
  16490. * // => 0
  16491. *
  16492. * _.toLength(Infinity);
  16493. * // => 4294967295
  16494. *
  16495. * _.toLength('3.2');
  16496. * // => 3
  16497. */
  16498. function toLength(value) {
  16499. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  16500. }
  16501. /**
  16502. * Converts `value` to a number.
  16503. *
  16504. * @static
  16505. * @memberOf _
  16506. * @since 4.0.0
  16507. * @category Lang
  16508. * @param {*} value The value to process.
  16509. * @returns {number} Returns the number.
  16510. * @example
  16511. *
  16512. * _.toNumber(3.2);
  16513. * // => 3.2
  16514. *
  16515. * _.toNumber(Number.MIN_VALUE);
  16516. * // => 5e-324
  16517. *
  16518. * _.toNumber(Infinity);
  16519. * // => Infinity
  16520. *
  16521. * _.toNumber('3.2');
  16522. * // => 3.2
  16523. */
  16524. function toNumber(value) {
  16525. if (typeof value == 'number') {
  16526. return value;
  16527. }
  16528. if (isSymbol(value)) {
  16529. return NAN;
  16530. }
  16531. if (isObject(value)) {
  16532. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  16533. value = isObject(other) ? (other + '') : other;
  16534. }
  16535. if (typeof value != 'string') {
  16536. return value === 0 ? value : +value;
  16537. }
  16538. value = value.replace(reTrim, '');
  16539. var isBinary = reIsBinary.test(value);
  16540. return (isBinary || reIsOctal.test(value))
  16541. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  16542. : (reIsBadHex.test(value) ? NAN : +value);
  16543. }
  16544. /**
  16545. * Converts `value` to a plain object flattening inherited enumerable string
  16546. * keyed properties of `value` to own properties of the plain object.
  16547. *
  16548. * @static
  16549. * @memberOf _
  16550. * @since 3.0.0
  16551. * @category Lang
  16552. * @param {*} value The value to convert.
  16553. * @returns {Object} Returns the converted plain object.
  16554. * @example
  16555. *
  16556. * function Foo() {
  16557. * this.b = 2;
  16558. * }
  16559. *
  16560. * Foo.prototype.c = 3;
  16561. *
  16562. * _.assign({ 'a': 1 }, new Foo);
  16563. * // => { 'a': 1, 'b': 2 }
  16564. *
  16565. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  16566. * // => { 'a': 1, 'b': 2, 'c': 3 }
  16567. */
  16568. function toPlainObject(value) {
  16569. return copyObject(value, keysIn(value));
  16570. }
  16571. /**
  16572. * Converts `value` to a safe integer. A safe integer can be compared and
  16573. * represented correctly.
  16574. *
  16575. * @static
  16576. * @memberOf _
  16577. * @since 4.0.0
  16578. * @category Lang
  16579. * @param {*} value The value to convert.
  16580. * @returns {number} Returns the converted integer.
  16581. * @example
  16582. *
  16583. * _.toSafeInteger(3.2);
  16584. * // => 3
  16585. *
  16586. * _.toSafeInteger(Number.MIN_VALUE);
  16587. * // => 0
  16588. *
  16589. * _.toSafeInteger(Infinity);
  16590. * // => 9007199254740991
  16591. *
  16592. * _.toSafeInteger('3.2');
  16593. * // => 3
  16594. */
  16595. function toSafeInteger(value) {
  16596. return value
  16597. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  16598. : (value === 0 ? value : 0);
  16599. }
  16600. /**
  16601. * Converts `value` to a string. An empty string is returned for `null`
  16602. * and `undefined` values. The sign of `-0` is preserved.
  16603. *
  16604. * @static
  16605. * @memberOf _
  16606. * @since 4.0.0
  16607. * @category Lang
  16608. * @param {*} value The value to convert.
  16609. * @returns {string} Returns the converted string.
  16610. * @example
  16611. *
  16612. * _.toString(null);
  16613. * // => ''
  16614. *
  16615. * _.toString(-0);
  16616. * // => '-0'
  16617. *
  16618. * _.toString([1, 2, 3]);
  16619. * // => '1,2,3'
  16620. */
  16621. function toString(value) {
  16622. return value == null ? '' : baseToString(value);
  16623. }
  16624. /*------------------------------------------------------------------------*/
  16625. /**
  16626. * Assigns own enumerable string keyed properties of source objects to the
  16627. * destination object. Source objects are applied from left to right.
  16628. * Subsequent sources overwrite property assignments of previous sources.
  16629. *
  16630. * **Note:** This method mutates `object` and is loosely based on
  16631. * [`Object.assign`](https://mdn.io/Object/assign).
  16632. *
  16633. * @static
  16634. * @memberOf _
  16635. * @since 0.10.0
  16636. * @category Object
  16637. * @param {Object} object The destination object.
  16638. * @param {...Object} [sources] The source objects.
  16639. * @returns {Object} Returns `object`.
  16640. * @see _.assignIn
  16641. * @example
  16642. *
  16643. * function Foo() {
  16644. * this.a = 1;
  16645. * }
  16646. *
  16647. * function Bar() {
  16648. * this.c = 3;
  16649. * }
  16650. *
  16651. * Foo.prototype.b = 2;
  16652. * Bar.prototype.d = 4;
  16653. *
  16654. * _.assign({ 'a': 0 }, new Foo, new Bar);
  16655. * // => { 'a': 1, 'c': 3 }
  16656. */
  16657. var assign = createAssigner(function(object, source) {
  16658. if (isPrototype(source) || isArrayLike(source)) {
  16659. copyObject(source, keys(source), object);
  16660. return;
  16661. }
  16662. for (var key in source) {
  16663. if (hasOwnProperty.call(source, key)) {
  16664. assignValue(object, key, source[key]);
  16665. }
  16666. }
  16667. });
  16668. /**
  16669. * This method is like `_.assign` except that it iterates over own and
  16670. * inherited source properties.
  16671. *
  16672. * **Note:** This method mutates `object`.
  16673. *
  16674. * @static
  16675. * @memberOf _
  16676. * @since 4.0.0
  16677. * @alias extend
  16678. * @category Object
  16679. * @param {Object} object The destination object.
  16680. * @param {...Object} [sources] The source objects.
  16681. * @returns {Object} Returns `object`.
  16682. * @see _.assign
  16683. * @example
  16684. *
  16685. * function Foo() {
  16686. * this.a = 1;
  16687. * }
  16688. *
  16689. * function Bar() {
  16690. * this.c = 3;
  16691. * }
  16692. *
  16693. * Foo.prototype.b = 2;
  16694. * Bar.prototype.d = 4;
  16695. *
  16696. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  16697. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  16698. */
  16699. var assignIn = createAssigner(function(object, source) {
  16700. copyObject(source, keysIn(source), object);
  16701. });
  16702. /**
  16703. * This method is like `_.assignIn` except that it accepts `customizer`
  16704. * which is invoked to produce the assigned values. If `customizer` returns
  16705. * `undefined`, assignment is handled by the method instead. The `customizer`
  16706. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  16707. *
  16708. * **Note:** This method mutates `object`.
  16709. *
  16710. * @static
  16711. * @memberOf _
  16712. * @since 4.0.0
  16713. * @alias extendWith
  16714. * @category Object
  16715. * @param {Object} object The destination object.
  16716. * @param {...Object} sources The source objects.
  16717. * @param {Function} [customizer] The function to customize assigned values.
  16718. * @returns {Object} Returns `object`.
  16719. * @see _.assignWith
  16720. * @example
  16721. *
  16722. * function customizer(objValue, srcValue) {
  16723. * return _.isUndefined(objValue) ? srcValue : objValue;
  16724. * }
  16725. *
  16726. * var defaults = _.partialRight(_.assignInWith, customizer);
  16727. *
  16728. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  16729. * // => { 'a': 1, 'b': 2 }
  16730. */
  16731. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  16732. copyObject(source, keysIn(source), object, customizer);
  16733. });
  16734. /**
  16735. * This method is like `_.assign` except that it accepts `customizer`
  16736. * which is invoked to produce the assigned values. If `customizer` returns
  16737. * `undefined`, assignment is handled by the method instead. The `customizer`
  16738. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  16739. *
  16740. * **Note:** This method mutates `object`.
  16741. *
  16742. * @static
  16743. * @memberOf _
  16744. * @since 4.0.0
  16745. * @category Object
  16746. * @param {Object} object The destination object.
  16747. * @param {...Object} sources The source objects.
  16748. * @param {Function} [customizer] The function to customize assigned values.
  16749. * @returns {Object} Returns `object`.
  16750. * @see _.assignInWith
  16751. * @example
  16752. *
  16753. * function customizer(objValue, srcValue) {
  16754. * return _.isUndefined(objValue) ? srcValue : objValue;
  16755. * }
  16756. *
  16757. * var defaults = _.partialRight(_.assignWith, customizer);
  16758. *
  16759. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  16760. * // => { 'a': 1, 'b': 2 }
  16761. */
  16762. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  16763. copyObject(source, keys(source), object, customizer);
  16764. });
  16765. /**
  16766. * Creates an array of values corresponding to `paths` of `object`.
  16767. *
  16768. * @static
  16769. * @memberOf _
  16770. * @since 1.0.0
  16771. * @category Object
  16772. * @param {Object} object The object to iterate over.
  16773. * @param {...(string|string[])} [paths] The property paths to pick.
  16774. * @returns {Array} Returns the picked values.
  16775. * @example
  16776. *
  16777. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  16778. *
  16779. * _.at(object, ['a[0].b.c', 'a[1]']);
  16780. * // => [3, 4]
  16781. */
  16782. var at = flatRest(baseAt);
  16783. /**
  16784. * Creates an object that inherits from the `prototype` object. If a
  16785. * `properties` object is given, its own enumerable string keyed properties
  16786. * are assigned to the created object.
  16787. *
  16788. * @static
  16789. * @memberOf _
  16790. * @since 2.3.0
  16791. * @category Object
  16792. * @param {Object} prototype The object to inherit from.
  16793. * @param {Object} [properties] The properties to assign to the object.
  16794. * @returns {Object} Returns the new object.
  16795. * @example
  16796. *
  16797. * function Shape() {
  16798. * this.x = 0;
  16799. * this.y = 0;
  16800. * }
  16801. *
  16802. * function Circle() {
  16803. * Shape.call(this);
  16804. * }
  16805. *
  16806. * Circle.prototype = _.create(Shape.prototype, {
  16807. * 'constructor': Circle
  16808. * });
  16809. *
  16810. * var circle = new Circle;
  16811. * circle instanceof Circle;
  16812. * // => true
  16813. *
  16814. * circle instanceof Shape;
  16815. * // => true
  16816. */
  16817. function create(prototype, properties) {
  16818. var result = baseCreate(prototype);
  16819. return properties == null ? result : baseAssign(result, properties);
  16820. }
  16821. /**
  16822. * Assigns own and inherited enumerable string keyed properties of source
  16823. * objects to the destination object for all destination properties that
  16824. * resolve to `undefined`. Source objects are applied from left to right.
  16825. * Once a property is set, additional values of the same property are ignored.
  16826. *
  16827. * **Note:** This method mutates `object`.
  16828. *
  16829. * @static
  16830. * @since 0.1.0
  16831. * @memberOf _
  16832. * @category Object
  16833. * @param {Object} object The destination object.
  16834. * @param {...Object} [sources] The source objects.
  16835. * @returns {Object} Returns `object`.
  16836. * @see _.defaultsDeep
  16837. * @example
  16838. *
  16839. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  16840. * // => { 'a': 1, 'b': 2 }
  16841. */
  16842. var defaults = baseRest(function(object, sources) {
  16843. object = Object(object);
  16844. var index = -1;
  16845. var length = sources.length;
  16846. var guard = length > 2 ? sources[2] : undefined;
  16847. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  16848. length = 1;
  16849. }
  16850. while (++index < length) {
  16851. var source = sources[index];
  16852. var props = keysIn(source);
  16853. var propsIndex = -1;
  16854. var propsLength = props.length;
  16855. while (++propsIndex < propsLength) {
  16856. var key = props[propsIndex];
  16857. var value = object[key];
  16858. if (value === undefined ||
  16859. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  16860. object[key] = source[key];
  16861. }
  16862. }
  16863. }
  16864. return object;
  16865. });
  16866. /**
  16867. * This method is like `_.defaults` except that it recursively assigns
  16868. * default properties.
  16869. *
  16870. * **Note:** This method mutates `object`.
  16871. *
  16872. * @static
  16873. * @memberOf _
  16874. * @since 3.10.0
  16875. * @category Object
  16876. * @param {Object} object The destination object.
  16877. * @param {...Object} [sources] The source objects.
  16878. * @returns {Object} Returns `object`.
  16879. * @see _.defaults
  16880. * @example
  16881. *
  16882. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  16883. * // => { 'a': { 'b': 2, 'c': 3 } }
  16884. */
  16885. var defaultsDeep = baseRest(function(args) {
  16886. args.push(undefined, customDefaultsMerge);
  16887. return apply(mergeWith, undefined, args);
  16888. });
  16889. /**
  16890. * This method is like `_.find` except that it returns the key of the first
  16891. * element `predicate` returns truthy for instead of the element itself.
  16892. *
  16893. * @static
  16894. * @memberOf _
  16895. * @since 1.1.0
  16896. * @category Object
  16897. * @param {Object} object The object to inspect.
  16898. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  16899. * @returns {string|undefined} Returns the key of the matched element,
  16900. * else `undefined`.
  16901. * @example
  16902. *
  16903. * var users = {
  16904. * 'barney': { 'age': 36, 'active': true },
  16905. * 'fred': { 'age': 40, 'active': false },
  16906. * 'pebbles': { 'age': 1, 'active': true }
  16907. * };
  16908. *
  16909. * _.findKey(users, function(o) { return o.age < 40; });
  16910. * // => 'barney' (iteration order is not guaranteed)
  16911. *
  16912. * // The `_.matches` iteratee shorthand.
  16913. * _.findKey(users, { 'age': 1, 'active': true });
  16914. * // => 'pebbles'
  16915. *
  16916. * // The `_.matchesProperty` iteratee shorthand.
  16917. * _.findKey(users, ['active', false]);
  16918. * // => 'fred'
  16919. *
  16920. * // The `_.property` iteratee shorthand.
  16921. * _.findKey(users, 'active');
  16922. * // => 'barney'
  16923. */
  16924. function findKey(object, predicate) {
  16925. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  16926. }
  16927. /**
  16928. * This method is like `_.findKey` except that it iterates over elements of
  16929. * a collection in the opposite order.
  16930. *
  16931. * @static
  16932. * @memberOf _
  16933. * @since 2.0.0
  16934. * @category Object
  16935. * @param {Object} object The object to inspect.
  16936. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  16937. * @returns {string|undefined} Returns the key of the matched element,
  16938. * else `undefined`.
  16939. * @example
  16940. *
  16941. * var users = {
  16942. * 'barney': { 'age': 36, 'active': true },
  16943. * 'fred': { 'age': 40, 'active': false },
  16944. * 'pebbles': { 'age': 1, 'active': true }
  16945. * };
  16946. *
  16947. * _.findLastKey(users, function(o) { return o.age < 40; });
  16948. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  16949. *
  16950. * // The `_.matches` iteratee shorthand.
  16951. * _.findLastKey(users, { 'age': 36, 'active': true });
  16952. * // => 'barney'
  16953. *
  16954. * // The `_.matchesProperty` iteratee shorthand.
  16955. * _.findLastKey(users, ['active', false]);
  16956. * // => 'fred'
  16957. *
  16958. * // The `_.property` iteratee shorthand.
  16959. * _.findLastKey(users, 'active');
  16960. * // => 'pebbles'
  16961. */
  16962. function findLastKey(object, predicate) {
  16963. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  16964. }
  16965. /**
  16966. * Iterates over own and inherited enumerable string keyed properties of an
  16967. * object and invokes `iteratee` for each property. The iteratee is invoked
  16968. * with three arguments: (value, key, object). Iteratee functions may exit
  16969. * iteration early by explicitly returning `false`.
  16970. *
  16971. * @static
  16972. * @memberOf _
  16973. * @since 0.3.0
  16974. * @category Object
  16975. * @param {Object} object The object to iterate over.
  16976. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16977. * @returns {Object} Returns `object`.
  16978. * @see _.forInRight
  16979. * @example
  16980. *
  16981. * function Foo() {
  16982. * this.a = 1;
  16983. * this.b = 2;
  16984. * }
  16985. *
  16986. * Foo.prototype.c = 3;
  16987. *
  16988. * _.forIn(new Foo, function(value, key) {
  16989. * console.log(key);
  16990. * });
  16991. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  16992. */
  16993. function forIn(object, iteratee) {
  16994. return object == null
  16995. ? object
  16996. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  16997. }
  16998. /**
  16999. * This method is like `_.forIn` except that it iterates over properties of
  17000. * `object` in the opposite order.
  17001. *
  17002. * @static
  17003. * @memberOf _
  17004. * @since 2.0.0
  17005. * @category Object
  17006. * @param {Object} object The object to iterate over.
  17007. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17008. * @returns {Object} Returns `object`.
  17009. * @see _.forIn
  17010. * @example
  17011. *
  17012. * function Foo() {
  17013. * this.a = 1;
  17014. * this.b = 2;
  17015. * }
  17016. *
  17017. * Foo.prototype.c = 3;
  17018. *
  17019. * _.forInRight(new Foo, function(value, key) {
  17020. * console.log(key);
  17021. * });
  17022. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  17023. */
  17024. function forInRight(object, iteratee) {
  17025. return object == null
  17026. ? object
  17027. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  17028. }
  17029. /**
  17030. * Iterates over own enumerable string keyed properties of an object and
  17031. * invokes `iteratee` for each property. The iteratee is invoked with three
  17032. * arguments: (value, key, object). Iteratee functions may exit iteration
  17033. * early by explicitly returning `false`.
  17034. *
  17035. * @static
  17036. * @memberOf _
  17037. * @since 0.3.0
  17038. * @category Object
  17039. * @param {Object} object The object to iterate over.
  17040. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17041. * @returns {Object} Returns `object`.
  17042. * @see _.forOwnRight
  17043. * @example
  17044. *
  17045. * function Foo() {
  17046. * this.a = 1;
  17047. * this.b = 2;
  17048. * }
  17049. *
  17050. * Foo.prototype.c = 3;
  17051. *
  17052. * _.forOwn(new Foo, function(value, key) {
  17053. * console.log(key);
  17054. * });
  17055. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  17056. */
  17057. function forOwn(object, iteratee) {
  17058. return object && baseForOwn(object, getIteratee(iteratee, 3));
  17059. }
  17060. /**
  17061. * This method is like `_.forOwn` except that it iterates over properties of
  17062. * `object` in the opposite order.
  17063. *
  17064. * @static
  17065. * @memberOf _
  17066. * @since 2.0.0
  17067. * @category Object
  17068. * @param {Object} object The object to iterate over.
  17069. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17070. * @returns {Object} Returns `object`.
  17071. * @see _.forOwn
  17072. * @example
  17073. *
  17074. * function Foo() {
  17075. * this.a = 1;
  17076. * this.b = 2;
  17077. * }
  17078. *
  17079. * Foo.prototype.c = 3;
  17080. *
  17081. * _.forOwnRight(new Foo, function(value, key) {
  17082. * console.log(key);
  17083. * });
  17084. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  17085. */
  17086. function forOwnRight(object, iteratee) {
  17087. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  17088. }
  17089. /**
  17090. * Creates an array of function property names from own enumerable properties
  17091. * of `object`.
  17092. *
  17093. * @static
  17094. * @since 0.1.0
  17095. * @memberOf _
  17096. * @category Object
  17097. * @param {Object} object The object to inspect.
  17098. * @returns {Array} Returns the function names.
  17099. * @see _.functionsIn
  17100. * @example
  17101. *
  17102. * function Foo() {
  17103. * this.a = _.constant('a');
  17104. * this.b = _.constant('b');
  17105. * }
  17106. *
  17107. * Foo.prototype.c = _.constant('c');
  17108. *
  17109. * _.functions(new Foo);
  17110. * // => ['a', 'b']
  17111. */
  17112. function functions(object) {
  17113. return object == null ? [] : baseFunctions(object, keys(object));
  17114. }
  17115. /**
  17116. * Creates an array of function property names from own and inherited
  17117. * enumerable properties of `object`.
  17118. *
  17119. * @static
  17120. * @memberOf _
  17121. * @since 4.0.0
  17122. * @category Object
  17123. * @param {Object} object The object to inspect.
  17124. * @returns {Array} Returns the function names.
  17125. * @see _.functions
  17126. * @example
  17127. *
  17128. * function Foo() {
  17129. * this.a = _.constant('a');
  17130. * this.b = _.constant('b');
  17131. * }
  17132. *
  17133. * Foo.prototype.c = _.constant('c');
  17134. *
  17135. * _.functionsIn(new Foo);
  17136. * // => ['a', 'b', 'c']
  17137. */
  17138. function functionsIn(object) {
  17139. return object == null ? [] : baseFunctions(object, keysIn(object));
  17140. }
  17141. /**
  17142. * Gets the value at `path` of `object`. If the resolved value is
  17143. * `undefined`, the `defaultValue` is returned in its place.
  17144. *
  17145. * @static
  17146. * @memberOf _
  17147. * @since 3.7.0
  17148. * @category Object
  17149. * @param {Object} object The object to query.
  17150. * @param {Array|string} path The path of the property to get.
  17151. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  17152. * @returns {*} Returns the resolved value.
  17153. * @example
  17154. *
  17155. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  17156. *
  17157. * _.get(object, 'a[0].b.c');
  17158. * // => 3
  17159. *
  17160. * _.get(object, ['a', '0', 'b', 'c']);
  17161. * // => 3
  17162. *
  17163. * _.get(object, 'a.b.c', 'default');
  17164. * // => 'default'
  17165. */
  17166. function get(object, path, defaultValue) {
  17167. var result = object == null ? undefined : baseGet(object, path);
  17168. return result === undefined ? defaultValue : result;
  17169. }
  17170. /**
  17171. * Checks if `path` is a direct property of `object`.
  17172. *
  17173. * @static
  17174. * @since 0.1.0
  17175. * @memberOf _
  17176. * @category Object
  17177. * @param {Object} object The object to query.
  17178. * @param {Array|string} path The path to check.
  17179. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  17180. * @example
  17181. *
  17182. * var object = { 'a': { 'b': 2 } };
  17183. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  17184. *
  17185. * _.has(object, 'a');
  17186. * // => true
  17187. *
  17188. * _.has(object, 'a.b');
  17189. * // => true
  17190. *
  17191. * _.has(object, ['a', 'b']);
  17192. * // => true
  17193. *
  17194. * _.has(other, 'a');
  17195. * // => false
  17196. */
  17197. function has(object, path) {
  17198. return object != null && hasPath(object, path, baseHas);
  17199. }
  17200. /**
  17201. * Checks if `path` is a direct or inherited property of `object`.
  17202. *
  17203. * @static
  17204. * @memberOf _
  17205. * @since 4.0.0
  17206. * @category Object
  17207. * @param {Object} object The object to query.
  17208. * @param {Array|string} path The path to check.
  17209. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  17210. * @example
  17211. *
  17212. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  17213. *
  17214. * _.hasIn(object, 'a');
  17215. * // => true
  17216. *
  17217. * _.hasIn(object, 'a.b');
  17218. * // => true
  17219. *
  17220. * _.hasIn(object, ['a', 'b']);
  17221. * // => true
  17222. *
  17223. * _.hasIn(object, 'b');
  17224. * // => false
  17225. */
  17226. function hasIn(object, path) {
  17227. return object != null && hasPath(object, path, baseHasIn);
  17228. }
  17229. /**
  17230. * Creates an object composed of the inverted keys and values of `object`.
  17231. * If `object` contains duplicate values, subsequent values overwrite
  17232. * property assignments of previous values.
  17233. *
  17234. * @static
  17235. * @memberOf _
  17236. * @since 0.7.0
  17237. * @category Object
  17238. * @param {Object} object The object to invert.
  17239. * @returns {Object} Returns the new inverted object.
  17240. * @example
  17241. *
  17242. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  17243. *
  17244. * _.invert(object);
  17245. * // => { '1': 'c', '2': 'b' }
  17246. */
  17247. var invert = createInverter(function(result, value, key) {
  17248. if (value != null &&
  17249. typeof value.toString != 'function') {
  17250. value = nativeObjectToString.call(value);
  17251. }
  17252. result[value] = key;
  17253. }, constant(identity));
  17254. /**
  17255. * This method is like `_.invert` except that the inverted object is generated
  17256. * from the results of running each element of `object` thru `iteratee`. The
  17257. * corresponding inverted value of each inverted key is an array of keys
  17258. * responsible for generating the inverted value. The iteratee is invoked
  17259. * with one argument: (value).
  17260. *
  17261. * @static
  17262. * @memberOf _
  17263. * @since 4.1.0
  17264. * @category Object
  17265. * @param {Object} object The object to invert.
  17266. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  17267. * @returns {Object} Returns the new inverted object.
  17268. * @example
  17269. *
  17270. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  17271. *
  17272. * _.invertBy(object);
  17273. * // => { '1': ['a', 'c'], '2': ['b'] }
  17274. *
  17275. * _.invertBy(object, function(value) {
  17276. * return 'group' + value;
  17277. * });
  17278. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  17279. */
  17280. var invertBy = createInverter(function(result, value, key) {
  17281. if (value != null &&
  17282. typeof value.toString != 'function') {
  17283. value = nativeObjectToString.call(value);
  17284. }
  17285. if (hasOwnProperty.call(result, value)) {
  17286. result[value].push(key);
  17287. } else {
  17288. result[value] = [key];
  17289. }
  17290. }, getIteratee);
  17291. /**
  17292. * Invokes the method at `path` of `object`.
  17293. *
  17294. * @static
  17295. * @memberOf _
  17296. * @since 4.0.0
  17297. * @category Object
  17298. * @param {Object} object The object to query.
  17299. * @param {Array|string} path The path of the method to invoke.
  17300. * @param {...*} [args] The arguments to invoke the method with.
  17301. * @returns {*} Returns the result of the invoked method.
  17302. * @example
  17303. *
  17304. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  17305. *
  17306. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  17307. * // => [2, 3]
  17308. */
  17309. var invoke = baseRest(baseInvoke);
  17310. /**
  17311. * Creates an array of the own enumerable property names of `object`.
  17312. *
  17313. * **Note:** Non-object values are coerced to objects. See the
  17314. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  17315. * for more details.
  17316. *
  17317. * @static
  17318. * @since 0.1.0
  17319. * @memberOf _
  17320. * @category Object
  17321. * @param {Object} object The object to query.
  17322. * @returns {Array} Returns the array of property names.
  17323. * @example
  17324. *
  17325. * function Foo() {
  17326. * this.a = 1;
  17327. * this.b = 2;
  17328. * }
  17329. *
  17330. * Foo.prototype.c = 3;
  17331. *
  17332. * _.keys(new Foo);
  17333. * // => ['a', 'b'] (iteration order is not guaranteed)
  17334. *
  17335. * _.keys('hi');
  17336. * // => ['0', '1']
  17337. */
  17338. function keys(object) {
  17339. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  17340. }
  17341. /**
  17342. * Creates an array of the own and inherited enumerable property names of `object`.
  17343. *
  17344. * **Note:** Non-object values are coerced to objects.
  17345. *
  17346. * @static
  17347. * @memberOf _
  17348. * @since 3.0.0
  17349. * @category Object
  17350. * @param {Object} object The object to query.
  17351. * @returns {Array} Returns the array of property names.
  17352. * @example
  17353. *
  17354. * function Foo() {
  17355. * this.a = 1;
  17356. * this.b = 2;
  17357. * }
  17358. *
  17359. * Foo.prototype.c = 3;
  17360. *
  17361. * _.keysIn(new Foo);
  17362. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  17363. */
  17364. function keysIn(object) {
  17365. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  17366. }
  17367. /**
  17368. * The opposite of `_.mapValues`; this method creates an object with the
  17369. * same values as `object` and keys generated by running each own enumerable
  17370. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  17371. * with three arguments: (value, key, object).
  17372. *
  17373. * @static
  17374. * @memberOf _
  17375. * @since 3.8.0
  17376. * @category Object
  17377. * @param {Object} object The object to iterate over.
  17378. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17379. * @returns {Object} Returns the new mapped object.
  17380. * @see _.mapValues
  17381. * @example
  17382. *
  17383. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  17384. * return key + value;
  17385. * });
  17386. * // => { 'a1': 1, 'b2': 2 }
  17387. */
  17388. function mapKeys(object, iteratee) {
  17389. var result = {};
  17390. iteratee = getIteratee(iteratee, 3);
  17391. baseForOwn(object, function(value, key, object) {
  17392. baseAssignValue(result, iteratee(value, key, object), value);
  17393. });
  17394. return result;
  17395. }
  17396. /**
  17397. * Creates an object with the same keys as `object` and values generated
  17398. * by running each own enumerable string keyed property of `object` thru
  17399. * `iteratee`. The iteratee is invoked with three arguments:
  17400. * (value, key, object).
  17401. *
  17402. * @static
  17403. * @memberOf _
  17404. * @since 2.4.0
  17405. * @category Object
  17406. * @param {Object} object The object to iterate over.
  17407. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17408. * @returns {Object} Returns the new mapped object.
  17409. * @see _.mapKeys
  17410. * @example
  17411. *
  17412. * var users = {
  17413. * 'fred': { 'user': 'fred', 'age': 40 },
  17414. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  17415. * };
  17416. *
  17417. * _.mapValues(users, function(o) { return o.age; });
  17418. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  17419. *
  17420. * // The `_.property` iteratee shorthand.
  17421. * _.mapValues(users, 'age');
  17422. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  17423. */
  17424. function mapValues(object, iteratee) {
  17425. var result = {};
  17426. iteratee = getIteratee(iteratee, 3);
  17427. baseForOwn(object, function(value, key, object) {
  17428. baseAssignValue(result, key, iteratee(value, key, object));
  17429. });
  17430. return result;
  17431. }
  17432. /**
  17433. * This method is like `_.assign` except that it recursively merges own and
  17434. * inherited enumerable string keyed properties of source objects into the
  17435. * destination object. Source properties that resolve to `undefined` are
  17436. * skipped if a destination value exists. Array and plain object properties
  17437. * are merged recursively. Other objects and value types are overridden by
  17438. * assignment. Source objects are applied from left to right. Subsequent
  17439. * sources overwrite property assignments of previous sources.
  17440. *
  17441. * **Note:** This method mutates `object`.
  17442. *
  17443. * @static
  17444. * @memberOf _
  17445. * @since 0.5.0
  17446. * @category Object
  17447. * @param {Object} object The destination object.
  17448. * @param {...Object} [sources] The source objects.
  17449. * @returns {Object} Returns `object`.
  17450. * @example
  17451. *
  17452. * var object = {
  17453. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  17454. * };
  17455. *
  17456. * var other = {
  17457. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  17458. * };
  17459. *
  17460. * _.merge(object, other);
  17461. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  17462. */
  17463. var merge = createAssigner(function(object, source, srcIndex) {
  17464. baseMerge(object, source, srcIndex);
  17465. });
  17466. /**
  17467. * This method is like `_.merge` except that it accepts `customizer` which
  17468. * is invoked to produce the merged values of the destination and source
  17469. * properties. If `customizer` returns `undefined`, merging is handled by the
  17470. * method instead. The `customizer` is invoked with six arguments:
  17471. * (objValue, srcValue, key, object, source, stack).
  17472. *
  17473. * **Note:** This method mutates `object`.
  17474. *
  17475. * @static
  17476. * @memberOf _
  17477. * @since 4.0.0
  17478. * @category Object
  17479. * @param {Object} object The destination object.
  17480. * @param {...Object} sources The source objects.
  17481. * @param {Function} customizer The function to customize assigned values.
  17482. * @returns {Object} Returns `object`.
  17483. * @example
  17484. *
  17485. * function customizer(objValue, srcValue) {
  17486. * if (_.isArray(objValue)) {
  17487. * return objValue.concat(srcValue);
  17488. * }
  17489. * }
  17490. *
  17491. * var object = { 'a': [1], 'b': [2] };
  17492. * var other = { 'a': [3], 'b': [4] };
  17493. *
  17494. * _.mergeWith(object, other, customizer);
  17495. * // => { 'a': [1, 3], 'b': [2, 4] }
  17496. */
  17497. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  17498. baseMerge(object, source, srcIndex, customizer);
  17499. });
  17500. /**
  17501. * The opposite of `_.pick`; this method creates an object composed of the
  17502. * own and inherited enumerable property paths of `object` that are not omitted.
  17503. *
  17504. * **Note:** This method is considerably slower than `_.pick`.
  17505. *
  17506. * @static
  17507. * @since 0.1.0
  17508. * @memberOf _
  17509. * @category Object
  17510. * @param {Object} object The source object.
  17511. * @param {...(string|string[])} [paths] The property paths to omit.
  17512. * @returns {Object} Returns the new object.
  17513. * @example
  17514. *
  17515. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17516. *
  17517. * _.omit(object, ['a', 'c']);
  17518. * // => { 'b': '2' }
  17519. */
  17520. var omit = flatRest(function(object, paths) {
  17521. var result = {};
  17522. if (object == null) {
  17523. return result;
  17524. }
  17525. var isDeep = false;
  17526. paths = arrayMap(paths, function(path) {
  17527. path = castPath(path, object);
  17528. isDeep || (isDeep = path.length > 1);
  17529. return path;
  17530. });
  17531. copyObject(object, getAllKeysIn(object), result);
  17532. if (isDeep) {
  17533. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  17534. }
  17535. var length = paths.length;
  17536. while (length--) {
  17537. baseUnset(result, paths[length]);
  17538. }
  17539. return result;
  17540. });
  17541. /**
  17542. * The opposite of `_.pickBy`; this method creates an object composed of
  17543. * the own and inherited enumerable string keyed properties of `object` that
  17544. * `predicate` doesn't return truthy for. The predicate is invoked with two
  17545. * arguments: (value, key).
  17546. *
  17547. * @static
  17548. * @memberOf _
  17549. * @since 4.0.0
  17550. * @category Object
  17551. * @param {Object} object The source object.
  17552. * @param {Function} [predicate=_.identity] The function invoked per property.
  17553. * @returns {Object} Returns the new object.
  17554. * @example
  17555. *
  17556. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17557. *
  17558. * _.omitBy(object, _.isNumber);
  17559. * // => { 'b': '2' }
  17560. */
  17561. function omitBy(object, predicate) {
  17562. return pickBy(object, negate(getIteratee(predicate)));
  17563. }
  17564. /**
  17565. * Creates an object composed of the picked `object` properties.
  17566. *
  17567. * @static
  17568. * @since 0.1.0
  17569. * @memberOf _
  17570. * @category Object
  17571. * @param {Object} object The source object.
  17572. * @param {...(string|string[])} [paths] The property paths to pick.
  17573. * @returns {Object} Returns the new object.
  17574. * @example
  17575. *
  17576. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17577. *
  17578. * _.pick(object, ['a', 'c']);
  17579. * // => { 'a': 1, 'c': 3 }
  17580. */
  17581. var pick = flatRest(function(object, paths) {
  17582. return object == null ? {} : basePick(object, paths);
  17583. });
  17584. /**
  17585. * Creates an object composed of the `object` properties `predicate` returns
  17586. * truthy for. The predicate is invoked with two arguments: (value, key).
  17587. *
  17588. * @static
  17589. * @memberOf _
  17590. * @since 4.0.0
  17591. * @category Object
  17592. * @param {Object} object The source object.
  17593. * @param {Function} [predicate=_.identity] The function invoked per property.
  17594. * @returns {Object} Returns the new object.
  17595. * @example
  17596. *
  17597. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17598. *
  17599. * _.pickBy(object, _.isNumber);
  17600. * // => { 'a': 1, 'c': 3 }
  17601. */
  17602. function pickBy(object, predicate) {
  17603. if (object == null) {
  17604. return {};
  17605. }
  17606. var props = arrayMap(getAllKeysIn(object), function(prop) {
  17607. return [prop];
  17608. });
  17609. predicate = getIteratee(predicate);
  17610. return basePickBy(object, props, function(value, path) {
  17611. return predicate(value, path[0]);
  17612. });
  17613. }
  17614. /**
  17615. * This method is like `_.get` except that if the resolved value is a
  17616. * function it's invoked with the `this` binding of its parent object and
  17617. * its result is returned.
  17618. *
  17619. * @static
  17620. * @since 0.1.0
  17621. * @memberOf _
  17622. * @category Object
  17623. * @param {Object} object The object to query.
  17624. * @param {Array|string} path The path of the property to resolve.
  17625. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  17626. * @returns {*} Returns the resolved value.
  17627. * @example
  17628. *
  17629. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  17630. *
  17631. * _.result(object, 'a[0].b.c1');
  17632. * // => 3
  17633. *
  17634. * _.result(object, 'a[0].b.c2');
  17635. * // => 4
  17636. *
  17637. * _.result(object, 'a[0].b.c3', 'default');
  17638. * // => 'default'
  17639. *
  17640. * _.result(object, 'a[0].b.c3', _.constant('default'));
  17641. * // => 'default'
  17642. */
  17643. function result(object, path, defaultValue) {
  17644. path = castPath(path, object);
  17645. var index = -1,
  17646. length = path.length;
  17647. // Ensure the loop is entered when path is empty.
  17648. if (!length) {
  17649. length = 1;
  17650. object = undefined;
  17651. }
  17652. while (++index < length) {
  17653. var value = object == null ? undefined : object[toKey(path[index])];
  17654. if (value === undefined) {
  17655. index = length;
  17656. value = defaultValue;
  17657. }
  17658. object = isFunction(value) ? value.call(object) : value;
  17659. }
  17660. return object;
  17661. }
  17662. /**
  17663. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  17664. * it's created. Arrays are created for missing index properties while objects
  17665. * are created for all other missing properties. Use `_.setWith` to customize
  17666. * `path` creation.
  17667. *
  17668. * **Note:** This method mutates `object`.
  17669. *
  17670. * @static
  17671. * @memberOf _
  17672. * @since 3.7.0
  17673. * @category Object
  17674. * @param {Object} object The object to modify.
  17675. * @param {Array|string} path The path of the property to set.
  17676. * @param {*} value The value to set.
  17677. * @returns {Object} Returns `object`.
  17678. * @example
  17679. *
  17680. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  17681. *
  17682. * _.set(object, 'a[0].b.c', 4);
  17683. * console.log(object.a[0].b.c);
  17684. * // => 4
  17685. *
  17686. * _.set(object, ['x', '0', 'y', 'z'], 5);
  17687. * console.log(object.x[0].y.z);
  17688. * // => 5
  17689. */
  17690. function set(object, path, value) {
  17691. return object == null ? object : baseSet(object, path, value);
  17692. }
  17693. /**
  17694. * This method is like `_.set` except that it accepts `customizer` which is
  17695. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  17696. * path creation is handled by the method instead. The `customizer` is invoked
  17697. * with three arguments: (nsValue, key, nsObject).
  17698. *
  17699. * **Note:** This method mutates `object`.
  17700. *
  17701. * @static
  17702. * @memberOf _
  17703. * @since 4.0.0
  17704. * @category Object
  17705. * @param {Object} object The object to modify.
  17706. * @param {Array|string} path The path of the property to set.
  17707. * @param {*} value The value to set.
  17708. * @param {Function} [customizer] The function to customize assigned values.
  17709. * @returns {Object} Returns `object`.
  17710. * @example
  17711. *
  17712. * var object = {};
  17713. *
  17714. * _.setWith(object, '[0][1]', 'a', Object);
  17715. * // => { '0': { '1': 'a' } }
  17716. */
  17717. function setWith(object, path, value, customizer) {
  17718. customizer = typeof customizer == 'function' ? customizer : undefined;
  17719. return object == null ? object : baseSet(object, path, value, customizer);
  17720. }
  17721. /**
  17722. * Creates an array of own enumerable string keyed-value pairs for `object`
  17723. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  17724. * entries are returned.
  17725. *
  17726. * @static
  17727. * @memberOf _
  17728. * @since 4.0.0
  17729. * @alias entries
  17730. * @category Object
  17731. * @param {Object} object The object to query.
  17732. * @returns {Array} Returns the key-value pairs.
  17733. * @example
  17734. *
  17735. * function Foo() {
  17736. * this.a = 1;
  17737. * this.b = 2;
  17738. * }
  17739. *
  17740. * Foo.prototype.c = 3;
  17741. *
  17742. * _.toPairs(new Foo);
  17743. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  17744. */
  17745. var toPairs = createToPairs(keys);
  17746. /**
  17747. * Creates an array of own and inherited enumerable string keyed-value pairs
  17748. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  17749. * or set, its entries are returned.
  17750. *
  17751. * @static
  17752. * @memberOf _
  17753. * @since 4.0.0
  17754. * @alias entriesIn
  17755. * @category Object
  17756. * @param {Object} object The object to query.
  17757. * @returns {Array} Returns the key-value pairs.
  17758. * @example
  17759. *
  17760. * function Foo() {
  17761. * this.a = 1;
  17762. * this.b = 2;
  17763. * }
  17764. *
  17765. * Foo.prototype.c = 3;
  17766. *
  17767. * _.toPairsIn(new Foo);
  17768. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  17769. */
  17770. var toPairsIn = createToPairs(keysIn);
  17771. /**
  17772. * An alternative to `_.reduce`; this method transforms `object` to a new
  17773. * `accumulator` object which is the result of running each of its own
  17774. * enumerable string keyed properties thru `iteratee`, with each invocation
  17775. * potentially mutating the `accumulator` object. If `accumulator` is not
  17776. * provided, a new object with the same `[[Prototype]]` will be used. The
  17777. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  17778. * Iteratee functions may exit iteration early by explicitly returning `false`.
  17779. *
  17780. * @static
  17781. * @memberOf _
  17782. * @since 1.3.0
  17783. * @category Object
  17784. * @param {Object} object The object to iterate over.
  17785. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17786. * @param {*} [accumulator] The custom accumulator value.
  17787. * @returns {*} Returns the accumulated value.
  17788. * @example
  17789. *
  17790. * _.transform([2, 3, 4], function(result, n) {
  17791. * result.push(n *= n);
  17792. * return n % 2 == 0;
  17793. * }, []);
  17794. * // => [4, 9]
  17795. *
  17796. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  17797. * (result[value] || (result[value] = [])).push(key);
  17798. * }, {});
  17799. * // => { '1': ['a', 'c'], '2': ['b'] }
  17800. */
  17801. function transform(object, iteratee, accumulator) {
  17802. var isArr = isArray(object),
  17803. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  17804. iteratee = getIteratee(iteratee, 4);
  17805. if (accumulator == null) {
  17806. var Ctor = object && object.constructor;
  17807. if (isArrLike) {
  17808. accumulator = isArr ? new Ctor : [];
  17809. }
  17810. else if (isObject(object)) {
  17811. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  17812. }
  17813. else {
  17814. accumulator = {};
  17815. }
  17816. }
  17817. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  17818. return iteratee(accumulator, value, index, object);
  17819. });
  17820. return accumulator;
  17821. }
  17822. /**
  17823. * Removes the property at `path` of `object`.
  17824. *
  17825. * **Note:** This method mutates `object`.
  17826. *
  17827. * @static
  17828. * @memberOf _
  17829. * @since 4.0.0
  17830. * @category Object
  17831. * @param {Object} object The object to modify.
  17832. * @param {Array|string} path The path of the property to unset.
  17833. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  17834. * @example
  17835. *
  17836. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  17837. * _.unset(object, 'a[0].b.c');
  17838. * // => true
  17839. *
  17840. * console.log(object);
  17841. * // => { 'a': [{ 'b': {} }] };
  17842. *
  17843. * _.unset(object, ['a', '0', 'b', 'c']);
  17844. * // => true
  17845. *
  17846. * console.log(object);
  17847. * // => { 'a': [{ 'b': {} }] };
  17848. */
  17849. function unset(object, path) {
  17850. return object == null ? true : baseUnset(object, path);
  17851. }
  17852. /**
  17853. * This method is like `_.set` except that accepts `updater` to produce the
  17854. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  17855. * is invoked with one argument: (value).
  17856. *
  17857. * **Note:** This method mutates `object`.
  17858. *
  17859. * @static
  17860. * @memberOf _
  17861. * @since 4.6.0
  17862. * @category Object
  17863. * @param {Object} object The object to modify.
  17864. * @param {Array|string} path The path of the property to set.
  17865. * @param {Function} updater The function to produce the updated value.
  17866. * @returns {Object} Returns `object`.
  17867. * @example
  17868. *
  17869. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  17870. *
  17871. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  17872. * console.log(object.a[0].b.c);
  17873. * // => 9
  17874. *
  17875. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  17876. * console.log(object.x[0].y.z);
  17877. * // => 0
  17878. */
  17879. function update(object, path, updater) {
  17880. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  17881. }
  17882. /**
  17883. * This method is like `_.update` except that it accepts `customizer` which is
  17884. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  17885. * path creation is handled by the method instead. The `customizer` is invoked
  17886. * with three arguments: (nsValue, key, nsObject).
  17887. *
  17888. * **Note:** This method mutates `object`.
  17889. *
  17890. * @static
  17891. * @memberOf _
  17892. * @since 4.6.0
  17893. * @category Object
  17894. * @param {Object} object The object to modify.
  17895. * @param {Array|string} path The path of the property to set.
  17896. * @param {Function} updater The function to produce the updated value.
  17897. * @param {Function} [customizer] The function to customize assigned values.
  17898. * @returns {Object} Returns `object`.
  17899. * @example
  17900. *
  17901. * var object = {};
  17902. *
  17903. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  17904. * // => { '0': { '1': 'a' } }
  17905. */
  17906. function updateWith(object, path, updater, customizer) {
  17907. customizer = typeof customizer == 'function' ? customizer : undefined;
  17908. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  17909. }
  17910. /**
  17911. * Creates an array of the own enumerable string keyed property values of `object`.
  17912. *
  17913. * **Note:** Non-object values are coerced to objects.
  17914. *
  17915. * @static
  17916. * @since 0.1.0
  17917. * @memberOf _
  17918. * @category Object
  17919. * @param {Object} object The object to query.
  17920. * @returns {Array} Returns the array of property values.
  17921. * @example
  17922. *
  17923. * function Foo() {
  17924. * this.a = 1;
  17925. * this.b = 2;
  17926. * }
  17927. *
  17928. * Foo.prototype.c = 3;
  17929. *
  17930. * _.values(new Foo);
  17931. * // => [1, 2] (iteration order is not guaranteed)
  17932. *
  17933. * _.values('hi');
  17934. * // => ['h', 'i']
  17935. */
  17936. function values(object) {
  17937. return object == null ? [] : baseValues(object, keys(object));
  17938. }
  17939. /**
  17940. * Creates an array of the own and inherited enumerable string keyed property
  17941. * values of `object`.
  17942. *
  17943. * **Note:** Non-object values are coerced to objects.
  17944. *
  17945. * @static
  17946. * @memberOf _
  17947. * @since 3.0.0
  17948. * @category Object
  17949. * @param {Object} object The object to query.
  17950. * @returns {Array} Returns the array of property values.
  17951. * @example
  17952. *
  17953. * function Foo() {
  17954. * this.a = 1;
  17955. * this.b = 2;
  17956. * }
  17957. *
  17958. * Foo.prototype.c = 3;
  17959. *
  17960. * _.valuesIn(new Foo);
  17961. * // => [1, 2, 3] (iteration order is not guaranteed)
  17962. */
  17963. function valuesIn(object) {
  17964. return object == null ? [] : baseValues(object, keysIn(object));
  17965. }
  17966. /*------------------------------------------------------------------------*/
  17967. /**
  17968. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  17969. *
  17970. * @static
  17971. * @memberOf _
  17972. * @since 4.0.0
  17973. * @category Number
  17974. * @param {number} number The number to clamp.
  17975. * @param {number} [lower] The lower bound.
  17976. * @param {number} upper The upper bound.
  17977. * @returns {number} Returns the clamped number.
  17978. * @example
  17979. *
  17980. * _.clamp(-10, -5, 5);
  17981. * // => -5
  17982. *
  17983. * _.clamp(10, -5, 5);
  17984. * // => 5
  17985. */
  17986. function clamp(number, lower, upper) {
  17987. if (upper === undefined) {
  17988. upper = lower;
  17989. lower = undefined;
  17990. }
  17991. if (upper !== undefined) {
  17992. upper = toNumber(upper);
  17993. upper = upper === upper ? upper : 0;
  17994. }
  17995. if (lower !== undefined) {
  17996. lower = toNumber(lower);
  17997. lower = lower === lower ? lower : 0;
  17998. }
  17999. return baseClamp(toNumber(number), lower, upper);
  18000. }
  18001. /**
  18002. * Checks if `n` is between `start` and up to, but not including, `end`. If
  18003. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  18004. * If `start` is greater than `end` the params are swapped to support
  18005. * negative ranges.
  18006. *
  18007. * @static
  18008. * @memberOf _
  18009. * @since 3.3.0
  18010. * @category Number
  18011. * @param {number} number The number to check.
  18012. * @param {number} [start=0] The start of the range.
  18013. * @param {number} end The end of the range.
  18014. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  18015. * @see _.range, _.rangeRight
  18016. * @example
  18017. *
  18018. * _.inRange(3, 2, 4);
  18019. * // => true
  18020. *
  18021. * _.inRange(4, 8);
  18022. * // => true
  18023. *
  18024. * _.inRange(4, 2);
  18025. * // => false
  18026. *
  18027. * _.inRange(2, 2);
  18028. * // => false
  18029. *
  18030. * _.inRange(1.2, 2);
  18031. * // => true
  18032. *
  18033. * _.inRange(5.2, 4);
  18034. * // => false
  18035. *
  18036. * _.inRange(-3, -2, -6);
  18037. * // => true
  18038. */
  18039. function inRange(number, start, end) {
  18040. start = toFinite(start);
  18041. if (end === undefined) {
  18042. end = start;
  18043. start = 0;
  18044. } else {
  18045. end = toFinite(end);
  18046. }
  18047. number = toNumber(number);
  18048. return baseInRange(number, start, end);
  18049. }
  18050. /**
  18051. * Produces a random number between the inclusive `lower` and `upper` bounds.
  18052. * If only one argument is provided a number between `0` and the given number
  18053. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  18054. * floats, a floating-point number is returned instead of an integer.
  18055. *
  18056. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  18057. * floating-point values which can produce unexpected results.
  18058. *
  18059. * @static
  18060. * @memberOf _
  18061. * @since 0.7.0
  18062. * @category Number
  18063. * @param {number} [lower=0] The lower bound.
  18064. * @param {number} [upper=1] The upper bound.
  18065. * @param {boolean} [floating] Specify returning a floating-point number.
  18066. * @returns {number} Returns the random number.
  18067. * @example
  18068. *
  18069. * _.random(0, 5);
  18070. * // => an integer between 0 and 5
  18071. *
  18072. * _.random(5);
  18073. * // => also an integer between 0 and 5
  18074. *
  18075. * _.random(5, true);
  18076. * // => a floating-point number between 0 and 5
  18077. *
  18078. * _.random(1.2, 5.2);
  18079. * // => a floating-point number between 1.2 and 5.2
  18080. */
  18081. function random(lower, upper, floating) {
  18082. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  18083. upper = floating = undefined;
  18084. }
  18085. if (floating === undefined) {
  18086. if (typeof upper == 'boolean') {
  18087. floating = upper;
  18088. upper = undefined;
  18089. }
  18090. else if (typeof lower == 'boolean') {
  18091. floating = lower;
  18092. lower = undefined;
  18093. }
  18094. }
  18095. if (lower === undefined && upper === undefined) {
  18096. lower = 0;
  18097. upper = 1;
  18098. }
  18099. else {
  18100. lower = toFinite(lower);
  18101. if (upper === undefined) {
  18102. upper = lower;
  18103. lower = 0;
  18104. } else {
  18105. upper = toFinite(upper);
  18106. }
  18107. }
  18108. if (lower > upper) {
  18109. var temp = lower;
  18110. lower = upper;
  18111. upper = temp;
  18112. }
  18113. if (floating || lower % 1 || upper % 1) {
  18114. var rand = nativeRandom();
  18115. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  18116. }
  18117. return baseRandom(lower, upper);
  18118. }
  18119. /*------------------------------------------------------------------------*/
  18120. /**
  18121. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  18122. *
  18123. * @static
  18124. * @memberOf _
  18125. * @since 3.0.0
  18126. * @category String
  18127. * @param {string} [string=''] The string to convert.
  18128. * @returns {string} Returns the camel cased string.
  18129. * @example
  18130. *
  18131. * _.camelCase('Foo Bar');
  18132. * // => 'fooBar'
  18133. *
  18134. * _.camelCase('--foo-bar--');
  18135. * // => 'fooBar'
  18136. *
  18137. * _.camelCase('__FOO_BAR__');
  18138. * // => 'fooBar'
  18139. */
  18140. var camelCase = createCompounder(function(result, word, index) {
  18141. word = word.toLowerCase();
  18142. return result + (index ? capitalize(word) : word);
  18143. });
  18144. /**
  18145. * Converts the first character of `string` to upper case and the remaining
  18146. * to lower case.
  18147. *
  18148. * @static
  18149. * @memberOf _
  18150. * @since 3.0.0
  18151. * @category String
  18152. * @param {string} [string=''] The string to capitalize.
  18153. * @returns {string} Returns the capitalized string.
  18154. * @example
  18155. *
  18156. * _.capitalize('FRED');
  18157. * // => 'Fred'
  18158. */
  18159. function capitalize(string) {
  18160. return upperFirst(toString(string).toLowerCase());
  18161. }
  18162. /**
  18163. * Deburrs `string` by converting
  18164. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  18165. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  18166. * letters to basic Latin letters and removing
  18167. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  18168. *
  18169. * @static
  18170. * @memberOf _
  18171. * @since 3.0.0
  18172. * @category String
  18173. * @param {string} [string=''] The string to deburr.
  18174. * @returns {string} Returns the deburred string.
  18175. * @example
  18176. *
  18177. * _.deburr('déjà vu');
  18178. * // => 'deja vu'
  18179. */
  18180. function deburr(string) {
  18181. string = toString(string);
  18182. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  18183. }
  18184. /**
  18185. * Checks if `string` ends with the given target string.
  18186. *
  18187. * @static
  18188. * @memberOf _
  18189. * @since 3.0.0
  18190. * @category String
  18191. * @param {string} [string=''] The string to inspect.
  18192. * @param {string} [target] The string to search for.
  18193. * @param {number} [position=string.length] The position to search up to.
  18194. * @returns {boolean} Returns `true` if `string` ends with `target`,
  18195. * else `false`.
  18196. * @example
  18197. *
  18198. * _.endsWith('abc', 'c');
  18199. * // => true
  18200. *
  18201. * _.endsWith('abc', 'b');
  18202. * // => false
  18203. *
  18204. * _.endsWith('abc', 'b', 2);
  18205. * // => true
  18206. */
  18207. function endsWith(string, target, position) {
  18208. string = toString(string);
  18209. target = baseToString(target);
  18210. var length = string.length;
  18211. position = position === undefined
  18212. ? length
  18213. : baseClamp(toInteger(position), 0, length);
  18214. var end = position;
  18215. position -= target.length;
  18216. return position >= 0 && string.slice(position, end) == target;
  18217. }
  18218. /**
  18219. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  18220. * corresponding HTML entities.
  18221. *
  18222. * **Note:** No other characters are escaped. To escape additional
  18223. * characters use a third-party library like [_he_](https://mths.be/he).
  18224. *
  18225. * Though the ">" character is escaped for symmetry, characters like
  18226. * ">" and "/" don't need escaping in HTML and have no special meaning
  18227. * unless they're part of a tag or unquoted attribute value. See
  18228. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  18229. * (under "semi-related fun fact") for more details.
  18230. *
  18231. * When working with HTML you should always
  18232. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  18233. * XSS vectors.
  18234. *
  18235. * @static
  18236. * @since 0.1.0
  18237. * @memberOf _
  18238. * @category String
  18239. * @param {string} [string=''] The string to escape.
  18240. * @returns {string} Returns the escaped string.
  18241. * @example
  18242. *
  18243. * _.escape('fred, barney, & pebbles');
  18244. * // => 'fred, barney, &amp; pebbles'
  18245. */
  18246. function escape(string) {
  18247. string = toString(string);
  18248. return (string && reHasUnescapedHtml.test(string))
  18249. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  18250. : string;
  18251. }
  18252. /**
  18253. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  18254. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  18255. *
  18256. * @static
  18257. * @memberOf _
  18258. * @since 3.0.0
  18259. * @category String
  18260. * @param {string} [string=''] The string to escape.
  18261. * @returns {string} Returns the escaped string.
  18262. * @example
  18263. *
  18264. * _.escapeRegExp('[lodash](https://lodash.com/)');
  18265. * // => '\[lodash\]\(https://lodash\.com/\)'
  18266. */
  18267. function escapeRegExp(string) {
  18268. string = toString(string);
  18269. return (string && reHasRegExpChar.test(string))
  18270. ? string.replace(reRegExpChar, '\\$&')
  18271. : string;
  18272. }
  18273. /**
  18274. * Converts `string` to
  18275. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  18276. *
  18277. * @static
  18278. * @memberOf _
  18279. * @since 3.0.0
  18280. * @category String
  18281. * @param {string} [string=''] The string to convert.
  18282. * @returns {string} Returns the kebab cased string.
  18283. * @example
  18284. *
  18285. * _.kebabCase('Foo Bar');
  18286. * // => 'foo-bar'
  18287. *
  18288. * _.kebabCase('fooBar');
  18289. * // => 'foo-bar'
  18290. *
  18291. * _.kebabCase('__FOO_BAR__');
  18292. * // => 'foo-bar'
  18293. */
  18294. var kebabCase = createCompounder(function(result, word, index) {
  18295. return result + (index ? '-' : '') + word.toLowerCase();
  18296. });
  18297. /**
  18298. * Converts `string`, as space separated words, to lower case.
  18299. *
  18300. * @static
  18301. * @memberOf _
  18302. * @since 4.0.0
  18303. * @category String
  18304. * @param {string} [string=''] The string to convert.
  18305. * @returns {string} Returns the lower cased string.
  18306. * @example
  18307. *
  18308. * _.lowerCase('--Foo-Bar--');
  18309. * // => 'foo bar'
  18310. *
  18311. * _.lowerCase('fooBar');
  18312. * // => 'foo bar'
  18313. *
  18314. * _.lowerCase('__FOO_BAR__');
  18315. * // => 'foo bar'
  18316. */
  18317. var lowerCase = createCompounder(function(result, word, index) {
  18318. return result + (index ? ' ' : '') + word.toLowerCase();
  18319. });
  18320. /**
  18321. * Converts the first character of `string` to lower case.
  18322. *
  18323. * @static
  18324. * @memberOf _
  18325. * @since 4.0.0
  18326. * @category String
  18327. * @param {string} [string=''] The string to convert.
  18328. * @returns {string} Returns the converted string.
  18329. * @example
  18330. *
  18331. * _.lowerFirst('Fred');
  18332. * // => 'fred'
  18333. *
  18334. * _.lowerFirst('FRED');
  18335. * // => 'fRED'
  18336. */
  18337. var lowerFirst = createCaseFirst('toLowerCase');
  18338. /**
  18339. * Pads `string` on the left and right sides if it's shorter than `length`.
  18340. * Padding characters are truncated if they can't be evenly divided by `length`.
  18341. *
  18342. * @static
  18343. * @memberOf _
  18344. * @since 3.0.0
  18345. * @category String
  18346. * @param {string} [string=''] The string to pad.
  18347. * @param {number} [length=0] The padding length.
  18348. * @param {string} [chars=' '] The string used as padding.
  18349. * @returns {string} Returns the padded string.
  18350. * @example
  18351. *
  18352. * _.pad('abc', 8);
  18353. * // => ' abc '
  18354. *
  18355. * _.pad('abc', 8, '_-');
  18356. * // => '_-abc_-_'
  18357. *
  18358. * _.pad('abc', 3);
  18359. * // => 'abc'
  18360. */
  18361. function pad(string, length, chars) {
  18362. string = toString(string);
  18363. length = toInteger(length);
  18364. var strLength = length ? stringSize(string) : 0;
  18365. if (!length || strLength >= length) {
  18366. return string;
  18367. }
  18368. var mid = (length - strLength) / 2;
  18369. return (
  18370. createPadding(nativeFloor(mid), chars) +
  18371. string +
  18372. createPadding(nativeCeil(mid), chars)
  18373. );
  18374. }
  18375. /**
  18376. * Pads `string` on the right side if it's shorter than `length`. Padding
  18377. * characters are truncated if they exceed `length`.
  18378. *
  18379. * @static
  18380. * @memberOf _
  18381. * @since 4.0.0
  18382. * @category String
  18383. * @param {string} [string=''] The string to pad.
  18384. * @param {number} [length=0] The padding length.
  18385. * @param {string} [chars=' '] The string used as padding.
  18386. * @returns {string} Returns the padded string.
  18387. * @example
  18388. *
  18389. * _.padEnd('abc', 6);
  18390. * // => 'abc '
  18391. *
  18392. * _.padEnd('abc', 6, '_-');
  18393. * // => 'abc_-_'
  18394. *
  18395. * _.padEnd('abc', 3);
  18396. * // => 'abc'
  18397. */
  18398. function padEnd(string, length, chars) {
  18399. string = toString(string);
  18400. length = toInteger(length);
  18401. var strLength = length ? stringSize(string) : 0;
  18402. return (length && strLength < length)
  18403. ? (string + createPadding(length - strLength, chars))
  18404. : string;
  18405. }
  18406. /**
  18407. * Pads `string` on the left side if it's shorter than `length`. Padding
  18408. * characters are truncated if they exceed `length`.
  18409. *
  18410. * @static
  18411. * @memberOf _
  18412. * @since 4.0.0
  18413. * @category String
  18414. * @param {string} [string=''] The string to pad.
  18415. * @param {number} [length=0] The padding length.
  18416. * @param {string} [chars=' '] The string used as padding.
  18417. * @returns {string} Returns the padded string.
  18418. * @example
  18419. *
  18420. * _.padStart('abc', 6);
  18421. * // => ' abc'
  18422. *
  18423. * _.padStart('abc', 6, '_-');
  18424. * // => '_-_abc'
  18425. *
  18426. * _.padStart('abc', 3);
  18427. * // => 'abc'
  18428. */
  18429. function padStart(string, length, chars) {
  18430. string = toString(string);
  18431. length = toInteger(length);
  18432. var strLength = length ? stringSize(string) : 0;
  18433. return (length && strLength < length)
  18434. ? (createPadding(length - strLength, chars) + string)
  18435. : string;
  18436. }
  18437. /**
  18438. * Converts `string` to an integer of the specified radix. If `radix` is
  18439. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  18440. * hexadecimal, in which case a `radix` of `16` is used.
  18441. *
  18442. * **Note:** This method aligns with the
  18443. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  18444. *
  18445. * @static
  18446. * @memberOf _
  18447. * @since 1.1.0
  18448. * @category String
  18449. * @param {string} string The string to convert.
  18450. * @param {number} [radix=10] The radix to interpret `value` by.
  18451. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18452. * @returns {number} Returns the converted integer.
  18453. * @example
  18454. *
  18455. * _.parseInt('08');
  18456. * // => 8
  18457. *
  18458. * _.map(['6', '08', '10'], _.parseInt);
  18459. * // => [6, 8, 10]
  18460. */
  18461. function parseInt(string, radix, guard) {
  18462. if (guard || radix == null) {
  18463. radix = 0;
  18464. } else if (radix) {
  18465. radix = +radix;
  18466. }
  18467. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  18468. }
  18469. /**
  18470. * Repeats the given string `n` times.
  18471. *
  18472. * @static
  18473. * @memberOf _
  18474. * @since 3.0.0
  18475. * @category String
  18476. * @param {string} [string=''] The string to repeat.
  18477. * @param {number} [n=1] The number of times to repeat the string.
  18478. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18479. * @returns {string} Returns the repeated string.
  18480. * @example
  18481. *
  18482. * _.repeat('*', 3);
  18483. * // => '***'
  18484. *
  18485. * _.repeat('abc', 2);
  18486. * // => 'abcabc'
  18487. *
  18488. * _.repeat('abc', 0);
  18489. * // => ''
  18490. */
  18491. function repeat(string, n, guard) {
  18492. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  18493. n = 1;
  18494. } else {
  18495. n = toInteger(n);
  18496. }
  18497. return baseRepeat(toString(string), n);
  18498. }
  18499. /**
  18500. * Replaces matches for `pattern` in `string` with `replacement`.
  18501. *
  18502. * **Note:** This method is based on
  18503. * [`String#replace`](https://mdn.io/String/replace).
  18504. *
  18505. * @static
  18506. * @memberOf _
  18507. * @since 4.0.0
  18508. * @category String
  18509. * @param {string} [string=''] The string to modify.
  18510. * @param {RegExp|string} pattern The pattern to replace.
  18511. * @param {Function|string} replacement The match replacement.
  18512. * @returns {string} Returns the modified string.
  18513. * @example
  18514. *
  18515. * _.replace('Hi Fred', 'Fred', 'Barney');
  18516. * // => 'Hi Barney'
  18517. */
  18518. function replace() {
  18519. var args = arguments,
  18520. string = toString(args[0]);
  18521. return args.length < 3 ? string : string.replace(args[1], args[2]);
  18522. }
  18523. /**
  18524. * Converts `string` to
  18525. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  18526. *
  18527. * @static
  18528. * @memberOf _
  18529. * @since 3.0.0
  18530. * @category String
  18531. * @param {string} [string=''] The string to convert.
  18532. * @returns {string} Returns the snake cased string.
  18533. * @example
  18534. *
  18535. * _.snakeCase('Foo Bar');
  18536. * // => 'foo_bar'
  18537. *
  18538. * _.snakeCase('fooBar');
  18539. * // => 'foo_bar'
  18540. *
  18541. * _.snakeCase('--FOO-BAR--');
  18542. * // => 'foo_bar'
  18543. */
  18544. var snakeCase = createCompounder(function(result, word, index) {
  18545. return result + (index ? '_' : '') + word.toLowerCase();
  18546. });
  18547. /**
  18548. * Splits `string` by `separator`.
  18549. *
  18550. * **Note:** This method is based on
  18551. * [`String#split`](https://mdn.io/String/split).
  18552. *
  18553. * @static
  18554. * @memberOf _
  18555. * @since 4.0.0
  18556. * @category String
  18557. * @param {string} [string=''] The string to split.
  18558. * @param {RegExp|string} separator The separator pattern to split by.
  18559. * @param {number} [limit] The length to truncate results to.
  18560. * @returns {Array} Returns the string segments.
  18561. * @example
  18562. *
  18563. * _.split('a-b-c', '-', 2);
  18564. * // => ['a', 'b']
  18565. */
  18566. function split(string, separator, limit) {
  18567. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  18568. separator = limit = undefined;
  18569. }
  18570. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  18571. if (!limit) {
  18572. return [];
  18573. }
  18574. string = toString(string);
  18575. if (string && (
  18576. typeof separator == 'string' ||
  18577. (separator != null && !isRegExp(separator))
  18578. )) {
  18579. separator = baseToString(separator);
  18580. if (!separator && hasUnicode(string)) {
  18581. return castSlice(stringToArray(string), 0, limit);
  18582. }
  18583. }
  18584. return string.split(separator, limit);
  18585. }
  18586. /**
  18587. * Converts `string` to
  18588. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  18589. *
  18590. * @static
  18591. * @memberOf _
  18592. * @since 3.1.0
  18593. * @category String
  18594. * @param {string} [string=''] The string to convert.
  18595. * @returns {string} Returns the start cased string.
  18596. * @example
  18597. *
  18598. * _.startCase('--foo-bar--');
  18599. * // => 'Foo Bar'
  18600. *
  18601. * _.startCase('fooBar');
  18602. * // => 'Foo Bar'
  18603. *
  18604. * _.startCase('__FOO_BAR__');
  18605. * // => 'FOO BAR'
  18606. */
  18607. var startCase = createCompounder(function(result, word, index) {
  18608. return result + (index ? ' ' : '') + upperFirst(word);
  18609. });
  18610. /**
  18611. * Checks if `string` starts with the given target string.
  18612. *
  18613. * @static
  18614. * @memberOf _
  18615. * @since 3.0.0
  18616. * @category String
  18617. * @param {string} [string=''] The string to inspect.
  18618. * @param {string} [target] The string to search for.
  18619. * @param {number} [position=0] The position to search from.
  18620. * @returns {boolean} Returns `true` if `string` starts with `target`,
  18621. * else `false`.
  18622. * @example
  18623. *
  18624. * _.startsWith('abc', 'a');
  18625. * // => true
  18626. *
  18627. * _.startsWith('abc', 'b');
  18628. * // => false
  18629. *
  18630. * _.startsWith('abc', 'b', 1);
  18631. * // => true
  18632. */
  18633. function startsWith(string, target, position) {
  18634. string = toString(string);
  18635. position = position == null
  18636. ? 0
  18637. : baseClamp(toInteger(position), 0, string.length);
  18638. target = baseToString(target);
  18639. return string.slice(position, position + target.length) == target;
  18640. }
  18641. /**
  18642. * Creates a compiled template function that can interpolate data properties
  18643. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  18644. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  18645. * properties may be accessed as free variables in the template. If a setting
  18646. * object is given, it takes precedence over `_.templateSettings` values.
  18647. *
  18648. * **Note:** In the development build `_.template` utilizes
  18649. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  18650. * for easier debugging.
  18651. *
  18652. * For more information on precompiling templates see
  18653. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  18654. *
  18655. * For more information on Chrome extension sandboxes see
  18656. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  18657. *
  18658. * @static
  18659. * @since 0.1.0
  18660. * @memberOf _
  18661. * @category String
  18662. * @param {string} [string=''] The template string.
  18663. * @param {Object} [options={}] The options object.
  18664. * @param {RegExp} [options.escape=_.templateSettings.escape]
  18665. * The HTML "escape" delimiter.
  18666. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  18667. * The "evaluate" delimiter.
  18668. * @param {Object} [options.imports=_.templateSettings.imports]
  18669. * An object to import into the template as free variables.
  18670. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  18671. * The "interpolate" delimiter.
  18672. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  18673. * The sourceURL of the compiled template.
  18674. * @param {string} [options.variable='obj']
  18675. * The data object variable name.
  18676. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18677. * @returns {Function} Returns the compiled template function.
  18678. * @example
  18679. *
  18680. * // Use the "interpolate" delimiter to create a compiled template.
  18681. * var compiled = _.template('hello <%= user %>!');
  18682. * compiled({ 'user': 'fred' });
  18683. * // => 'hello fred!'
  18684. *
  18685. * // Use the HTML "escape" delimiter to escape data property values.
  18686. * var compiled = _.template('<b><%- value %></b>');
  18687. * compiled({ 'value': '<script>' });
  18688. * // => '<b>&lt;script&gt;</b>'
  18689. *
  18690. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  18691. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  18692. * compiled({ 'users': ['fred', 'barney'] });
  18693. * // => '<li>fred</li><li>barney</li>'
  18694. *
  18695. * // Use the internal `print` function in "evaluate" delimiters.
  18696. * var compiled = _.template('<% print("hello " + user); %>!');
  18697. * compiled({ 'user': 'barney' });
  18698. * // => 'hello barney!'
  18699. *
  18700. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  18701. * // Disable support by replacing the "interpolate" delimiter.
  18702. * var compiled = _.template('hello ${ user }!');
  18703. * compiled({ 'user': 'pebbles' });
  18704. * // => 'hello pebbles!'
  18705. *
  18706. * // Use backslashes to treat delimiters as plain text.
  18707. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  18708. * compiled({ 'value': 'ignored' });
  18709. * // => '<%- value %>'
  18710. *
  18711. * // Use the `imports` option to import `jQuery` as `jq`.
  18712. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  18713. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  18714. * compiled({ 'users': ['fred', 'barney'] });
  18715. * // => '<li>fred</li><li>barney</li>'
  18716. *
  18717. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  18718. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  18719. * compiled(data);
  18720. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  18721. *
  18722. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  18723. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  18724. * compiled.source;
  18725. * // => function(data) {
  18726. * // var __t, __p = '';
  18727. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  18728. * // return __p;
  18729. * // }
  18730. *
  18731. * // Use custom template delimiters.
  18732. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  18733. * var compiled = _.template('hello {{ user }}!');
  18734. * compiled({ 'user': 'mustache' });
  18735. * // => 'hello mustache!'
  18736. *
  18737. * // Use the `source` property to inline compiled templates for meaningful
  18738. * // line numbers in error messages and stack traces.
  18739. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  18740. * var JST = {\
  18741. * "main": ' + _.template(mainText).source + '\
  18742. * };\
  18743. * ');
  18744. */
  18745. function template(string, options, guard) {
  18746. // Based on John Resig's `tmpl` implementation
  18747. // (http://ejohn.org/blog/javascript-micro-templating/)
  18748. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  18749. var settings = lodash.templateSettings;
  18750. if (guard && isIterateeCall(string, options, guard)) {
  18751. options = undefined;
  18752. }
  18753. string = toString(string);
  18754. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  18755. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  18756. importsKeys = keys(imports),
  18757. importsValues = baseValues(imports, importsKeys);
  18758. var isEscaping,
  18759. isEvaluating,
  18760. index = 0,
  18761. interpolate = options.interpolate || reNoMatch,
  18762. source = "__p += '";
  18763. // Compile the regexp to match each delimiter.
  18764. var reDelimiters = RegExp(
  18765. (options.escape || reNoMatch).source + '|' +
  18766. interpolate.source + '|' +
  18767. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  18768. (options.evaluate || reNoMatch).source + '|$'
  18769. , 'g');
  18770. // Use a sourceURL for easier debugging.
  18771. var sourceURL = '//# sourceURL=' +
  18772. ('sourceURL' in options
  18773. ? options.sourceURL
  18774. : ('lodash.templateSources[' + (++templateCounter) + ']')
  18775. ) + '\n';
  18776. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  18777. interpolateValue || (interpolateValue = esTemplateValue);
  18778. // Escape characters that can't be included in string literals.
  18779. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  18780. // Replace delimiters with snippets.
  18781. if (escapeValue) {
  18782. isEscaping = true;
  18783. source += "' +\n__e(" + escapeValue + ") +\n'";
  18784. }
  18785. if (evaluateValue) {
  18786. isEvaluating = true;
  18787. source += "';\n" + evaluateValue + ";\n__p += '";
  18788. }
  18789. if (interpolateValue) {
  18790. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  18791. }
  18792. index = offset + match.length;
  18793. // The JS engine embedded in Adobe products needs `match` returned in
  18794. // order to produce the correct `offset` value.
  18795. return match;
  18796. });
  18797. source += "';\n";
  18798. // If `variable` is not specified wrap a with-statement around the generated
  18799. // code to add the data object to the top of the scope chain.
  18800. var variable = options.variable;
  18801. if (!variable) {
  18802. source = 'with (obj) {\n' + source + '\n}\n';
  18803. }
  18804. // Cleanup code by stripping empty strings.
  18805. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  18806. .replace(reEmptyStringMiddle, '$1')
  18807. .replace(reEmptyStringTrailing, '$1;');
  18808. // Frame code as the function body.
  18809. source = 'function(' + (variable || 'obj') + ') {\n' +
  18810. (variable
  18811. ? ''
  18812. : 'obj || (obj = {});\n'
  18813. ) +
  18814. "var __t, __p = ''" +
  18815. (isEscaping
  18816. ? ', __e = _.escape'
  18817. : ''
  18818. ) +
  18819. (isEvaluating
  18820. ? ', __j = Array.prototype.join;\n' +
  18821. "function print() { __p += __j.call(arguments, '') }\n"
  18822. : ';\n'
  18823. ) +
  18824. source +
  18825. 'return __p\n}';
  18826. var result = attempt(function() {
  18827. return Function(importsKeys, sourceURL + 'return ' + source)
  18828. .apply(undefined, importsValues);
  18829. });
  18830. // Provide the compiled function's source by its `toString` method or
  18831. // the `source` property as a convenience for inlining compiled templates.
  18832. result.source = source;
  18833. if (isError(result)) {
  18834. throw result;
  18835. }
  18836. return result;
  18837. }
  18838. /**
  18839. * Converts `string`, as a whole, to lower case just like
  18840. * [String#toLowerCase](https://mdn.io/toLowerCase).
  18841. *
  18842. * @static
  18843. * @memberOf _
  18844. * @since 4.0.0
  18845. * @category String
  18846. * @param {string} [string=''] The string to convert.
  18847. * @returns {string} Returns the lower cased string.
  18848. * @example
  18849. *
  18850. * _.toLower('--Foo-Bar--');
  18851. * // => '--foo-bar--'
  18852. *
  18853. * _.toLower('fooBar');
  18854. * // => 'foobar'
  18855. *
  18856. * _.toLower('__FOO_BAR__');
  18857. * // => '__foo_bar__'
  18858. */
  18859. function toLower(value) {
  18860. return toString(value).toLowerCase();
  18861. }
  18862. /**
  18863. * Converts `string`, as a whole, to upper case just like
  18864. * [String#toUpperCase](https://mdn.io/toUpperCase).
  18865. *
  18866. * @static
  18867. * @memberOf _
  18868. * @since 4.0.0
  18869. * @category String
  18870. * @param {string} [string=''] The string to convert.
  18871. * @returns {string} Returns the upper cased string.
  18872. * @example
  18873. *
  18874. * _.toUpper('--foo-bar--');
  18875. * // => '--FOO-BAR--'
  18876. *
  18877. * _.toUpper('fooBar');
  18878. * // => 'FOOBAR'
  18879. *
  18880. * _.toUpper('__foo_bar__');
  18881. * // => '__FOO_BAR__'
  18882. */
  18883. function toUpper(value) {
  18884. return toString(value).toUpperCase();
  18885. }
  18886. /**
  18887. * Removes leading and trailing whitespace or specified characters from `string`.
  18888. *
  18889. * @static
  18890. * @memberOf _
  18891. * @since 3.0.0
  18892. * @category String
  18893. * @param {string} [string=''] The string to trim.
  18894. * @param {string} [chars=whitespace] The characters to trim.
  18895. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18896. * @returns {string} Returns the trimmed string.
  18897. * @example
  18898. *
  18899. * _.trim(' abc ');
  18900. * // => 'abc'
  18901. *
  18902. * _.trim('-_-abc-_-', '_-');
  18903. * // => 'abc'
  18904. *
  18905. * _.map([' foo ', ' bar '], _.trim);
  18906. * // => ['foo', 'bar']
  18907. */
  18908. function trim(string, chars, guard) {
  18909. string = toString(string);
  18910. if (string && (guard || chars === undefined)) {
  18911. return string.replace(reTrim, '');
  18912. }
  18913. if (!string || !(chars = baseToString(chars))) {
  18914. return string;
  18915. }
  18916. var strSymbols = stringToArray(string),
  18917. chrSymbols = stringToArray(chars),
  18918. start = charsStartIndex(strSymbols, chrSymbols),
  18919. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  18920. return castSlice(strSymbols, start, end).join('');
  18921. }
  18922. /**
  18923. * Removes trailing whitespace or specified characters from `string`.
  18924. *
  18925. * @static
  18926. * @memberOf _
  18927. * @since 4.0.0
  18928. * @category String
  18929. * @param {string} [string=''] The string to trim.
  18930. * @param {string} [chars=whitespace] The characters to trim.
  18931. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18932. * @returns {string} Returns the trimmed string.
  18933. * @example
  18934. *
  18935. * _.trimEnd(' abc ');
  18936. * // => ' abc'
  18937. *
  18938. * _.trimEnd('-_-abc-_-', '_-');
  18939. * // => '-_-abc'
  18940. */
  18941. function trimEnd(string, chars, guard) {
  18942. string = toString(string);
  18943. if (string && (guard || chars === undefined)) {
  18944. return string.replace(reTrimEnd, '');
  18945. }
  18946. if (!string || !(chars = baseToString(chars))) {
  18947. return string;
  18948. }
  18949. var strSymbols = stringToArray(string),
  18950. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  18951. return castSlice(strSymbols, 0, end).join('');
  18952. }
  18953. /**
  18954. * Removes leading whitespace or specified characters from `string`.
  18955. *
  18956. * @static
  18957. * @memberOf _
  18958. * @since 4.0.0
  18959. * @category String
  18960. * @param {string} [string=''] The string to trim.
  18961. * @param {string} [chars=whitespace] The characters to trim.
  18962. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18963. * @returns {string} Returns the trimmed string.
  18964. * @example
  18965. *
  18966. * _.trimStart(' abc ');
  18967. * // => 'abc '
  18968. *
  18969. * _.trimStart('-_-abc-_-', '_-');
  18970. * // => 'abc-_-'
  18971. */
  18972. function trimStart(string, chars, guard) {
  18973. string = toString(string);
  18974. if (string && (guard || chars === undefined)) {
  18975. return string.replace(reTrimStart, '');
  18976. }
  18977. if (!string || !(chars = baseToString(chars))) {
  18978. return string;
  18979. }
  18980. var strSymbols = stringToArray(string),
  18981. start = charsStartIndex(strSymbols, stringToArray(chars));
  18982. return castSlice(strSymbols, start).join('');
  18983. }
  18984. /**
  18985. * Truncates `string` if it's longer than the given maximum string length.
  18986. * The last characters of the truncated string are replaced with the omission
  18987. * string which defaults to "...".
  18988. *
  18989. * @static
  18990. * @memberOf _
  18991. * @since 4.0.0
  18992. * @category String
  18993. * @param {string} [string=''] The string to truncate.
  18994. * @param {Object} [options={}] The options object.
  18995. * @param {number} [options.length=30] The maximum string length.
  18996. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  18997. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  18998. * @returns {string} Returns the truncated string.
  18999. * @example
  19000. *
  19001. * _.truncate('hi-diddly-ho there, neighborino');
  19002. * // => 'hi-diddly-ho there, neighbo...'
  19003. *
  19004. * _.truncate('hi-diddly-ho there, neighborino', {
  19005. * 'length': 24,
  19006. * 'separator': ' '
  19007. * });
  19008. * // => 'hi-diddly-ho there,...'
  19009. *
  19010. * _.truncate('hi-diddly-ho there, neighborino', {
  19011. * 'length': 24,
  19012. * 'separator': /,? +/
  19013. * });
  19014. * // => 'hi-diddly-ho there...'
  19015. *
  19016. * _.truncate('hi-diddly-ho there, neighborino', {
  19017. * 'omission': ' [...]'
  19018. * });
  19019. * // => 'hi-diddly-ho there, neig [...]'
  19020. */
  19021. function truncate(string, options) {
  19022. var length = DEFAULT_TRUNC_LENGTH,
  19023. omission = DEFAULT_TRUNC_OMISSION;
  19024. if (isObject(options)) {
  19025. var separator = 'separator' in options ? options.separator : separator;
  19026. length = 'length' in options ? toInteger(options.length) : length;
  19027. omission = 'omission' in options ? baseToString(options.omission) : omission;
  19028. }
  19029. string = toString(string);
  19030. var strLength = string.length;
  19031. if (hasUnicode(string)) {
  19032. var strSymbols = stringToArray(string);
  19033. strLength = strSymbols.length;
  19034. }
  19035. if (length >= strLength) {
  19036. return string;
  19037. }
  19038. var end = length - stringSize(omission);
  19039. if (end < 1) {
  19040. return omission;
  19041. }
  19042. var result = strSymbols
  19043. ? castSlice(strSymbols, 0, end).join('')
  19044. : string.slice(0, end);
  19045. if (separator === undefined) {
  19046. return result + omission;
  19047. }
  19048. if (strSymbols) {
  19049. end += (result.length - end);
  19050. }
  19051. if (isRegExp(separator)) {
  19052. if (string.slice(end).search(separator)) {
  19053. var match,
  19054. substring = result;
  19055. if (!separator.global) {
  19056. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  19057. }
  19058. separator.lastIndex = 0;
  19059. while ((match = separator.exec(substring))) {
  19060. var newEnd = match.index;
  19061. }
  19062. result = result.slice(0, newEnd === undefined ? end : newEnd);
  19063. }
  19064. } else if (string.indexOf(baseToString(separator), end) != end) {
  19065. var index = result.lastIndexOf(separator);
  19066. if (index > -1) {
  19067. result = result.slice(0, index);
  19068. }
  19069. }
  19070. return result + omission;
  19071. }
  19072. /**
  19073. * The inverse of `_.escape`; this method converts the HTML entities
  19074. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  19075. * their corresponding characters.
  19076. *
  19077. * **Note:** No other HTML entities are unescaped. To unescape additional
  19078. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  19079. *
  19080. * @static
  19081. * @memberOf _
  19082. * @since 0.6.0
  19083. * @category String
  19084. * @param {string} [string=''] The string to unescape.
  19085. * @returns {string} Returns the unescaped string.
  19086. * @example
  19087. *
  19088. * _.unescape('fred, barney, &amp; pebbles');
  19089. * // => 'fred, barney, & pebbles'
  19090. */
  19091. function unescape(string) {
  19092. string = toString(string);
  19093. return (string && reHasEscapedHtml.test(string))
  19094. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  19095. : string;
  19096. }
  19097. /**
  19098. * Converts `string`, as space separated words, to upper case.
  19099. *
  19100. * @static
  19101. * @memberOf _
  19102. * @since 4.0.0
  19103. * @category String
  19104. * @param {string} [string=''] The string to convert.
  19105. * @returns {string} Returns the upper cased string.
  19106. * @example
  19107. *
  19108. * _.upperCase('--foo-bar');
  19109. * // => 'FOO BAR'
  19110. *
  19111. * _.upperCase('fooBar');
  19112. * // => 'FOO BAR'
  19113. *
  19114. * _.upperCase('__foo_bar__');
  19115. * // => 'FOO BAR'
  19116. */
  19117. var upperCase = createCompounder(function(result, word, index) {
  19118. return result + (index ? ' ' : '') + word.toUpperCase();
  19119. });
  19120. /**
  19121. * Converts the first character of `string` to upper case.
  19122. *
  19123. * @static
  19124. * @memberOf _
  19125. * @since 4.0.0
  19126. * @category String
  19127. * @param {string} [string=''] The string to convert.
  19128. * @returns {string} Returns the converted string.
  19129. * @example
  19130. *
  19131. * _.upperFirst('fred');
  19132. * // => 'Fred'
  19133. *
  19134. * _.upperFirst('FRED');
  19135. * // => 'FRED'
  19136. */
  19137. var upperFirst = createCaseFirst('toUpperCase');
  19138. /**
  19139. * Splits `string` into an array of its words.
  19140. *
  19141. * @static
  19142. * @memberOf _
  19143. * @since 3.0.0
  19144. * @category String
  19145. * @param {string} [string=''] The string to inspect.
  19146. * @param {RegExp|string} [pattern] The pattern to match words.
  19147. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  19148. * @returns {Array} Returns the words of `string`.
  19149. * @example
  19150. *
  19151. * _.words('fred, barney, & pebbles');
  19152. * // => ['fred', 'barney', 'pebbles']
  19153. *
  19154. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  19155. * // => ['fred', 'barney', '&', 'pebbles']
  19156. */
  19157. function words(string, pattern, guard) {
  19158. string = toString(string);
  19159. pattern = guard ? undefined : pattern;
  19160. if (pattern === undefined) {
  19161. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  19162. }
  19163. return string.match(pattern) || [];
  19164. }
  19165. /*------------------------------------------------------------------------*/
  19166. /**
  19167. * Attempts to invoke `func`, returning either the result or the caught error
  19168. * object. Any additional arguments are provided to `func` when it's invoked.
  19169. *
  19170. * @static
  19171. * @memberOf _
  19172. * @since 3.0.0
  19173. * @category Util
  19174. * @param {Function} func The function to attempt.
  19175. * @param {...*} [args] The arguments to invoke `func` with.
  19176. * @returns {*} Returns the `func` result or error object.
  19177. * @example
  19178. *
  19179. * // Avoid throwing errors for invalid selectors.
  19180. * var elements = _.attempt(function(selector) {
  19181. * return document.querySelectorAll(selector);
  19182. * }, '>_>');
  19183. *
  19184. * if (_.isError(elements)) {
  19185. * elements = [];
  19186. * }
  19187. */
  19188. var attempt = baseRest(function(func, args) {
  19189. try {
  19190. return apply(func, undefined, args);
  19191. } catch (e) {
  19192. return isError(e) ? e : new Error(e);
  19193. }
  19194. });
  19195. /**
  19196. * Binds methods of an object to the object itself, overwriting the existing
  19197. * method.
  19198. *
  19199. * **Note:** This method doesn't set the "length" property of bound functions.
  19200. *
  19201. * @static
  19202. * @since 0.1.0
  19203. * @memberOf _
  19204. * @category Util
  19205. * @param {Object} object The object to bind and assign the bound methods to.
  19206. * @param {...(string|string[])} methodNames The object method names to bind.
  19207. * @returns {Object} Returns `object`.
  19208. * @example
  19209. *
  19210. * var view = {
  19211. * 'label': 'docs',
  19212. * 'click': function() {
  19213. * console.log('clicked ' + this.label);
  19214. * }
  19215. * };
  19216. *
  19217. * _.bindAll(view, ['click']);
  19218. * jQuery(element).on('click', view.click);
  19219. * // => Logs 'clicked docs' when clicked.
  19220. */
  19221. var bindAll = flatRest(function(object, methodNames) {
  19222. arrayEach(methodNames, function(key) {
  19223. key = toKey(key);
  19224. baseAssignValue(object, key, bind(object[key], object));
  19225. });
  19226. return object;
  19227. });
  19228. /**
  19229. * Creates a function that iterates over `pairs` and invokes the corresponding
  19230. * function of the first predicate to return truthy. The predicate-function
  19231. * pairs are invoked with the `this` binding and arguments of the created
  19232. * function.
  19233. *
  19234. * @static
  19235. * @memberOf _
  19236. * @since 4.0.0
  19237. * @category Util
  19238. * @param {Array} pairs The predicate-function pairs.
  19239. * @returns {Function} Returns the new composite function.
  19240. * @example
  19241. *
  19242. * var func = _.cond([
  19243. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  19244. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  19245. * [_.stubTrue, _.constant('no match')]
  19246. * ]);
  19247. *
  19248. * func({ 'a': 1, 'b': 2 });
  19249. * // => 'matches A'
  19250. *
  19251. * func({ 'a': 0, 'b': 1 });
  19252. * // => 'matches B'
  19253. *
  19254. * func({ 'a': '1', 'b': '2' });
  19255. * // => 'no match'
  19256. */
  19257. function cond(pairs) {
  19258. var length = pairs == null ? 0 : pairs.length,
  19259. toIteratee = getIteratee();
  19260. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  19261. if (typeof pair[1] != 'function') {
  19262. throw new TypeError(FUNC_ERROR_TEXT);
  19263. }
  19264. return [toIteratee(pair[0]), pair[1]];
  19265. });
  19266. return baseRest(function(args) {
  19267. var index = -1;
  19268. while (++index < length) {
  19269. var pair = pairs[index];
  19270. if (apply(pair[0], this, args)) {
  19271. return apply(pair[1], this, args);
  19272. }
  19273. }
  19274. });
  19275. }
  19276. /**
  19277. * Creates a function that invokes the predicate properties of `source` with
  19278. * the corresponding property values of a given object, returning `true` if
  19279. * all predicates return truthy, else `false`.
  19280. *
  19281. * **Note:** The created function is equivalent to `_.conformsTo` with
  19282. * `source` partially applied.
  19283. *
  19284. * @static
  19285. * @memberOf _
  19286. * @since 4.0.0
  19287. * @category Util
  19288. * @param {Object} source The object of property predicates to conform to.
  19289. * @returns {Function} Returns the new spec function.
  19290. * @example
  19291. *
  19292. * var objects = [
  19293. * { 'a': 2, 'b': 1 },
  19294. * { 'a': 1, 'b': 2 }
  19295. * ];
  19296. *
  19297. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  19298. * // => [{ 'a': 1, 'b': 2 }]
  19299. */
  19300. function conforms(source) {
  19301. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  19302. }
  19303. /**
  19304. * Creates a function that returns `value`.
  19305. *
  19306. * @static
  19307. * @memberOf _
  19308. * @since 2.4.0
  19309. * @category Util
  19310. * @param {*} value The value to return from the new function.
  19311. * @returns {Function} Returns the new constant function.
  19312. * @example
  19313. *
  19314. * var objects = _.times(2, _.constant({ 'a': 1 }));
  19315. *
  19316. * console.log(objects);
  19317. * // => [{ 'a': 1 }, { 'a': 1 }]
  19318. *
  19319. * console.log(objects[0] === objects[1]);
  19320. * // => true
  19321. */
  19322. function constant(value) {
  19323. return function() {
  19324. return value;
  19325. };
  19326. }
  19327. /**
  19328. * Checks `value` to determine whether a default value should be returned in
  19329. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  19330. * or `undefined`.
  19331. *
  19332. * @static
  19333. * @memberOf _
  19334. * @since 4.14.0
  19335. * @category Util
  19336. * @param {*} value The value to check.
  19337. * @param {*} defaultValue The default value.
  19338. * @returns {*} Returns the resolved value.
  19339. * @example
  19340. *
  19341. * _.defaultTo(1, 10);
  19342. * // => 1
  19343. *
  19344. * _.defaultTo(undefined, 10);
  19345. * // => 10
  19346. */
  19347. function defaultTo(value, defaultValue) {
  19348. return (value == null || value !== value) ? defaultValue : value;
  19349. }
  19350. /**
  19351. * Creates a function that returns the result of invoking the given functions
  19352. * with the `this` binding of the created function, where each successive
  19353. * invocation is supplied the return value of the previous.
  19354. *
  19355. * @static
  19356. * @memberOf _
  19357. * @since 3.0.0
  19358. * @category Util
  19359. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  19360. * @returns {Function} Returns the new composite function.
  19361. * @see _.flowRight
  19362. * @example
  19363. *
  19364. * function square(n) {
  19365. * return n * n;
  19366. * }
  19367. *
  19368. * var addSquare = _.flow([_.add, square]);
  19369. * addSquare(1, 2);
  19370. * // => 9
  19371. */
  19372. var flow = createFlow();
  19373. /**
  19374. * This method is like `_.flow` except that it creates a function that
  19375. * invokes the given functions from right to left.
  19376. *
  19377. * @static
  19378. * @since 3.0.0
  19379. * @memberOf _
  19380. * @category Util
  19381. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  19382. * @returns {Function} Returns the new composite function.
  19383. * @see _.flow
  19384. * @example
  19385. *
  19386. * function square(n) {
  19387. * return n * n;
  19388. * }
  19389. *
  19390. * var addSquare = _.flowRight([square, _.add]);
  19391. * addSquare(1, 2);
  19392. * // => 9
  19393. */
  19394. var flowRight = createFlow(true);
  19395. /**
  19396. * This method returns the first argument it receives.
  19397. *
  19398. * @static
  19399. * @since 0.1.0
  19400. * @memberOf _
  19401. * @category Util
  19402. * @param {*} value Any value.
  19403. * @returns {*} Returns `value`.
  19404. * @example
  19405. *
  19406. * var object = { 'a': 1 };
  19407. *
  19408. * console.log(_.identity(object) === object);
  19409. * // => true
  19410. */
  19411. function identity(value) {
  19412. return value;
  19413. }
  19414. /**
  19415. * Creates a function that invokes `func` with the arguments of the created
  19416. * function. If `func` is a property name, the created function returns the
  19417. * property value for a given element. If `func` is an array or object, the
  19418. * created function returns `true` for elements that contain the equivalent
  19419. * source properties, otherwise it returns `false`.
  19420. *
  19421. * @static
  19422. * @since 4.0.0
  19423. * @memberOf _
  19424. * @category Util
  19425. * @param {*} [func=_.identity] The value to convert to a callback.
  19426. * @returns {Function} Returns the callback.
  19427. * @example
  19428. *
  19429. * var users = [
  19430. * { 'user': 'barney', 'age': 36, 'active': true },
  19431. * { 'user': 'fred', 'age': 40, 'active': false }
  19432. * ];
  19433. *
  19434. * // The `_.matches` iteratee shorthand.
  19435. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  19436. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  19437. *
  19438. * // The `_.matchesProperty` iteratee shorthand.
  19439. * _.filter(users, _.iteratee(['user', 'fred']));
  19440. * // => [{ 'user': 'fred', 'age': 40 }]
  19441. *
  19442. * // The `_.property` iteratee shorthand.
  19443. * _.map(users, _.iteratee('user'));
  19444. * // => ['barney', 'fred']
  19445. *
  19446. * // Create custom iteratee shorthands.
  19447. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  19448. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  19449. * return func.test(string);
  19450. * };
  19451. * });
  19452. *
  19453. * _.filter(['abc', 'def'], /ef/);
  19454. * // => ['def']
  19455. */
  19456. function iteratee(func) {
  19457. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  19458. }
  19459. /**
  19460. * Creates a function that performs a partial deep comparison between a given
  19461. * object and `source`, returning `true` if the given object has equivalent
  19462. * property values, else `false`.
  19463. *
  19464. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  19465. * partially applied.
  19466. *
  19467. * Partial comparisons will match empty array and empty object `source`
  19468. * values against any array or object value, respectively. See `_.isEqual`
  19469. * for a list of supported value comparisons.
  19470. *
  19471. * @static
  19472. * @memberOf _
  19473. * @since 3.0.0
  19474. * @category Util
  19475. * @param {Object} source The object of property values to match.
  19476. * @returns {Function} Returns the new spec function.
  19477. * @example
  19478. *
  19479. * var objects = [
  19480. * { 'a': 1, 'b': 2, 'c': 3 },
  19481. * { 'a': 4, 'b': 5, 'c': 6 }
  19482. * ];
  19483. *
  19484. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  19485. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  19486. */
  19487. function matches(source) {
  19488. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  19489. }
  19490. /**
  19491. * Creates a function that performs a partial deep comparison between the
  19492. * value at `path` of a given object to `srcValue`, returning `true` if the
  19493. * object value is equivalent, else `false`.
  19494. *
  19495. * **Note:** Partial comparisons will match empty array and empty object
  19496. * `srcValue` values against any array or object value, respectively. See
  19497. * `_.isEqual` for a list of supported value comparisons.
  19498. *
  19499. * @static
  19500. * @memberOf _
  19501. * @since 3.2.0
  19502. * @category Util
  19503. * @param {Array|string} path The path of the property to get.
  19504. * @param {*} srcValue The value to match.
  19505. * @returns {Function} Returns the new spec function.
  19506. * @example
  19507. *
  19508. * var objects = [
  19509. * { 'a': 1, 'b': 2, 'c': 3 },
  19510. * { 'a': 4, 'b': 5, 'c': 6 }
  19511. * ];
  19512. *
  19513. * _.find(objects, _.matchesProperty('a', 4));
  19514. * // => { 'a': 4, 'b': 5, 'c': 6 }
  19515. */
  19516. function matchesProperty(path, srcValue) {
  19517. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  19518. }
  19519. /**
  19520. * Creates a function that invokes the method at `path` of a given object.
  19521. * Any additional arguments are provided to the invoked method.
  19522. *
  19523. * @static
  19524. * @memberOf _
  19525. * @since 3.7.0
  19526. * @category Util
  19527. * @param {Array|string} path The path of the method to invoke.
  19528. * @param {...*} [args] The arguments to invoke the method with.
  19529. * @returns {Function} Returns the new invoker function.
  19530. * @example
  19531. *
  19532. * var objects = [
  19533. * { 'a': { 'b': _.constant(2) } },
  19534. * { 'a': { 'b': _.constant(1) } }
  19535. * ];
  19536. *
  19537. * _.map(objects, _.method('a.b'));
  19538. * // => [2, 1]
  19539. *
  19540. * _.map(objects, _.method(['a', 'b']));
  19541. * // => [2, 1]
  19542. */
  19543. var method = baseRest(function(path, args) {
  19544. return function(object) {
  19545. return baseInvoke(object, path, args);
  19546. };
  19547. });
  19548. /**
  19549. * The opposite of `_.method`; this method creates a function that invokes
  19550. * the method at a given path of `object`. Any additional arguments are
  19551. * provided to the invoked method.
  19552. *
  19553. * @static
  19554. * @memberOf _
  19555. * @since 3.7.0
  19556. * @category Util
  19557. * @param {Object} object The object to query.
  19558. * @param {...*} [args] The arguments to invoke the method with.
  19559. * @returns {Function} Returns the new invoker function.
  19560. * @example
  19561. *
  19562. * var array = _.times(3, _.constant),
  19563. * object = { 'a': array, 'b': array, 'c': array };
  19564. *
  19565. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  19566. * // => [2, 0]
  19567. *
  19568. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  19569. * // => [2, 0]
  19570. */
  19571. var methodOf = baseRest(function(object, args) {
  19572. return function(path) {
  19573. return baseInvoke(object, path, args);
  19574. };
  19575. });
  19576. /**
  19577. * Adds all own enumerable string keyed function properties of a source
  19578. * object to the destination object. If `object` is a function, then methods
  19579. * are added to its prototype as well.
  19580. *
  19581. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  19582. * avoid conflicts caused by modifying the original.
  19583. *
  19584. * @static
  19585. * @since 0.1.0
  19586. * @memberOf _
  19587. * @category Util
  19588. * @param {Function|Object} [object=lodash] The destination object.
  19589. * @param {Object} source The object of functions to add.
  19590. * @param {Object} [options={}] The options object.
  19591. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  19592. * @returns {Function|Object} Returns `object`.
  19593. * @example
  19594. *
  19595. * function vowels(string) {
  19596. * return _.filter(string, function(v) {
  19597. * return /[aeiou]/i.test(v);
  19598. * });
  19599. * }
  19600. *
  19601. * _.mixin({ 'vowels': vowels });
  19602. * _.vowels('fred');
  19603. * // => ['e']
  19604. *
  19605. * _('fred').vowels().value();
  19606. * // => ['e']
  19607. *
  19608. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  19609. * _('fred').vowels();
  19610. * // => ['e']
  19611. */
  19612. function mixin(object, source, options) {
  19613. var props = keys(source),
  19614. methodNames = baseFunctions(source, props);
  19615. if (options == null &&
  19616. !(isObject(source) && (methodNames.length || !props.length))) {
  19617. options = source;
  19618. source = object;
  19619. object = this;
  19620. methodNames = baseFunctions(source, keys(source));
  19621. }
  19622. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  19623. isFunc = isFunction(object);
  19624. arrayEach(methodNames, function(methodName) {
  19625. var func = source[methodName];
  19626. object[methodName] = func;
  19627. if (isFunc) {
  19628. object.prototype[methodName] = function() {
  19629. var chainAll = this.__chain__;
  19630. if (chain || chainAll) {
  19631. var result = object(this.__wrapped__),
  19632. actions = result.__actions__ = copyArray(this.__actions__);
  19633. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  19634. result.__chain__ = chainAll;
  19635. return result;
  19636. }
  19637. return func.apply(object, arrayPush([this.value()], arguments));
  19638. };
  19639. }
  19640. });
  19641. return object;
  19642. }
  19643. /**
  19644. * Reverts the `_` variable to its previous value and returns a reference to
  19645. * the `lodash` function.
  19646. *
  19647. * @static
  19648. * @since 0.1.0
  19649. * @memberOf _
  19650. * @category Util
  19651. * @returns {Function} Returns the `lodash` function.
  19652. * @example
  19653. *
  19654. * var lodash = _.noConflict();
  19655. */
  19656. function noConflict() {
  19657. if (root._ === this) {
  19658. root._ = oldDash;
  19659. }
  19660. return this;
  19661. }
  19662. /**
  19663. * This method returns `undefined`.
  19664. *
  19665. * @static
  19666. * @memberOf _
  19667. * @since 2.3.0
  19668. * @category Util
  19669. * @example
  19670. *
  19671. * _.times(2, _.noop);
  19672. * // => [undefined, undefined]
  19673. */
  19674. function noop() {
  19675. // No operation performed.
  19676. }
  19677. /**
  19678. * Creates a function that gets the argument at index `n`. If `n` is negative,
  19679. * the nth argument from the end is returned.
  19680. *
  19681. * @static
  19682. * @memberOf _
  19683. * @since 4.0.0
  19684. * @category Util
  19685. * @param {number} [n=0] The index of the argument to return.
  19686. * @returns {Function} Returns the new pass-thru function.
  19687. * @example
  19688. *
  19689. * var func = _.nthArg(1);
  19690. * func('a', 'b', 'c', 'd');
  19691. * // => 'b'
  19692. *
  19693. * var func = _.nthArg(-2);
  19694. * func('a', 'b', 'c', 'd');
  19695. * // => 'c'
  19696. */
  19697. function nthArg(n) {
  19698. n = toInteger(n);
  19699. return baseRest(function(args) {
  19700. return baseNth(args, n);
  19701. });
  19702. }
  19703. /**
  19704. * Creates a function that invokes `iteratees` with the arguments it receives
  19705. * and returns their results.
  19706. *
  19707. * @static
  19708. * @memberOf _
  19709. * @since 4.0.0
  19710. * @category Util
  19711. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  19712. * The iteratees to invoke.
  19713. * @returns {Function} Returns the new function.
  19714. * @example
  19715. *
  19716. * var func = _.over([Math.max, Math.min]);
  19717. *
  19718. * func(1, 2, 3, 4);
  19719. * // => [4, 1]
  19720. */
  19721. var over = createOver(arrayMap);
  19722. /**
  19723. * Creates a function that checks if **all** of the `predicates` return
  19724. * truthy when invoked with the arguments it receives.
  19725. *
  19726. * @static
  19727. * @memberOf _
  19728. * @since 4.0.0
  19729. * @category Util
  19730. * @param {...(Function|Function[])} [predicates=[_.identity]]
  19731. * The predicates to check.
  19732. * @returns {Function} Returns the new function.
  19733. * @example
  19734. *
  19735. * var func = _.overEvery([Boolean, isFinite]);
  19736. *
  19737. * func('1');
  19738. * // => true
  19739. *
  19740. * func(null);
  19741. * // => false
  19742. *
  19743. * func(NaN);
  19744. * // => false
  19745. */
  19746. var overEvery = createOver(arrayEvery);
  19747. /**
  19748. * Creates a function that checks if **any** of the `predicates` return
  19749. * truthy when invoked with the arguments it receives.
  19750. *
  19751. * @static
  19752. * @memberOf _
  19753. * @since 4.0.0
  19754. * @category Util
  19755. * @param {...(Function|Function[])} [predicates=[_.identity]]
  19756. * The predicates to check.
  19757. * @returns {Function} Returns the new function.
  19758. * @example
  19759. *
  19760. * var func = _.overSome([Boolean, isFinite]);
  19761. *
  19762. * func('1');
  19763. * // => true
  19764. *
  19765. * func(null);
  19766. * // => true
  19767. *
  19768. * func(NaN);
  19769. * // => false
  19770. */
  19771. var overSome = createOver(arraySome);
  19772. /**
  19773. * Creates a function that returns the value at `path` of a given object.
  19774. *
  19775. * @static
  19776. * @memberOf _
  19777. * @since 2.4.0
  19778. * @category Util
  19779. * @param {Array|string} path The path of the property to get.
  19780. * @returns {Function} Returns the new accessor function.
  19781. * @example
  19782. *
  19783. * var objects = [
  19784. * { 'a': { 'b': 2 } },
  19785. * { 'a': { 'b': 1 } }
  19786. * ];
  19787. *
  19788. * _.map(objects, _.property('a.b'));
  19789. * // => [2, 1]
  19790. *
  19791. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  19792. * // => [1, 2]
  19793. */
  19794. function property(path) {
  19795. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  19796. }
  19797. /**
  19798. * The opposite of `_.property`; this method creates a function that returns
  19799. * the value at a given path of `object`.
  19800. *
  19801. * @static
  19802. * @memberOf _
  19803. * @since 3.0.0
  19804. * @category Util
  19805. * @param {Object} object The object to query.
  19806. * @returns {Function} Returns the new accessor function.
  19807. * @example
  19808. *
  19809. * var array = [0, 1, 2],
  19810. * object = { 'a': array, 'b': array, 'c': array };
  19811. *
  19812. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  19813. * // => [2, 0]
  19814. *
  19815. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  19816. * // => [2, 0]
  19817. */
  19818. function propertyOf(object) {
  19819. return function(path) {
  19820. return object == null ? undefined : baseGet(object, path);
  19821. };
  19822. }
  19823. /**
  19824. * Creates an array of numbers (positive and/or negative) progressing from
  19825. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  19826. * `start` is specified without an `end` or `step`. If `end` is not specified,
  19827. * it's set to `start` with `start` then set to `0`.
  19828. *
  19829. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  19830. * floating-point values which can produce unexpected results.
  19831. *
  19832. * @static
  19833. * @since 0.1.0
  19834. * @memberOf _
  19835. * @category Util
  19836. * @param {number} [start=0] The start of the range.
  19837. * @param {number} end The end of the range.
  19838. * @param {number} [step=1] The value to increment or decrement by.
  19839. * @returns {Array} Returns the range of numbers.
  19840. * @see _.inRange, _.rangeRight
  19841. * @example
  19842. *
  19843. * _.range(4);
  19844. * // => [0, 1, 2, 3]
  19845. *
  19846. * _.range(-4);
  19847. * // => [0, -1, -2, -3]
  19848. *
  19849. * _.range(1, 5);
  19850. * // => [1, 2, 3, 4]
  19851. *
  19852. * _.range(0, 20, 5);
  19853. * // => [0, 5, 10, 15]
  19854. *
  19855. * _.range(0, -4, -1);
  19856. * // => [0, -1, -2, -3]
  19857. *
  19858. * _.range(1, 4, 0);
  19859. * // => [1, 1, 1]
  19860. *
  19861. * _.range(0);
  19862. * // => []
  19863. */
  19864. var range = createRange();
  19865. /**
  19866. * This method is like `_.range` except that it populates values in
  19867. * descending order.
  19868. *
  19869. * @static
  19870. * @memberOf _
  19871. * @since 4.0.0
  19872. * @category Util
  19873. * @param {number} [start=0] The start of the range.
  19874. * @param {number} end The end of the range.
  19875. * @param {number} [step=1] The value to increment or decrement by.
  19876. * @returns {Array} Returns the range of numbers.
  19877. * @see _.inRange, _.range
  19878. * @example
  19879. *
  19880. * _.rangeRight(4);
  19881. * // => [3, 2, 1, 0]
  19882. *
  19883. * _.rangeRight(-4);
  19884. * // => [-3, -2, -1, 0]
  19885. *
  19886. * _.rangeRight(1, 5);
  19887. * // => [4, 3, 2, 1]
  19888. *
  19889. * _.rangeRight(0, 20, 5);
  19890. * // => [15, 10, 5, 0]
  19891. *
  19892. * _.rangeRight(0, -4, -1);
  19893. * // => [-3, -2, -1, 0]
  19894. *
  19895. * _.rangeRight(1, 4, 0);
  19896. * // => [1, 1, 1]
  19897. *
  19898. * _.rangeRight(0);
  19899. * // => []
  19900. */
  19901. var rangeRight = createRange(true);
  19902. /**
  19903. * This method returns a new empty array.
  19904. *
  19905. * @static
  19906. * @memberOf _
  19907. * @since 4.13.0
  19908. * @category Util
  19909. * @returns {Array} Returns the new empty array.
  19910. * @example
  19911. *
  19912. * var arrays = _.times(2, _.stubArray);
  19913. *
  19914. * console.log(arrays);
  19915. * // => [[], []]
  19916. *
  19917. * console.log(arrays[0] === arrays[1]);
  19918. * // => false
  19919. */
  19920. function stubArray() {
  19921. return [];
  19922. }
  19923. /**
  19924. * This method returns `false`.
  19925. *
  19926. * @static
  19927. * @memberOf _
  19928. * @since 4.13.0
  19929. * @category Util
  19930. * @returns {boolean} Returns `false`.
  19931. * @example
  19932. *
  19933. * _.times(2, _.stubFalse);
  19934. * // => [false, false]
  19935. */
  19936. function stubFalse() {
  19937. return false;
  19938. }
  19939. /**
  19940. * This method returns a new empty object.
  19941. *
  19942. * @static
  19943. * @memberOf _
  19944. * @since 4.13.0
  19945. * @category Util
  19946. * @returns {Object} Returns the new empty object.
  19947. * @example
  19948. *
  19949. * var objects = _.times(2, _.stubObject);
  19950. *
  19951. * console.log(objects);
  19952. * // => [{}, {}]
  19953. *
  19954. * console.log(objects[0] === objects[1]);
  19955. * // => false
  19956. */
  19957. function stubObject() {
  19958. return {};
  19959. }
  19960. /**
  19961. * This method returns an empty string.
  19962. *
  19963. * @static
  19964. * @memberOf _
  19965. * @since 4.13.0
  19966. * @category Util
  19967. * @returns {string} Returns the empty string.
  19968. * @example
  19969. *
  19970. * _.times(2, _.stubString);
  19971. * // => ['', '']
  19972. */
  19973. function stubString() {
  19974. return '';
  19975. }
  19976. /**
  19977. * This method returns `true`.
  19978. *
  19979. * @static
  19980. * @memberOf _
  19981. * @since 4.13.0
  19982. * @category Util
  19983. * @returns {boolean} Returns `true`.
  19984. * @example
  19985. *
  19986. * _.times(2, _.stubTrue);
  19987. * // => [true, true]
  19988. */
  19989. function stubTrue() {
  19990. return true;
  19991. }
  19992. /**
  19993. * Invokes the iteratee `n` times, returning an array of the results of
  19994. * each invocation. The iteratee is invoked with one argument; (index).
  19995. *
  19996. * @static
  19997. * @since 0.1.0
  19998. * @memberOf _
  19999. * @category Util
  20000. * @param {number} n The number of times to invoke `iteratee`.
  20001. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20002. * @returns {Array} Returns the array of results.
  20003. * @example
  20004. *
  20005. * _.times(3, String);
  20006. * // => ['0', '1', '2']
  20007. *
  20008. * _.times(4, _.constant(0));
  20009. * // => [0, 0, 0, 0]
  20010. */
  20011. function times(n, iteratee) {
  20012. n = toInteger(n);
  20013. if (n < 1 || n > MAX_SAFE_INTEGER) {
  20014. return [];
  20015. }
  20016. var index = MAX_ARRAY_LENGTH,
  20017. length = nativeMin(n, MAX_ARRAY_LENGTH);
  20018. iteratee = getIteratee(iteratee);
  20019. n -= MAX_ARRAY_LENGTH;
  20020. var result = baseTimes(length, iteratee);
  20021. while (++index < n) {
  20022. iteratee(index);
  20023. }
  20024. return result;
  20025. }
  20026. /**
  20027. * Converts `value` to a property path array.
  20028. *
  20029. * @static
  20030. * @memberOf _
  20031. * @since 4.0.0
  20032. * @category Util
  20033. * @param {*} value The value to convert.
  20034. * @returns {Array} Returns the new property path array.
  20035. * @example
  20036. *
  20037. * _.toPath('a.b.c');
  20038. * // => ['a', 'b', 'c']
  20039. *
  20040. * _.toPath('a[0].b.c');
  20041. * // => ['a', '0', 'b', 'c']
  20042. */
  20043. function toPath(value) {
  20044. if (isArray(value)) {
  20045. return arrayMap(value, toKey);
  20046. }
  20047. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  20048. }
  20049. /**
  20050. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  20051. *
  20052. * @static
  20053. * @since 0.1.0
  20054. * @memberOf _
  20055. * @category Util
  20056. * @param {string} [prefix=''] The value to prefix the ID with.
  20057. * @returns {string} Returns the unique ID.
  20058. * @example
  20059. *
  20060. * _.uniqueId('contact_');
  20061. * // => 'contact_104'
  20062. *
  20063. * _.uniqueId();
  20064. * // => '105'
  20065. */
  20066. function uniqueId(prefix) {
  20067. var id = ++idCounter;
  20068. return toString(prefix) + id;
  20069. }
  20070. /*------------------------------------------------------------------------*/
  20071. /**
  20072. * Adds two numbers.
  20073. *
  20074. * @static
  20075. * @memberOf _
  20076. * @since 3.4.0
  20077. * @category Math
  20078. * @param {number} augend The first number in an addition.
  20079. * @param {number} addend The second number in an addition.
  20080. * @returns {number} Returns the total.
  20081. * @example
  20082. *
  20083. * _.add(6, 4);
  20084. * // => 10
  20085. */
  20086. var add = createMathOperation(function(augend, addend) {
  20087. return augend + addend;
  20088. }, 0);
  20089. /**
  20090. * Computes `number` rounded up to `precision`.
  20091. *
  20092. * @static
  20093. * @memberOf _
  20094. * @since 3.10.0
  20095. * @category Math
  20096. * @param {number} number The number to round up.
  20097. * @param {number} [precision=0] The precision to round up to.
  20098. * @returns {number} Returns the rounded up number.
  20099. * @example
  20100. *
  20101. * _.ceil(4.006);
  20102. * // => 5
  20103. *
  20104. * _.ceil(6.004, 2);
  20105. * // => 6.01
  20106. *
  20107. * _.ceil(6040, -2);
  20108. * // => 6100
  20109. */
  20110. var ceil = createRound('ceil');
  20111. /**
  20112. * Divide two numbers.
  20113. *
  20114. * @static
  20115. * @memberOf _
  20116. * @since 4.7.0
  20117. * @category Math
  20118. * @param {number} dividend The first number in a division.
  20119. * @param {number} divisor The second number in a division.
  20120. * @returns {number} Returns the quotient.
  20121. * @example
  20122. *
  20123. * _.divide(6, 4);
  20124. * // => 1.5
  20125. */
  20126. var divide = createMathOperation(function(dividend, divisor) {
  20127. return dividend / divisor;
  20128. }, 1);
  20129. /**
  20130. * Computes `number` rounded down to `precision`.
  20131. *
  20132. * @static
  20133. * @memberOf _
  20134. * @since 3.10.0
  20135. * @category Math
  20136. * @param {number} number The number to round down.
  20137. * @param {number} [precision=0] The precision to round down to.
  20138. * @returns {number} Returns the rounded down number.
  20139. * @example
  20140. *
  20141. * _.floor(4.006);
  20142. * // => 4
  20143. *
  20144. * _.floor(0.046, 2);
  20145. * // => 0.04
  20146. *
  20147. * _.floor(4060, -2);
  20148. * // => 4000
  20149. */
  20150. var floor = createRound('floor');
  20151. /**
  20152. * Computes the maximum value of `array`. If `array` is empty or falsey,
  20153. * `undefined` is returned.
  20154. *
  20155. * @static
  20156. * @since 0.1.0
  20157. * @memberOf _
  20158. * @category Math
  20159. * @param {Array} array The array to iterate over.
  20160. * @returns {*} Returns the maximum value.
  20161. * @example
  20162. *
  20163. * _.max([4, 2, 8, 6]);
  20164. * // => 8
  20165. *
  20166. * _.max([]);
  20167. * // => undefined
  20168. */
  20169. function max(array) {
  20170. return (array && array.length)
  20171. ? baseExtremum(array, identity, baseGt)
  20172. : undefined;
  20173. }
  20174. /**
  20175. * This method is like `_.max` except that it accepts `iteratee` which is
  20176. * invoked for each element in `array` to generate the criterion by which
  20177. * the value is ranked. The iteratee is invoked with one argument: (value).
  20178. *
  20179. * @static
  20180. * @memberOf _
  20181. * @since 4.0.0
  20182. * @category Math
  20183. * @param {Array} array The array to iterate over.
  20184. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20185. * @returns {*} Returns the maximum value.
  20186. * @example
  20187. *
  20188. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  20189. *
  20190. * _.maxBy(objects, function(o) { return o.n; });
  20191. * // => { 'n': 2 }
  20192. *
  20193. * // The `_.property` iteratee shorthand.
  20194. * _.maxBy(objects, 'n');
  20195. * // => { 'n': 2 }
  20196. */
  20197. function maxBy(array, iteratee) {
  20198. return (array && array.length)
  20199. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  20200. : undefined;
  20201. }
  20202. /**
  20203. * Computes the mean of the values in `array`.
  20204. *
  20205. * @static
  20206. * @memberOf _
  20207. * @since 4.0.0
  20208. * @category Math
  20209. * @param {Array} array The array to iterate over.
  20210. * @returns {number} Returns the mean.
  20211. * @example
  20212. *
  20213. * _.mean([4, 2, 8, 6]);
  20214. * // => 5
  20215. */
  20216. function mean(array) {
  20217. return baseMean(array, identity);
  20218. }
  20219. /**
  20220. * This method is like `_.mean` except that it accepts `iteratee` which is
  20221. * invoked for each element in `array` to generate the value to be averaged.
  20222. * The iteratee is invoked with one argument: (value).
  20223. *
  20224. * @static
  20225. * @memberOf _
  20226. * @since 4.7.0
  20227. * @category Math
  20228. * @param {Array} array The array to iterate over.
  20229. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20230. * @returns {number} Returns the mean.
  20231. * @example
  20232. *
  20233. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  20234. *
  20235. * _.meanBy(objects, function(o) { return o.n; });
  20236. * // => 5
  20237. *
  20238. * // The `_.property` iteratee shorthand.
  20239. * _.meanBy(objects, 'n');
  20240. * // => 5
  20241. */
  20242. function meanBy(array, iteratee) {
  20243. return baseMean(array, getIteratee(iteratee, 2));
  20244. }
  20245. /**
  20246. * Computes the minimum value of `array`. If `array` is empty or falsey,
  20247. * `undefined` is returned.
  20248. *
  20249. * @static
  20250. * @since 0.1.0
  20251. * @memberOf _
  20252. * @category Math
  20253. * @param {Array} array The array to iterate over.
  20254. * @returns {*} Returns the minimum value.
  20255. * @example
  20256. *
  20257. * _.min([4, 2, 8, 6]);
  20258. * // => 2
  20259. *
  20260. * _.min([]);
  20261. * // => undefined
  20262. */
  20263. function min(array) {
  20264. return (array && array.length)
  20265. ? baseExtremum(array, identity, baseLt)
  20266. : undefined;
  20267. }
  20268. /**
  20269. * This method is like `_.min` except that it accepts `iteratee` which is
  20270. * invoked for each element in `array` to generate the criterion by which
  20271. * the value is ranked. The iteratee is invoked with one argument: (value).
  20272. *
  20273. * @static
  20274. * @memberOf _
  20275. * @since 4.0.0
  20276. * @category Math
  20277. * @param {Array} array The array to iterate over.
  20278. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20279. * @returns {*} Returns the minimum value.
  20280. * @example
  20281. *
  20282. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  20283. *
  20284. * _.minBy(objects, function(o) { return o.n; });
  20285. * // => { 'n': 1 }
  20286. *
  20287. * // The `_.property` iteratee shorthand.
  20288. * _.minBy(objects, 'n');
  20289. * // => { 'n': 1 }
  20290. */
  20291. function minBy(array, iteratee) {
  20292. return (array && array.length)
  20293. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  20294. : undefined;
  20295. }
  20296. /**
  20297. * Multiply two numbers.
  20298. *
  20299. * @static
  20300. * @memberOf _
  20301. * @since 4.7.0
  20302. * @category Math
  20303. * @param {number} multiplier The first number in a multiplication.
  20304. * @param {number} multiplicand The second number in a multiplication.
  20305. * @returns {number} Returns the product.
  20306. * @example
  20307. *
  20308. * _.multiply(6, 4);
  20309. * // => 24
  20310. */
  20311. var multiply = createMathOperation(function(multiplier, multiplicand) {
  20312. return multiplier * multiplicand;
  20313. }, 1);
  20314. /**
  20315. * Computes `number` rounded to `precision`.
  20316. *
  20317. * @static
  20318. * @memberOf _
  20319. * @since 3.10.0
  20320. * @category Math
  20321. * @param {number} number The number to round.
  20322. * @param {number} [precision=0] The precision to round to.
  20323. * @returns {number} Returns the rounded number.
  20324. * @example
  20325. *
  20326. * _.round(4.006);
  20327. * // => 4
  20328. *
  20329. * _.round(4.006, 2);
  20330. * // => 4.01
  20331. *
  20332. * _.round(4060, -2);
  20333. * // => 4100
  20334. */
  20335. var round = createRound('round');
  20336. /**
  20337. * Subtract two numbers.
  20338. *
  20339. * @static
  20340. * @memberOf _
  20341. * @since 4.0.0
  20342. * @category Math
  20343. * @param {number} minuend The first number in a subtraction.
  20344. * @param {number} subtrahend The second number in a subtraction.
  20345. * @returns {number} Returns the difference.
  20346. * @example
  20347. *
  20348. * _.subtract(6, 4);
  20349. * // => 2
  20350. */
  20351. var subtract = createMathOperation(function(minuend, subtrahend) {
  20352. return minuend - subtrahend;
  20353. }, 0);
  20354. /**
  20355. * Computes the sum of the values in `array`.
  20356. *
  20357. * @static
  20358. * @memberOf _
  20359. * @since 3.4.0
  20360. * @category Math
  20361. * @param {Array} array The array to iterate over.
  20362. * @returns {number} Returns the sum.
  20363. * @example
  20364. *
  20365. * _.sum([4, 2, 8, 6]);
  20366. * // => 20
  20367. */
  20368. function sum(array) {
  20369. return (array && array.length)
  20370. ? baseSum(array, identity)
  20371. : 0;
  20372. }
  20373. /**
  20374. * This method is like `_.sum` except that it accepts `iteratee` which is
  20375. * invoked for each element in `array` to generate the value to be summed.
  20376. * The iteratee is invoked with one argument: (value).
  20377. *
  20378. * @static
  20379. * @memberOf _
  20380. * @since 4.0.0
  20381. * @category Math
  20382. * @param {Array} array The array to iterate over.
  20383. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20384. * @returns {number} Returns the sum.
  20385. * @example
  20386. *
  20387. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  20388. *
  20389. * _.sumBy(objects, function(o) { return o.n; });
  20390. * // => 20
  20391. *
  20392. * // The `_.property` iteratee shorthand.
  20393. * _.sumBy(objects, 'n');
  20394. * // => 20
  20395. */
  20396. function sumBy(array, iteratee) {
  20397. return (array && array.length)
  20398. ? baseSum(array, getIteratee(iteratee, 2))
  20399. : 0;
  20400. }
  20401. /*------------------------------------------------------------------------*/
  20402. // Add methods that return wrapped values in chain sequences.
  20403. lodash.after = after;
  20404. lodash.ary = ary;
  20405. lodash.assign = assign;
  20406. lodash.assignIn = assignIn;
  20407. lodash.assignInWith = assignInWith;
  20408. lodash.assignWith = assignWith;
  20409. lodash.at = at;
  20410. lodash.before = before;
  20411. lodash.bind = bind;
  20412. lodash.bindAll = bindAll;
  20413. lodash.bindKey = bindKey;
  20414. lodash.castArray = castArray;
  20415. lodash.chain = chain;
  20416. lodash.chunk = chunk;
  20417. lodash.compact = compact;
  20418. lodash.concat = concat;
  20419. lodash.cond = cond;
  20420. lodash.conforms = conforms;
  20421. lodash.constant = constant;
  20422. lodash.countBy = countBy;
  20423. lodash.create = create;
  20424. lodash.curry = curry;
  20425. lodash.curryRight = curryRight;
  20426. lodash.debounce = debounce;
  20427. lodash.defaults = defaults;
  20428. lodash.defaultsDeep = defaultsDeep;
  20429. lodash.defer = defer;
  20430. lodash.delay = delay;
  20431. lodash.difference = difference;
  20432. lodash.differenceBy = differenceBy;
  20433. lodash.differenceWith = differenceWith;
  20434. lodash.drop = drop;
  20435. lodash.dropRight = dropRight;
  20436. lodash.dropRightWhile = dropRightWhile;
  20437. lodash.dropWhile = dropWhile;
  20438. lodash.fill = fill;
  20439. lodash.filter = filter;
  20440. lodash.flatMap = flatMap;
  20441. lodash.flatMapDeep = flatMapDeep;
  20442. lodash.flatMapDepth = flatMapDepth;
  20443. lodash.flatten = flatten;
  20444. lodash.flattenDeep = flattenDeep;
  20445. lodash.flattenDepth = flattenDepth;
  20446. lodash.flip = flip;
  20447. lodash.flow = flow;
  20448. lodash.flowRight = flowRight;
  20449. lodash.fromPairs = fromPairs;
  20450. lodash.functions = functions;
  20451. lodash.functionsIn = functionsIn;
  20452. lodash.groupBy = groupBy;
  20453. lodash.initial = initial;
  20454. lodash.intersection = intersection;
  20455. lodash.intersectionBy = intersectionBy;
  20456. lodash.intersectionWith = intersectionWith;
  20457. lodash.invert = invert;
  20458. lodash.invertBy = invertBy;
  20459. lodash.invokeMap = invokeMap;
  20460. lodash.iteratee = iteratee;
  20461. lodash.keyBy = keyBy;
  20462. lodash.keys = keys;
  20463. lodash.keysIn = keysIn;
  20464. lodash.map = map;
  20465. lodash.mapKeys = mapKeys;
  20466. lodash.mapValues = mapValues;
  20467. lodash.matches = matches;
  20468. lodash.matchesProperty = matchesProperty;
  20469. lodash.memoize = memoize;
  20470. lodash.merge = merge;
  20471. lodash.mergeWith = mergeWith;
  20472. lodash.method = method;
  20473. lodash.methodOf = methodOf;
  20474. lodash.mixin = mixin;
  20475. lodash.negate = negate;
  20476. lodash.nthArg = nthArg;
  20477. lodash.omit = omit;
  20478. lodash.omitBy = omitBy;
  20479. lodash.once = once;
  20480. lodash.orderBy = orderBy;
  20481. lodash.over = over;
  20482. lodash.overArgs = overArgs;
  20483. lodash.overEvery = overEvery;
  20484. lodash.overSome = overSome;
  20485. lodash.partial = partial;
  20486. lodash.partialRight = partialRight;
  20487. lodash.partition = partition;
  20488. lodash.pick = pick;
  20489. lodash.pickBy = pickBy;
  20490. lodash.property = property;
  20491. lodash.propertyOf = propertyOf;
  20492. lodash.pull = pull;
  20493. lodash.pullAll = pullAll;
  20494. lodash.pullAllBy = pullAllBy;
  20495. lodash.pullAllWith = pullAllWith;
  20496. lodash.pullAt = pullAt;
  20497. lodash.range = range;
  20498. lodash.rangeRight = rangeRight;
  20499. lodash.rearg = rearg;
  20500. lodash.reject = reject;
  20501. lodash.remove = remove;
  20502. lodash.rest = rest;
  20503. lodash.reverse = reverse;
  20504. lodash.sampleSize = sampleSize;
  20505. lodash.set = set;
  20506. lodash.setWith = setWith;
  20507. lodash.shuffle = shuffle;
  20508. lodash.slice = slice;
  20509. lodash.sortBy = sortBy;
  20510. lodash.sortedUniq = sortedUniq;
  20511. lodash.sortedUniqBy = sortedUniqBy;
  20512. lodash.split = split;
  20513. lodash.spread = spread;
  20514. lodash.tail = tail;
  20515. lodash.take = take;
  20516. lodash.takeRight = takeRight;
  20517. lodash.takeRightWhile = takeRightWhile;
  20518. lodash.takeWhile = takeWhile;
  20519. lodash.tap = tap;
  20520. lodash.throttle = throttle;
  20521. lodash.thru = thru;
  20522. lodash.toArray = toArray;
  20523. lodash.toPairs = toPairs;
  20524. lodash.toPairsIn = toPairsIn;
  20525. lodash.toPath = toPath;
  20526. lodash.toPlainObject = toPlainObject;
  20527. lodash.transform = transform;
  20528. lodash.unary = unary;
  20529. lodash.union = union;
  20530. lodash.unionBy = unionBy;
  20531. lodash.unionWith = unionWith;
  20532. lodash.uniq = uniq;
  20533. lodash.uniqBy = uniqBy;
  20534. lodash.uniqWith = uniqWith;
  20535. lodash.unset = unset;
  20536. lodash.unzip = unzip;
  20537. lodash.unzipWith = unzipWith;
  20538. lodash.update = update;
  20539. lodash.updateWith = updateWith;
  20540. lodash.values = values;
  20541. lodash.valuesIn = valuesIn;
  20542. lodash.without = without;
  20543. lodash.words = words;
  20544. lodash.wrap = wrap;
  20545. lodash.xor = xor;
  20546. lodash.xorBy = xorBy;
  20547. lodash.xorWith = xorWith;
  20548. lodash.zip = zip;
  20549. lodash.zipObject = zipObject;
  20550. lodash.zipObjectDeep = zipObjectDeep;
  20551. lodash.zipWith = zipWith;
  20552. // Add aliases.
  20553. lodash.entries = toPairs;
  20554. lodash.entriesIn = toPairsIn;
  20555. lodash.extend = assignIn;
  20556. lodash.extendWith = assignInWith;
  20557. // Add methods to `lodash.prototype`.
  20558. mixin(lodash, lodash);
  20559. /*------------------------------------------------------------------------*/
  20560. // Add methods that return unwrapped values in chain sequences.
  20561. lodash.add = add;
  20562. lodash.attempt = attempt;
  20563. lodash.camelCase = camelCase;
  20564. lodash.capitalize = capitalize;
  20565. lodash.ceil = ceil;
  20566. lodash.clamp = clamp;
  20567. lodash.clone = clone;
  20568. lodash.cloneDeep = cloneDeep;
  20569. lodash.cloneDeepWith = cloneDeepWith;
  20570. lodash.cloneWith = cloneWith;
  20571. lodash.conformsTo = conformsTo;
  20572. lodash.deburr = deburr;
  20573. lodash.defaultTo = defaultTo;
  20574. lodash.divide = divide;
  20575. lodash.endsWith = endsWith;
  20576. lodash.eq = eq;
  20577. lodash.escape = escape;
  20578. lodash.escapeRegExp = escapeRegExp;
  20579. lodash.every = every;
  20580. lodash.find = find;
  20581. lodash.findIndex = findIndex;
  20582. lodash.findKey = findKey;
  20583. lodash.findLast = findLast;
  20584. lodash.findLastIndex = findLastIndex;
  20585. lodash.findLastKey = findLastKey;
  20586. lodash.floor = floor;
  20587. lodash.forEach = forEach;
  20588. lodash.forEachRight = forEachRight;
  20589. lodash.forIn = forIn;
  20590. lodash.forInRight = forInRight;
  20591. lodash.forOwn = forOwn;
  20592. lodash.forOwnRight = forOwnRight;
  20593. lodash.get = get;
  20594. lodash.gt = gt;
  20595. lodash.gte = gte;
  20596. lodash.has = has;
  20597. lodash.hasIn = hasIn;
  20598. lodash.head = head;
  20599. lodash.identity = identity;
  20600. lodash.includes = includes;
  20601. lodash.indexOf = indexOf;
  20602. lodash.inRange = inRange;
  20603. lodash.invoke = invoke;
  20604. lodash.isArguments = isArguments;
  20605. lodash.isArray = isArray;
  20606. lodash.isArrayBuffer = isArrayBuffer;
  20607. lodash.isArrayLike = isArrayLike;
  20608. lodash.isArrayLikeObject = isArrayLikeObject;
  20609. lodash.isBoolean = isBoolean;
  20610. lodash.isBuffer = isBuffer;
  20611. lodash.isDate = isDate;
  20612. lodash.isElement = isElement;
  20613. lodash.isEmpty = isEmpty;
  20614. lodash.isEqual = isEqual;
  20615. lodash.isEqualWith = isEqualWith;
  20616. lodash.isError = isError;
  20617. lodash.isFinite = isFinite;
  20618. lodash.isFunction = isFunction;
  20619. lodash.isInteger = isInteger;
  20620. lodash.isLength = isLength;
  20621. lodash.isMap = isMap;
  20622. lodash.isMatch = isMatch;
  20623. lodash.isMatchWith = isMatchWith;
  20624. lodash.isNaN = isNaN;
  20625. lodash.isNative = isNative;
  20626. lodash.isNil = isNil;
  20627. lodash.isNull = isNull;
  20628. lodash.isNumber = isNumber;
  20629. lodash.isObject = isObject;
  20630. lodash.isObjectLike = isObjectLike;
  20631. lodash.isPlainObject = isPlainObject;
  20632. lodash.isRegExp = isRegExp;
  20633. lodash.isSafeInteger = isSafeInteger;
  20634. lodash.isSet = isSet;
  20635. lodash.isString = isString;
  20636. lodash.isSymbol = isSymbol;
  20637. lodash.isTypedArray = isTypedArray;
  20638. lodash.isUndefined = isUndefined;
  20639. lodash.isWeakMap = isWeakMap;
  20640. lodash.isWeakSet = isWeakSet;
  20641. lodash.join = join;
  20642. lodash.kebabCase = kebabCase;
  20643. lodash.last = last;
  20644. lodash.lastIndexOf = lastIndexOf;
  20645. lodash.lowerCase = lowerCase;
  20646. lodash.lowerFirst = lowerFirst;
  20647. lodash.lt = lt;
  20648. lodash.lte = lte;
  20649. lodash.max = max;
  20650. lodash.maxBy = maxBy;
  20651. lodash.mean = mean;
  20652. lodash.meanBy = meanBy;
  20653. lodash.min = min;
  20654. lodash.minBy = minBy;
  20655. lodash.stubArray = stubArray;
  20656. lodash.stubFalse = stubFalse;
  20657. lodash.stubObject = stubObject;
  20658. lodash.stubString = stubString;
  20659. lodash.stubTrue = stubTrue;
  20660. lodash.multiply = multiply;
  20661. lodash.nth = nth;
  20662. lodash.noConflict = noConflict;
  20663. lodash.noop = noop;
  20664. lodash.now = now;
  20665. lodash.pad = pad;
  20666. lodash.padEnd = padEnd;
  20667. lodash.padStart = padStart;
  20668. lodash.parseInt = parseInt;
  20669. lodash.random = random;
  20670. lodash.reduce = reduce;
  20671. lodash.reduceRight = reduceRight;
  20672. lodash.repeat = repeat;
  20673. lodash.replace = replace;
  20674. lodash.result = result;
  20675. lodash.round = round;
  20676. lodash.runInContext = runInContext;
  20677. lodash.sample = sample;
  20678. lodash.size = size;
  20679. lodash.snakeCase = snakeCase;
  20680. lodash.some = some;
  20681. lodash.sortedIndex = sortedIndex;
  20682. lodash.sortedIndexBy = sortedIndexBy;
  20683. lodash.sortedIndexOf = sortedIndexOf;
  20684. lodash.sortedLastIndex = sortedLastIndex;
  20685. lodash.sortedLastIndexBy = sortedLastIndexBy;
  20686. lodash.sortedLastIndexOf = sortedLastIndexOf;
  20687. lodash.startCase = startCase;
  20688. lodash.startsWith = startsWith;
  20689. lodash.subtract = subtract;
  20690. lodash.sum = sum;
  20691. lodash.sumBy = sumBy;
  20692. lodash.template = template;
  20693. lodash.times = times;
  20694. lodash.toFinite = toFinite;
  20695. lodash.toInteger = toInteger;
  20696. lodash.toLength = toLength;
  20697. lodash.toLower = toLower;
  20698. lodash.toNumber = toNumber;
  20699. lodash.toSafeInteger = toSafeInteger;
  20700. lodash.toString = toString;
  20701. lodash.toUpper = toUpper;
  20702. lodash.trim = trim;
  20703. lodash.trimEnd = trimEnd;
  20704. lodash.trimStart = trimStart;
  20705. lodash.truncate = truncate;
  20706. lodash.unescape = unescape;
  20707. lodash.uniqueId = uniqueId;
  20708. lodash.upperCase = upperCase;
  20709. lodash.upperFirst = upperFirst;
  20710. // Add aliases.
  20711. lodash.each = forEach;
  20712. lodash.eachRight = forEachRight;
  20713. lodash.first = head;
  20714. mixin(lodash, (function() {
  20715. var source = {};
  20716. baseForOwn(lodash, function(func, methodName) {
  20717. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  20718. source[methodName] = func;
  20719. }
  20720. });
  20721. return source;
  20722. }()), { 'chain': false });
  20723. /*------------------------------------------------------------------------*/
  20724. /**
  20725. * The semantic version number.
  20726. *
  20727. * @static
  20728. * @memberOf _
  20729. * @type {string}
  20730. */
  20731. lodash.VERSION = VERSION;
  20732. // Assign default placeholders.
  20733. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  20734. lodash[methodName].placeholder = lodash;
  20735. });
  20736. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  20737. arrayEach(['drop', 'take'], function(methodName, index) {
  20738. LazyWrapper.prototype[methodName] = function(n) {
  20739. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  20740. var result = (this.__filtered__ && !index)
  20741. ? new LazyWrapper(this)
  20742. : this.clone();
  20743. if (result.__filtered__) {
  20744. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  20745. } else {
  20746. result.__views__.push({
  20747. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  20748. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  20749. });
  20750. }
  20751. return result;
  20752. };
  20753. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  20754. return this.reverse()[methodName](n).reverse();
  20755. };
  20756. });
  20757. // Add `LazyWrapper` methods that accept an `iteratee` value.
  20758. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  20759. var type = index + 1,
  20760. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  20761. LazyWrapper.prototype[methodName] = function(iteratee) {
  20762. var result = this.clone();
  20763. result.__iteratees__.push({
  20764. 'iteratee': getIteratee(iteratee, 3),
  20765. 'type': type
  20766. });
  20767. result.__filtered__ = result.__filtered__ || isFilter;
  20768. return result;
  20769. };
  20770. });
  20771. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  20772. arrayEach(['head', 'last'], function(methodName, index) {
  20773. var takeName = 'take' + (index ? 'Right' : '');
  20774. LazyWrapper.prototype[methodName] = function() {
  20775. return this[takeName](1).value()[0];
  20776. };
  20777. });
  20778. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  20779. arrayEach(['initial', 'tail'], function(methodName, index) {
  20780. var dropName = 'drop' + (index ? '' : 'Right');
  20781. LazyWrapper.prototype[methodName] = function() {
  20782. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  20783. };
  20784. });
  20785. LazyWrapper.prototype.compact = function() {
  20786. return this.filter(identity);
  20787. };
  20788. LazyWrapper.prototype.find = function(predicate) {
  20789. return this.filter(predicate).head();
  20790. };
  20791. LazyWrapper.prototype.findLast = function(predicate) {
  20792. return this.reverse().find(predicate);
  20793. };
  20794. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  20795. if (typeof path == 'function') {
  20796. return new LazyWrapper(this);
  20797. }
  20798. return this.map(function(value) {
  20799. return baseInvoke(value, path, args);
  20800. });
  20801. });
  20802. LazyWrapper.prototype.reject = function(predicate) {
  20803. return this.filter(negate(getIteratee(predicate)));
  20804. };
  20805. LazyWrapper.prototype.slice = function(start, end) {
  20806. start = toInteger(start);
  20807. var result = this;
  20808. if (result.__filtered__ && (start > 0 || end < 0)) {
  20809. return new LazyWrapper(result);
  20810. }
  20811. if (start < 0) {
  20812. result = result.takeRight(-start);
  20813. } else if (start) {
  20814. result = result.drop(start);
  20815. }
  20816. if (end !== undefined) {
  20817. end = toInteger(end);
  20818. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  20819. }
  20820. return result;
  20821. };
  20822. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  20823. return this.reverse().takeWhile(predicate).reverse();
  20824. };
  20825. LazyWrapper.prototype.toArray = function() {
  20826. return this.take(MAX_ARRAY_LENGTH);
  20827. };
  20828. // Add `LazyWrapper` methods to `lodash.prototype`.
  20829. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  20830. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  20831. isTaker = /^(?:head|last)$/.test(methodName),
  20832. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  20833. retUnwrapped = isTaker || /^find/.test(methodName);
  20834. if (!lodashFunc) {
  20835. return;
  20836. }
  20837. lodash.prototype[methodName] = function() {
  20838. var value = this.__wrapped__,
  20839. args = isTaker ? [1] : arguments,
  20840. isLazy = value instanceof LazyWrapper,
  20841. iteratee = args[0],
  20842. useLazy = isLazy || isArray(value);
  20843. var interceptor = function(value) {
  20844. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  20845. return (isTaker && chainAll) ? result[0] : result;
  20846. };
  20847. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  20848. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  20849. isLazy = useLazy = false;
  20850. }
  20851. var chainAll = this.__chain__,
  20852. isHybrid = !!this.__actions__.length,
  20853. isUnwrapped = retUnwrapped && !chainAll,
  20854. onlyLazy = isLazy && !isHybrid;
  20855. if (!retUnwrapped && useLazy) {
  20856. value = onlyLazy ? value : new LazyWrapper(this);
  20857. var result = func.apply(value, args);
  20858. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  20859. return new LodashWrapper(result, chainAll);
  20860. }
  20861. if (isUnwrapped && onlyLazy) {
  20862. return func.apply(this, args);
  20863. }
  20864. result = this.thru(interceptor);
  20865. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  20866. };
  20867. });
  20868. // Add `Array` methods to `lodash.prototype`.
  20869. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  20870. var func = arrayProto[methodName],
  20871. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  20872. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  20873. lodash.prototype[methodName] = function() {
  20874. var args = arguments;
  20875. if (retUnwrapped && !this.__chain__) {
  20876. var value = this.value();
  20877. return func.apply(isArray(value) ? value : [], args);
  20878. }
  20879. return this[chainName](function(value) {
  20880. return func.apply(isArray(value) ? value : [], args);
  20881. });
  20882. };
  20883. });
  20884. // Map minified method names to their real names.
  20885. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  20886. var lodashFunc = lodash[methodName];
  20887. if (lodashFunc) {
  20888. var key = (lodashFunc.name + ''),
  20889. names = realNames[key] || (realNames[key] = []);
  20890. names.push({ 'name': methodName, 'func': lodashFunc });
  20891. }
  20892. });
  20893. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  20894. 'name': 'wrapper',
  20895. 'func': undefined
  20896. }];
  20897. // Add methods to `LazyWrapper`.
  20898. LazyWrapper.prototype.clone = lazyClone;
  20899. LazyWrapper.prototype.reverse = lazyReverse;
  20900. LazyWrapper.prototype.value = lazyValue;
  20901. // Add chain sequence methods to the `lodash` wrapper.
  20902. lodash.prototype.at = wrapperAt;
  20903. lodash.prototype.chain = wrapperChain;
  20904. lodash.prototype.commit = wrapperCommit;
  20905. lodash.prototype.next = wrapperNext;
  20906. lodash.prototype.plant = wrapperPlant;
  20907. lodash.prototype.reverse = wrapperReverse;
  20908. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  20909. // Add lazy aliases.
  20910. lodash.prototype.first = lodash.prototype.head;
  20911. if (symIterator) {
  20912. lodash.prototype[symIterator] = wrapperToIterator;
  20913. }
  20914. return lodash;
  20915. });
  20916. /*--------------------------------------------------------------------------*/
  20917. // Export lodash.
  20918. var _ = runInContext();
  20919. // Some AMD build optimizers, like r.js, check for condition patterns like:
  20920. if (true) {
  20921. // Expose Lodash on the global object to prevent errors when Lodash is
  20922. // loaded by a script tag in the presence of an AMD loader.
  20923. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  20924. // Use `_.noConflict` to remove Lodash from the global object.
  20925. root._ = _;
  20926. // Define as an anonymous module so, through path mapping, it can be
  20927. // referenced as the "underscore" module.
  20928. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  20929. return _;
  20930. }).call(exports, __webpack_require__, exports, module),
  20931. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20932. }
  20933. // Check for `exports` after `define` in case a build optimizer adds it.
  20934. else {}
  20935. }.call(this));
  20936. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  20937. /***/ }),
  20938. /***/ "../../node_modules/object-assign/index.js":
  20939. /*!***************************************************************!*\
  20940. !*** D:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  20941. \***************************************************************/
  20942. /*! no static exports found */
  20943. /***/ (function(module, exports, __webpack_require__) {
  20944. "use strict";
  20945. /*
  20946. object-assign
  20947. (c) Sindre Sorhus
  20948. @license MIT
  20949. */
  20950. /* eslint-disable no-unused-vars */
  20951. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  20952. var hasOwnProperty = Object.prototype.hasOwnProperty;
  20953. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  20954. function toObject(val) {
  20955. if (val === null || val === undefined) {
  20956. throw new TypeError('Object.assign cannot be called with null or undefined');
  20957. }
  20958. return Object(val);
  20959. }
  20960. function shouldUseNative() {
  20961. try {
  20962. if (!Object.assign) {
  20963. return false;
  20964. }
  20965. // Detect buggy property enumeration order in older V8 versions.
  20966. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  20967. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  20968. test1[5] = 'de';
  20969. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  20970. return false;
  20971. }
  20972. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  20973. var test2 = {};
  20974. for (var i = 0; i < 10; i++) {
  20975. test2['_' + String.fromCharCode(i)] = i;
  20976. }
  20977. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  20978. return test2[n];
  20979. });
  20980. if (order2.join('') !== '0123456789') {
  20981. return false;
  20982. }
  20983. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  20984. var test3 = {};
  20985. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  20986. test3[letter] = letter;
  20987. });
  20988. if (Object.keys(Object.assign({}, test3)).join('') !==
  20989. 'abcdefghijklmnopqrst') {
  20990. return false;
  20991. }
  20992. return true;
  20993. } catch (err) {
  20994. // We don't expect any of the above to throw, but better to be safe.
  20995. return false;
  20996. }
  20997. }
  20998. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  20999. var from;
  21000. var to = toObject(target);
  21001. var symbols;
  21002. for (var s = 1; s < arguments.length; s++) {
  21003. from = Object(arguments[s]);
  21004. for (var key in from) {
  21005. if (hasOwnProperty.call(from, key)) {
  21006. to[key] = from[key];
  21007. }
  21008. }
  21009. if (getOwnPropertySymbols) {
  21010. symbols = getOwnPropertySymbols(from);
  21011. for (var i = 0; i < symbols.length; i++) {
  21012. if (propIsEnumerable.call(from, symbols[i])) {
  21013. to[symbols[i]] = from[symbols[i]];
  21014. }
  21015. }
  21016. }
  21017. }
  21018. return to;
  21019. };
  21020. /***/ }),
  21021. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  21022. /*!*********************************************************************!*\
  21023. !*** D:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  21024. \*********************************************************************/
  21025. /*! no static exports found */
  21026. /***/ (function(module, exports, __webpack_require__) {
  21027. "use strict";
  21028. /**
  21029. * Copyright (c) 2013-present, Facebook, Inc.
  21030. *
  21031. * This source code is licensed under the MIT license found in the
  21032. * LICENSE file in the root directory of this source tree.
  21033. */
  21034. var printWarning = function() {};
  21035. if (true) {
  21036. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  21037. var loggedTypeFailures = {};
  21038. printWarning = function(text) {
  21039. var message = 'Warning: ' + text;
  21040. if (typeof console !== 'undefined') {
  21041. console.error(message);
  21042. }
  21043. try {
  21044. // --- Welcome to debugging React ---
  21045. // This error was thrown as a convenience so that you can use this stack
  21046. // to find the callsite that caused this warning to fire.
  21047. throw new Error(message);
  21048. } catch (x) {}
  21049. };
  21050. }
  21051. /**
  21052. * Assert that the values match with the type specs.
  21053. * Error messages are memorized and will only be shown once.
  21054. *
  21055. * @param {object} typeSpecs Map of name to a ReactPropType
  21056. * @param {object} values Runtime values that need to be type-checked
  21057. * @param {string} location e.g. "prop", "context", "child context"
  21058. * @param {string} componentName Name of the component for error messages.
  21059. * @param {?Function} getStack Returns the component stack.
  21060. * @private
  21061. */
  21062. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  21063. if (true) {
  21064. for (var typeSpecName in typeSpecs) {
  21065. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  21066. var error;
  21067. // Prop type validation may throw. In case they do, we don't want to
  21068. // fail the render phase where it didn't fail before. So we log it.
  21069. // After these have been cleaned up, we'll let them throw.
  21070. try {
  21071. // This is intentionally an invariant that gets caught. It's the same
  21072. // behavior as without this statement except with a better message.
  21073. if (typeof typeSpecs[typeSpecName] !== 'function') {
  21074. var err = Error(
  21075. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  21076. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  21077. );
  21078. err.name = 'Invariant Violation';
  21079. throw err;
  21080. }
  21081. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  21082. } catch (ex) {
  21083. error = ex;
  21084. }
  21085. if (error && !(error instanceof Error)) {
  21086. printWarning(
  21087. (componentName || 'React class') + ': type specification of ' +
  21088. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  21089. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  21090. 'You may have forgotten to pass an argument to the type checker ' +
  21091. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  21092. 'shape all require an argument).'
  21093. )
  21094. }
  21095. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  21096. // Only monitor this failure once because there tends to be a lot of the
  21097. // same error.
  21098. loggedTypeFailures[error.message] = true;
  21099. var stack = getStack ? getStack() : '';
  21100. printWarning(
  21101. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  21102. );
  21103. }
  21104. }
  21105. }
  21106. }
  21107. }
  21108. module.exports = checkPropTypes;
  21109. /***/ }),
  21110. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  21111. /*!******************************************************************************!*\
  21112. !*** D:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  21113. \******************************************************************************/
  21114. /*! no static exports found */
  21115. /***/ (function(module, exports, __webpack_require__) {
  21116. "use strict";
  21117. /**
  21118. * Copyright (c) 2013-present, Facebook, Inc.
  21119. *
  21120. * This source code is licensed under the MIT license found in the
  21121. * LICENSE file in the root directory of this source tree.
  21122. */
  21123. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  21124. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  21125. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  21126. var printWarning = function() {};
  21127. if (true) {
  21128. printWarning = function(text) {
  21129. var message = 'Warning: ' + text;
  21130. if (typeof console !== 'undefined') {
  21131. console.error(message);
  21132. }
  21133. try {
  21134. // --- Welcome to debugging React ---
  21135. // This error was thrown as a convenience so that you can use this stack
  21136. // to find the callsite that caused this warning to fire.
  21137. throw new Error(message);
  21138. } catch (x) {}
  21139. };
  21140. }
  21141. function emptyFunctionThatReturnsNull() {
  21142. return null;
  21143. }
  21144. module.exports = function(isValidElement, throwOnDirectAccess) {
  21145. /* global Symbol */
  21146. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  21147. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  21148. /**
  21149. * Returns the iterator method function contained on the iterable object.
  21150. *
  21151. * Be sure to invoke the function with the iterable as context:
  21152. *
  21153. * var iteratorFn = getIteratorFn(myIterable);
  21154. * if (iteratorFn) {
  21155. * var iterator = iteratorFn.call(myIterable);
  21156. * ...
  21157. * }
  21158. *
  21159. * @param {?object} maybeIterable
  21160. * @return {?function}
  21161. */
  21162. function getIteratorFn(maybeIterable) {
  21163. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  21164. if (typeof iteratorFn === 'function') {
  21165. return iteratorFn;
  21166. }
  21167. }
  21168. /**
  21169. * Collection of methods that allow declaration and validation of props that are
  21170. * supplied to React components. Example usage:
  21171. *
  21172. * var Props = require('ReactPropTypes');
  21173. * var MyArticle = React.createClass({
  21174. * propTypes: {
  21175. * // An optional string prop named "description".
  21176. * description: Props.string,
  21177. *
  21178. * // A required enum prop named "category".
  21179. * category: Props.oneOf(['News','Photos']).isRequired,
  21180. *
  21181. * // A prop named "dialog" that requires an instance of Dialog.
  21182. * dialog: Props.instanceOf(Dialog).isRequired
  21183. * },
  21184. * render: function() { ... }
  21185. * });
  21186. *
  21187. * A more formal specification of how these methods are used:
  21188. *
  21189. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  21190. * decl := ReactPropTypes.{type}(.isRequired)?
  21191. *
  21192. * Each and every declaration produces a function with the same signature. This
  21193. * allows the creation of custom validation functions. For example:
  21194. *
  21195. * var MyLink = React.createClass({
  21196. * propTypes: {
  21197. * // An optional string or URI prop named "href".
  21198. * href: function(props, propName, componentName) {
  21199. * var propValue = props[propName];
  21200. * if (propValue != null && typeof propValue !== 'string' &&
  21201. * !(propValue instanceof URI)) {
  21202. * return new Error(
  21203. * 'Expected a string or an URI for ' + propName + ' in ' +
  21204. * componentName
  21205. * );
  21206. * }
  21207. * }
  21208. * },
  21209. * render: function() {...}
  21210. * });
  21211. *
  21212. * @internal
  21213. */
  21214. var ANONYMOUS = '<<anonymous>>';
  21215. // Important!
  21216. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  21217. var ReactPropTypes = {
  21218. array: createPrimitiveTypeChecker('array'),
  21219. bool: createPrimitiveTypeChecker('boolean'),
  21220. func: createPrimitiveTypeChecker('function'),
  21221. number: createPrimitiveTypeChecker('number'),
  21222. object: createPrimitiveTypeChecker('object'),
  21223. string: createPrimitiveTypeChecker('string'),
  21224. symbol: createPrimitiveTypeChecker('symbol'),
  21225. any: createAnyTypeChecker(),
  21226. arrayOf: createArrayOfTypeChecker,
  21227. element: createElementTypeChecker(),
  21228. instanceOf: createInstanceTypeChecker,
  21229. node: createNodeChecker(),
  21230. objectOf: createObjectOfTypeChecker,
  21231. oneOf: createEnumTypeChecker,
  21232. oneOfType: createUnionTypeChecker,
  21233. shape: createShapeTypeChecker,
  21234. exact: createStrictShapeTypeChecker,
  21235. };
  21236. /**
  21237. * inlined Object.is polyfill to avoid requiring consumers ship their own
  21238. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  21239. */
  21240. /*eslint-disable no-self-compare*/
  21241. function is(x, y) {
  21242. // SameValue algorithm
  21243. if (x === y) {
  21244. // Steps 1-5, 7-10
  21245. // Steps 6.b-6.e: +0 != -0
  21246. return x !== 0 || 1 / x === 1 / y;
  21247. } else {
  21248. // Step 6.a: NaN == NaN
  21249. return x !== x && y !== y;
  21250. }
  21251. }
  21252. /*eslint-enable no-self-compare*/
  21253. /**
  21254. * We use an Error-like object for backward compatibility as people may call
  21255. * PropTypes directly and inspect their output. However, we don't use real
  21256. * Errors anymore. We don't inspect their stack anyway, and creating them
  21257. * is prohibitively expensive if they are created too often, such as what
  21258. * happens in oneOfType() for any type before the one that matched.
  21259. */
  21260. function PropTypeError(message) {
  21261. this.message = message;
  21262. this.stack = '';
  21263. }
  21264. // Make `instanceof Error` still work for returned errors.
  21265. PropTypeError.prototype = Error.prototype;
  21266. function createChainableTypeChecker(validate) {
  21267. if (true) {
  21268. var manualPropTypeCallCache = {};
  21269. var manualPropTypeWarningCount = 0;
  21270. }
  21271. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  21272. componentName = componentName || ANONYMOUS;
  21273. propFullName = propFullName || propName;
  21274. if (secret !== ReactPropTypesSecret) {
  21275. if (throwOnDirectAccess) {
  21276. // New behavior only for users of `prop-types` package
  21277. var err = new Error(
  21278. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  21279. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  21280. 'Read more at http://fb.me/use-check-prop-types'
  21281. );
  21282. err.name = 'Invariant Violation';
  21283. throw err;
  21284. } else if ( true && typeof console !== 'undefined') {
  21285. // Old behavior for people using React.PropTypes
  21286. var cacheKey = componentName + ':' + propName;
  21287. if (
  21288. !manualPropTypeCallCache[cacheKey] &&
  21289. // Avoid spamming the console because they are often not actionable except for lib authors
  21290. manualPropTypeWarningCount < 3
  21291. ) {
  21292. printWarning(
  21293. 'You are manually calling a React.PropTypes validation ' +
  21294. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  21295. 'and will throw in the standalone `prop-types` package. ' +
  21296. 'You may be seeing this warning due to a third-party PropTypes ' +
  21297. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  21298. );
  21299. manualPropTypeCallCache[cacheKey] = true;
  21300. manualPropTypeWarningCount++;
  21301. }
  21302. }
  21303. }
  21304. if (props[propName] == null) {
  21305. if (isRequired) {
  21306. if (props[propName] === null) {
  21307. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  21308. }
  21309. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  21310. }
  21311. return null;
  21312. } else {
  21313. return validate(props, propName, componentName, location, propFullName);
  21314. }
  21315. }
  21316. var chainedCheckType = checkType.bind(null, false);
  21317. chainedCheckType.isRequired = checkType.bind(null, true);
  21318. return chainedCheckType;
  21319. }
  21320. function createPrimitiveTypeChecker(expectedType) {
  21321. function validate(props, propName, componentName, location, propFullName, secret) {
  21322. var propValue = props[propName];
  21323. var propType = getPropType(propValue);
  21324. if (propType !== expectedType) {
  21325. // `propValue` being instance of, say, date/regexp, pass the 'object'
  21326. // check, but we can offer a more precise error message here rather than
  21327. // 'of type `object`'.
  21328. var preciseType = getPreciseType(propValue);
  21329. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  21330. }
  21331. return null;
  21332. }
  21333. return createChainableTypeChecker(validate);
  21334. }
  21335. function createAnyTypeChecker() {
  21336. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  21337. }
  21338. function createArrayOfTypeChecker(typeChecker) {
  21339. function validate(props, propName, componentName, location, propFullName) {
  21340. if (typeof typeChecker !== 'function') {
  21341. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  21342. }
  21343. var propValue = props[propName];
  21344. if (!Array.isArray(propValue)) {
  21345. var propType = getPropType(propValue);
  21346. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  21347. }
  21348. for (var i = 0; i < propValue.length; i++) {
  21349. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  21350. if (error instanceof Error) {
  21351. return error;
  21352. }
  21353. }
  21354. return null;
  21355. }
  21356. return createChainableTypeChecker(validate);
  21357. }
  21358. function createElementTypeChecker() {
  21359. function validate(props, propName, componentName, location, propFullName) {
  21360. var propValue = props[propName];
  21361. if (!isValidElement(propValue)) {
  21362. var propType = getPropType(propValue);
  21363. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  21364. }
  21365. return null;
  21366. }
  21367. return createChainableTypeChecker(validate);
  21368. }
  21369. function createInstanceTypeChecker(expectedClass) {
  21370. function validate(props, propName, componentName, location, propFullName) {
  21371. if (!(props[propName] instanceof expectedClass)) {
  21372. var expectedClassName = expectedClass.name || ANONYMOUS;
  21373. var actualClassName = getClassName(props[propName]);
  21374. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  21375. }
  21376. return null;
  21377. }
  21378. return createChainableTypeChecker(validate);
  21379. }
  21380. function createEnumTypeChecker(expectedValues) {
  21381. if (!Array.isArray(expectedValues)) {
  21382. true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
  21383. return emptyFunctionThatReturnsNull;
  21384. }
  21385. function validate(props, propName, componentName, location, propFullName) {
  21386. var propValue = props[propName];
  21387. for (var i = 0; i < expectedValues.length; i++) {
  21388. if (is(propValue, expectedValues[i])) {
  21389. return null;
  21390. }
  21391. }
  21392. var valuesString = JSON.stringify(expectedValues);
  21393. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  21394. }
  21395. return createChainableTypeChecker(validate);
  21396. }
  21397. function createObjectOfTypeChecker(typeChecker) {
  21398. function validate(props, propName, componentName, location, propFullName) {
  21399. if (typeof typeChecker !== 'function') {
  21400. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  21401. }
  21402. var propValue = props[propName];
  21403. var propType = getPropType(propValue);
  21404. if (propType !== 'object') {
  21405. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  21406. }
  21407. for (var key in propValue) {
  21408. if (propValue.hasOwnProperty(key)) {
  21409. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  21410. if (error instanceof Error) {
  21411. return error;
  21412. }
  21413. }
  21414. }
  21415. return null;
  21416. }
  21417. return createChainableTypeChecker(validate);
  21418. }
  21419. function createUnionTypeChecker(arrayOfTypeCheckers) {
  21420. if (!Array.isArray(arrayOfTypeCheckers)) {
  21421. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  21422. return emptyFunctionThatReturnsNull;
  21423. }
  21424. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  21425. var checker = arrayOfTypeCheckers[i];
  21426. if (typeof checker !== 'function') {
  21427. printWarning(
  21428. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  21429. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  21430. );
  21431. return emptyFunctionThatReturnsNull;
  21432. }
  21433. }
  21434. function validate(props, propName, componentName, location, propFullName) {
  21435. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  21436. var checker = arrayOfTypeCheckers[i];
  21437. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  21438. return null;
  21439. }
  21440. }
  21441. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  21442. }
  21443. return createChainableTypeChecker(validate);
  21444. }
  21445. function createNodeChecker() {
  21446. function validate(props, propName, componentName, location, propFullName) {
  21447. if (!isNode(props[propName])) {
  21448. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  21449. }
  21450. return null;
  21451. }
  21452. return createChainableTypeChecker(validate);
  21453. }
  21454. function createShapeTypeChecker(shapeTypes) {
  21455. function validate(props, propName, componentName, location, propFullName) {
  21456. var propValue = props[propName];
  21457. var propType = getPropType(propValue);
  21458. if (propType !== 'object') {
  21459. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  21460. }
  21461. for (var key in shapeTypes) {
  21462. var checker = shapeTypes[key];
  21463. if (!checker) {
  21464. continue;
  21465. }
  21466. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  21467. if (error) {
  21468. return error;
  21469. }
  21470. }
  21471. return null;
  21472. }
  21473. return createChainableTypeChecker(validate);
  21474. }
  21475. function createStrictShapeTypeChecker(shapeTypes) {
  21476. function validate(props, propName, componentName, location, propFullName) {
  21477. var propValue = props[propName];
  21478. var propType = getPropType(propValue);
  21479. if (propType !== 'object') {
  21480. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  21481. }
  21482. // We need to check all keys in case some are required but missing from
  21483. // props.
  21484. var allKeys = assign({}, props[propName], shapeTypes);
  21485. for (var key in allKeys) {
  21486. var checker = shapeTypes[key];
  21487. if (!checker) {
  21488. return new PropTypeError(
  21489. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  21490. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  21491. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  21492. );
  21493. }
  21494. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  21495. if (error) {
  21496. return error;
  21497. }
  21498. }
  21499. return null;
  21500. }
  21501. return createChainableTypeChecker(validate);
  21502. }
  21503. function isNode(propValue) {
  21504. switch (typeof propValue) {
  21505. case 'number':
  21506. case 'string':
  21507. case 'undefined':
  21508. return true;
  21509. case 'boolean':
  21510. return !propValue;
  21511. case 'object':
  21512. if (Array.isArray(propValue)) {
  21513. return propValue.every(isNode);
  21514. }
  21515. if (propValue === null || isValidElement(propValue)) {
  21516. return true;
  21517. }
  21518. var iteratorFn = getIteratorFn(propValue);
  21519. if (iteratorFn) {
  21520. var iterator = iteratorFn.call(propValue);
  21521. var step;
  21522. if (iteratorFn !== propValue.entries) {
  21523. while (!(step = iterator.next()).done) {
  21524. if (!isNode(step.value)) {
  21525. return false;
  21526. }
  21527. }
  21528. } else {
  21529. // Iterator will provide entry [k,v] tuples rather than values.
  21530. while (!(step = iterator.next()).done) {
  21531. var entry = step.value;
  21532. if (entry) {
  21533. if (!isNode(entry[1])) {
  21534. return false;
  21535. }
  21536. }
  21537. }
  21538. }
  21539. } else {
  21540. return false;
  21541. }
  21542. return true;
  21543. default:
  21544. return false;
  21545. }
  21546. }
  21547. function isSymbol(propType, propValue) {
  21548. // Native Symbol.
  21549. if (propType === 'symbol') {
  21550. return true;
  21551. }
  21552. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  21553. if (propValue['@@toStringTag'] === 'Symbol') {
  21554. return true;
  21555. }
  21556. // Fallback for non-spec compliant Symbols which are polyfilled.
  21557. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  21558. return true;
  21559. }
  21560. return false;
  21561. }
  21562. // Equivalent of `typeof` but with special handling for array and regexp.
  21563. function getPropType(propValue) {
  21564. var propType = typeof propValue;
  21565. if (Array.isArray(propValue)) {
  21566. return 'array';
  21567. }
  21568. if (propValue instanceof RegExp) {
  21569. // Old webkits (at least until Android 4.0) return 'function' rather than
  21570. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  21571. // passes PropTypes.object.
  21572. return 'object';
  21573. }
  21574. if (isSymbol(propType, propValue)) {
  21575. return 'symbol';
  21576. }
  21577. return propType;
  21578. }
  21579. // This handles more types than `getPropType`. Only used for error messages.
  21580. // See `createPrimitiveTypeChecker`.
  21581. function getPreciseType(propValue) {
  21582. if (typeof propValue === 'undefined' || propValue === null) {
  21583. return '' + propValue;
  21584. }
  21585. var propType = getPropType(propValue);
  21586. if (propType === 'object') {
  21587. if (propValue instanceof Date) {
  21588. return 'date';
  21589. } else if (propValue instanceof RegExp) {
  21590. return 'regexp';
  21591. }
  21592. }
  21593. return propType;
  21594. }
  21595. // Returns a string that is postfixed to a warning about an invalid type.
  21596. // For example, "undefined" or "of type array"
  21597. function getPostfixForTypeWarning(value) {
  21598. var type = getPreciseType(value);
  21599. switch (type) {
  21600. case 'array':
  21601. case 'object':
  21602. return 'an ' + type;
  21603. case 'boolean':
  21604. case 'date':
  21605. case 'regexp':
  21606. return 'a ' + type;
  21607. default:
  21608. return type;
  21609. }
  21610. }
  21611. // Returns class name of the object, if any.
  21612. function getClassName(propValue) {
  21613. if (!propValue.constructor || !propValue.constructor.name) {
  21614. return ANONYMOUS;
  21615. }
  21616. return propValue.constructor.name;
  21617. }
  21618. ReactPropTypes.checkPropTypes = checkPropTypes;
  21619. ReactPropTypes.PropTypes = ReactPropTypes;
  21620. return ReactPropTypes;
  21621. };
  21622. /***/ }),
  21623. /***/ "../../node_modules/prop-types/index.js":
  21624. /*!************************************************************!*\
  21625. !*** D:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  21626. \************************************************************/
  21627. /*! no static exports found */
  21628. /***/ (function(module, exports, __webpack_require__) {
  21629. /**
  21630. * Copyright (c) 2013-present, Facebook, Inc.
  21631. *
  21632. * This source code is licensed under the MIT license found in the
  21633. * LICENSE file in the root directory of this source tree.
  21634. */
  21635. if (true) {
  21636. var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
  21637. Symbol.for &&
  21638. Symbol.for('react.element')) ||
  21639. 0xeac7;
  21640. var isValidElement = function(object) {
  21641. return typeof object === 'object' &&
  21642. object !== null &&
  21643. object.$$typeof === REACT_ELEMENT_TYPE;
  21644. };
  21645. // By explicitly using `prop-types` you are opting into new development behavior.
  21646. // http://fb.me/prop-types-in-prod
  21647. var throwOnDirectAccess = true;
  21648. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
  21649. } else {}
  21650. /***/ }),
  21651. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  21652. /*!*******************************************************************************!*\
  21653. !*** D:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  21654. \*******************************************************************************/
  21655. /*! no static exports found */
  21656. /***/ (function(module, exports, __webpack_require__) {
  21657. "use strict";
  21658. /**
  21659. * Copyright (c) 2013-present, Facebook, Inc.
  21660. *
  21661. * This source code is licensed under the MIT license found in the
  21662. * LICENSE file in the root directory of this source tree.
  21663. */
  21664. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  21665. module.exports = ReactPropTypesSecret;
  21666. /***/ }),
  21667. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  21668. /*!*******************************************************************************!*\
  21669. !*** D:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  21670. \*******************************************************************************/
  21671. /*! no static exports found */
  21672. /***/ (function(module, exports, __webpack_require__) {
  21673. "use strict";
  21674. /** @license React v16.6.1
  21675. * react-dom.development.js
  21676. *
  21677. * Copyright (c) Facebook, Inc. and its affiliates.
  21678. *
  21679. * This source code is licensed under the MIT license found in the
  21680. * LICENSE file in the root directory of this source tree.
  21681. */
  21682. if (true) {
  21683. (function() {
  21684. 'use strict';
  21685. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21686. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  21687. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  21688. var scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  21689. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  21690. /**
  21691. * Use invariant() to assert state which your program assumes to be true.
  21692. *
  21693. * Provide sprintf-style format (only %s is supported) and arguments
  21694. * to provide information about what broke and what you were
  21695. * expecting.
  21696. *
  21697. * The invariant message will be stripped in production, but the invariant
  21698. * will remain to ensure logic does not differ in production.
  21699. */
  21700. var validateFormat = function () {};
  21701. {
  21702. validateFormat = function (format) {
  21703. if (format === undefined) {
  21704. throw new Error('invariant requires an error message argument');
  21705. }
  21706. };
  21707. }
  21708. function invariant(condition, format, a, b, c, d, e, f) {
  21709. validateFormat(format);
  21710. if (!condition) {
  21711. var error = void 0;
  21712. if (format === undefined) {
  21713. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  21714. } else {
  21715. var args = [a, b, c, d, e, f];
  21716. var argIndex = 0;
  21717. error = new Error(format.replace(/%s/g, function () {
  21718. return args[argIndex++];
  21719. }));
  21720. error.name = 'Invariant Violation';
  21721. }
  21722. error.framesToPop = 1; // we don't care about invariant's own frame
  21723. throw error;
  21724. }
  21725. }
  21726. // Relying on the `invariant()` implementation lets us
  21727. // preserve the format and params in the www builds.
  21728. !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
  21729. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  21730. var funcArgs = Array.prototype.slice.call(arguments, 3);
  21731. try {
  21732. func.apply(context, funcArgs);
  21733. } catch (error) {
  21734. this.onError(error);
  21735. }
  21736. };
  21737. {
  21738. // In DEV mode, we swap out invokeGuardedCallback for a special version
  21739. // that plays more nicely with the browser's DevTools. The idea is to preserve
  21740. // "Pause on exceptions" behavior. Because React wraps all user-provided
  21741. // functions in invokeGuardedCallback, and the production version of
  21742. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  21743. // like caught exceptions, and the DevTools won't pause unless the developer
  21744. // takes the extra step of enabling pause on caught exceptions. This is
  21745. // untintuitive, though, because even though React has caught the error, from
  21746. // the developer's perspective, the error is uncaught.
  21747. //
  21748. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  21749. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  21750. // DOM node, and call the user-provided callback from inside an event handler
  21751. // for that fake event. If the callback throws, the error is "captured" using
  21752. // a global event handler. But because the error happens in a different
  21753. // event loop context, it does not interrupt the normal program flow.
  21754. // Effectively, this gives us try-catch behavior without actually using
  21755. // try-catch. Neat!
  21756. // Check that the browser supports the APIs we need to implement our special
  21757. // DEV version of invokeGuardedCallback
  21758. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  21759. var fakeNode = document.createElement('react');
  21760. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  21761. // If document doesn't exist we know for sure we will crash in this method
  21762. // when we call document.createEvent(). However this can cause confusing
  21763. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  21764. // So we preemptively throw with a better message instead.
  21765. !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;
  21766. var evt = document.createEvent('Event');
  21767. // Keeps track of whether the user-provided callback threw an error. We
  21768. // set this to true at the beginning, then set it to false right after
  21769. // calling the function. If the function errors, `didError` will never be
  21770. // set to false. This strategy works even if the browser is flaky and
  21771. // fails to call our global error handler, because it doesn't rely on
  21772. // the error event at all.
  21773. var didError = true;
  21774. // Keeps track of the value of window.event so that we can reset it
  21775. // during the callback to let user code access window.event in the
  21776. // browsers that support it.
  21777. var windowEvent = window.event;
  21778. // Keeps track of the descriptor of window.event to restore it after event
  21779. // dispatching: https://github.com/facebook/react/issues/13688
  21780. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  21781. // Create an event handler for our fake event. We will synchronously
  21782. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  21783. // call the user-provided callback.
  21784. var funcArgs = Array.prototype.slice.call(arguments, 3);
  21785. function callCallback() {
  21786. // We immediately remove the callback from event listeners so that
  21787. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  21788. // nested call would trigger the fake event handlers of any call higher
  21789. // in the stack.
  21790. fakeNode.removeEventListener(evtType, callCallback, false);
  21791. // We check for window.hasOwnProperty('event') to prevent the
  21792. // window.event assignment in both IE <= 10 as they throw an error
  21793. // "Member not found" in strict mode, and in Firefox which does not
  21794. // support window.event.
  21795. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  21796. window.event = windowEvent;
  21797. }
  21798. func.apply(context, funcArgs);
  21799. didError = false;
  21800. }
  21801. // Create a global error event handler. We use this to capture the value
  21802. // that was thrown. It's possible that this error handler will fire more
  21803. // than once; for example, if non-React code also calls `dispatchEvent`
  21804. // and a handler for that event throws. We should be resilient to most of
  21805. // those cases. Even if our error event handler fires more than once, the
  21806. // last error event is always used. If the callback actually does error,
  21807. // we know that the last error event is the correct one, because it's not
  21808. // possible for anything else to have happened in between our callback
  21809. // erroring and the code that follows the `dispatchEvent` call below. If
  21810. // the callback doesn't error, but the error event was fired, we know to
  21811. // ignore it because `didError` will be false, as described above.
  21812. var error = void 0;
  21813. // Use this to track whether the error event is ever called.
  21814. var didSetError = false;
  21815. var isCrossOriginError = false;
  21816. function handleWindowError(event) {
  21817. error = event.error;
  21818. didSetError = true;
  21819. if (error === null && event.colno === 0 && event.lineno === 0) {
  21820. isCrossOriginError = true;
  21821. }
  21822. if (event.defaultPrevented) {
  21823. // Some other error handler has prevented default.
  21824. // Browsers silence the error report if this happens.
  21825. // We'll remember this to later decide whether to log it or not.
  21826. if (error != null && typeof error === 'object') {
  21827. try {
  21828. error._suppressLogging = true;
  21829. } catch (inner) {
  21830. // Ignore.
  21831. }
  21832. }
  21833. }
  21834. }
  21835. // Create a fake event type.
  21836. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  21837. // Attach our event handlers
  21838. window.addEventListener('error', handleWindowError);
  21839. fakeNode.addEventListener(evtType, callCallback, false);
  21840. // Synchronously dispatch our fake event. If the user-provided function
  21841. // errors, it will trigger our global error handler.
  21842. evt.initEvent(evtType, false, false);
  21843. fakeNode.dispatchEvent(evt);
  21844. if (windowEventDescriptor) {
  21845. Object.defineProperty(window, 'event', windowEventDescriptor);
  21846. }
  21847. if (didError) {
  21848. if (!didSetError) {
  21849. // The callback errored, but the error event never fired.
  21850. error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
  21851. } else if (isCrossOriginError) {
  21852. error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
  21853. }
  21854. this.onError(error);
  21855. }
  21856. // Remove our event listeners
  21857. window.removeEventListener('error', handleWindowError);
  21858. };
  21859. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  21860. }
  21861. }
  21862. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  21863. // Used by Fiber to simulate a try-catch.
  21864. var hasError = false;
  21865. var caughtError = null;
  21866. // Used by event system to capture/rethrow the first error.
  21867. var hasRethrowError = false;
  21868. var rethrowError = null;
  21869. var reporter = {
  21870. onError: function (error) {
  21871. hasError = true;
  21872. caughtError = error;
  21873. }
  21874. };
  21875. /**
  21876. * Call a function while guarding against errors that happens within it.
  21877. * Returns an error if it throws, otherwise null.
  21878. *
  21879. * In production, this is implemented using a try-catch. The reason we don't
  21880. * use a try-catch directly is so that we can swap out a different
  21881. * implementation in DEV mode.
  21882. *
  21883. * @param {String} name of the guard to use for logging or debugging
  21884. * @param {Function} func The function to invoke
  21885. * @param {*} context The context to use when calling the function
  21886. * @param {...*} args Arguments for function
  21887. */
  21888. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  21889. hasError = false;
  21890. caughtError = null;
  21891. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  21892. }
  21893. /**
  21894. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  21895. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  21896. * TODO: See if caughtError and rethrowError can be unified.
  21897. *
  21898. * @param {String} name of the guard to use for logging or debugging
  21899. * @param {Function} func The function to invoke
  21900. * @param {*} context The context to use when calling the function
  21901. * @param {...*} args Arguments for function
  21902. */
  21903. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  21904. invokeGuardedCallback.apply(this, arguments);
  21905. if (hasError) {
  21906. var error = clearCaughtError();
  21907. if (!hasRethrowError) {
  21908. hasRethrowError = true;
  21909. rethrowError = error;
  21910. }
  21911. }
  21912. }
  21913. /**
  21914. * During execution of guarded functions we will capture the first error which
  21915. * we will rethrow to be handled by the top level error handler.
  21916. */
  21917. function rethrowCaughtError() {
  21918. if (hasRethrowError) {
  21919. var error = rethrowError;
  21920. hasRethrowError = false;
  21921. rethrowError = null;
  21922. throw error;
  21923. }
  21924. }
  21925. function hasCaughtError() {
  21926. return hasError;
  21927. }
  21928. function clearCaughtError() {
  21929. if (hasError) {
  21930. var error = caughtError;
  21931. hasError = false;
  21932. caughtError = null;
  21933. return error;
  21934. } else {
  21935. invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
  21936. }
  21937. }
  21938. /**
  21939. * Injectable ordering of event plugins.
  21940. */
  21941. var eventPluginOrder = null;
  21942. /**
  21943. * Injectable mapping from names to event plugin modules.
  21944. */
  21945. var namesToPlugins = {};
  21946. /**
  21947. * Recomputes the plugin list using the injected plugins and plugin ordering.
  21948. *
  21949. * @private
  21950. */
  21951. function recomputePluginOrdering() {
  21952. if (!eventPluginOrder) {
  21953. // Wait until an `eventPluginOrder` is injected.
  21954. return;
  21955. }
  21956. for (var pluginName in namesToPlugins) {
  21957. var pluginModule = namesToPlugins[pluginName];
  21958. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  21959. !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
  21960. if (plugins[pluginIndex]) {
  21961. continue;
  21962. }
  21963. !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
  21964. plugins[pluginIndex] = pluginModule;
  21965. var publishedEvents = pluginModule.eventTypes;
  21966. for (var eventName in publishedEvents) {
  21967. !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
  21968. }
  21969. }
  21970. }
  21971. /**
  21972. * Publishes an event so that it can be dispatched by the supplied plugin.
  21973. *
  21974. * @param {object} dispatchConfig Dispatch configuration for the event.
  21975. * @param {object} PluginModule Plugin publishing the event.
  21976. * @return {boolean} True if the event was successfully published.
  21977. * @private
  21978. */
  21979. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  21980. !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
  21981. eventNameDispatchConfigs[eventName] = dispatchConfig;
  21982. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  21983. if (phasedRegistrationNames) {
  21984. for (var phaseName in phasedRegistrationNames) {
  21985. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  21986. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  21987. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  21988. }
  21989. }
  21990. return true;
  21991. } else if (dispatchConfig.registrationName) {
  21992. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  21993. return true;
  21994. }
  21995. return false;
  21996. }
  21997. /**
  21998. * Publishes a registration name that is used to identify dispatched events.
  21999. *
  22000. * @param {string} registrationName Registration name to add.
  22001. * @param {object} PluginModule Plugin publishing the event.
  22002. * @private
  22003. */
  22004. function publishRegistrationName(registrationName, pluginModule, eventName) {
  22005. !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
  22006. registrationNameModules[registrationName] = pluginModule;
  22007. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  22008. {
  22009. var lowerCasedName = registrationName.toLowerCase();
  22010. possibleRegistrationNames[lowerCasedName] = registrationName;
  22011. if (registrationName === 'onDoubleClick') {
  22012. possibleRegistrationNames.ondblclick = registrationName;
  22013. }
  22014. }
  22015. }
  22016. /**
  22017. * Registers plugins so that they can extract and dispatch events.
  22018. *
  22019. * @see {EventPluginHub}
  22020. */
  22021. /**
  22022. * Ordered list of injected plugins.
  22023. */
  22024. var plugins = [];
  22025. /**
  22026. * Mapping from event name to dispatch config
  22027. */
  22028. var eventNameDispatchConfigs = {};
  22029. /**
  22030. * Mapping from registration name to plugin module
  22031. */
  22032. var registrationNameModules = {};
  22033. /**
  22034. * Mapping from registration name to event name
  22035. */
  22036. var registrationNameDependencies = {};
  22037. /**
  22038. * Mapping from lowercase registration names to the properly cased version,
  22039. * used to warn in the case of missing event handlers. Available
  22040. * only in true.
  22041. * @type {Object}
  22042. */
  22043. var possibleRegistrationNames = {};
  22044. // Trust the developer to only use possibleRegistrationNames in true
  22045. /**
  22046. * Injects an ordering of plugins (by plugin name). This allows the ordering
  22047. * to be decoupled from injection of the actual plugins so that ordering is
  22048. * always deterministic regardless of packaging, on-the-fly injection, etc.
  22049. *
  22050. * @param {array} InjectedEventPluginOrder
  22051. * @internal
  22052. * @see {EventPluginHub.injection.injectEventPluginOrder}
  22053. */
  22054. function injectEventPluginOrder(injectedEventPluginOrder) {
  22055. !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
  22056. // Clone the ordering so it cannot be dynamically mutated.
  22057. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  22058. recomputePluginOrdering();
  22059. }
  22060. /**
  22061. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  22062. * in the ordering injected by `injectEventPluginOrder`.
  22063. *
  22064. * Plugins can be injected as part of page initialization or on-the-fly.
  22065. *
  22066. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  22067. * @internal
  22068. * @see {EventPluginHub.injection.injectEventPluginsByName}
  22069. */
  22070. function injectEventPluginsByName(injectedNamesToPlugins) {
  22071. var isOrderingDirty = false;
  22072. for (var pluginName in injectedNamesToPlugins) {
  22073. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  22074. continue;
  22075. }
  22076. var pluginModule = injectedNamesToPlugins[pluginName];
  22077. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  22078. !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
  22079. namesToPlugins[pluginName] = pluginModule;
  22080. isOrderingDirty = true;
  22081. }
  22082. }
  22083. if (isOrderingDirty) {
  22084. recomputePluginOrdering();
  22085. }
  22086. }
  22087. /**
  22088. * Similar to invariant but only logs a warning if the condition is not met.
  22089. * This can be used to log issues in development environments in critical
  22090. * paths. Removing the logging code for production environments will keep the
  22091. * same logic and follow the same code paths.
  22092. */
  22093. var warningWithoutStack = function () {};
  22094. {
  22095. warningWithoutStack = function (condition, format) {
  22096. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  22097. args[_key - 2] = arguments[_key];
  22098. }
  22099. if (format === undefined) {
  22100. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  22101. }
  22102. if (args.length > 8) {
  22103. // Check before the condition to catch violations early.
  22104. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  22105. }
  22106. if (condition) {
  22107. return;
  22108. }
  22109. if (typeof console !== 'undefined') {
  22110. var argsWithFormat = args.map(function (item) {
  22111. return '' + item;
  22112. });
  22113. argsWithFormat.unshift('Warning: ' + format);
  22114. // We intentionally don't use spread (or .apply) directly because it
  22115. // breaks IE9: https://github.com/facebook/react/issues/13610
  22116. Function.prototype.apply.call(console.error, console, argsWithFormat);
  22117. }
  22118. try {
  22119. // --- Welcome to debugging React ---
  22120. // This error was thrown as a convenience so that you can use this stack
  22121. // to find the callsite that caused this warning to fire.
  22122. var argIndex = 0;
  22123. var message = 'Warning: ' + format.replace(/%s/g, function () {
  22124. return args[argIndex++];
  22125. });
  22126. throw new Error(message);
  22127. } catch (x) {}
  22128. };
  22129. }
  22130. var warningWithoutStack$1 = warningWithoutStack;
  22131. var getFiberCurrentPropsFromNode = null;
  22132. var getInstanceFromNode = null;
  22133. var getNodeFromInstance = null;
  22134. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  22135. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  22136. getInstanceFromNode = getInstanceFromNodeImpl;
  22137. getNodeFromInstance = getNodeFromInstanceImpl;
  22138. {
  22139. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  22140. }
  22141. }
  22142. var validateEventDispatches = void 0;
  22143. {
  22144. validateEventDispatches = function (event) {
  22145. var dispatchListeners = event._dispatchListeners;
  22146. var dispatchInstances = event._dispatchInstances;
  22147. var listenersIsArr = Array.isArray(dispatchListeners);
  22148. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  22149. var instancesIsArr = Array.isArray(dispatchInstances);
  22150. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  22151. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  22152. };
  22153. }
  22154. /**
  22155. * Dispatch the event to the listener.
  22156. * @param {SyntheticEvent} event SyntheticEvent to handle
  22157. * @param {function} listener Application-level callback
  22158. * @param {*} inst Internal component instance
  22159. */
  22160. function executeDispatch(event, listener, inst) {
  22161. var type = event.type || 'unknown-event';
  22162. event.currentTarget = getNodeFromInstance(inst);
  22163. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  22164. event.currentTarget = null;
  22165. }
  22166. /**
  22167. * Standard/simple iteration through an event's collected dispatches.
  22168. */
  22169. function executeDispatchesInOrder(event) {
  22170. var dispatchListeners = event._dispatchListeners;
  22171. var dispatchInstances = event._dispatchInstances;
  22172. {
  22173. validateEventDispatches(event);
  22174. }
  22175. if (Array.isArray(dispatchListeners)) {
  22176. for (var i = 0; i < dispatchListeners.length; i++) {
  22177. if (event.isPropagationStopped()) {
  22178. break;
  22179. }
  22180. // Listeners and Instances are two parallel arrays that are always in sync.
  22181. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  22182. }
  22183. } else if (dispatchListeners) {
  22184. executeDispatch(event, dispatchListeners, dispatchInstances);
  22185. }
  22186. event._dispatchListeners = null;
  22187. event._dispatchInstances = null;
  22188. }
  22189. /**
  22190. * @see executeDispatchesInOrderStopAtTrueImpl
  22191. */
  22192. /**
  22193. * Execution of a "direct" dispatch - there must be at most one dispatch
  22194. * accumulated on the event or it is considered an error. It doesn't really make
  22195. * sense for an event with multiple dispatches (bubbled) to keep track of the
  22196. * return values at each dispatch execution, but it does tend to make sense when
  22197. * dealing with "direct" dispatches.
  22198. *
  22199. * @return {*} The return value of executing the single dispatch.
  22200. */
  22201. /**
  22202. * @param {SyntheticEvent} event
  22203. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  22204. */
  22205. /**
  22206. * Accumulates items that must not be null or undefined into the first one. This
  22207. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  22208. * API cleanness. Since `current` can be null before being passed in and not
  22209. * null after this function, make sure to assign it back to `current`:
  22210. *
  22211. * `a = accumulateInto(a, b);`
  22212. *
  22213. * This API should be sparingly used. Try `accumulate` for something cleaner.
  22214. *
  22215. * @return {*|array<*>} An accumulation of items.
  22216. */
  22217. function accumulateInto(current, next) {
  22218. !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
  22219. if (current == null) {
  22220. return next;
  22221. }
  22222. // Both are not empty. Warning: Never call x.concat(y) when you are not
  22223. // certain that x is an Array (x could be a string with concat method).
  22224. if (Array.isArray(current)) {
  22225. if (Array.isArray(next)) {
  22226. current.push.apply(current, next);
  22227. return current;
  22228. }
  22229. current.push(next);
  22230. return current;
  22231. }
  22232. if (Array.isArray(next)) {
  22233. // A bit too dangerous to mutate `next`.
  22234. return [current].concat(next);
  22235. }
  22236. return [current, next];
  22237. }
  22238. /**
  22239. * @param {array} arr an "accumulation" of items which is either an Array or
  22240. * a single item. Useful when paired with the `accumulate` module. This is a
  22241. * simple utility that allows us to reason about a collection of items, but
  22242. * handling the case when there is exactly one item (and we do not need to
  22243. * allocate an array).
  22244. * @param {function} cb Callback invoked with each element or a collection.
  22245. * @param {?} [scope] Scope used as `this` in a callback.
  22246. */
  22247. function forEachAccumulated(arr, cb, scope) {
  22248. if (Array.isArray(arr)) {
  22249. arr.forEach(cb, scope);
  22250. } else if (arr) {
  22251. cb.call(scope, arr);
  22252. }
  22253. }
  22254. /**
  22255. * Internal queue of events that have accumulated their dispatches and are
  22256. * waiting to have their dispatches executed.
  22257. */
  22258. var eventQueue = null;
  22259. /**
  22260. * Dispatches an event and releases it back into the pool, unless persistent.
  22261. *
  22262. * @param {?object} event Synthetic event to be dispatched.
  22263. * @private
  22264. */
  22265. var executeDispatchesAndRelease = function (event) {
  22266. if (event) {
  22267. executeDispatchesInOrder(event);
  22268. if (!event.isPersistent()) {
  22269. event.constructor.release(event);
  22270. }
  22271. }
  22272. };
  22273. var executeDispatchesAndReleaseTopLevel = function (e) {
  22274. return executeDispatchesAndRelease(e);
  22275. };
  22276. function isInteractive(tag) {
  22277. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  22278. }
  22279. function shouldPreventMouseEvent(name, type, props) {
  22280. switch (name) {
  22281. case 'onClick':
  22282. case 'onClickCapture':
  22283. case 'onDoubleClick':
  22284. case 'onDoubleClickCapture':
  22285. case 'onMouseDown':
  22286. case 'onMouseDownCapture':
  22287. case 'onMouseMove':
  22288. case 'onMouseMoveCapture':
  22289. case 'onMouseUp':
  22290. case 'onMouseUpCapture':
  22291. return !!(props.disabled && isInteractive(type));
  22292. default:
  22293. return false;
  22294. }
  22295. }
  22296. /**
  22297. * This is a unified interface for event plugins to be installed and configured.
  22298. *
  22299. * Event plugins can implement the following properties:
  22300. *
  22301. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  22302. * Required. When a top-level event is fired, this method is expected to
  22303. * extract synthetic events that will in turn be queued and dispatched.
  22304. *
  22305. * `eventTypes` {object}
  22306. * Optional, plugins that fire events must publish a mapping of registration
  22307. * names that are used to register listeners. Values of this mapping must
  22308. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  22309. *
  22310. * `executeDispatch` {function(object, function, string)}
  22311. * Optional, allows plugins to override how an event gets dispatched. By
  22312. * default, the listener is simply invoked.
  22313. *
  22314. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  22315. *
  22316. * @public
  22317. */
  22318. /**
  22319. * Methods for injecting dependencies.
  22320. */
  22321. var injection = {
  22322. /**
  22323. * @param {array} InjectedEventPluginOrder
  22324. * @public
  22325. */
  22326. injectEventPluginOrder: injectEventPluginOrder,
  22327. /**
  22328. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  22329. */
  22330. injectEventPluginsByName: injectEventPluginsByName
  22331. };
  22332. /**
  22333. * @param {object} inst The instance, which is the source of events.
  22334. * @param {string} registrationName Name of listener (e.g. `onClick`).
  22335. * @return {?function} The stored callback.
  22336. */
  22337. function getListener(inst, registrationName) {
  22338. var listener = void 0;
  22339. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  22340. // live here; needs to be moved to a better place soon
  22341. var stateNode = inst.stateNode;
  22342. if (!stateNode) {
  22343. // Work in progress (ex: onload events in incremental mode).
  22344. return null;
  22345. }
  22346. var props = getFiberCurrentPropsFromNode(stateNode);
  22347. if (!props) {
  22348. // Work in progress.
  22349. return null;
  22350. }
  22351. listener = props[registrationName];
  22352. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  22353. return null;
  22354. }
  22355. !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
  22356. return listener;
  22357. }
  22358. /**
  22359. * Allows registered plugins an opportunity to extract events from top-level
  22360. * native browser events.
  22361. *
  22362. * @return {*} An accumulation of synthetic events.
  22363. * @internal
  22364. */
  22365. function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  22366. var events = null;
  22367. for (var i = 0; i < plugins.length; i++) {
  22368. // Not every plugin in the ordering may be loaded at runtime.
  22369. var possiblePlugin = plugins[i];
  22370. if (possiblePlugin) {
  22371. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  22372. if (extractedEvents) {
  22373. events = accumulateInto(events, extractedEvents);
  22374. }
  22375. }
  22376. }
  22377. return events;
  22378. }
  22379. function runEventsInBatch(events) {
  22380. if (events !== null) {
  22381. eventQueue = accumulateInto(eventQueue, events);
  22382. }
  22383. // Set `eventQueue` to null before processing it so that we can tell if more
  22384. // events get enqueued while processing.
  22385. var processingEventQueue = eventQueue;
  22386. eventQueue = null;
  22387. if (!processingEventQueue) {
  22388. return;
  22389. }
  22390. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  22391. !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
  22392. // This would be a good time to rethrow if any of the event handlers threw.
  22393. rethrowCaughtError();
  22394. }
  22395. function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  22396. var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  22397. runEventsInBatch(events);
  22398. }
  22399. var FunctionComponent = 0;
  22400. var ClassComponent = 1;
  22401. var IndeterminateComponent = 2; // Before we know whether it is function or class
  22402. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  22403. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  22404. var HostComponent = 5;
  22405. var HostText = 6;
  22406. var Fragment = 7;
  22407. var Mode = 8;
  22408. var ContextConsumer = 9;
  22409. var ContextProvider = 10;
  22410. var ForwardRef = 11;
  22411. var Profiler = 12;
  22412. var SuspenseComponent = 13;
  22413. var MemoComponent = 14;
  22414. var SimpleMemoComponent = 15;
  22415. var LazyComponent = 16;
  22416. var IncompleteClassComponent = 17;
  22417. var randomKey = Math.random().toString(36).slice(2);
  22418. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  22419. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  22420. function precacheFiberNode(hostInst, node) {
  22421. node[internalInstanceKey] = hostInst;
  22422. }
  22423. /**
  22424. * Given a DOM node, return the closest ReactDOMComponent or
  22425. * ReactDOMTextComponent instance ancestor.
  22426. */
  22427. function getClosestInstanceFromNode(node) {
  22428. if (node[internalInstanceKey]) {
  22429. return node[internalInstanceKey];
  22430. }
  22431. while (!node[internalInstanceKey]) {
  22432. if (node.parentNode) {
  22433. node = node.parentNode;
  22434. } else {
  22435. // Top of the tree. This node must not be part of a React tree (or is
  22436. // unmounted, potentially).
  22437. return null;
  22438. }
  22439. }
  22440. var inst = node[internalInstanceKey];
  22441. if (inst.tag === HostComponent || inst.tag === HostText) {
  22442. // In Fiber, this will always be the deepest root.
  22443. return inst;
  22444. }
  22445. return null;
  22446. }
  22447. /**
  22448. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  22449. * instance, or null if the node was not rendered by this React.
  22450. */
  22451. function getInstanceFromNode$1(node) {
  22452. var inst = node[internalInstanceKey];
  22453. if (inst) {
  22454. if (inst.tag === HostComponent || inst.tag === HostText) {
  22455. return inst;
  22456. } else {
  22457. return null;
  22458. }
  22459. }
  22460. return null;
  22461. }
  22462. /**
  22463. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  22464. * DOM node.
  22465. */
  22466. function getNodeFromInstance$1(inst) {
  22467. if (inst.tag === HostComponent || inst.tag === HostText) {
  22468. // In Fiber this, is just the state node right now. We assume it will be
  22469. // a host component or host text.
  22470. return inst.stateNode;
  22471. }
  22472. // Without this first invariant, passing a non-DOM-component triggers the next
  22473. // invariant for a missing parent, which is super confusing.
  22474. invariant(false, 'getNodeFromInstance: Invalid argument.');
  22475. }
  22476. function getFiberCurrentPropsFromNode$1(node) {
  22477. return node[internalEventHandlersKey] || null;
  22478. }
  22479. function updateFiberProps(node, props) {
  22480. node[internalEventHandlersKey] = props;
  22481. }
  22482. function getParent(inst) {
  22483. do {
  22484. inst = inst.return;
  22485. // TODO: If this is a HostRoot we might want to bail out.
  22486. // That is depending on if we want nested subtrees (layers) to bubble
  22487. // events to their parent. We could also go through parentNode on the
  22488. // host node but that wouldn't work for React Native and doesn't let us
  22489. // do the portal feature.
  22490. } while (inst && inst.tag !== HostComponent);
  22491. if (inst) {
  22492. return inst;
  22493. }
  22494. return null;
  22495. }
  22496. /**
  22497. * Return the lowest common ancestor of A and B, or null if they are in
  22498. * different trees.
  22499. */
  22500. function getLowestCommonAncestor(instA, instB) {
  22501. var depthA = 0;
  22502. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  22503. depthA++;
  22504. }
  22505. var depthB = 0;
  22506. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  22507. depthB++;
  22508. }
  22509. // If A is deeper, crawl up.
  22510. while (depthA - depthB > 0) {
  22511. instA = getParent(instA);
  22512. depthA--;
  22513. }
  22514. // If B is deeper, crawl up.
  22515. while (depthB - depthA > 0) {
  22516. instB = getParent(instB);
  22517. depthB--;
  22518. }
  22519. // Walk in lockstep until we find a match.
  22520. var depth = depthA;
  22521. while (depth--) {
  22522. if (instA === instB || instA === instB.alternate) {
  22523. return instA;
  22524. }
  22525. instA = getParent(instA);
  22526. instB = getParent(instB);
  22527. }
  22528. return null;
  22529. }
  22530. /**
  22531. * Return if A is an ancestor of B.
  22532. */
  22533. /**
  22534. * Return the parent instance of the passed-in instance.
  22535. */
  22536. /**
  22537. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  22538. */
  22539. function traverseTwoPhase(inst, fn, arg) {
  22540. var path = [];
  22541. while (inst) {
  22542. path.push(inst);
  22543. inst = getParent(inst);
  22544. }
  22545. var i = void 0;
  22546. for (i = path.length; i-- > 0;) {
  22547. fn(path[i], 'captured', arg);
  22548. }
  22549. for (i = 0; i < path.length; i++) {
  22550. fn(path[i], 'bubbled', arg);
  22551. }
  22552. }
  22553. /**
  22554. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  22555. * should would receive a `mouseEnter` or `mouseLeave` event.
  22556. *
  22557. * Does not invoke the callback on the nearest common ancestor because nothing
  22558. * "entered" or "left" that element.
  22559. */
  22560. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  22561. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  22562. var pathFrom = [];
  22563. while (true) {
  22564. if (!from) {
  22565. break;
  22566. }
  22567. if (from === common) {
  22568. break;
  22569. }
  22570. var alternate = from.alternate;
  22571. if (alternate !== null && alternate === common) {
  22572. break;
  22573. }
  22574. pathFrom.push(from);
  22575. from = getParent(from);
  22576. }
  22577. var pathTo = [];
  22578. while (true) {
  22579. if (!to) {
  22580. break;
  22581. }
  22582. if (to === common) {
  22583. break;
  22584. }
  22585. var _alternate = to.alternate;
  22586. if (_alternate !== null && _alternate === common) {
  22587. break;
  22588. }
  22589. pathTo.push(to);
  22590. to = getParent(to);
  22591. }
  22592. for (var i = 0; i < pathFrom.length; i++) {
  22593. fn(pathFrom[i], 'bubbled', argFrom);
  22594. }
  22595. for (var _i = pathTo.length; _i-- > 0;) {
  22596. fn(pathTo[_i], 'captured', argTo);
  22597. }
  22598. }
  22599. /**
  22600. * Some event types have a notion of different registration names for different
  22601. * "phases" of propagation. This finds listeners by a given phase.
  22602. */
  22603. function listenerAtPhase(inst, event, propagationPhase) {
  22604. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  22605. return getListener(inst, registrationName);
  22606. }
  22607. /**
  22608. * A small set of propagation patterns, each of which will accept a small amount
  22609. * of information, and generate a set of "dispatch ready event objects" - which
  22610. * are sets of events that have already been annotated with a set of dispatched
  22611. * listener functions/ids. The API is designed this way to discourage these
  22612. * propagation strategies from actually executing the dispatches, since we
  22613. * always want to collect the entire set of dispatches before executing even a
  22614. * single one.
  22615. */
  22616. /**
  22617. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  22618. * here, allows us to not have to bind or create functions for each event.
  22619. * Mutating the event's members allows us to not have to create a wrapping
  22620. * "dispatch" object that pairs the event with the listener.
  22621. */
  22622. function accumulateDirectionalDispatches(inst, phase, event) {
  22623. {
  22624. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  22625. }
  22626. var listener = listenerAtPhase(inst, event, phase);
  22627. if (listener) {
  22628. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  22629. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  22630. }
  22631. }
  22632. /**
  22633. * Collect dispatches (must be entirely collected before dispatching - see unit
  22634. * tests). Lazily allocate the array to conserve memory. We must loop through
  22635. * each event and perform the traversal for each one. We cannot perform a
  22636. * single traversal for the entire collection of events because each event may
  22637. * have a different target.
  22638. */
  22639. function accumulateTwoPhaseDispatchesSingle(event) {
  22640. if (event && event.dispatchConfig.phasedRegistrationNames) {
  22641. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  22642. }
  22643. }
  22644. /**
  22645. * Accumulates without regard to direction, does not look for phased
  22646. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  22647. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  22648. */
  22649. function accumulateDispatches(inst, ignoredDirection, event) {
  22650. if (inst && event && event.dispatchConfig.registrationName) {
  22651. var registrationName = event.dispatchConfig.registrationName;
  22652. var listener = getListener(inst, registrationName);
  22653. if (listener) {
  22654. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  22655. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  22656. }
  22657. }
  22658. }
  22659. /**
  22660. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  22661. * `dispatchMarker`.
  22662. * @param {SyntheticEvent} event
  22663. */
  22664. function accumulateDirectDispatchesSingle(event) {
  22665. if (event && event.dispatchConfig.registrationName) {
  22666. accumulateDispatches(event._targetInst, null, event);
  22667. }
  22668. }
  22669. function accumulateTwoPhaseDispatches(events) {
  22670. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  22671. }
  22672. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  22673. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  22674. }
  22675. function accumulateDirectDispatches(events) {
  22676. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  22677. }
  22678. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  22679. // Do not uses the below two methods directly!
  22680. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  22681. // (It is the only module that is allowed to access these methods.)
  22682. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  22683. return topLevelType;
  22684. }
  22685. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  22686. return topLevelType;
  22687. }
  22688. /**
  22689. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  22690. *
  22691. * @param {string} styleProp
  22692. * @param {string} eventName
  22693. * @returns {object}
  22694. */
  22695. function makePrefixMap(styleProp, eventName) {
  22696. var prefixes = {};
  22697. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  22698. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  22699. prefixes['Moz' + styleProp] = 'moz' + eventName;
  22700. return prefixes;
  22701. }
  22702. /**
  22703. * A list of event names to a configurable list of vendor prefixes.
  22704. */
  22705. var vendorPrefixes = {
  22706. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  22707. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  22708. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  22709. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  22710. };
  22711. /**
  22712. * Event names that have already been detected and prefixed (if applicable).
  22713. */
  22714. var prefixedEventNames = {};
  22715. /**
  22716. * Element to check for prefixes on.
  22717. */
  22718. var style = {};
  22719. /**
  22720. * Bootstrap if a DOM exists.
  22721. */
  22722. if (canUseDOM) {
  22723. style = document.createElement('div').style;
  22724. // On some platforms, in particular some releases of Android 4.x,
  22725. // the un-prefixed "animation" and "transition" properties are defined on the
  22726. // style object but the events that fire will still be prefixed, so we need
  22727. // to check if the un-prefixed events are usable, and if not remove them from the map.
  22728. if (!('AnimationEvent' in window)) {
  22729. delete vendorPrefixes.animationend.animation;
  22730. delete vendorPrefixes.animationiteration.animation;
  22731. delete vendorPrefixes.animationstart.animation;
  22732. }
  22733. // Same as above
  22734. if (!('TransitionEvent' in window)) {
  22735. delete vendorPrefixes.transitionend.transition;
  22736. }
  22737. }
  22738. /**
  22739. * Attempts to determine the correct vendor prefixed event name.
  22740. *
  22741. * @param {string} eventName
  22742. * @returns {string}
  22743. */
  22744. function getVendorPrefixedEventName(eventName) {
  22745. if (prefixedEventNames[eventName]) {
  22746. return prefixedEventNames[eventName];
  22747. } else if (!vendorPrefixes[eventName]) {
  22748. return eventName;
  22749. }
  22750. var prefixMap = vendorPrefixes[eventName];
  22751. for (var styleProp in prefixMap) {
  22752. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  22753. return prefixedEventNames[eventName] = prefixMap[styleProp];
  22754. }
  22755. }
  22756. return eventName;
  22757. }
  22758. /**
  22759. * To identify top level events in ReactDOM, we use constants defined by this
  22760. * module. This is the only module that uses the unsafe* methods to express
  22761. * that the constants actually correspond to the browser event names. This lets
  22762. * us save some bundle size by avoiding a top level type -> event name map.
  22763. * The rest of ReactDOM code should import top level types from this file.
  22764. */
  22765. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  22766. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  22767. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  22768. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  22769. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  22770. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  22771. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  22772. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  22773. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  22774. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  22775. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  22776. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  22777. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  22778. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  22779. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  22780. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  22781. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  22782. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  22783. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  22784. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  22785. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  22786. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  22787. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  22788. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  22789. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  22790. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  22791. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  22792. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  22793. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  22794. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  22795. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  22796. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  22797. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  22798. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  22799. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  22800. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  22801. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  22802. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  22803. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  22804. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  22805. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  22806. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  22807. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  22808. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  22809. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  22810. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  22811. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  22812. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  22813. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  22814. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  22815. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  22816. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  22817. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  22818. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  22819. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  22820. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  22821. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  22822. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  22823. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  22824. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  22825. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  22826. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  22827. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  22828. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  22829. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  22830. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  22831. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  22832. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  22833. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  22834. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  22835. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  22836. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  22837. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  22838. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  22839. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  22840. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  22841. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  22842. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  22843. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  22844. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  22845. // List of events that need to be individually attached to media elements.
  22846. // Note that events in this list will *not* be listened to at the top level
  22847. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  22848. var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];
  22849. function getRawEventName(topLevelType) {
  22850. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  22851. }
  22852. /**
  22853. * These variables store information about text content of a target node,
  22854. * allowing comparison of content before and after a given event.
  22855. *
  22856. * Identify the node where selection currently begins, then observe
  22857. * both its text content and its current position in the DOM. Since the
  22858. * browser may natively replace the target node during composition, we can
  22859. * use its position to find its replacement.
  22860. *
  22861. *
  22862. */
  22863. var root = null;
  22864. var startText = null;
  22865. var fallbackText = null;
  22866. function initialize(nativeEventTarget) {
  22867. root = nativeEventTarget;
  22868. startText = getText();
  22869. return true;
  22870. }
  22871. function reset() {
  22872. root = null;
  22873. startText = null;
  22874. fallbackText = null;
  22875. }
  22876. function getData() {
  22877. if (fallbackText) {
  22878. return fallbackText;
  22879. }
  22880. var start = void 0;
  22881. var startValue = startText;
  22882. var startLength = startValue.length;
  22883. var end = void 0;
  22884. var endValue = getText();
  22885. var endLength = endValue.length;
  22886. for (start = 0; start < startLength; start++) {
  22887. if (startValue[start] !== endValue[start]) {
  22888. break;
  22889. }
  22890. }
  22891. var minEnd = startLength - start;
  22892. for (end = 1; end <= minEnd; end++) {
  22893. if (startValue[startLength - end] !== endValue[endLength - end]) {
  22894. break;
  22895. }
  22896. }
  22897. var sliceTail = end > 1 ? 1 - end : undefined;
  22898. fallbackText = endValue.slice(start, sliceTail);
  22899. return fallbackText;
  22900. }
  22901. function getText() {
  22902. if ('value' in root) {
  22903. return root.value;
  22904. }
  22905. return root.textContent;
  22906. }
  22907. /* eslint valid-typeof: 0 */
  22908. var EVENT_POOL_SIZE = 10;
  22909. /**
  22910. * @interface Event
  22911. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  22912. */
  22913. var EventInterface = {
  22914. type: null,
  22915. target: null,
  22916. // currentTarget is set when dispatching; no use in copying it here
  22917. currentTarget: function () {
  22918. return null;
  22919. },
  22920. eventPhase: null,
  22921. bubbles: null,
  22922. cancelable: null,
  22923. timeStamp: function (event) {
  22924. return event.timeStamp || Date.now();
  22925. },
  22926. defaultPrevented: null,
  22927. isTrusted: null
  22928. };
  22929. function functionThatReturnsTrue() {
  22930. return true;
  22931. }
  22932. function functionThatReturnsFalse() {
  22933. return false;
  22934. }
  22935. /**
  22936. * Synthetic events are dispatched by event plugins, typically in response to a
  22937. * top-level event delegation handler.
  22938. *
  22939. * These systems should generally use pooling to reduce the frequency of garbage
  22940. * collection. The system should check `isPersistent` to determine whether the
  22941. * event should be released into the pool after being dispatched. Users that
  22942. * need a persisted event should invoke `persist`.
  22943. *
  22944. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  22945. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  22946. * DOM interface; custom application-specific events can also subclass this.
  22947. *
  22948. * @param {object} dispatchConfig Configuration used to dispatch this event.
  22949. * @param {*} targetInst Marker identifying the event target.
  22950. * @param {object} nativeEvent Native browser event.
  22951. * @param {DOMEventTarget} nativeEventTarget Target node.
  22952. */
  22953. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  22954. {
  22955. // these have a getter/setter for warnings
  22956. delete this.nativeEvent;
  22957. delete this.preventDefault;
  22958. delete this.stopPropagation;
  22959. delete this.isDefaultPrevented;
  22960. delete this.isPropagationStopped;
  22961. }
  22962. this.dispatchConfig = dispatchConfig;
  22963. this._targetInst = targetInst;
  22964. this.nativeEvent = nativeEvent;
  22965. var Interface = this.constructor.Interface;
  22966. for (var propName in Interface) {
  22967. if (!Interface.hasOwnProperty(propName)) {
  22968. continue;
  22969. }
  22970. {
  22971. delete this[propName]; // this has a getter/setter for warnings
  22972. }
  22973. var normalize = Interface[propName];
  22974. if (normalize) {
  22975. this[propName] = normalize(nativeEvent);
  22976. } else {
  22977. if (propName === 'target') {
  22978. this.target = nativeEventTarget;
  22979. } else {
  22980. this[propName] = nativeEvent[propName];
  22981. }
  22982. }
  22983. }
  22984. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  22985. if (defaultPrevented) {
  22986. this.isDefaultPrevented = functionThatReturnsTrue;
  22987. } else {
  22988. this.isDefaultPrevented = functionThatReturnsFalse;
  22989. }
  22990. this.isPropagationStopped = functionThatReturnsFalse;
  22991. return this;
  22992. }
  22993. _assign(SyntheticEvent.prototype, {
  22994. preventDefault: function () {
  22995. this.defaultPrevented = true;
  22996. var event = this.nativeEvent;
  22997. if (!event) {
  22998. return;
  22999. }
  23000. if (event.preventDefault) {
  23001. event.preventDefault();
  23002. } else if (typeof event.returnValue !== 'unknown') {
  23003. event.returnValue = false;
  23004. }
  23005. this.isDefaultPrevented = functionThatReturnsTrue;
  23006. },
  23007. stopPropagation: function () {
  23008. var event = this.nativeEvent;
  23009. if (!event) {
  23010. return;
  23011. }
  23012. if (event.stopPropagation) {
  23013. event.stopPropagation();
  23014. } else if (typeof event.cancelBubble !== 'unknown') {
  23015. // The ChangeEventPlugin registers a "propertychange" event for
  23016. // IE. This event does not support bubbling or cancelling, and
  23017. // any references to cancelBubble throw "Member not found". A
  23018. // typeof check of "unknown" circumvents this issue (and is also
  23019. // IE specific).
  23020. event.cancelBubble = true;
  23021. }
  23022. this.isPropagationStopped = functionThatReturnsTrue;
  23023. },
  23024. /**
  23025. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  23026. * them back into the pool. This allows a way to hold onto a reference that
  23027. * won't be added back into the pool.
  23028. */
  23029. persist: function () {
  23030. this.isPersistent = functionThatReturnsTrue;
  23031. },
  23032. /**
  23033. * Checks if this event should be released back into the pool.
  23034. *
  23035. * @return {boolean} True if this should not be released, false otherwise.
  23036. */
  23037. isPersistent: functionThatReturnsFalse,
  23038. /**
  23039. * `PooledClass` looks for `destructor` on each instance it releases.
  23040. */
  23041. destructor: function () {
  23042. var Interface = this.constructor.Interface;
  23043. for (var propName in Interface) {
  23044. {
  23045. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  23046. }
  23047. }
  23048. this.dispatchConfig = null;
  23049. this._targetInst = null;
  23050. this.nativeEvent = null;
  23051. this.isDefaultPrevented = functionThatReturnsFalse;
  23052. this.isPropagationStopped = functionThatReturnsFalse;
  23053. this._dispatchListeners = null;
  23054. this._dispatchInstances = null;
  23055. {
  23056. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  23057. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  23058. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  23059. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  23060. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  23061. }
  23062. }
  23063. });
  23064. SyntheticEvent.Interface = EventInterface;
  23065. /**
  23066. * Helper to reduce boilerplate when creating subclasses.
  23067. */
  23068. SyntheticEvent.extend = function (Interface) {
  23069. var Super = this;
  23070. var E = function () {};
  23071. E.prototype = Super.prototype;
  23072. var prototype = new E();
  23073. function Class() {
  23074. return Super.apply(this, arguments);
  23075. }
  23076. _assign(prototype, Class.prototype);
  23077. Class.prototype = prototype;
  23078. Class.prototype.constructor = Class;
  23079. Class.Interface = _assign({}, Super.Interface, Interface);
  23080. Class.extend = Super.extend;
  23081. addEventPoolingTo(Class);
  23082. return Class;
  23083. };
  23084. addEventPoolingTo(SyntheticEvent);
  23085. /**
  23086. * Helper to nullify syntheticEvent instance properties when destructing
  23087. *
  23088. * @param {String} propName
  23089. * @param {?object} getVal
  23090. * @return {object} defineProperty object
  23091. */
  23092. function getPooledWarningPropertyDefinition(propName, getVal) {
  23093. var isFunction = typeof getVal === 'function';
  23094. return {
  23095. configurable: true,
  23096. set: set,
  23097. get: get
  23098. };
  23099. function set(val) {
  23100. var action = isFunction ? 'setting the method' : 'setting the property';
  23101. warn(action, 'This is effectively a no-op');
  23102. return val;
  23103. }
  23104. function get() {
  23105. var action = isFunction ? 'accessing the method' : 'accessing the property';
  23106. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  23107. warn(action, result);
  23108. return getVal;
  23109. }
  23110. function warn(action, result) {
  23111. var warningCondition = false;
  23112. !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
  23113. }
  23114. }
  23115. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  23116. var EventConstructor = this;
  23117. if (EventConstructor.eventPool.length) {
  23118. var instance = EventConstructor.eventPool.pop();
  23119. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  23120. return instance;
  23121. }
  23122. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  23123. }
  23124. function releasePooledEvent(event) {
  23125. var EventConstructor = this;
  23126. !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
  23127. event.destructor();
  23128. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  23129. EventConstructor.eventPool.push(event);
  23130. }
  23131. }
  23132. function addEventPoolingTo(EventConstructor) {
  23133. EventConstructor.eventPool = [];
  23134. EventConstructor.getPooled = getPooledEvent;
  23135. EventConstructor.release = releasePooledEvent;
  23136. }
  23137. /**
  23138. * @interface Event
  23139. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  23140. */
  23141. var SyntheticCompositionEvent = SyntheticEvent.extend({
  23142. data: null
  23143. });
  23144. /**
  23145. * @interface Event
  23146. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  23147. * /#events-inputevents
  23148. */
  23149. var SyntheticInputEvent = SyntheticEvent.extend({
  23150. data: null
  23151. });
  23152. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  23153. var START_KEYCODE = 229;
  23154. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  23155. var documentMode = null;
  23156. if (canUseDOM && 'documentMode' in document) {
  23157. documentMode = document.documentMode;
  23158. }
  23159. // Webkit offers a very useful `textInput` event that can be used to
  23160. // directly represent `beforeInput`. The IE `textinput` event is not as
  23161. // useful, so we don't use it.
  23162. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  23163. // In IE9+, we have access to composition events, but the data supplied
  23164. // by the native compositionend event may be incorrect. Japanese ideographic
  23165. // spaces, for instance (\u3000) are not recorded correctly.
  23166. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  23167. var SPACEBAR_CODE = 32;
  23168. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  23169. // Events and their corresponding property names.
  23170. var eventTypes = {
  23171. beforeInput: {
  23172. phasedRegistrationNames: {
  23173. bubbled: 'onBeforeInput',
  23174. captured: 'onBeforeInputCapture'
  23175. },
  23176. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  23177. },
  23178. compositionEnd: {
  23179. phasedRegistrationNames: {
  23180. bubbled: 'onCompositionEnd',
  23181. captured: 'onCompositionEndCapture'
  23182. },
  23183. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  23184. },
  23185. compositionStart: {
  23186. phasedRegistrationNames: {
  23187. bubbled: 'onCompositionStart',
  23188. captured: 'onCompositionStartCapture'
  23189. },
  23190. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  23191. },
  23192. compositionUpdate: {
  23193. phasedRegistrationNames: {
  23194. bubbled: 'onCompositionUpdate',
  23195. captured: 'onCompositionUpdateCapture'
  23196. },
  23197. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  23198. }
  23199. };
  23200. // Track whether we've ever handled a keypress on the space key.
  23201. var hasSpaceKeypress = false;
  23202. /**
  23203. * Return whether a native keypress event is assumed to be a command.
  23204. * This is required because Firefox fires `keypress` events for key commands
  23205. * (cut, copy, select-all, etc.) even though no character is inserted.
  23206. */
  23207. function isKeypressCommand(nativeEvent) {
  23208. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  23209. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  23210. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  23211. }
  23212. /**
  23213. * Translate native top level events into event types.
  23214. *
  23215. * @param {string} topLevelType
  23216. * @return {object}
  23217. */
  23218. function getCompositionEventType(topLevelType) {
  23219. switch (topLevelType) {
  23220. case TOP_COMPOSITION_START:
  23221. return eventTypes.compositionStart;
  23222. case TOP_COMPOSITION_END:
  23223. return eventTypes.compositionEnd;
  23224. case TOP_COMPOSITION_UPDATE:
  23225. return eventTypes.compositionUpdate;
  23226. }
  23227. }
  23228. /**
  23229. * Does our fallback best-guess model think this event signifies that
  23230. * composition has begun?
  23231. *
  23232. * @param {string} topLevelType
  23233. * @param {object} nativeEvent
  23234. * @return {boolean}
  23235. */
  23236. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  23237. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  23238. }
  23239. /**
  23240. * Does our fallback mode think that this event is the end of composition?
  23241. *
  23242. * @param {string} topLevelType
  23243. * @param {object} nativeEvent
  23244. * @return {boolean}
  23245. */
  23246. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  23247. switch (topLevelType) {
  23248. case TOP_KEY_UP:
  23249. // Command keys insert or clear IME input.
  23250. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  23251. case TOP_KEY_DOWN:
  23252. // Expect IME keyCode on each keydown. If we get any other
  23253. // code we must have exited earlier.
  23254. return nativeEvent.keyCode !== START_KEYCODE;
  23255. case TOP_KEY_PRESS:
  23256. case TOP_MOUSE_DOWN:
  23257. case TOP_BLUR:
  23258. // Events are not possible without cancelling IME.
  23259. return true;
  23260. default:
  23261. return false;
  23262. }
  23263. }
  23264. /**
  23265. * Google Input Tools provides composition data via a CustomEvent,
  23266. * with the `data` property populated in the `detail` object. If this
  23267. * is available on the event object, use it. If not, this is a plain
  23268. * composition event and we have nothing special to extract.
  23269. *
  23270. * @param {object} nativeEvent
  23271. * @return {?string}
  23272. */
  23273. function getDataFromCustomEvent(nativeEvent) {
  23274. var detail = nativeEvent.detail;
  23275. if (typeof detail === 'object' && 'data' in detail) {
  23276. return detail.data;
  23277. }
  23278. return null;
  23279. }
  23280. /**
  23281. * Check if a composition event was triggered by Korean IME.
  23282. * Our fallback mode does not work well with IE's Korean IME,
  23283. * so just use native composition events when Korean IME is used.
  23284. * Although CompositionEvent.locale property is deprecated,
  23285. * it is available in IE, where our fallback mode is enabled.
  23286. *
  23287. * @param {object} nativeEvent
  23288. * @return {boolean}
  23289. */
  23290. function isUsingKoreanIME(nativeEvent) {
  23291. return nativeEvent.locale === 'ko';
  23292. }
  23293. // Track the current IME composition status, if any.
  23294. var isComposing = false;
  23295. /**
  23296. * @return {?object} A SyntheticCompositionEvent.
  23297. */
  23298. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23299. var eventType = void 0;
  23300. var fallbackData = void 0;
  23301. if (canUseCompositionEvent) {
  23302. eventType = getCompositionEventType(topLevelType);
  23303. } else if (!isComposing) {
  23304. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  23305. eventType = eventTypes.compositionStart;
  23306. }
  23307. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  23308. eventType = eventTypes.compositionEnd;
  23309. }
  23310. if (!eventType) {
  23311. return null;
  23312. }
  23313. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  23314. // The current composition is stored statically and must not be
  23315. // overwritten while composition continues.
  23316. if (!isComposing && eventType === eventTypes.compositionStart) {
  23317. isComposing = initialize(nativeEventTarget);
  23318. } else if (eventType === eventTypes.compositionEnd) {
  23319. if (isComposing) {
  23320. fallbackData = getData();
  23321. }
  23322. }
  23323. }
  23324. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  23325. if (fallbackData) {
  23326. // Inject data generated from fallback path into the synthetic event.
  23327. // This matches the property of native CompositionEventInterface.
  23328. event.data = fallbackData;
  23329. } else {
  23330. var customData = getDataFromCustomEvent(nativeEvent);
  23331. if (customData !== null) {
  23332. event.data = customData;
  23333. }
  23334. }
  23335. accumulateTwoPhaseDispatches(event);
  23336. return event;
  23337. }
  23338. /**
  23339. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  23340. * @param {object} nativeEvent Native browser event.
  23341. * @return {?string} The string corresponding to this `beforeInput` event.
  23342. */
  23343. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  23344. switch (topLevelType) {
  23345. case TOP_COMPOSITION_END:
  23346. return getDataFromCustomEvent(nativeEvent);
  23347. case TOP_KEY_PRESS:
  23348. /**
  23349. * If native `textInput` events are available, our goal is to make
  23350. * use of them. However, there is a special case: the spacebar key.
  23351. * In Webkit, preventing default on a spacebar `textInput` event
  23352. * cancels character insertion, but it *also* causes the browser
  23353. * to fall back to its default spacebar behavior of scrolling the
  23354. * page.
  23355. *
  23356. * Tracking at:
  23357. * https://code.google.com/p/chromium/issues/detail?id=355103
  23358. *
  23359. * To avoid this issue, use the keypress event as if no `textInput`
  23360. * event is available.
  23361. */
  23362. var which = nativeEvent.which;
  23363. if (which !== SPACEBAR_CODE) {
  23364. return null;
  23365. }
  23366. hasSpaceKeypress = true;
  23367. return SPACEBAR_CHAR;
  23368. case TOP_TEXT_INPUT:
  23369. // Record the characters to be added to the DOM.
  23370. var chars = nativeEvent.data;
  23371. // If it's a spacebar character, assume that we have already handled
  23372. // it at the keypress level and bail immediately. Android Chrome
  23373. // doesn't give us keycodes, so we need to ignore it.
  23374. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  23375. return null;
  23376. }
  23377. return chars;
  23378. default:
  23379. // For other native event types, do nothing.
  23380. return null;
  23381. }
  23382. }
  23383. /**
  23384. * For browsers that do not provide the `textInput` event, extract the
  23385. * appropriate string to use for SyntheticInputEvent.
  23386. *
  23387. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  23388. * @param {object} nativeEvent Native browser event.
  23389. * @return {?string} The fallback string for this `beforeInput` event.
  23390. */
  23391. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  23392. // If we are currently composing (IME) and using a fallback to do so,
  23393. // try to extract the composed characters from the fallback object.
  23394. // If composition event is available, we extract a string only at
  23395. // compositionevent, otherwise extract it at fallback events.
  23396. if (isComposing) {
  23397. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  23398. var chars = getData();
  23399. reset();
  23400. isComposing = false;
  23401. return chars;
  23402. }
  23403. return null;
  23404. }
  23405. switch (topLevelType) {
  23406. case TOP_PASTE:
  23407. // If a paste event occurs after a keypress, throw out the input
  23408. // chars. Paste events should not lead to BeforeInput events.
  23409. return null;
  23410. case TOP_KEY_PRESS:
  23411. /**
  23412. * As of v27, Firefox may fire keypress events even when no character
  23413. * will be inserted. A few possibilities:
  23414. *
  23415. * - `which` is `0`. Arrow keys, Esc key, etc.
  23416. *
  23417. * - `which` is the pressed key code, but no char is available.
  23418. * Ex: 'AltGr + d` in Polish. There is no modified character for
  23419. * this key combination and no character is inserted into the
  23420. * document, but FF fires the keypress for char code `100` anyway.
  23421. * No `input` event will occur.
  23422. *
  23423. * - `which` is the pressed key code, but a command combination is
  23424. * being used. Ex: `Cmd+C`. No character is inserted, and no
  23425. * `input` event will occur.
  23426. */
  23427. if (!isKeypressCommand(nativeEvent)) {
  23428. // IE fires the `keypress` event when a user types an emoji via
  23429. // Touch keyboard of Windows. In such a case, the `char` property
  23430. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  23431. // is 2, the property `which` does not represent an emoji correctly.
  23432. // In such a case, we directly return the `char` property instead of
  23433. // using `which`.
  23434. if (nativeEvent.char && nativeEvent.char.length > 1) {
  23435. return nativeEvent.char;
  23436. } else if (nativeEvent.which) {
  23437. return String.fromCharCode(nativeEvent.which);
  23438. }
  23439. }
  23440. return null;
  23441. case TOP_COMPOSITION_END:
  23442. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  23443. default:
  23444. return null;
  23445. }
  23446. }
  23447. /**
  23448. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  23449. * `textInput` or fallback behavior.
  23450. *
  23451. * @return {?object} A SyntheticInputEvent.
  23452. */
  23453. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23454. var chars = void 0;
  23455. if (canUseTextInputEvent) {
  23456. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  23457. } else {
  23458. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  23459. }
  23460. // If no characters are being inserted, no BeforeInput event should
  23461. // be fired.
  23462. if (!chars) {
  23463. return null;
  23464. }
  23465. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  23466. event.data = chars;
  23467. accumulateTwoPhaseDispatches(event);
  23468. return event;
  23469. }
  23470. /**
  23471. * Create an `onBeforeInput` event to match
  23472. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  23473. *
  23474. * This event plugin is based on the native `textInput` event
  23475. * available in Chrome, Safari, Opera, and IE. This event fires after
  23476. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  23477. *
  23478. * `beforeInput` is spec'd but not implemented in any browsers, and
  23479. * the `input` event does not provide any useful information about what has
  23480. * actually been added, contrary to the spec. Thus, `textInput` is the best
  23481. * available event to identify the characters that have actually been inserted
  23482. * into the target node.
  23483. *
  23484. * This plugin is also responsible for emitting `composition` events, thus
  23485. * allowing us to share composition fallback code for both `beforeInput` and
  23486. * `composition` event types.
  23487. */
  23488. var BeforeInputEventPlugin = {
  23489. eventTypes: eventTypes,
  23490. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23491. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  23492. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  23493. if (composition === null) {
  23494. return beforeInput;
  23495. }
  23496. if (beforeInput === null) {
  23497. return composition;
  23498. }
  23499. return [composition, beforeInput];
  23500. }
  23501. };
  23502. // Use to restore controlled state after a change event has fired.
  23503. var restoreImpl = null;
  23504. var restoreTarget = null;
  23505. var restoreQueue = null;
  23506. function restoreStateOfTarget(target) {
  23507. // We perform this translation at the end of the event loop so that we
  23508. // always receive the correct fiber here
  23509. var internalInstance = getInstanceFromNode(target);
  23510. if (!internalInstance) {
  23511. // Unmounted
  23512. return;
  23513. }
  23514. !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  23515. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  23516. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  23517. }
  23518. function setRestoreImplementation(impl) {
  23519. restoreImpl = impl;
  23520. }
  23521. function enqueueStateRestore(target) {
  23522. if (restoreTarget) {
  23523. if (restoreQueue) {
  23524. restoreQueue.push(target);
  23525. } else {
  23526. restoreQueue = [target];
  23527. }
  23528. } else {
  23529. restoreTarget = target;
  23530. }
  23531. }
  23532. function needsStateRestore() {
  23533. return restoreTarget !== null || restoreQueue !== null;
  23534. }
  23535. function restoreStateIfNeeded() {
  23536. if (!restoreTarget) {
  23537. return;
  23538. }
  23539. var target = restoreTarget;
  23540. var queuedTargets = restoreQueue;
  23541. restoreTarget = null;
  23542. restoreQueue = null;
  23543. restoreStateOfTarget(target);
  23544. if (queuedTargets) {
  23545. for (var i = 0; i < queuedTargets.length; i++) {
  23546. restoreStateOfTarget(queuedTargets[i]);
  23547. }
  23548. }
  23549. }
  23550. // Used as a way to call batchedUpdates when we don't have a reference to
  23551. // the renderer. Such as when we're dispatching events or if third party
  23552. // libraries need to call batchedUpdates. Eventually, this API will go away when
  23553. // everything is batched by default. We'll then have a similar API to opt-out of
  23554. // scheduled work and instead do synchronous work.
  23555. // Defaults
  23556. var _batchedUpdatesImpl = function (fn, bookkeeping) {
  23557. return fn(bookkeeping);
  23558. };
  23559. var _interactiveUpdatesImpl = function (fn, a, b) {
  23560. return fn(a, b);
  23561. };
  23562. var _flushInteractiveUpdatesImpl = function () {};
  23563. var isBatching = false;
  23564. function batchedUpdates(fn, bookkeeping) {
  23565. if (isBatching) {
  23566. // If we are currently inside another batch, we need to wait until it
  23567. // fully completes before restoring state.
  23568. return fn(bookkeeping);
  23569. }
  23570. isBatching = true;
  23571. try {
  23572. return _batchedUpdatesImpl(fn, bookkeeping);
  23573. } finally {
  23574. // Here we wait until all updates have propagated, which is important
  23575. // when using controlled components within layers:
  23576. // https://github.com/facebook/react/issues/1698
  23577. // Then we restore state of any controlled component.
  23578. isBatching = false;
  23579. var controlledComponentsHavePendingUpdates = needsStateRestore();
  23580. if (controlledComponentsHavePendingUpdates) {
  23581. // If a controlled event was fired, we may need to restore the state of
  23582. // the DOM node back to the controlled value. This is necessary when React
  23583. // bails out of the update without touching the DOM.
  23584. _flushInteractiveUpdatesImpl();
  23585. restoreStateIfNeeded();
  23586. }
  23587. }
  23588. }
  23589. function interactiveUpdates(fn, a, b) {
  23590. return _interactiveUpdatesImpl(fn, a, b);
  23591. }
  23592. function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
  23593. _batchedUpdatesImpl = batchedUpdatesImpl;
  23594. _interactiveUpdatesImpl = interactiveUpdatesImpl;
  23595. _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
  23596. }
  23597. /**
  23598. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  23599. */
  23600. var supportedInputTypes = {
  23601. color: true,
  23602. date: true,
  23603. datetime: true,
  23604. 'datetime-local': true,
  23605. email: true,
  23606. month: true,
  23607. number: true,
  23608. password: true,
  23609. range: true,
  23610. search: true,
  23611. tel: true,
  23612. text: true,
  23613. time: true,
  23614. url: true,
  23615. week: true
  23616. };
  23617. function isTextInputElement(elem) {
  23618. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  23619. if (nodeName === 'input') {
  23620. return !!supportedInputTypes[elem.type];
  23621. }
  23622. if (nodeName === 'textarea') {
  23623. return true;
  23624. }
  23625. return false;
  23626. }
  23627. /**
  23628. * HTML nodeType values that represent the type of the node
  23629. */
  23630. var ELEMENT_NODE = 1;
  23631. var TEXT_NODE = 3;
  23632. var COMMENT_NODE = 8;
  23633. var DOCUMENT_NODE = 9;
  23634. var DOCUMENT_FRAGMENT_NODE = 11;
  23635. /**
  23636. * Gets the target node from a native browser event by accounting for
  23637. * inconsistencies in browser DOM APIs.
  23638. *
  23639. * @param {object} nativeEvent Native browser event.
  23640. * @return {DOMEventTarget} Target node.
  23641. */
  23642. function getEventTarget(nativeEvent) {
  23643. // Fallback to nativeEvent.srcElement for IE9
  23644. // https://github.com/facebook/react/issues/12506
  23645. var target = nativeEvent.target || nativeEvent.srcElement || window;
  23646. // Normalize SVG <use> element events #4963
  23647. if (target.correspondingUseElement) {
  23648. target = target.correspondingUseElement;
  23649. }
  23650. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  23651. // @see http://www.quirksmode.org/js/events_properties.html
  23652. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  23653. }
  23654. /**
  23655. * Checks if an event is supported in the current execution environment.
  23656. *
  23657. * NOTE: This will not work correctly for non-generic events such as `change`,
  23658. * `reset`, `load`, `error`, and `select`.
  23659. *
  23660. * Borrows from Modernizr.
  23661. *
  23662. * @param {string} eventNameSuffix Event name, e.g. "click".
  23663. * @return {boolean} True if the event is supported.
  23664. * @internal
  23665. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  23666. */
  23667. function isEventSupported(eventNameSuffix) {
  23668. if (!canUseDOM) {
  23669. return false;
  23670. }
  23671. var eventName = 'on' + eventNameSuffix;
  23672. var isSupported = eventName in document;
  23673. if (!isSupported) {
  23674. var element = document.createElement('div');
  23675. element.setAttribute(eventName, 'return;');
  23676. isSupported = typeof element[eventName] === 'function';
  23677. }
  23678. return isSupported;
  23679. }
  23680. function isCheckable(elem) {
  23681. var type = elem.type;
  23682. var nodeName = elem.nodeName;
  23683. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  23684. }
  23685. function getTracker(node) {
  23686. return node._valueTracker;
  23687. }
  23688. function detachTracker(node) {
  23689. node._valueTracker = null;
  23690. }
  23691. function getValueFromNode(node) {
  23692. var value = '';
  23693. if (!node) {
  23694. return value;
  23695. }
  23696. if (isCheckable(node)) {
  23697. value = node.checked ? 'true' : 'false';
  23698. } else {
  23699. value = node.value;
  23700. }
  23701. return value;
  23702. }
  23703. function trackValueOnNode(node) {
  23704. var valueField = isCheckable(node) ? 'checked' : 'value';
  23705. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  23706. var currentValue = '' + node[valueField];
  23707. // if someone has already defined a value or Safari, then bail
  23708. // and don't track value will cause over reporting of changes,
  23709. // but it's better then a hard failure
  23710. // (needed for certain tests that spyOn input values and Safari)
  23711. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  23712. return;
  23713. }
  23714. var get = descriptor.get,
  23715. set = descriptor.set;
  23716. Object.defineProperty(node, valueField, {
  23717. configurable: true,
  23718. get: function () {
  23719. return get.call(this);
  23720. },
  23721. set: function (value) {
  23722. currentValue = '' + value;
  23723. set.call(this, value);
  23724. }
  23725. });
  23726. // We could've passed this the first time
  23727. // but it triggers a bug in IE11 and Edge 14/15.
  23728. // Calling defineProperty() again should be equivalent.
  23729. // https://github.com/facebook/react/issues/11768
  23730. Object.defineProperty(node, valueField, {
  23731. enumerable: descriptor.enumerable
  23732. });
  23733. var tracker = {
  23734. getValue: function () {
  23735. return currentValue;
  23736. },
  23737. setValue: function (value) {
  23738. currentValue = '' + value;
  23739. },
  23740. stopTracking: function () {
  23741. detachTracker(node);
  23742. delete node[valueField];
  23743. }
  23744. };
  23745. return tracker;
  23746. }
  23747. function track(node) {
  23748. if (getTracker(node)) {
  23749. return;
  23750. }
  23751. // TODO: Once it's just Fiber we can move this to node._wrapperState
  23752. node._valueTracker = trackValueOnNode(node);
  23753. }
  23754. function updateValueIfChanged(node) {
  23755. if (!node) {
  23756. return false;
  23757. }
  23758. var tracker = getTracker(node);
  23759. // if there is no tracker at this point it's unlikely
  23760. // that trying again will succeed
  23761. if (!tracker) {
  23762. return true;
  23763. }
  23764. var lastValue = tracker.getValue();
  23765. var nextValue = getValueFromNode(node);
  23766. if (nextValue !== lastValue) {
  23767. tracker.setValue(nextValue);
  23768. return true;
  23769. }
  23770. return false;
  23771. }
  23772. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  23773. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  23774. var describeComponentFrame = function (name, source, ownerName) {
  23775. var sourceInfo = '';
  23776. if (source) {
  23777. var path = source.fileName;
  23778. var fileName = path.replace(BEFORE_SLASH_RE, '');
  23779. {
  23780. // In DEV, include code for a common special case:
  23781. // prefer "folder/index.js" instead of just "index.js".
  23782. if (/^index\./.test(fileName)) {
  23783. var match = path.match(BEFORE_SLASH_RE);
  23784. if (match) {
  23785. var pathBeforeSlash = match[1];
  23786. if (pathBeforeSlash) {
  23787. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  23788. fileName = folderName + '/' + fileName;
  23789. }
  23790. }
  23791. }
  23792. }
  23793. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  23794. } else if (ownerName) {
  23795. sourceInfo = ' (created by ' + ownerName + ')';
  23796. }
  23797. return '\n in ' + (name || 'Unknown') + sourceInfo;
  23798. };
  23799. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  23800. // nor polyfill, then a plain number is used for performance.
  23801. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  23802. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  23803. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  23804. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  23805. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  23806. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  23807. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  23808. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  23809. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  23810. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  23811. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  23812. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  23813. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  23814. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  23815. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  23816. function getIteratorFn(maybeIterable) {
  23817. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  23818. return null;
  23819. }
  23820. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  23821. if (typeof maybeIterator === 'function') {
  23822. return maybeIterator;
  23823. }
  23824. return null;
  23825. }
  23826. var Pending = 0;
  23827. var Resolved = 1;
  23828. var Rejected = 2;
  23829. function refineResolvedLazyComponent(lazyComponent) {
  23830. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  23831. }
  23832. function getWrappedName(outerType, innerType, wrapperName) {
  23833. var functionName = innerType.displayName || innerType.name || '';
  23834. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  23835. }
  23836. function getComponentName(type) {
  23837. if (type == null) {
  23838. // Host root, text node or just invalid type.
  23839. return null;
  23840. }
  23841. {
  23842. if (typeof type.tag === 'number') {
  23843. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  23844. }
  23845. }
  23846. if (typeof type === 'function') {
  23847. return type.displayName || type.name || null;
  23848. }
  23849. if (typeof type === 'string') {
  23850. return type;
  23851. }
  23852. switch (type) {
  23853. case REACT_CONCURRENT_MODE_TYPE:
  23854. return 'ConcurrentMode';
  23855. case REACT_FRAGMENT_TYPE:
  23856. return 'Fragment';
  23857. case REACT_PORTAL_TYPE:
  23858. return 'Portal';
  23859. case REACT_PROFILER_TYPE:
  23860. return 'Profiler';
  23861. case REACT_STRICT_MODE_TYPE:
  23862. return 'StrictMode';
  23863. case REACT_SUSPENSE_TYPE:
  23864. return 'Suspense';
  23865. }
  23866. if (typeof type === 'object') {
  23867. switch (type.$$typeof) {
  23868. case REACT_CONTEXT_TYPE:
  23869. return 'Context.Consumer';
  23870. case REACT_PROVIDER_TYPE:
  23871. return 'Context.Provider';
  23872. case REACT_FORWARD_REF_TYPE:
  23873. return getWrappedName(type, type.render, 'ForwardRef');
  23874. case REACT_MEMO_TYPE:
  23875. return getComponentName(type.type);
  23876. case REACT_LAZY_TYPE:
  23877. {
  23878. var thenable = type;
  23879. var resolvedThenable = refineResolvedLazyComponent(thenable);
  23880. if (resolvedThenable) {
  23881. return getComponentName(resolvedThenable);
  23882. }
  23883. }
  23884. }
  23885. }
  23886. return null;
  23887. }
  23888. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  23889. function describeFiber(fiber) {
  23890. switch (fiber.tag) {
  23891. case IndeterminateComponent:
  23892. case LazyComponent:
  23893. case FunctionComponent:
  23894. case ClassComponent:
  23895. case HostComponent:
  23896. case Mode:
  23897. case SuspenseComponent:
  23898. var owner = fiber._debugOwner;
  23899. var source = fiber._debugSource;
  23900. var name = getComponentName(fiber.type);
  23901. var ownerName = null;
  23902. if (owner) {
  23903. ownerName = getComponentName(owner.type);
  23904. }
  23905. return describeComponentFrame(name, source, ownerName);
  23906. default:
  23907. return '';
  23908. }
  23909. }
  23910. function getStackByFiberInDevAndProd(workInProgress) {
  23911. var info = '';
  23912. var node = workInProgress;
  23913. do {
  23914. info += describeFiber(node);
  23915. node = node.return;
  23916. } while (node);
  23917. return info;
  23918. }
  23919. var current = null;
  23920. var phase = null;
  23921. function getCurrentFiberOwnerNameInDevOrNull() {
  23922. {
  23923. if (current === null) {
  23924. return null;
  23925. }
  23926. var owner = current._debugOwner;
  23927. if (owner !== null && typeof owner !== 'undefined') {
  23928. return getComponentName(owner.type);
  23929. }
  23930. }
  23931. return null;
  23932. }
  23933. function getCurrentFiberStackInDev() {
  23934. {
  23935. if (current === null) {
  23936. return '';
  23937. }
  23938. // Safe because if current fiber exists, we are reconciling,
  23939. // and it is guaranteed to be the work-in-progress version.
  23940. return getStackByFiberInDevAndProd(current);
  23941. }
  23942. return '';
  23943. }
  23944. function resetCurrentFiber() {
  23945. {
  23946. ReactDebugCurrentFrame.getCurrentStack = null;
  23947. current = null;
  23948. phase = null;
  23949. }
  23950. }
  23951. function setCurrentFiber(fiber) {
  23952. {
  23953. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  23954. current = fiber;
  23955. phase = null;
  23956. }
  23957. }
  23958. function setCurrentPhase(lifeCyclePhase) {
  23959. {
  23960. phase = lifeCyclePhase;
  23961. }
  23962. }
  23963. /**
  23964. * Similar to invariant but only logs a warning if the condition is not met.
  23965. * This can be used to log issues in development environments in critical
  23966. * paths. Removing the logging code for production environments will keep the
  23967. * same logic and follow the same code paths.
  23968. */
  23969. var warning = warningWithoutStack$1;
  23970. {
  23971. warning = function (condition, format) {
  23972. if (condition) {
  23973. return;
  23974. }
  23975. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  23976. var stack = ReactDebugCurrentFrame.getStackAddendum();
  23977. // eslint-disable-next-line react-internal/warning-and-invariant-args
  23978. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  23979. args[_key - 2] = arguments[_key];
  23980. }
  23981. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  23982. };
  23983. }
  23984. var warning$1 = warning;
  23985. // A reserved attribute.
  23986. // It is handled by React separately and shouldn't be written to the DOM.
  23987. var RESERVED = 0;
  23988. // A simple string attribute.
  23989. // Attributes that aren't in the whitelist are presumed to have this type.
  23990. var STRING = 1;
  23991. // A string attribute that accepts booleans in React. In HTML, these are called
  23992. // "enumerated" attributes with "true" and "false" as possible values.
  23993. // When true, it should be set to a "true" string.
  23994. // When false, it should be set to a "false" string.
  23995. var BOOLEANISH_STRING = 2;
  23996. // A real boolean attribute.
  23997. // When true, it should be present (set either to an empty string or its name).
  23998. // When false, it should be omitted.
  23999. var BOOLEAN = 3;
  24000. // An attribute that can be used as a flag as well as with a value.
  24001. // When true, it should be present (set either to an empty string or its name).
  24002. // When false, it should be omitted.
  24003. // For any other value, should be present with that value.
  24004. var OVERLOADED_BOOLEAN = 4;
  24005. // An attribute that must be numeric or parse as a numeric.
  24006. // When falsy, it should be removed.
  24007. var NUMERIC = 5;
  24008. // An attribute that must be positive numeric or parse as a positive numeric.
  24009. // When falsy, it should be removed.
  24010. var POSITIVE_NUMERIC = 6;
  24011. /* eslint-disable max-len */
  24012. var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
  24013. /* eslint-enable max-len */
  24014. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  24015. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  24016. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  24017. var hasOwnProperty = Object.prototype.hasOwnProperty;
  24018. var illegalAttributeNameCache = {};
  24019. var validatedAttributeNameCache = {};
  24020. function isAttributeNameSafe(attributeName) {
  24021. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  24022. return true;
  24023. }
  24024. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  24025. return false;
  24026. }
  24027. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  24028. validatedAttributeNameCache[attributeName] = true;
  24029. return true;
  24030. }
  24031. illegalAttributeNameCache[attributeName] = true;
  24032. {
  24033. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  24034. }
  24035. return false;
  24036. }
  24037. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  24038. if (propertyInfo !== null) {
  24039. return propertyInfo.type === RESERVED;
  24040. }
  24041. if (isCustomComponentTag) {
  24042. return false;
  24043. }
  24044. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  24045. return true;
  24046. }
  24047. return false;
  24048. }
  24049. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  24050. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  24051. return false;
  24052. }
  24053. switch (typeof value) {
  24054. case 'function':
  24055. // $FlowIssue symbol is perfectly valid here
  24056. case 'symbol':
  24057. // eslint-disable-line
  24058. return true;
  24059. case 'boolean':
  24060. {
  24061. if (isCustomComponentTag) {
  24062. return false;
  24063. }
  24064. if (propertyInfo !== null) {
  24065. return !propertyInfo.acceptsBooleans;
  24066. } else {
  24067. var prefix = name.toLowerCase().slice(0, 5);
  24068. return prefix !== 'data-' && prefix !== 'aria-';
  24069. }
  24070. }
  24071. default:
  24072. return false;
  24073. }
  24074. }
  24075. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  24076. if (value === null || typeof value === 'undefined') {
  24077. return true;
  24078. }
  24079. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  24080. return true;
  24081. }
  24082. if (isCustomComponentTag) {
  24083. return false;
  24084. }
  24085. if (propertyInfo !== null) {
  24086. switch (propertyInfo.type) {
  24087. case BOOLEAN:
  24088. return !value;
  24089. case OVERLOADED_BOOLEAN:
  24090. return value === false;
  24091. case NUMERIC:
  24092. return isNaN(value);
  24093. case POSITIVE_NUMERIC:
  24094. return isNaN(value) || value < 1;
  24095. }
  24096. }
  24097. return false;
  24098. }
  24099. function getPropertyInfo(name) {
  24100. return properties.hasOwnProperty(name) ? properties[name] : null;
  24101. }
  24102. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
  24103. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  24104. this.attributeName = attributeName;
  24105. this.attributeNamespace = attributeNamespace;
  24106. this.mustUseProperty = mustUseProperty;
  24107. this.propertyName = name;
  24108. this.type = type;
  24109. }
  24110. // When adding attributes to this list, be sure to also add them to
  24111. // the `possibleStandardNames` module to ensure casing and incorrect
  24112. // name warnings.
  24113. var properties = {};
  24114. // These props are reserved by React. They shouldn't be written to the DOM.
  24115. ['children', 'dangerouslySetInnerHTML',
  24116. // TODO: This prevents the assignment of defaultValue to regular
  24117. // elements (not just inputs). Now that ReactDOMInput assigns to the
  24118. // defaultValue property -- do we need this?
  24119. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  24120. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  24121. name, // attributeName
  24122. null);
  24123. } // attributeNamespace
  24124. );
  24125. // A few React string attributes have a different name.
  24126. // This is a mapping from React prop names to the attribute names.
  24127. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  24128. var name = _ref[0],
  24129. attributeName = _ref[1];
  24130. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24131. attributeName, // attributeName
  24132. null);
  24133. } // attributeNamespace
  24134. );
  24135. // These are "enumerated" HTML attributes that accept "true" and "false".
  24136. // In React, we let users pass `true` and `false` even though technically
  24137. // these aren't boolean attributes (they are coerced to strings).
  24138. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  24139. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  24140. name.toLowerCase(), // attributeName
  24141. null);
  24142. } // attributeNamespace
  24143. );
  24144. // These are "enumerated" SVG attributes that accept "true" and "false".
  24145. // In React, we let users pass `true` and `false` even though technically
  24146. // these aren't boolean attributes (they are coerced to strings).
  24147. // Since these are SVG attributes, their attribute names are case-sensitive.
  24148. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  24149. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  24150. name, // attributeName
  24151. null);
  24152. } // attributeNamespace
  24153. );
  24154. // These are HTML boolean attributes.
  24155. ['allowFullScreen', 'async',
  24156. // Note: there is a special case that prevents it from being written to the DOM
  24157. // on the client side because the browsers are inconsistent. Instead we call focus().
  24158. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  24159. // Microdata
  24160. 'itemScope'].forEach(function (name) {
  24161. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  24162. name.toLowerCase(), // attributeName
  24163. null);
  24164. } // attributeNamespace
  24165. );
  24166. // These are the few React props that we set as DOM properties
  24167. // rather than attributes. These are all booleans.
  24168. ['checked',
  24169. // Note: `option.selected` is not updated if `select.multiple` is
  24170. // disabled with `removeAttribute`. We have special logic for handling this.
  24171. 'multiple', 'muted', 'selected'].forEach(function (name) {
  24172. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  24173. name, // attributeName
  24174. null);
  24175. } // attributeNamespace
  24176. );
  24177. // These are HTML attributes that are "overloaded booleans": they behave like
  24178. // booleans, but can also accept a string value.
  24179. ['capture', 'download'].forEach(function (name) {
  24180. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  24181. name, // attributeName
  24182. null);
  24183. } // attributeNamespace
  24184. );
  24185. // These are HTML attributes that must be positive numbers.
  24186. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  24187. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  24188. name, // attributeName
  24189. null);
  24190. } // attributeNamespace
  24191. );
  24192. // These are HTML attributes that must be numbers.
  24193. ['rowSpan', 'start'].forEach(function (name) {
  24194. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  24195. name.toLowerCase(), // attributeName
  24196. null);
  24197. } // attributeNamespace
  24198. );
  24199. var CAMELIZE = /[\-\:]([a-z])/g;
  24200. var capitalize = function (token) {
  24201. return token[1].toUpperCase();
  24202. };
  24203. // This is a list of all SVG attributes that need special casing, namespacing,
  24204. // or boolean value assignment. Regular attributes that just accept strings
  24205. // and have the same names are omitted, just like in the HTML whitelist.
  24206. // Some of these attributes can be hard to find. This list was created by
  24207. // scrapping the MDN documentation.
  24208. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
  24209. var name = attributeName.replace(CAMELIZE, capitalize);
  24210. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24211. attributeName, null);
  24212. } // attributeNamespace
  24213. );
  24214. // String SVG attributes with the xlink namespace.
  24215. ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  24216. var name = attributeName.replace(CAMELIZE, capitalize);
  24217. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24218. attributeName, 'http://www.w3.org/1999/xlink');
  24219. });
  24220. // String SVG attributes with the xml namespace.
  24221. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  24222. var name = attributeName.replace(CAMELIZE, capitalize);
  24223. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24224. attributeName, 'http://www.w3.org/XML/1998/namespace');
  24225. });
  24226. // Special case: this attribute exists both in HTML and SVG.
  24227. // Its "tabindex" attribute name is case-sensitive in SVG so we can't just use
  24228. // its React `tabIndex` name, like we do for attributes that exist only in HTML.
  24229. properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty
  24230. 'tabindex', // attributeName
  24231. null);
  24232. /**
  24233. * Get the value for a property on a node. Only used in DEV for SSR validation.
  24234. * The "expected" argument is used as a hint of what the expected value is.
  24235. * Some properties have multiple equivalent values.
  24236. */
  24237. function getValueForProperty(node, name, expected, propertyInfo) {
  24238. {
  24239. if (propertyInfo.mustUseProperty) {
  24240. var propertyName = propertyInfo.propertyName;
  24241. return node[propertyName];
  24242. } else {
  24243. var attributeName = propertyInfo.attributeName;
  24244. var stringValue = null;
  24245. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  24246. if (node.hasAttribute(attributeName)) {
  24247. var value = node.getAttribute(attributeName);
  24248. if (value === '') {
  24249. return true;
  24250. }
  24251. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  24252. return value;
  24253. }
  24254. if (value === '' + expected) {
  24255. return expected;
  24256. }
  24257. return value;
  24258. }
  24259. } else if (node.hasAttribute(attributeName)) {
  24260. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  24261. // We had an attribute but shouldn't have had one, so read it
  24262. // for the error message.
  24263. return node.getAttribute(attributeName);
  24264. }
  24265. if (propertyInfo.type === BOOLEAN) {
  24266. // If this was a boolean, it doesn't matter what the value is
  24267. // the fact that we have it is the same as the expected.
  24268. return expected;
  24269. }
  24270. // Even if this property uses a namespace we use getAttribute
  24271. // because we assume its namespaced name is the same as our config.
  24272. // To use getAttributeNS we need the local name which we don't have
  24273. // in our config atm.
  24274. stringValue = node.getAttribute(attributeName);
  24275. }
  24276. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  24277. return stringValue === null ? expected : stringValue;
  24278. } else if (stringValue === '' + expected) {
  24279. return expected;
  24280. } else {
  24281. return stringValue;
  24282. }
  24283. }
  24284. }
  24285. }
  24286. /**
  24287. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  24288. * The third argument is used as a hint of what the expected value is. Some
  24289. * attributes have multiple equivalent values.
  24290. */
  24291. function getValueForAttribute(node, name, expected) {
  24292. {
  24293. if (!isAttributeNameSafe(name)) {
  24294. return;
  24295. }
  24296. if (!node.hasAttribute(name)) {
  24297. return expected === undefined ? undefined : null;
  24298. }
  24299. var value = node.getAttribute(name);
  24300. if (value === '' + expected) {
  24301. return expected;
  24302. }
  24303. return value;
  24304. }
  24305. }
  24306. /**
  24307. * Sets the value for a property on a node.
  24308. *
  24309. * @param {DOMElement} node
  24310. * @param {string} name
  24311. * @param {*} value
  24312. */
  24313. function setValueForProperty(node, name, value, isCustomComponentTag) {
  24314. var propertyInfo = getPropertyInfo(name);
  24315. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  24316. return;
  24317. }
  24318. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  24319. value = null;
  24320. }
  24321. // If the prop isn't in the special list, treat it as a simple attribute.
  24322. if (isCustomComponentTag || propertyInfo === null) {
  24323. if (isAttributeNameSafe(name)) {
  24324. var _attributeName = name;
  24325. if (value === null) {
  24326. node.removeAttribute(_attributeName);
  24327. } else {
  24328. node.setAttribute(_attributeName, '' + value);
  24329. }
  24330. }
  24331. return;
  24332. }
  24333. var mustUseProperty = propertyInfo.mustUseProperty;
  24334. if (mustUseProperty) {
  24335. var propertyName = propertyInfo.propertyName;
  24336. if (value === null) {
  24337. var type = propertyInfo.type;
  24338. node[propertyName] = type === BOOLEAN ? false : '';
  24339. } else {
  24340. // Contrary to `setAttribute`, object properties are properly
  24341. // `toString`ed by IE8/9.
  24342. node[propertyName] = value;
  24343. }
  24344. return;
  24345. }
  24346. // The rest are treated as attributes with special cases.
  24347. var attributeName = propertyInfo.attributeName,
  24348. attributeNamespace = propertyInfo.attributeNamespace;
  24349. if (value === null) {
  24350. node.removeAttribute(attributeName);
  24351. } else {
  24352. var _type = propertyInfo.type;
  24353. var attributeValue = void 0;
  24354. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  24355. attributeValue = '';
  24356. } else {
  24357. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  24358. // ('' + value) makes it output the correct toString()-value.
  24359. attributeValue = '' + value;
  24360. }
  24361. if (attributeNamespace) {
  24362. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  24363. } else {
  24364. node.setAttribute(attributeName, attributeValue);
  24365. }
  24366. }
  24367. }
  24368. // Flow does not allow string concatenation of most non-string types. To work
  24369. // around this limitation, we use an opaque type that can only be obtained by
  24370. // passing the value through getToStringValue first.
  24371. function toString(value) {
  24372. return '' + value;
  24373. }
  24374. function getToStringValue(value) {
  24375. switch (typeof value) {
  24376. case 'boolean':
  24377. case 'number':
  24378. case 'object':
  24379. case 'string':
  24380. case 'undefined':
  24381. return value;
  24382. default:
  24383. // function, symbol are assigned as empty strings
  24384. return '';
  24385. }
  24386. }
  24387. var ReactDebugCurrentFrame$1 = null;
  24388. var ReactControlledValuePropTypes = {
  24389. checkPropTypes: null
  24390. };
  24391. {
  24392. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  24393. var hasReadOnlyValue = {
  24394. button: true,
  24395. checkbox: true,
  24396. image: true,
  24397. hidden: true,
  24398. radio: true,
  24399. reset: true,
  24400. submit: true
  24401. };
  24402. var propTypes = {
  24403. value: function (props, propName, componentName) {
  24404. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  24405. return null;
  24406. }
  24407. return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
  24408. },
  24409. checked: function (props, propName, componentName) {
  24410. if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  24411. return null;
  24412. }
  24413. return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
  24414. }
  24415. };
  24416. /**
  24417. * Provide a linked `value` attribute for controlled forms. You should not use
  24418. * this outside of the ReactDOM controlled form components.
  24419. */
  24420. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  24421. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);
  24422. };
  24423. }
  24424. var enableUserTimingAPI = true;
  24425. var enableHooks = false;
  24426. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  24427. var debugRenderPhaseSideEffects = false;
  24428. // In some cases, StrictMode should also double-render lifecycles.
  24429. // This can be confusing for tests though,
  24430. // And it can be bad for performance in production.
  24431. // This feature flag can be used to control the behavior:
  24432. var debugRenderPhaseSideEffectsForStrictMode = true;
  24433. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  24434. // replay the begin phase of a failed component inside invokeGuardedCallback.
  24435. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  24436. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  24437. var warnAboutDeprecatedLifecycles = false;
  24438. // Gather advanced timing metrics for Profiler subtrees.
  24439. var enableProfilerTimer = true;
  24440. // Trace which interactions trigger each commit.
  24441. var enableSchedulerTracing = true;
  24442. // Only used in www builds.
  24443. // Only used in www builds.
  24444. // React Fire: prevent the value and checked attributes from syncing
  24445. // with their related DOM properties
  24446. var disableInputAttributeSyncing = false;
  24447. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  24448. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  24449. var enableStableConcurrentModeAPIs = false;
  24450. // TODO: direct imports like some-package/src/* are bad. Fix me.
  24451. var didWarnValueDefaultValue = false;
  24452. var didWarnCheckedDefaultChecked = false;
  24453. var didWarnControlledToUncontrolled = false;
  24454. var didWarnUncontrolledToControlled = false;
  24455. function isControlled(props) {
  24456. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  24457. return usesChecked ? props.checked != null : props.value != null;
  24458. }
  24459. /**
  24460. * Implements an <input> host component that allows setting these optional
  24461. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  24462. *
  24463. * If `checked` or `value` are not supplied (or null/undefined), user actions
  24464. * that affect the checked state or value will trigger updates to the element.
  24465. *
  24466. * If they are supplied (and not null/undefined), the rendered element will not
  24467. * trigger updates to the element. Instead, the props must change in order for
  24468. * the rendered element to be updated.
  24469. *
  24470. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  24471. * with an empty value (or `defaultValue`).
  24472. *
  24473. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  24474. */
  24475. function getHostProps(element, props) {
  24476. var node = element;
  24477. var checked = props.checked;
  24478. var hostProps = _assign({}, props, {
  24479. defaultChecked: undefined,
  24480. defaultValue: undefined,
  24481. value: undefined,
  24482. checked: checked != null ? checked : node._wrapperState.initialChecked
  24483. });
  24484. return hostProps;
  24485. }
  24486. function initWrapperState(element, props) {
  24487. {
  24488. ReactControlledValuePropTypes.checkPropTypes('input', props);
  24489. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  24490. warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  24491. didWarnCheckedDefaultChecked = true;
  24492. }
  24493. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  24494. warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  24495. didWarnValueDefaultValue = true;
  24496. }
  24497. }
  24498. var node = element;
  24499. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  24500. node._wrapperState = {
  24501. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  24502. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  24503. controlled: isControlled(props)
  24504. };
  24505. }
  24506. function updateChecked(element, props) {
  24507. var node = element;
  24508. var checked = props.checked;
  24509. if (checked != null) {
  24510. setValueForProperty(node, 'checked', checked, false);
  24511. }
  24512. }
  24513. function updateWrapper(element, props) {
  24514. var node = element;
  24515. {
  24516. var _controlled = isControlled(props);
  24517. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  24518. warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  24519. didWarnUncontrolledToControlled = true;
  24520. }
  24521. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  24522. warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  24523. didWarnControlledToUncontrolled = true;
  24524. }
  24525. }
  24526. updateChecked(element, props);
  24527. var value = getToStringValue(props.value);
  24528. var type = props.type;
  24529. if (value != null) {
  24530. if (type === 'number') {
  24531. if (value === 0 && node.value === '' ||
  24532. // We explicitly want to coerce to number here if possible.
  24533. // eslint-disable-next-line
  24534. node.value != value) {
  24535. node.value = toString(value);
  24536. }
  24537. } else if (node.value !== toString(value)) {
  24538. node.value = toString(value);
  24539. }
  24540. } else if (type === 'submit' || type === 'reset') {
  24541. // Submit/reset inputs need the attribute removed completely to avoid
  24542. // blank-text buttons.
  24543. node.removeAttribute('value');
  24544. return;
  24545. }
  24546. if (disableInputAttributeSyncing) {
  24547. // When not syncing the value attribute, React only assigns a new value
  24548. // whenever the defaultValue React prop has changed. When not present,
  24549. // React does nothing
  24550. if (props.hasOwnProperty('defaultValue')) {
  24551. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  24552. }
  24553. } else {
  24554. // When syncing the value attribute, the value comes from a cascade of
  24555. // properties:
  24556. // 1. The value React property
  24557. // 2. The defaultValue React property
  24558. // 3. Otherwise there should be no change
  24559. if (props.hasOwnProperty('value')) {
  24560. setDefaultValue(node, props.type, value);
  24561. } else if (props.hasOwnProperty('defaultValue')) {
  24562. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  24563. }
  24564. }
  24565. if (disableInputAttributeSyncing) {
  24566. // When not syncing the checked attribute, the attribute is directly
  24567. // controllable from the defaultValue React property. It needs to be
  24568. // updated as new props come in.
  24569. if (props.defaultChecked == null) {
  24570. node.removeAttribute('checked');
  24571. } else {
  24572. node.defaultChecked = !!props.defaultChecked;
  24573. }
  24574. } else {
  24575. // When syncing the checked attribute, it only changes when it needs
  24576. // to be removed, such as transitioning from a checkbox into a text input
  24577. if (props.checked == null && props.defaultChecked != null) {
  24578. node.defaultChecked = !!props.defaultChecked;
  24579. }
  24580. }
  24581. }
  24582. function postMountWrapper(element, props, isHydrating) {
  24583. var node = element;
  24584. // Do not assign value if it is already set. This prevents user text input
  24585. // from being lost during SSR hydration.
  24586. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  24587. var type = props.type;
  24588. var isButton = type === 'submit' || type === 'reset';
  24589. // Avoid setting value attribute on submit/reset inputs as it overrides the
  24590. // default value provided by the browser. See: #12872
  24591. if (isButton && (props.value === undefined || props.value === null)) {
  24592. return;
  24593. }
  24594. var _initialValue = toString(node._wrapperState.initialValue);
  24595. // Do not assign value if it is already set. This prevents user text input
  24596. // from being lost during SSR hydration.
  24597. if (!isHydrating) {
  24598. if (disableInputAttributeSyncing) {
  24599. var value = getToStringValue(props.value);
  24600. // When not syncing the value attribute, the value property points
  24601. // directly to the React prop. Only assign it if it exists.
  24602. if (value != null) {
  24603. // Always assign on buttons so that it is possible to assign an
  24604. // empty string to clear button text.
  24605. //
  24606. // Otherwise, do not re-assign the value property if is empty. This
  24607. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  24608. // prematurely marking required inputs as invalid. Equality is compared
  24609. // to the current value in case the browser provided value is not an
  24610. // empty string.
  24611. if (isButton || value !== node.value) {
  24612. node.value = toString(value);
  24613. }
  24614. }
  24615. } else {
  24616. // When syncing the value attribute, the value property should use
  24617. // the wrapperState._initialValue property. This uses:
  24618. //
  24619. // 1. The value React property when present
  24620. // 2. The defaultValue React property when present
  24621. // 3. An empty string
  24622. if (_initialValue !== node.value) {
  24623. node.value = _initialValue;
  24624. }
  24625. }
  24626. }
  24627. if (disableInputAttributeSyncing) {
  24628. // When not syncing the value attribute, assign the value attribute
  24629. // directly from the defaultValue React property (when present)
  24630. var defaultValue = getToStringValue(props.defaultValue);
  24631. if (defaultValue != null) {
  24632. node.defaultValue = toString(defaultValue);
  24633. }
  24634. } else {
  24635. // Otherwise, the value attribute is synchronized to the property,
  24636. // so we assign defaultValue to the same thing as the value property
  24637. // assignment step above.
  24638. node.defaultValue = _initialValue;
  24639. }
  24640. }
  24641. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  24642. // this is needed to work around a chrome bug where setting defaultChecked
  24643. // will sometimes influence the value of checked (even after detachment).
  24644. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  24645. // We need to temporarily unset name to avoid disrupting radio button groups.
  24646. var name = node.name;
  24647. if (name !== '') {
  24648. node.name = '';
  24649. }
  24650. if (disableInputAttributeSyncing) {
  24651. // When not syncing the checked attribute, the checked property
  24652. // never gets assigned. It must be manually set. We don't want
  24653. // to do this when hydrating so that existing user input isn't
  24654. // modified
  24655. if (!isHydrating) {
  24656. updateChecked(element, props);
  24657. }
  24658. // Only assign the checked attribute if it is defined. This saves
  24659. // a DOM write when controlling the checked attribute isn't needed
  24660. // (text inputs, submit/reset)
  24661. if (props.hasOwnProperty('defaultChecked')) {
  24662. node.defaultChecked = !node.defaultChecked;
  24663. node.defaultChecked = !!props.defaultChecked;
  24664. }
  24665. } else {
  24666. // When syncing the checked attribute, both the checked property and
  24667. // attribute are assigned at the same time using defaultChecked. This uses:
  24668. //
  24669. // 1. The checked React property when present
  24670. // 2. The defaultChecked React property when present
  24671. // 3. Otherwise, false
  24672. node.defaultChecked = !node.defaultChecked;
  24673. node.defaultChecked = !!node._wrapperState.initialChecked;
  24674. }
  24675. if (name !== '') {
  24676. node.name = name;
  24677. }
  24678. }
  24679. function restoreControlledState(element, props) {
  24680. var node = element;
  24681. updateWrapper(node, props);
  24682. updateNamedCousins(node, props);
  24683. }
  24684. function updateNamedCousins(rootNode, props) {
  24685. var name = props.name;
  24686. if (props.type === 'radio' && name != null) {
  24687. var queryRoot = rootNode;
  24688. while (queryRoot.parentNode) {
  24689. queryRoot = queryRoot.parentNode;
  24690. }
  24691. // If `rootNode.form` was non-null, then we could try `form.elements`,
  24692. // but that sometimes behaves strangely in IE8. We could also try using
  24693. // `form.getElementsByName`, but that will only return direct children
  24694. // and won't include inputs that use the HTML5 `form=` attribute. Since
  24695. // the input might not even be in a form. It might not even be in the
  24696. // document. Let's just use the local `querySelectorAll` to ensure we don't
  24697. // miss anything.
  24698. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  24699. for (var i = 0; i < group.length; i++) {
  24700. var otherNode = group[i];
  24701. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  24702. continue;
  24703. }
  24704. // This will throw if radio buttons rendered by different copies of React
  24705. // and the same name are rendered into the same form (same as #1939).
  24706. // That's probably okay; we don't support it just as we don't support
  24707. // mixing React radio buttons with non-React ones.
  24708. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  24709. !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;
  24710. // We need update the tracked value on the named cousin since the value
  24711. // was changed but the input saw no event or value set
  24712. updateValueIfChanged(otherNode);
  24713. // If this is a controlled radio button group, forcing the input that
  24714. // was previously checked to update will cause it to be come re-checked
  24715. // as appropriate.
  24716. updateWrapper(otherNode, otherProps);
  24717. }
  24718. }
  24719. }
  24720. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  24721. // For number inputs, the display value loses trailing decimal points. For email inputs,
  24722. // Chrome raises "The specified value <x> is not a valid email address".
  24723. //
  24724. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  24725. // when the user is inputting text
  24726. //
  24727. // https://github.com/facebook/react/issues/7253
  24728. function setDefaultValue(node, type, value) {
  24729. if (
  24730. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  24731. type !== 'number' || node.ownerDocument.activeElement !== node) {
  24732. if (value == null) {
  24733. node.defaultValue = toString(node._wrapperState.initialValue);
  24734. } else if (node.defaultValue !== toString(value)) {
  24735. node.defaultValue = toString(value);
  24736. }
  24737. }
  24738. }
  24739. var eventTypes$1 = {
  24740. change: {
  24741. phasedRegistrationNames: {
  24742. bubbled: 'onChange',
  24743. captured: 'onChangeCapture'
  24744. },
  24745. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  24746. }
  24747. };
  24748. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  24749. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  24750. event.type = 'change';
  24751. // Flag this event loop as needing state restore.
  24752. enqueueStateRestore(target);
  24753. accumulateTwoPhaseDispatches(event);
  24754. return event;
  24755. }
  24756. /**
  24757. * For IE shims
  24758. */
  24759. var activeElement = null;
  24760. var activeElementInst = null;
  24761. /**
  24762. * SECTION: handle `change` event
  24763. */
  24764. function shouldUseChangeEvent(elem) {
  24765. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  24766. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  24767. }
  24768. function manualDispatchChangeEvent(nativeEvent) {
  24769. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  24770. // If change and propertychange bubbled, we'd just bind to it like all the
  24771. // other events and have it go through ReactBrowserEventEmitter. Since it
  24772. // doesn't, we manually listen for the events and so we have to enqueue and
  24773. // process the abstract event manually.
  24774. //
  24775. // Batching is necessary here in order to ensure that all event handlers run
  24776. // before the next rerender (including event handlers attached to ancestor
  24777. // elements instead of directly on the input). Without this, controlled
  24778. // components don't work properly in conjunction with event bubbling because
  24779. // the component is rerendered and the value reverted before all the event
  24780. // handlers can run. See https://github.com/facebook/react/issues/708.
  24781. batchedUpdates(runEventInBatch, event);
  24782. }
  24783. function runEventInBatch(event) {
  24784. runEventsInBatch(event);
  24785. }
  24786. function getInstIfValueChanged(targetInst) {
  24787. var targetNode = getNodeFromInstance$1(targetInst);
  24788. if (updateValueIfChanged(targetNode)) {
  24789. return targetInst;
  24790. }
  24791. }
  24792. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  24793. if (topLevelType === TOP_CHANGE) {
  24794. return targetInst;
  24795. }
  24796. }
  24797. /**
  24798. * SECTION: handle `input` event
  24799. */
  24800. var isInputEventSupported = false;
  24801. if (canUseDOM) {
  24802. // IE9 claims to support the input event but fails to trigger it when
  24803. // deleting text, so we ignore its input events.
  24804. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  24805. }
  24806. /**
  24807. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  24808. * and override the value property so that we can distinguish user events from
  24809. * value changes in JS.
  24810. */
  24811. function startWatchingForValueChange(target, targetInst) {
  24812. activeElement = target;
  24813. activeElementInst = targetInst;
  24814. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  24815. }
  24816. /**
  24817. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  24818. * if any exists.
  24819. */
  24820. function stopWatchingForValueChange() {
  24821. if (!activeElement) {
  24822. return;
  24823. }
  24824. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  24825. activeElement = null;
  24826. activeElementInst = null;
  24827. }
  24828. /**
  24829. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  24830. * the value of the active element has changed.
  24831. */
  24832. function handlePropertyChange(nativeEvent) {
  24833. if (nativeEvent.propertyName !== 'value') {
  24834. return;
  24835. }
  24836. if (getInstIfValueChanged(activeElementInst)) {
  24837. manualDispatchChangeEvent(nativeEvent);
  24838. }
  24839. }
  24840. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  24841. if (topLevelType === TOP_FOCUS) {
  24842. // In IE9, propertychange fires for most input events but is buggy and
  24843. // doesn't fire when text is deleted, but conveniently, selectionchange
  24844. // appears to fire in all of the remaining cases so we catch those and
  24845. // forward the event if the value has changed
  24846. // In either case, we don't want to call the event handler if the value
  24847. // is changed from JS so we redefine a setter for `.value` that updates
  24848. // our activeElementValue variable, allowing us to ignore those changes
  24849. //
  24850. // stopWatching() should be a noop here but we call it just in case we
  24851. // missed a blur event somehow.
  24852. stopWatchingForValueChange();
  24853. startWatchingForValueChange(target, targetInst);
  24854. } else if (topLevelType === TOP_BLUR) {
  24855. stopWatchingForValueChange();
  24856. }
  24857. }
  24858. // For IE8 and IE9.
  24859. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  24860. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  24861. // On the selectionchange event, the target is just document which isn't
  24862. // helpful for us so just check activeElement instead.
  24863. //
  24864. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  24865. // propertychange on the first input event after setting `value` from a
  24866. // script and fires only keydown, keypress, keyup. Catching keyup usually
  24867. // gets it and catching keydown lets us fire an event for the first
  24868. // keystroke if user does a key repeat (it'll be a little delayed: right
  24869. // before the second keystroke). Other input methods (e.g., paste) seem to
  24870. // fire selectionchange normally.
  24871. return getInstIfValueChanged(activeElementInst);
  24872. }
  24873. }
  24874. /**
  24875. * SECTION: handle `click` event
  24876. */
  24877. function shouldUseClickEvent(elem) {
  24878. // Use the `click` event to detect changes to checkbox and radio inputs.
  24879. // This approach works across all browsers, whereas `change` does not fire
  24880. // until `blur` in IE8.
  24881. var nodeName = elem.nodeName;
  24882. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  24883. }
  24884. function getTargetInstForClickEvent(topLevelType, targetInst) {
  24885. if (topLevelType === TOP_CLICK) {
  24886. return getInstIfValueChanged(targetInst);
  24887. }
  24888. }
  24889. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  24890. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  24891. return getInstIfValueChanged(targetInst);
  24892. }
  24893. }
  24894. function handleControlledInputBlur(node) {
  24895. var state = node._wrapperState;
  24896. if (!state || !state.controlled || node.type !== 'number') {
  24897. return;
  24898. }
  24899. if (!disableInputAttributeSyncing) {
  24900. // If controlled, assign the value attribute to the current value on blur
  24901. setDefaultValue(node, 'number', node.value);
  24902. }
  24903. }
  24904. /**
  24905. * This plugin creates an `onChange` event that normalizes change events
  24906. * across form elements. This event fires at a time when it's possible to
  24907. * change the element's value without seeing a flicker.
  24908. *
  24909. * Supported elements are:
  24910. * - input (see `isTextInputElement`)
  24911. * - textarea
  24912. * - select
  24913. */
  24914. var ChangeEventPlugin = {
  24915. eventTypes: eventTypes$1,
  24916. _isInputEventSupported: isInputEventSupported,
  24917. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  24918. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  24919. var getTargetInstFunc = void 0,
  24920. handleEventFunc = void 0;
  24921. if (shouldUseChangeEvent(targetNode)) {
  24922. getTargetInstFunc = getTargetInstForChangeEvent;
  24923. } else if (isTextInputElement(targetNode)) {
  24924. if (isInputEventSupported) {
  24925. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  24926. } else {
  24927. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  24928. handleEventFunc = handleEventsForInputEventPolyfill;
  24929. }
  24930. } else if (shouldUseClickEvent(targetNode)) {
  24931. getTargetInstFunc = getTargetInstForClickEvent;
  24932. }
  24933. if (getTargetInstFunc) {
  24934. var inst = getTargetInstFunc(topLevelType, targetInst);
  24935. if (inst) {
  24936. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  24937. return event;
  24938. }
  24939. }
  24940. if (handleEventFunc) {
  24941. handleEventFunc(topLevelType, targetNode, targetInst);
  24942. }
  24943. // When blurring, set the value attribute for number inputs
  24944. if (topLevelType === TOP_BLUR) {
  24945. handleControlledInputBlur(targetNode);
  24946. }
  24947. }
  24948. };
  24949. /**
  24950. * Module that is injectable into `EventPluginHub`, that specifies a
  24951. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  24952. * plugins, without having to package every one of them. This is better than
  24953. * having plugins be ordered in the same order that they are injected because
  24954. * that ordering would be influenced by the packaging order.
  24955. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  24956. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  24957. */
  24958. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  24959. var SyntheticUIEvent = SyntheticEvent.extend({
  24960. view: null,
  24961. detail: null
  24962. });
  24963. var modifierKeyToProp = {
  24964. Alt: 'altKey',
  24965. Control: 'ctrlKey',
  24966. Meta: 'metaKey',
  24967. Shift: 'shiftKey'
  24968. };
  24969. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  24970. // getModifierState. If getModifierState is not supported, we map it to a set of
  24971. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  24972. /**
  24973. * Translation from modifier key to the associated property in the event.
  24974. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  24975. */
  24976. function modifierStateGetter(keyArg) {
  24977. var syntheticEvent = this;
  24978. var nativeEvent = syntheticEvent.nativeEvent;
  24979. if (nativeEvent.getModifierState) {
  24980. return nativeEvent.getModifierState(keyArg);
  24981. }
  24982. var keyProp = modifierKeyToProp[keyArg];
  24983. return keyProp ? !!nativeEvent[keyProp] : false;
  24984. }
  24985. function getEventModifierState(nativeEvent) {
  24986. return modifierStateGetter;
  24987. }
  24988. var previousScreenX = 0;
  24989. var previousScreenY = 0;
  24990. // Use flags to signal movementX/Y has already been set
  24991. var isMovementXSet = false;
  24992. var isMovementYSet = false;
  24993. /**
  24994. * @interface MouseEvent
  24995. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  24996. */
  24997. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  24998. screenX: null,
  24999. screenY: null,
  25000. clientX: null,
  25001. clientY: null,
  25002. pageX: null,
  25003. pageY: null,
  25004. ctrlKey: null,
  25005. shiftKey: null,
  25006. altKey: null,
  25007. metaKey: null,
  25008. getModifierState: getEventModifierState,
  25009. button: null,
  25010. buttons: null,
  25011. relatedTarget: function (event) {
  25012. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  25013. },
  25014. movementX: function (event) {
  25015. if ('movementX' in event) {
  25016. return event.movementX;
  25017. }
  25018. var screenX = previousScreenX;
  25019. previousScreenX = event.screenX;
  25020. if (!isMovementXSet) {
  25021. isMovementXSet = true;
  25022. return 0;
  25023. }
  25024. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  25025. },
  25026. movementY: function (event) {
  25027. if ('movementY' in event) {
  25028. return event.movementY;
  25029. }
  25030. var screenY = previousScreenY;
  25031. previousScreenY = event.screenY;
  25032. if (!isMovementYSet) {
  25033. isMovementYSet = true;
  25034. return 0;
  25035. }
  25036. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  25037. }
  25038. });
  25039. /**
  25040. * @interface PointerEvent
  25041. * @see http://www.w3.org/TR/pointerevents/
  25042. */
  25043. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  25044. pointerId: null,
  25045. width: null,
  25046. height: null,
  25047. pressure: null,
  25048. tangentialPressure: null,
  25049. tiltX: null,
  25050. tiltY: null,
  25051. twist: null,
  25052. pointerType: null,
  25053. isPrimary: null
  25054. });
  25055. var eventTypes$2 = {
  25056. mouseEnter: {
  25057. registrationName: 'onMouseEnter',
  25058. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  25059. },
  25060. mouseLeave: {
  25061. registrationName: 'onMouseLeave',
  25062. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  25063. },
  25064. pointerEnter: {
  25065. registrationName: 'onPointerEnter',
  25066. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  25067. },
  25068. pointerLeave: {
  25069. registrationName: 'onPointerLeave',
  25070. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  25071. }
  25072. };
  25073. var EnterLeaveEventPlugin = {
  25074. eventTypes: eventTypes$2,
  25075. /**
  25076. * For almost every interaction we care about, there will be both a top-level
  25077. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  25078. * we do not extract duplicate events. However, moving the mouse into the
  25079. * browser from outside will not fire a `mouseout` event. In this case, we use
  25080. * the `mouseover` top-level event.
  25081. */
  25082. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25083. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  25084. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  25085. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  25086. return null;
  25087. }
  25088. if (!isOutEvent && !isOverEvent) {
  25089. // Must not be a mouse or pointer in or out - ignoring.
  25090. return null;
  25091. }
  25092. var win = void 0;
  25093. if (nativeEventTarget.window === nativeEventTarget) {
  25094. // `nativeEventTarget` is probably a window object.
  25095. win = nativeEventTarget;
  25096. } else {
  25097. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  25098. var doc = nativeEventTarget.ownerDocument;
  25099. if (doc) {
  25100. win = doc.defaultView || doc.parentWindow;
  25101. } else {
  25102. win = window;
  25103. }
  25104. }
  25105. var from = void 0;
  25106. var to = void 0;
  25107. if (isOutEvent) {
  25108. from = targetInst;
  25109. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  25110. to = related ? getClosestInstanceFromNode(related) : null;
  25111. } else {
  25112. // Moving to a node from outside the window.
  25113. from = null;
  25114. to = targetInst;
  25115. }
  25116. if (from === to) {
  25117. // Nothing pertains to our managed components.
  25118. return null;
  25119. }
  25120. var eventInterface = void 0,
  25121. leaveEventType = void 0,
  25122. enterEventType = void 0,
  25123. eventTypePrefix = void 0;
  25124. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  25125. eventInterface = SyntheticMouseEvent;
  25126. leaveEventType = eventTypes$2.mouseLeave;
  25127. enterEventType = eventTypes$2.mouseEnter;
  25128. eventTypePrefix = 'mouse';
  25129. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  25130. eventInterface = SyntheticPointerEvent;
  25131. leaveEventType = eventTypes$2.pointerLeave;
  25132. enterEventType = eventTypes$2.pointerEnter;
  25133. eventTypePrefix = 'pointer';
  25134. }
  25135. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  25136. var toNode = to == null ? win : getNodeFromInstance$1(to);
  25137. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  25138. leave.type = eventTypePrefix + 'leave';
  25139. leave.target = fromNode;
  25140. leave.relatedTarget = toNode;
  25141. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  25142. enter.type = eventTypePrefix + 'enter';
  25143. enter.target = toNode;
  25144. enter.relatedTarget = fromNode;
  25145. accumulateEnterLeaveDispatches(leave, enter, from, to);
  25146. return [leave, enter];
  25147. }
  25148. };
  25149. /*eslint-disable no-self-compare */
  25150. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  25151. /**
  25152. * inlined Object.is polyfill to avoid requiring consumers ship their own
  25153. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  25154. */
  25155. function is(x, y) {
  25156. // SameValue algorithm
  25157. if (x === y) {
  25158. // Steps 1-5, 7-10
  25159. // Steps 6.b-6.e: +0 != -0
  25160. // Added the nonzero y check to make Flow happy, but it is redundant
  25161. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  25162. } else {
  25163. // Step 6.a: NaN == NaN
  25164. return x !== x && y !== y;
  25165. }
  25166. }
  25167. /**
  25168. * Performs equality by iterating through keys on an object and returning false
  25169. * when any key has values which are not strictly equal between the arguments.
  25170. * Returns true when the values of all keys are strictly equal.
  25171. */
  25172. function shallowEqual(objA, objB) {
  25173. if (is(objA, objB)) {
  25174. return true;
  25175. }
  25176. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  25177. return false;
  25178. }
  25179. var keysA = Object.keys(objA);
  25180. var keysB = Object.keys(objB);
  25181. if (keysA.length !== keysB.length) {
  25182. return false;
  25183. }
  25184. // Test for A's keys different from B.
  25185. for (var i = 0; i < keysA.length; i++) {
  25186. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  25187. return false;
  25188. }
  25189. }
  25190. return true;
  25191. }
  25192. /**
  25193. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  25194. * instance (key) and the internal representation (value). This allows public
  25195. * methods to accept the user facing instance as an argument and map them back
  25196. * to internal methods.
  25197. *
  25198. * Note that this module is currently shared and assumed to be stateless.
  25199. * If this becomes an actual Map, that will break.
  25200. */
  25201. /**
  25202. * This API should be called `delete` but we'd have to make sure to always
  25203. * transform these to strings for IE support. When this transform is fully
  25204. * supported we can rename it.
  25205. */
  25206. function get(key) {
  25207. return key._reactInternalFiber;
  25208. }
  25209. function has(key) {
  25210. return key._reactInternalFiber !== undefined;
  25211. }
  25212. function set(key, value) {
  25213. key._reactInternalFiber = value;
  25214. }
  25215. // Don't change these two values. They're used by React Dev Tools.
  25216. var NoEffect = /* */0;
  25217. var PerformedWork = /* */1;
  25218. // You can change the rest (and add more).
  25219. var Placement = /* */2;
  25220. var Update = /* */4;
  25221. var PlacementAndUpdate = /* */6;
  25222. var Deletion = /* */8;
  25223. var ContentReset = /* */16;
  25224. var Callback = /* */32;
  25225. var DidCapture = /* */64;
  25226. var Ref = /* */128;
  25227. var Snapshot = /* */256;
  25228. var Passive = /* */512;
  25229. // Passive & Update & Callback & Ref & Snapshot
  25230. var LifecycleEffectMask = /* */932;
  25231. // Union of all host effects
  25232. var HostEffectMask = /* */1023;
  25233. var Incomplete = /* */1024;
  25234. var ShouldCapture = /* */2048;
  25235. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  25236. var MOUNTING = 1;
  25237. var MOUNTED = 2;
  25238. var UNMOUNTED = 3;
  25239. function isFiberMountedImpl(fiber) {
  25240. var node = fiber;
  25241. if (!fiber.alternate) {
  25242. // If there is no alternate, this might be a new tree that isn't inserted
  25243. // yet. If it is, then it will have a pending insertion effect on it.
  25244. if ((node.effectTag & Placement) !== NoEffect) {
  25245. return MOUNTING;
  25246. }
  25247. while (node.return) {
  25248. node = node.return;
  25249. if ((node.effectTag & Placement) !== NoEffect) {
  25250. return MOUNTING;
  25251. }
  25252. }
  25253. } else {
  25254. while (node.return) {
  25255. node = node.return;
  25256. }
  25257. }
  25258. if (node.tag === HostRoot) {
  25259. // TODO: Check if this was a nested HostRoot when used with
  25260. // renderContainerIntoSubtree.
  25261. return MOUNTED;
  25262. }
  25263. // If we didn't hit the root, that means that we're in an disconnected tree
  25264. // that has been unmounted.
  25265. return UNMOUNTED;
  25266. }
  25267. function isFiberMounted(fiber) {
  25268. return isFiberMountedImpl(fiber) === MOUNTED;
  25269. }
  25270. function isMounted(component) {
  25271. {
  25272. var owner = ReactCurrentOwner$1.current;
  25273. if (owner !== null && owner.tag === ClassComponent) {
  25274. var ownerFiber = owner;
  25275. var instance = ownerFiber.stateNode;
  25276. !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
  25277. instance._warnedAboutRefsInRender = true;
  25278. }
  25279. }
  25280. var fiber = get(component);
  25281. if (!fiber) {
  25282. return false;
  25283. }
  25284. return isFiberMountedImpl(fiber) === MOUNTED;
  25285. }
  25286. function assertIsMounted(fiber) {
  25287. !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  25288. }
  25289. function findCurrentFiberUsingSlowPath(fiber) {
  25290. var alternate = fiber.alternate;
  25291. if (!alternate) {
  25292. // If there is no alternate, then we only need to check if it is mounted.
  25293. var state = isFiberMountedImpl(fiber);
  25294. !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  25295. if (state === MOUNTING) {
  25296. return null;
  25297. }
  25298. return fiber;
  25299. }
  25300. // If we have two possible branches, we'll walk backwards up to the root
  25301. // to see what path the root points to. On the way we may hit one of the
  25302. // special cases and we'll deal with them.
  25303. var a = fiber;
  25304. var b = alternate;
  25305. while (true) {
  25306. var parentA = a.return;
  25307. var parentB = parentA ? parentA.alternate : null;
  25308. if (!parentA || !parentB) {
  25309. // We're at the root.
  25310. break;
  25311. }
  25312. // If both copies of the parent fiber point to the same child, we can
  25313. // assume that the child is current. This happens when we bailout on low
  25314. // priority: the bailed out fiber's child reuses the current child.
  25315. if (parentA.child === parentB.child) {
  25316. var child = parentA.child;
  25317. while (child) {
  25318. if (child === a) {
  25319. // We've determined that A is the current branch.
  25320. assertIsMounted(parentA);
  25321. return fiber;
  25322. }
  25323. if (child === b) {
  25324. // We've determined that B is the current branch.
  25325. assertIsMounted(parentA);
  25326. return alternate;
  25327. }
  25328. child = child.sibling;
  25329. }
  25330. // We should never have an alternate for any mounting node. So the only
  25331. // way this could possibly happen is if this was unmounted, if at all.
  25332. invariant(false, 'Unable to find node on an unmounted component.');
  25333. }
  25334. if (a.return !== b.return) {
  25335. // The return pointer of A and the return pointer of B point to different
  25336. // fibers. We assume that return pointers never criss-cross, so A must
  25337. // belong to the child set of A.return, and B must belong to the child
  25338. // set of B.return.
  25339. a = parentA;
  25340. b = parentB;
  25341. } else {
  25342. // The return pointers point to the same fiber. We'll have to use the
  25343. // default, slow path: scan the child sets of each parent alternate to see
  25344. // which child belongs to which set.
  25345. //
  25346. // Search parent A's child set
  25347. var didFindChild = false;
  25348. var _child = parentA.child;
  25349. while (_child) {
  25350. if (_child === a) {
  25351. didFindChild = true;
  25352. a = parentA;
  25353. b = parentB;
  25354. break;
  25355. }
  25356. if (_child === b) {
  25357. didFindChild = true;
  25358. b = parentA;
  25359. a = parentB;
  25360. break;
  25361. }
  25362. _child = _child.sibling;
  25363. }
  25364. if (!didFindChild) {
  25365. // Search parent B's child set
  25366. _child = parentB.child;
  25367. while (_child) {
  25368. if (_child === a) {
  25369. didFindChild = true;
  25370. a = parentB;
  25371. b = parentA;
  25372. break;
  25373. }
  25374. if (_child === b) {
  25375. didFindChild = true;
  25376. b = parentB;
  25377. a = parentA;
  25378. break;
  25379. }
  25380. _child = _child.sibling;
  25381. }
  25382. !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;
  25383. }
  25384. }
  25385. !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  25386. }
  25387. // If the root is not a host container, we're in a disconnected tree. I.e.
  25388. // unmounted.
  25389. !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  25390. if (a.stateNode.current === a) {
  25391. // We've determined that A is the current branch.
  25392. return fiber;
  25393. }
  25394. // Otherwise B has to be current branch.
  25395. return alternate;
  25396. }
  25397. function findCurrentHostFiber(parent) {
  25398. var currentParent = findCurrentFiberUsingSlowPath(parent);
  25399. if (!currentParent) {
  25400. return null;
  25401. }
  25402. // Next we'll drill down this component to find the first HostComponent/Text.
  25403. var node = currentParent;
  25404. while (true) {
  25405. if (node.tag === HostComponent || node.tag === HostText) {
  25406. return node;
  25407. } else if (node.child) {
  25408. node.child.return = node;
  25409. node = node.child;
  25410. continue;
  25411. }
  25412. if (node === currentParent) {
  25413. return null;
  25414. }
  25415. while (!node.sibling) {
  25416. if (!node.return || node.return === currentParent) {
  25417. return null;
  25418. }
  25419. node = node.return;
  25420. }
  25421. node.sibling.return = node.return;
  25422. node = node.sibling;
  25423. }
  25424. // Flow needs the return null here, but ESLint complains about it.
  25425. // eslint-disable-next-line no-unreachable
  25426. return null;
  25427. }
  25428. function findCurrentHostFiberWithNoPortals(parent) {
  25429. var currentParent = findCurrentFiberUsingSlowPath(parent);
  25430. if (!currentParent) {
  25431. return null;
  25432. }
  25433. // Next we'll drill down this component to find the first HostComponent/Text.
  25434. var node = currentParent;
  25435. while (true) {
  25436. if (node.tag === HostComponent || node.tag === HostText) {
  25437. return node;
  25438. } else if (node.child && node.tag !== HostPortal) {
  25439. node.child.return = node;
  25440. node = node.child;
  25441. continue;
  25442. }
  25443. if (node === currentParent) {
  25444. return null;
  25445. }
  25446. while (!node.sibling) {
  25447. if (!node.return || node.return === currentParent) {
  25448. return null;
  25449. }
  25450. node = node.return;
  25451. }
  25452. node.sibling.return = node.return;
  25453. node = node.sibling;
  25454. }
  25455. // Flow needs the return null here, but ESLint complains about it.
  25456. // eslint-disable-next-line no-unreachable
  25457. return null;
  25458. }
  25459. function addEventBubbleListener(element, eventType, listener) {
  25460. element.addEventListener(eventType, listener, false);
  25461. }
  25462. function addEventCaptureListener(element, eventType, listener) {
  25463. element.addEventListener(eventType, listener, true);
  25464. }
  25465. /**
  25466. * @interface Event
  25467. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  25468. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  25469. */
  25470. var SyntheticAnimationEvent = SyntheticEvent.extend({
  25471. animationName: null,
  25472. elapsedTime: null,
  25473. pseudoElement: null
  25474. });
  25475. /**
  25476. * @interface Event
  25477. * @see http://www.w3.org/TR/clipboard-apis/
  25478. */
  25479. var SyntheticClipboardEvent = SyntheticEvent.extend({
  25480. clipboardData: function (event) {
  25481. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  25482. }
  25483. });
  25484. /**
  25485. * @interface FocusEvent
  25486. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25487. */
  25488. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  25489. relatedTarget: null
  25490. });
  25491. /**
  25492. * `charCode` represents the actual "character code" and is safe to use with
  25493. * `String.fromCharCode`. As such, only keys that correspond to printable
  25494. * characters produce a valid `charCode`, the only exception to this is Enter.
  25495. * The Tab-key is considered non-printable and does not have a `charCode`,
  25496. * presumably because it does not produce a tab-character in browsers.
  25497. *
  25498. * @param {object} nativeEvent Native browser event.
  25499. * @return {number} Normalized `charCode` property.
  25500. */
  25501. function getEventCharCode(nativeEvent) {
  25502. var charCode = void 0;
  25503. var keyCode = nativeEvent.keyCode;
  25504. if ('charCode' in nativeEvent) {
  25505. charCode = nativeEvent.charCode;
  25506. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  25507. if (charCode === 0 && keyCode === 13) {
  25508. charCode = 13;
  25509. }
  25510. } else {
  25511. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  25512. charCode = keyCode;
  25513. }
  25514. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  25515. // report Enter as charCode 10 when ctrl is pressed.
  25516. if (charCode === 10) {
  25517. charCode = 13;
  25518. }
  25519. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  25520. // Must not discard the (non-)printable Enter-key.
  25521. if (charCode >= 32 || charCode === 13) {
  25522. return charCode;
  25523. }
  25524. return 0;
  25525. }
  25526. /**
  25527. * Normalization of deprecated HTML5 `key` values
  25528. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  25529. */
  25530. var normalizeKey = {
  25531. Esc: 'Escape',
  25532. Spacebar: ' ',
  25533. Left: 'ArrowLeft',
  25534. Up: 'ArrowUp',
  25535. Right: 'ArrowRight',
  25536. Down: 'ArrowDown',
  25537. Del: 'Delete',
  25538. Win: 'OS',
  25539. Menu: 'ContextMenu',
  25540. Apps: 'ContextMenu',
  25541. Scroll: 'ScrollLock',
  25542. MozPrintableKey: 'Unidentified'
  25543. };
  25544. /**
  25545. * Translation from legacy `keyCode` to HTML5 `key`
  25546. * Only special keys supported, all others depend on keyboard layout or browser
  25547. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  25548. */
  25549. var translateToKey = {
  25550. '8': 'Backspace',
  25551. '9': 'Tab',
  25552. '12': 'Clear',
  25553. '13': 'Enter',
  25554. '16': 'Shift',
  25555. '17': 'Control',
  25556. '18': 'Alt',
  25557. '19': 'Pause',
  25558. '20': 'CapsLock',
  25559. '27': 'Escape',
  25560. '32': ' ',
  25561. '33': 'PageUp',
  25562. '34': 'PageDown',
  25563. '35': 'End',
  25564. '36': 'Home',
  25565. '37': 'ArrowLeft',
  25566. '38': 'ArrowUp',
  25567. '39': 'ArrowRight',
  25568. '40': 'ArrowDown',
  25569. '45': 'Insert',
  25570. '46': 'Delete',
  25571. '112': 'F1',
  25572. '113': 'F2',
  25573. '114': 'F3',
  25574. '115': 'F4',
  25575. '116': 'F5',
  25576. '117': 'F6',
  25577. '118': 'F7',
  25578. '119': 'F8',
  25579. '120': 'F9',
  25580. '121': 'F10',
  25581. '122': 'F11',
  25582. '123': 'F12',
  25583. '144': 'NumLock',
  25584. '145': 'ScrollLock',
  25585. '224': 'Meta'
  25586. };
  25587. /**
  25588. * @param {object} nativeEvent Native browser event.
  25589. * @return {string} Normalized `key` property.
  25590. */
  25591. function getEventKey(nativeEvent) {
  25592. if (nativeEvent.key) {
  25593. // Normalize inconsistent values reported by browsers due to
  25594. // implementations of a working draft specification.
  25595. // FireFox implements `key` but returns `MozPrintableKey` for all
  25596. // printable characters (normalized to `Unidentified`), ignore it.
  25597. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  25598. if (key !== 'Unidentified') {
  25599. return key;
  25600. }
  25601. }
  25602. // Browser does not implement `key`, polyfill as much of it as we can.
  25603. if (nativeEvent.type === 'keypress') {
  25604. var charCode = getEventCharCode(nativeEvent);
  25605. // The enter-key is technically both printable and non-printable and can
  25606. // thus be captured by `keypress`, no other non-printable key should.
  25607. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  25608. }
  25609. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  25610. // While user keyboard layout determines the actual meaning of each
  25611. // `keyCode` value, almost all function keys have a universal value.
  25612. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  25613. }
  25614. return '';
  25615. }
  25616. /**
  25617. * @interface KeyboardEvent
  25618. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25619. */
  25620. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  25621. key: getEventKey,
  25622. location: null,
  25623. ctrlKey: null,
  25624. shiftKey: null,
  25625. altKey: null,
  25626. metaKey: null,
  25627. repeat: null,
  25628. locale: null,
  25629. getModifierState: getEventModifierState,
  25630. // Legacy Interface
  25631. charCode: function (event) {
  25632. // `charCode` is the result of a KeyPress event and represents the value of
  25633. // the actual printable character.
  25634. // KeyPress is deprecated, but its replacement is not yet final and not
  25635. // implemented in any major browser. Only KeyPress has charCode.
  25636. if (event.type === 'keypress') {
  25637. return getEventCharCode(event);
  25638. }
  25639. return 0;
  25640. },
  25641. keyCode: function (event) {
  25642. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  25643. // physical keyboard key.
  25644. // The actual meaning of the value depends on the users' keyboard layout
  25645. // which cannot be detected. Assuming that it is a US keyboard layout
  25646. // provides a surprisingly accurate mapping for US and European users.
  25647. // Due to this, it is left to the user to implement at this time.
  25648. if (event.type === 'keydown' || event.type === 'keyup') {
  25649. return event.keyCode;
  25650. }
  25651. return 0;
  25652. },
  25653. which: function (event) {
  25654. // `which` is an alias for either `keyCode` or `charCode` depending on the
  25655. // type of the event.
  25656. if (event.type === 'keypress') {
  25657. return getEventCharCode(event);
  25658. }
  25659. if (event.type === 'keydown' || event.type === 'keyup') {
  25660. return event.keyCode;
  25661. }
  25662. return 0;
  25663. }
  25664. });
  25665. /**
  25666. * @interface DragEvent
  25667. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25668. */
  25669. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  25670. dataTransfer: null
  25671. });
  25672. /**
  25673. * @interface TouchEvent
  25674. * @see http://www.w3.org/TR/touch-events/
  25675. */
  25676. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  25677. touches: null,
  25678. targetTouches: null,
  25679. changedTouches: null,
  25680. altKey: null,
  25681. metaKey: null,
  25682. ctrlKey: null,
  25683. shiftKey: null,
  25684. getModifierState: getEventModifierState
  25685. });
  25686. /**
  25687. * @interface Event
  25688. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  25689. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  25690. */
  25691. var SyntheticTransitionEvent = SyntheticEvent.extend({
  25692. propertyName: null,
  25693. elapsedTime: null,
  25694. pseudoElement: null
  25695. });
  25696. /**
  25697. * @interface WheelEvent
  25698. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25699. */
  25700. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  25701. deltaX: function (event) {
  25702. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  25703. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  25704. },
  25705. deltaY: function (event) {
  25706. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  25707. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  25708. 'wheelDelta' in event ? -event.wheelDelta : 0;
  25709. },
  25710. deltaZ: null,
  25711. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  25712. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  25713. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  25714. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  25715. deltaMode: null
  25716. });
  25717. /**
  25718. * Turns
  25719. * ['abort', ...]
  25720. * into
  25721. * eventTypes = {
  25722. * 'abort': {
  25723. * phasedRegistrationNames: {
  25724. * bubbled: 'onAbort',
  25725. * captured: 'onAbortCapture',
  25726. * },
  25727. * dependencies: [TOP_ABORT],
  25728. * },
  25729. * ...
  25730. * };
  25731. * topLevelEventsToDispatchConfig = new Map([
  25732. * [TOP_ABORT, { sameConfig }],
  25733. * ]);
  25734. */
  25735. var interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']];
  25736. var nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];
  25737. var eventTypes$4 = {};
  25738. var topLevelEventsToDispatchConfig = {};
  25739. function addEventTypeNameToConfig(_ref, isInteractive) {
  25740. var topEvent = _ref[0],
  25741. event = _ref[1];
  25742. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  25743. var onEvent = 'on' + capitalizedEvent;
  25744. var type = {
  25745. phasedRegistrationNames: {
  25746. bubbled: onEvent,
  25747. captured: onEvent + 'Capture'
  25748. },
  25749. dependencies: [topEvent],
  25750. isInteractive: isInteractive
  25751. };
  25752. eventTypes$4[event] = type;
  25753. topLevelEventsToDispatchConfig[topEvent] = type;
  25754. }
  25755. interactiveEventTypeNames.forEach(function (eventTuple) {
  25756. addEventTypeNameToConfig(eventTuple, true);
  25757. });
  25758. nonInteractiveEventTypeNames.forEach(function (eventTuple) {
  25759. addEventTypeNameToConfig(eventTuple, false);
  25760. });
  25761. // Only used in DEV for exhaustiveness validation.
  25762. var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];
  25763. var SimpleEventPlugin = {
  25764. eventTypes: eventTypes$4,
  25765. isInteractiveTopLevelEventType: function (topLevelType) {
  25766. var config = topLevelEventsToDispatchConfig[topLevelType];
  25767. return config !== undefined && config.isInteractive === true;
  25768. },
  25769. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25770. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  25771. if (!dispatchConfig) {
  25772. return null;
  25773. }
  25774. var EventConstructor = void 0;
  25775. switch (topLevelType) {
  25776. case TOP_KEY_PRESS:
  25777. // Firefox creates a keypress event for function keys too. This removes
  25778. // the unwanted keypress events. Enter is however both printable and
  25779. // non-printable. One would expect Tab to be as well (but it isn't).
  25780. if (getEventCharCode(nativeEvent) === 0) {
  25781. return null;
  25782. }
  25783. /* falls through */
  25784. case TOP_KEY_DOWN:
  25785. case TOP_KEY_UP:
  25786. EventConstructor = SyntheticKeyboardEvent;
  25787. break;
  25788. case TOP_BLUR:
  25789. case TOP_FOCUS:
  25790. EventConstructor = SyntheticFocusEvent;
  25791. break;
  25792. case TOP_CLICK:
  25793. // Firefox creates a click event on right mouse clicks. This removes the
  25794. // unwanted click events.
  25795. if (nativeEvent.button === 2) {
  25796. return null;
  25797. }
  25798. /* falls through */
  25799. case TOP_AUX_CLICK:
  25800. case TOP_DOUBLE_CLICK:
  25801. case TOP_MOUSE_DOWN:
  25802. case TOP_MOUSE_MOVE:
  25803. case TOP_MOUSE_UP:
  25804. // TODO: Disabled elements should not respond to mouse events
  25805. /* falls through */
  25806. case TOP_MOUSE_OUT:
  25807. case TOP_MOUSE_OVER:
  25808. case TOP_CONTEXT_MENU:
  25809. EventConstructor = SyntheticMouseEvent;
  25810. break;
  25811. case TOP_DRAG:
  25812. case TOP_DRAG_END:
  25813. case TOP_DRAG_ENTER:
  25814. case TOP_DRAG_EXIT:
  25815. case TOP_DRAG_LEAVE:
  25816. case TOP_DRAG_OVER:
  25817. case TOP_DRAG_START:
  25818. case TOP_DROP:
  25819. EventConstructor = SyntheticDragEvent;
  25820. break;
  25821. case TOP_TOUCH_CANCEL:
  25822. case TOP_TOUCH_END:
  25823. case TOP_TOUCH_MOVE:
  25824. case TOP_TOUCH_START:
  25825. EventConstructor = SyntheticTouchEvent;
  25826. break;
  25827. case TOP_ANIMATION_END:
  25828. case TOP_ANIMATION_ITERATION:
  25829. case TOP_ANIMATION_START:
  25830. EventConstructor = SyntheticAnimationEvent;
  25831. break;
  25832. case TOP_TRANSITION_END:
  25833. EventConstructor = SyntheticTransitionEvent;
  25834. break;
  25835. case TOP_SCROLL:
  25836. EventConstructor = SyntheticUIEvent;
  25837. break;
  25838. case TOP_WHEEL:
  25839. EventConstructor = SyntheticWheelEvent;
  25840. break;
  25841. case TOP_COPY:
  25842. case TOP_CUT:
  25843. case TOP_PASTE:
  25844. EventConstructor = SyntheticClipboardEvent;
  25845. break;
  25846. case TOP_GOT_POINTER_CAPTURE:
  25847. case TOP_LOST_POINTER_CAPTURE:
  25848. case TOP_POINTER_CANCEL:
  25849. case TOP_POINTER_DOWN:
  25850. case TOP_POINTER_MOVE:
  25851. case TOP_POINTER_OUT:
  25852. case TOP_POINTER_OVER:
  25853. case TOP_POINTER_UP:
  25854. EventConstructor = SyntheticPointerEvent;
  25855. break;
  25856. default:
  25857. {
  25858. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  25859. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  25860. }
  25861. }
  25862. // HTML Events
  25863. // @see http://www.w3.org/TR/html5/index.html#events-0
  25864. EventConstructor = SyntheticEvent;
  25865. break;
  25866. }
  25867. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  25868. accumulateTwoPhaseDispatches(event);
  25869. return event;
  25870. }
  25871. };
  25872. var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;
  25873. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  25874. var callbackBookkeepingPool = [];
  25875. /**
  25876. * Find the deepest React component completely containing the root of the
  25877. * passed-in instance (for use when entire React trees are nested within each
  25878. * other). If React trees are not nested, returns null.
  25879. */
  25880. function findRootContainerNode(inst) {
  25881. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  25882. // traversal, but caching is difficult to do correctly without using a
  25883. // mutation observer to listen for all DOM changes.
  25884. while (inst.return) {
  25885. inst = inst.return;
  25886. }
  25887. if (inst.tag !== HostRoot) {
  25888. // This can happen if we're in a detached tree.
  25889. return null;
  25890. }
  25891. return inst.stateNode.containerInfo;
  25892. }
  25893. // Used to store ancestor hierarchy in top level callback
  25894. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  25895. if (callbackBookkeepingPool.length) {
  25896. var instance = callbackBookkeepingPool.pop();
  25897. instance.topLevelType = topLevelType;
  25898. instance.nativeEvent = nativeEvent;
  25899. instance.targetInst = targetInst;
  25900. return instance;
  25901. }
  25902. return {
  25903. topLevelType: topLevelType,
  25904. nativeEvent: nativeEvent,
  25905. targetInst: targetInst,
  25906. ancestors: []
  25907. };
  25908. }
  25909. function releaseTopLevelCallbackBookKeeping(instance) {
  25910. instance.topLevelType = null;
  25911. instance.nativeEvent = null;
  25912. instance.targetInst = null;
  25913. instance.ancestors.length = 0;
  25914. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  25915. callbackBookkeepingPool.push(instance);
  25916. }
  25917. }
  25918. function handleTopLevel(bookKeeping) {
  25919. var targetInst = bookKeeping.targetInst;
  25920. // Loop through the hierarchy, in case there's any nested components.
  25921. // It's important that we build the array of ancestors before calling any
  25922. // event handlers, because event handlers can modify the DOM, leading to
  25923. // inconsistencies with ReactMount's node cache. See #1105.
  25924. var ancestor = targetInst;
  25925. do {
  25926. if (!ancestor) {
  25927. bookKeeping.ancestors.push(ancestor);
  25928. break;
  25929. }
  25930. var root = findRootContainerNode(ancestor);
  25931. if (!root) {
  25932. break;
  25933. }
  25934. bookKeeping.ancestors.push(ancestor);
  25935. ancestor = getClosestInstanceFromNode(root);
  25936. } while (ancestor);
  25937. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  25938. targetInst = bookKeeping.ancestors[i];
  25939. runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  25940. }
  25941. }
  25942. // TODO: can we stop exporting these?
  25943. var _enabled = true;
  25944. function setEnabled(enabled) {
  25945. _enabled = !!enabled;
  25946. }
  25947. function isEnabled() {
  25948. return _enabled;
  25949. }
  25950. /**
  25951. * Traps top-level events by using event bubbling.
  25952. *
  25953. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  25954. * @param {object} element Element on which to attach listener.
  25955. * @return {?object} An object with a remove function which will forcefully
  25956. * remove the listener.
  25957. * @internal
  25958. */
  25959. function trapBubbledEvent(topLevelType, element) {
  25960. if (!element) {
  25961. return null;
  25962. }
  25963. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  25964. addEventBubbleListener(element, getRawEventName(topLevelType),
  25965. // Check if interactive and wrap in interactiveUpdates
  25966. dispatch.bind(null, topLevelType));
  25967. }
  25968. /**
  25969. * Traps a top-level event by using event capturing.
  25970. *
  25971. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  25972. * @param {object} element Element on which to attach listener.
  25973. * @return {?object} An object with a remove function which will forcefully
  25974. * remove the listener.
  25975. * @internal
  25976. */
  25977. function trapCapturedEvent(topLevelType, element) {
  25978. if (!element) {
  25979. return null;
  25980. }
  25981. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  25982. addEventCaptureListener(element, getRawEventName(topLevelType),
  25983. // Check if interactive and wrap in interactiveUpdates
  25984. dispatch.bind(null, topLevelType));
  25985. }
  25986. function dispatchInteractiveEvent(topLevelType, nativeEvent) {
  25987. interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);
  25988. }
  25989. function dispatchEvent(topLevelType, nativeEvent) {
  25990. if (!_enabled) {
  25991. return;
  25992. }
  25993. var nativeEventTarget = getEventTarget(nativeEvent);
  25994. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  25995. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  25996. // If we get an event (ex: img onload) before committing that
  25997. // component's mount, ignore it for now (that is, treat it as if it was an
  25998. // event on a non-React tree). We might also consider queueing events and
  25999. // dispatching them after the mount.
  26000. targetInst = null;
  26001. }
  26002. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  26003. try {
  26004. // Event queue being processed in the same cycle allows
  26005. // `preventDefault`.
  26006. batchedUpdates(handleTopLevel, bookKeeping);
  26007. } finally {
  26008. releaseTopLevelCallbackBookKeeping(bookKeeping);
  26009. }
  26010. }
  26011. /**
  26012. * Summary of `ReactBrowserEventEmitter` event handling:
  26013. *
  26014. * - Top-level delegation is used to trap most native browser events. This
  26015. * may only occur in the main thread and is the responsibility of
  26016. * ReactDOMEventListener, which is injected and can therefore support
  26017. * pluggable event sources. This is the only work that occurs in the main
  26018. * thread.
  26019. *
  26020. * - We normalize and de-duplicate events to account for browser quirks. This
  26021. * may be done in the worker thread.
  26022. *
  26023. * - Forward these native events (with the associated top-level type used to
  26024. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  26025. * to extract any synthetic events.
  26026. *
  26027. * - The `EventPluginHub` will then process each event by annotating them with
  26028. * "dispatches", a sequence of listeners and IDs that care about that event.
  26029. *
  26030. * - The `EventPluginHub` then dispatches the events.
  26031. *
  26032. * Overview of React and the event system:
  26033. *
  26034. * +------------+ .
  26035. * | DOM | .
  26036. * +------------+ .
  26037. * | .
  26038. * v .
  26039. * +------------+ .
  26040. * | ReactEvent | .
  26041. * | Listener | .
  26042. * +------------+ . +-----------+
  26043. * | . +--------+|SimpleEvent|
  26044. * | . | |Plugin |
  26045. * +-----|------+ . v +-----------+
  26046. * | | | . +--------------+ +------------+
  26047. * | +-----------.--->|EventPluginHub| | Event |
  26048. * | | . | | +-----------+ | Propagators|
  26049. * | ReactEvent | . | | |TapEvent | |------------|
  26050. * | Emitter | . | |<---+|Plugin | |other plugin|
  26051. * | | . | | +-----------+ | utilities |
  26052. * | +-----------.--->| | +------------+
  26053. * | | | . +--------------+
  26054. * +-----|------+ . ^ +-----------+
  26055. * | . | |Enter/Leave|
  26056. * + . +-------+|Plugin |
  26057. * +-------------+ . +-----------+
  26058. * | application | .
  26059. * |-------------| .
  26060. * | | .
  26061. * | | .
  26062. * +-------------+ .
  26063. * .
  26064. * React Core . General Purpose Event Plugin System
  26065. */
  26066. var alreadyListeningTo = {};
  26067. var reactTopListenersCounter = 0;
  26068. /**
  26069. * To ensure no conflicts with other potential React instances on the page
  26070. */
  26071. var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);
  26072. function getListeningForDocument(mountAt) {
  26073. // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  26074. // directly.
  26075. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
  26076. mountAt[topListenersIDKey] = reactTopListenersCounter++;
  26077. alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  26078. }
  26079. return alreadyListeningTo[mountAt[topListenersIDKey]];
  26080. }
  26081. /**
  26082. * We listen for bubbled touch events on the document object.
  26083. *
  26084. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  26085. * mounting `onmousemove` events at some node that was not the document
  26086. * element. The symptoms were that if your mouse is not moving over something
  26087. * contained within that mount point (for example on the background) the
  26088. * top-level listeners for `onmousemove` won't be called. However, if you
  26089. * register the `mousemove` on the document object, then it will of course
  26090. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  26091. * top-level listeners to the document object only, at least for these
  26092. * movement types of events and possibly all events.
  26093. *
  26094. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  26095. *
  26096. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  26097. * they bubble to document.
  26098. *
  26099. * @param {string} registrationName Name of listener (e.g. `onClick`).
  26100. * @param {object} mountAt Container where to mount the listener
  26101. */
  26102. function listenTo(registrationName, mountAt) {
  26103. var isListening = getListeningForDocument(mountAt);
  26104. var dependencies = registrationNameDependencies[registrationName];
  26105. for (var i = 0; i < dependencies.length; i++) {
  26106. var dependency = dependencies[i];
  26107. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  26108. switch (dependency) {
  26109. case TOP_SCROLL:
  26110. trapCapturedEvent(TOP_SCROLL, mountAt);
  26111. break;
  26112. case TOP_FOCUS:
  26113. case TOP_BLUR:
  26114. trapCapturedEvent(TOP_FOCUS, mountAt);
  26115. trapCapturedEvent(TOP_BLUR, mountAt);
  26116. // We set the flag for a single dependency later in this function,
  26117. // but this ensures we mark both as attached rather than just one.
  26118. isListening[TOP_BLUR] = true;
  26119. isListening[TOP_FOCUS] = true;
  26120. break;
  26121. case TOP_CANCEL:
  26122. case TOP_CLOSE:
  26123. if (isEventSupported(getRawEventName(dependency))) {
  26124. trapCapturedEvent(dependency, mountAt);
  26125. }
  26126. break;
  26127. case TOP_INVALID:
  26128. case TOP_SUBMIT:
  26129. case TOP_RESET:
  26130. // We listen to them on the target DOM elements.
  26131. // Some of them bubble so we don't want them to fire twice.
  26132. break;
  26133. default:
  26134. // By default, listen on the top level to all non-media events.
  26135. // Media events don't bubble so adding the listener wouldn't do anything.
  26136. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  26137. if (!isMediaEvent) {
  26138. trapBubbledEvent(dependency, mountAt);
  26139. }
  26140. break;
  26141. }
  26142. isListening[dependency] = true;
  26143. }
  26144. }
  26145. }
  26146. function isListeningToAllDependencies(registrationName, mountAt) {
  26147. var isListening = getListeningForDocument(mountAt);
  26148. var dependencies = registrationNameDependencies[registrationName];
  26149. for (var i = 0; i < dependencies.length; i++) {
  26150. var dependency = dependencies[i];
  26151. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  26152. return false;
  26153. }
  26154. }
  26155. return true;
  26156. }
  26157. function getActiveElement(doc) {
  26158. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  26159. if (typeof doc === 'undefined') {
  26160. return null;
  26161. }
  26162. try {
  26163. return doc.activeElement || doc.body;
  26164. } catch (e) {
  26165. return doc.body;
  26166. }
  26167. }
  26168. /**
  26169. * Given any node return the first leaf node without children.
  26170. *
  26171. * @param {DOMElement|DOMTextNode} node
  26172. * @return {DOMElement|DOMTextNode}
  26173. */
  26174. function getLeafNode(node) {
  26175. while (node && node.firstChild) {
  26176. node = node.firstChild;
  26177. }
  26178. return node;
  26179. }
  26180. /**
  26181. * Get the next sibling within a container. This will walk up the
  26182. * DOM if a node's siblings have been exhausted.
  26183. *
  26184. * @param {DOMElement|DOMTextNode} node
  26185. * @return {?DOMElement|DOMTextNode}
  26186. */
  26187. function getSiblingNode(node) {
  26188. while (node) {
  26189. if (node.nextSibling) {
  26190. return node.nextSibling;
  26191. }
  26192. node = node.parentNode;
  26193. }
  26194. }
  26195. /**
  26196. * Get object describing the nodes which contain characters at offset.
  26197. *
  26198. * @param {DOMElement|DOMTextNode} root
  26199. * @param {number} offset
  26200. * @return {?object}
  26201. */
  26202. function getNodeForCharacterOffset(root, offset) {
  26203. var node = getLeafNode(root);
  26204. var nodeStart = 0;
  26205. var nodeEnd = 0;
  26206. while (node) {
  26207. if (node.nodeType === TEXT_NODE) {
  26208. nodeEnd = nodeStart + node.textContent.length;
  26209. if (nodeStart <= offset && nodeEnd >= offset) {
  26210. return {
  26211. node: node,
  26212. offset: offset - nodeStart
  26213. };
  26214. }
  26215. nodeStart = nodeEnd;
  26216. }
  26217. node = getLeafNode(getSiblingNode(node));
  26218. }
  26219. }
  26220. /**
  26221. * @param {DOMElement} outerNode
  26222. * @return {?object}
  26223. */
  26224. function getOffsets(outerNode) {
  26225. var ownerDocument = outerNode.ownerDocument;
  26226. var win = ownerDocument && ownerDocument.defaultView || window;
  26227. var selection = win.getSelection && win.getSelection();
  26228. if (!selection || selection.rangeCount === 0) {
  26229. return null;
  26230. }
  26231. var anchorNode = selection.anchorNode,
  26232. anchorOffset = selection.anchorOffset,
  26233. focusNode = selection.focusNode,
  26234. focusOffset = selection.focusOffset;
  26235. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  26236. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  26237. // expose properties, triggering a "Permission denied error" if any of its
  26238. // properties are accessed. The only seemingly possible way to avoid erroring
  26239. // is to access a property that typically works for non-anonymous divs and
  26240. // catch any error that may otherwise arise. See
  26241. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  26242. try {
  26243. /* eslint-disable no-unused-expressions */
  26244. anchorNode.nodeType;
  26245. focusNode.nodeType;
  26246. /* eslint-enable no-unused-expressions */
  26247. } catch (e) {
  26248. return null;
  26249. }
  26250. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  26251. }
  26252. /**
  26253. * Returns {start, end} where `start` is the character/codepoint index of
  26254. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  26255. * `end` is the index of (focusNode, focusOffset).
  26256. *
  26257. * Returns null if you pass in garbage input but we should probably just crash.
  26258. *
  26259. * Exported only for testing.
  26260. */
  26261. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  26262. var length = 0;
  26263. var start = -1;
  26264. var end = -1;
  26265. var indexWithinAnchor = 0;
  26266. var indexWithinFocus = 0;
  26267. var node = outerNode;
  26268. var parentNode = null;
  26269. outer: while (true) {
  26270. var next = null;
  26271. while (true) {
  26272. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  26273. start = length + anchorOffset;
  26274. }
  26275. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  26276. end = length + focusOffset;
  26277. }
  26278. if (node.nodeType === TEXT_NODE) {
  26279. length += node.nodeValue.length;
  26280. }
  26281. if ((next = node.firstChild) === null) {
  26282. break;
  26283. }
  26284. // Moving from `node` to its first child `next`.
  26285. parentNode = node;
  26286. node = next;
  26287. }
  26288. while (true) {
  26289. if (node === outerNode) {
  26290. // If `outerNode` has children, this is always the second time visiting
  26291. // it. If it has no children, this is still the first loop, and the only
  26292. // valid selection is anchorNode and focusNode both equal to this node
  26293. // and both offsets 0, in which case we will have handled above.
  26294. break outer;
  26295. }
  26296. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  26297. start = length;
  26298. }
  26299. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  26300. end = length;
  26301. }
  26302. if ((next = node.nextSibling) !== null) {
  26303. break;
  26304. }
  26305. node = parentNode;
  26306. parentNode = node.parentNode;
  26307. }
  26308. // Moving from `node` to its next sibling `next`.
  26309. node = next;
  26310. }
  26311. if (start === -1 || end === -1) {
  26312. // This should never happen. (Would happen if the anchor/focus nodes aren't
  26313. // actually inside the passed-in node.)
  26314. return null;
  26315. }
  26316. return {
  26317. start: start,
  26318. end: end
  26319. };
  26320. }
  26321. /**
  26322. * In modern non-IE browsers, we can support both forward and backward
  26323. * selections.
  26324. *
  26325. * Note: IE10+ supports the Selection object, but it does not support
  26326. * the `extend` method, which means that even in modern IE, it's not possible
  26327. * to programmatically create a backward selection. Thus, for all IE
  26328. * versions, we use the old IE API to create our selections.
  26329. *
  26330. * @param {DOMElement|DOMTextNode} node
  26331. * @param {object} offsets
  26332. */
  26333. function setOffsets(node, offsets) {
  26334. var doc = node.ownerDocument || document;
  26335. var win = doc && doc.defaultView || window;
  26336. // Edge fails with "Object expected" in some scenarios.
  26337. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  26338. // fails when pasting 100+ items)
  26339. if (!win.getSelection) {
  26340. return;
  26341. }
  26342. var selection = win.getSelection();
  26343. var length = node.textContent.length;
  26344. var start = Math.min(offsets.start, length);
  26345. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  26346. // IE 11 uses modern selection, but doesn't support the extend method.
  26347. // Flip backward selections, so we can set with a single range.
  26348. if (!selection.extend && start > end) {
  26349. var temp = end;
  26350. end = start;
  26351. start = temp;
  26352. }
  26353. var startMarker = getNodeForCharacterOffset(node, start);
  26354. var endMarker = getNodeForCharacterOffset(node, end);
  26355. if (startMarker && endMarker) {
  26356. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  26357. return;
  26358. }
  26359. var range = doc.createRange();
  26360. range.setStart(startMarker.node, startMarker.offset);
  26361. selection.removeAllRanges();
  26362. if (start > end) {
  26363. selection.addRange(range);
  26364. selection.extend(endMarker.node, endMarker.offset);
  26365. } else {
  26366. range.setEnd(endMarker.node, endMarker.offset);
  26367. selection.addRange(range);
  26368. }
  26369. }
  26370. }
  26371. function isTextNode(node) {
  26372. return node && node.nodeType === TEXT_NODE;
  26373. }
  26374. function containsNode(outerNode, innerNode) {
  26375. if (!outerNode || !innerNode) {
  26376. return false;
  26377. } else if (outerNode === innerNode) {
  26378. return true;
  26379. } else if (isTextNode(outerNode)) {
  26380. return false;
  26381. } else if (isTextNode(innerNode)) {
  26382. return containsNode(outerNode, innerNode.parentNode);
  26383. } else if ('contains' in outerNode) {
  26384. return outerNode.contains(innerNode);
  26385. } else if (outerNode.compareDocumentPosition) {
  26386. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  26387. } else {
  26388. return false;
  26389. }
  26390. }
  26391. function isInDocument(node) {
  26392. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  26393. }
  26394. function getActiveElementDeep() {
  26395. var win = window;
  26396. var element = getActiveElement();
  26397. while (element instanceof win.HTMLIFrameElement) {
  26398. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  26399. // to throw, e.g. if it has a cross-origin src attribute
  26400. try {
  26401. win = element.contentDocument.defaultView;
  26402. } catch (e) {
  26403. return element;
  26404. }
  26405. element = getActiveElement(win.document);
  26406. }
  26407. return element;
  26408. }
  26409. /**
  26410. * @ReactInputSelection: React input selection module. Based on Selection.js,
  26411. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  26412. * assume buttons have range selections allowed).
  26413. * Input selection module for React.
  26414. */
  26415. /**
  26416. * @hasSelectionCapabilities: we get the element types that support selection
  26417. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  26418. * and `selectionEnd` rows.
  26419. */
  26420. function hasSelectionCapabilities(elem) {
  26421. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  26422. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  26423. }
  26424. function getSelectionInformation() {
  26425. var focusedElem = getActiveElementDeep();
  26426. return {
  26427. focusedElem: focusedElem,
  26428. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  26429. };
  26430. }
  26431. /**
  26432. * @restoreSelection: If any selection information was potentially lost,
  26433. * restore it. This is useful when performing operations that could remove dom
  26434. * nodes and place them back in, resulting in focus being lost.
  26435. */
  26436. function restoreSelection(priorSelectionInformation) {
  26437. var curFocusedElem = getActiveElementDeep();
  26438. var priorFocusedElem = priorSelectionInformation.focusedElem;
  26439. var priorSelectionRange = priorSelectionInformation.selectionRange;
  26440. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  26441. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  26442. setSelection(priorFocusedElem, priorSelectionRange);
  26443. }
  26444. // Focusing a node can change the scroll position, which is undesirable
  26445. var ancestors = [];
  26446. var ancestor = priorFocusedElem;
  26447. while (ancestor = ancestor.parentNode) {
  26448. if (ancestor.nodeType === ELEMENT_NODE) {
  26449. ancestors.push({
  26450. element: ancestor,
  26451. left: ancestor.scrollLeft,
  26452. top: ancestor.scrollTop
  26453. });
  26454. }
  26455. }
  26456. if (typeof priorFocusedElem.focus === 'function') {
  26457. priorFocusedElem.focus();
  26458. }
  26459. for (var i = 0; i < ancestors.length; i++) {
  26460. var info = ancestors[i];
  26461. info.element.scrollLeft = info.left;
  26462. info.element.scrollTop = info.top;
  26463. }
  26464. }
  26465. }
  26466. /**
  26467. * @getSelection: Gets the selection bounds of a focused textarea, input or
  26468. * contentEditable node.
  26469. * -@input: Look up selection bounds of this input
  26470. * -@return {start: selectionStart, end: selectionEnd}
  26471. */
  26472. function getSelection$1(input) {
  26473. var selection = void 0;
  26474. if ('selectionStart' in input) {
  26475. // Modern browser with input or textarea.
  26476. selection = {
  26477. start: input.selectionStart,
  26478. end: input.selectionEnd
  26479. };
  26480. } else {
  26481. // Content editable or old IE textarea.
  26482. selection = getOffsets(input);
  26483. }
  26484. return selection || { start: 0, end: 0 };
  26485. }
  26486. /**
  26487. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  26488. * the input.
  26489. * -@input Set selection bounds of this input or textarea
  26490. * -@offsets Object of same form that is returned from get*
  26491. */
  26492. function setSelection(input, offsets) {
  26493. var start = offsets.start,
  26494. end = offsets.end;
  26495. if (end === undefined) {
  26496. end = start;
  26497. }
  26498. if ('selectionStart' in input) {
  26499. input.selectionStart = start;
  26500. input.selectionEnd = Math.min(end, input.value.length);
  26501. } else {
  26502. setOffsets(input, offsets);
  26503. }
  26504. }
  26505. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  26506. var eventTypes$3 = {
  26507. select: {
  26508. phasedRegistrationNames: {
  26509. bubbled: 'onSelect',
  26510. captured: 'onSelectCapture'
  26511. },
  26512. dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]
  26513. }
  26514. };
  26515. var activeElement$1 = null;
  26516. var activeElementInst$1 = null;
  26517. var lastSelection = null;
  26518. var mouseDown = false;
  26519. /**
  26520. * Get an object which is a unique representation of the current selection.
  26521. *
  26522. * The return value will not be consistent across nodes or browsers, but
  26523. * two identical selections on the same node will return identical objects.
  26524. *
  26525. * @param {DOMElement} node
  26526. * @return {object}
  26527. */
  26528. function getSelection(node) {
  26529. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  26530. return {
  26531. start: node.selectionStart,
  26532. end: node.selectionEnd
  26533. };
  26534. } else {
  26535. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  26536. var selection = win.getSelection();
  26537. return {
  26538. anchorNode: selection.anchorNode,
  26539. anchorOffset: selection.anchorOffset,
  26540. focusNode: selection.focusNode,
  26541. focusOffset: selection.focusOffset
  26542. };
  26543. }
  26544. }
  26545. /**
  26546. * Get document associated with the event target.
  26547. *
  26548. * @param {object} nativeEventTarget
  26549. * @return {Document}
  26550. */
  26551. function getEventTargetDocument(eventTarget) {
  26552. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  26553. }
  26554. /**
  26555. * Poll selection to see whether it's changed.
  26556. *
  26557. * @param {object} nativeEvent
  26558. * @param {object} nativeEventTarget
  26559. * @return {?SyntheticEvent}
  26560. */
  26561. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  26562. // Ensure we have the right element, and that the user is not dragging a
  26563. // selection (this matches native `select` event behavior). In HTML5, select
  26564. // fires only on input and textarea thus if there's no focused element we
  26565. // won't dispatch.
  26566. var doc = getEventTargetDocument(nativeEventTarget);
  26567. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  26568. return null;
  26569. }
  26570. // Only fire when selection has actually changed.
  26571. var currentSelection = getSelection(activeElement$1);
  26572. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  26573. lastSelection = currentSelection;
  26574. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  26575. syntheticEvent.type = 'select';
  26576. syntheticEvent.target = activeElement$1;
  26577. accumulateTwoPhaseDispatches(syntheticEvent);
  26578. return syntheticEvent;
  26579. }
  26580. return null;
  26581. }
  26582. /**
  26583. * This plugin creates an `onSelect` event that normalizes select events
  26584. * across form elements.
  26585. *
  26586. * Supported elements are:
  26587. * - input (see `isTextInputElement`)
  26588. * - textarea
  26589. * - contentEditable
  26590. *
  26591. * This differs from native browser implementations in the following ways:
  26592. * - Fires on contentEditable fields as well as inputs.
  26593. * - Fires for collapsed selection.
  26594. * - Fires after user input.
  26595. */
  26596. var SelectEventPlugin = {
  26597. eventTypes: eventTypes$3,
  26598. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  26599. var doc = getEventTargetDocument(nativeEventTarget);
  26600. // Track whether all listeners exists for this plugin. If none exist, we do
  26601. // not extract events. See #3639.
  26602. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  26603. return null;
  26604. }
  26605. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  26606. switch (topLevelType) {
  26607. // Track the input node that has focus.
  26608. case TOP_FOCUS:
  26609. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  26610. activeElement$1 = targetNode;
  26611. activeElementInst$1 = targetInst;
  26612. lastSelection = null;
  26613. }
  26614. break;
  26615. case TOP_BLUR:
  26616. activeElement$1 = null;
  26617. activeElementInst$1 = null;
  26618. lastSelection = null;
  26619. break;
  26620. // Don't fire the event while the user is dragging. This matches the
  26621. // semantics of the native select event.
  26622. case TOP_MOUSE_DOWN:
  26623. mouseDown = true;
  26624. break;
  26625. case TOP_CONTEXT_MENU:
  26626. case TOP_MOUSE_UP:
  26627. case TOP_DRAG_END:
  26628. mouseDown = false;
  26629. return constructSelectEvent(nativeEvent, nativeEventTarget);
  26630. // Chrome and IE fire non-standard event when selection is changed (and
  26631. // sometimes when it hasn't). IE's event fires out of order with respect
  26632. // to key and input events on deletion, so we discard it.
  26633. //
  26634. // Firefox doesn't support selectionchange, so check selection status
  26635. // after each key entry. The selection changes after keydown and before
  26636. // keyup, but we check on keydown as well in the case of holding down a
  26637. // key, when multiple keydown events are fired but only one keyup is.
  26638. // This is also our approach for IE handling, for the reason above.
  26639. case TOP_SELECTION_CHANGE:
  26640. if (skipSelectionChangeEvent) {
  26641. break;
  26642. }
  26643. // falls through
  26644. case TOP_KEY_DOWN:
  26645. case TOP_KEY_UP:
  26646. return constructSelectEvent(nativeEvent, nativeEventTarget);
  26647. }
  26648. return null;
  26649. }
  26650. };
  26651. /**
  26652. * Inject modules for resolving DOM hierarchy and plugin ordering.
  26653. */
  26654. injection.injectEventPluginOrder(DOMEventPluginOrder);
  26655. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  26656. /**
  26657. * Some important event plugins included by default (without having to require
  26658. * them).
  26659. */
  26660. injection.injectEventPluginsByName({
  26661. SimpleEventPlugin: SimpleEventPlugin,
  26662. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  26663. ChangeEventPlugin: ChangeEventPlugin,
  26664. SelectEventPlugin: SelectEventPlugin,
  26665. BeforeInputEventPlugin: BeforeInputEventPlugin
  26666. });
  26667. var didWarnSelectedSetOnOption = false;
  26668. var didWarnInvalidChild = false;
  26669. function flattenChildren(children) {
  26670. var content = '';
  26671. // Flatten children. We'll warn if they are invalid
  26672. // during validateProps() which runs for hydration too.
  26673. // Note that this would throw on non-element objects.
  26674. // Elements are stringified (which is normally irrelevant
  26675. // but matters for <fbt>).
  26676. React.Children.forEach(children, function (child) {
  26677. if (child == null) {
  26678. return;
  26679. }
  26680. content += child;
  26681. // Note: we don't warn about invalid children here.
  26682. // Instead, this is done separately below so that
  26683. // it happens during the hydration codepath too.
  26684. });
  26685. return content;
  26686. }
  26687. /**
  26688. * Implements an <option> host component that warns when `selected` is set.
  26689. */
  26690. function validateProps(element, props) {
  26691. {
  26692. // This mirrors the codepath above, but runs for hydration too.
  26693. // Warn about invalid children here so that client and hydration are consistent.
  26694. // TODO: this seems like it could cause a DEV-only throw for hydration
  26695. // if children contains a non-element object. We should try to avoid that.
  26696. if (typeof props.children === 'object' && props.children !== null) {
  26697. React.Children.forEach(props.children, function (child) {
  26698. if (child == null) {
  26699. return;
  26700. }
  26701. if (typeof child === 'string' || typeof child === 'number') {
  26702. return;
  26703. }
  26704. if (typeof child.type !== 'string') {
  26705. return;
  26706. }
  26707. if (!didWarnInvalidChild) {
  26708. didWarnInvalidChild = true;
  26709. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  26710. }
  26711. });
  26712. }
  26713. // TODO: Remove support for `selected` in <option>.
  26714. if (props.selected != null && !didWarnSelectedSetOnOption) {
  26715. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  26716. didWarnSelectedSetOnOption = true;
  26717. }
  26718. }
  26719. }
  26720. function postMountWrapper$1(element, props) {
  26721. // value="" should make a value attribute (#6219)
  26722. if (props.value != null) {
  26723. element.setAttribute('value', toString(getToStringValue(props.value)));
  26724. }
  26725. }
  26726. function getHostProps$1(element, props) {
  26727. var hostProps = _assign({ children: undefined }, props);
  26728. var content = flattenChildren(props.children);
  26729. if (content) {
  26730. hostProps.children = content;
  26731. }
  26732. return hostProps;
  26733. }
  26734. // TODO: direct imports like some-package/src/* are bad. Fix me.
  26735. var didWarnValueDefaultValue$1 = void 0;
  26736. {
  26737. didWarnValueDefaultValue$1 = false;
  26738. }
  26739. function getDeclarationErrorAddendum() {
  26740. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  26741. if (ownerName) {
  26742. return '\n\nCheck the render method of `' + ownerName + '`.';
  26743. }
  26744. return '';
  26745. }
  26746. var valuePropNames = ['value', 'defaultValue'];
  26747. /**
  26748. * Validation function for `value` and `defaultValue`.
  26749. */
  26750. function checkSelectPropTypes(props) {
  26751. ReactControlledValuePropTypes.checkPropTypes('select', props);
  26752. for (var i = 0; i < valuePropNames.length; i++) {
  26753. var propName = valuePropNames[i];
  26754. if (props[propName] == null) {
  26755. continue;
  26756. }
  26757. var isArray = Array.isArray(props[propName]);
  26758. if (props.multiple && !isArray) {
  26759. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  26760. } else if (!props.multiple && isArray) {
  26761. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  26762. }
  26763. }
  26764. }
  26765. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  26766. var options = node.options;
  26767. if (multiple) {
  26768. var selectedValues = propValue;
  26769. var selectedValue = {};
  26770. for (var i = 0; i < selectedValues.length; i++) {
  26771. // Prefix to avoid chaos with special keys.
  26772. selectedValue['$' + selectedValues[i]] = true;
  26773. }
  26774. for (var _i = 0; _i < options.length; _i++) {
  26775. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  26776. if (options[_i].selected !== selected) {
  26777. options[_i].selected = selected;
  26778. }
  26779. if (selected && setDefaultSelected) {
  26780. options[_i].defaultSelected = true;
  26781. }
  26782. }
  26783. } else {
  26784. // Do not set `select.value` as exact behavior isn't consistent across all
  26785. // browsers for all cases.
  26786. var _selectedValue = toString(getToStringValue(propValue));
  26787. var defaultSelected = null;
  26788. for (var _i2 = 0; _i2 < options.length; _i2++) {
  26789. if (options[_i2].value === _selectedValue) {
  26790. options[_i2].selected = true;
  26791. if (setDefaultSelected) {
  26792. options[_i2].defaultSelected = true;
  26793. }
  26794. return;
  26795. }
  26796. if (defaultSelected === null && !options[_i2].disabled) {
  26797. defaultSelected = options[_i2];
  26798. }
  26799. }
  26800. if (defaultSelected !== null) {
  26801. defaultSelected.selected = true;
  26802. }
  26803. }
  26804. }
  26805. /**
  26806. * Implements a <select> host component that allows optionally setting the
  26807. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  26808. * stringable. If `multiple` is true, the prop must be an array of stringables.
  26809. *
  26810. * If `value` is not supplied (or null/undefined), user actions that change the
  26811. * selected option will trigger updates to the rendered options.
  26812. *
  26813. * If it is supplied (and not null/undefined), the rendered options will not
  26814. * update in response to user actions. Instead, the `value` prop must change in
  26815. * order for the rendered options to update.
  26816. *
  26817. * If `defaultValue` is provided, any options with the supplied values will be
  26818. * selected.
  26819. */
  26820. function getHostProps$2(element, props) {
  26821. return _assign({}, props, {
  26822. value: undefined
  26823. });
  26824. }
  26825. function initWrapperState$1(element, props) {
  26826. var node = element;
  26827. {
  26828. checkSelectPropTypes(props);
  26829. }
  26830. node._wrapperState = {
  26831. wasMultiple: !!props.multiple
  26832. };
  26833. {
  26834. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  26835. warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
  26836. didWarnValueDefaultValue$1 = true;
  26837. }
  26838. }
  26839. }
  26840. function postMountWrapper$2(element, props) {
  26841. var node = element;
  26842. node.multiple = !!props.multiple;
  26843. var value = props.value;
  26844. if (value != null) {
  26845. updateOptions(node, !!props.multiple, value, false);
  26846. } else if (props.defaultValue != null) {
  26847. updateOptions(node, !!props.multiple, props.defaultValue, true);
  26848. }
  26849. }
  26850. function postUpdateWrapper(element, props) {
  26851. var node = element;
  26852. var wasMultiple = node._wrapperState.wasMultiple;
  26853. node._wrapperState.wasMultiple = !!props.multiple;
  26854. var value = props.value;
  26855. if (value != null) {
  26856. updateOptions(node, !!props.multiple, value, false);
  26857. } else if (wasMultiple !== !!props.multiple) {
  26858. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  26859. if (props.defaultValue != null) {
  26860. updateOptions(node, !!props.multiple, props.defaultValue, true);
  26861. } else {
  26862. // Revert the select back to its default unselected state.
  26863. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  26864. }
  26865. }
  26866. }
  26867. function restoreControlledState$2(element, props) {
  26868. var node = element;
  26869. var value = props.value;
  26870. if (value != null) {
  26871. updateOptions(node, !!props.multiple, value, false);
  26872. }
  26873. }
  26874. var didWarnValDefaultVal = false;
  26875. /**
  26876. * Implements a <textarea> host component that allows setting `value`, and
  26877. * `defaultValue`. This differs from the traditional DOM API because value is
  26878. * usually set as PCDATA children.
  26879. *
  26880. * If `value` is not supplied (or null/undefined), user actions that affect the
  26881. * value will trigger updates to the element.
  26882. *
  26883. * If `value` is supplied (and not null/undefined), the rendered element will
  26884. * not trigger updates to the element. Instead, the `value` prop must change in
  26885. * order for the rendered element to be updated.
  26886. *
  26887. * The rendered element will be initialized with an empty value, the prop
  26888. * `defaultValue` if specified, or the children content (deprecated).
  26889. */
  26890. function getHostProps$3(element, props) {
  26891. var node = element;
  26892. !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;
  26893. // Always set children to the same thing. In IE9, the selection range will
  26894. // get reset if `textContent` is mutated. We could add a check in setTextContent
  26895. // to only set the value if/when the value differs from the node value (which would
  26896. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  26897. // solution. The value can be a boolean or object so that's why it's forced
  26898. // to be a string.
  26899. var hostProps = _assign({}, props, {
  26900. value: undefined,
  26901. defaultValue: undefined,
  26902. children: toString(node._wrapperState.initialValue)
  26903. });
  26904. return hostProps;
  26905. }
  26906. function initWrapperState$2(element, props) {
  26907. var node = element;
  26908. {
  26909. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  26910. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  26911. warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  26912. didWarnValDefaultVal = true;
  26913. }
  26914. }
  26915. var initialValue = props.value;
  26916. // Only bother fetching default value if we're going to use it
  26917. if (initialValue == null) {
  26918. var defaultValue = props.defaultValue;
  26919. // TODO (yungsters): Remove support for children content in <textarea>.
  26920. var children = props.children;
  26921. if (children != null) {
  26922. {
  26923. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  26924. }
  26925. !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
  26926. if (Array.isArray(children)) {
  26927. !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;
  26928. children = children[0];
  26929. }
  26930. defaultValue = children;
  26931. }
  26932. if (defaultValue == null) {
  26933. defaultValue = '';
  26934. }
  26935. initialValue = defaultValue;
  26936. }
  26937. node._wrapperState = {
  26938. initialValue: getToStringValue(initialValue)
  26939. };
  26940. }
  26941. function updateWrapper$1(element, props) {
  26942. var node = element;
  26943. var value = getToStringValue(props.value);
  26944. var defaultValue = getToStringValue(props.defaultValue);
  26945. if (value != null) {
  26946. // Cast `value` to a string to ensure the value is set correctly. While
  26947. // browsers typically do this as necessary, jsdom doesn't.
  26948. var newValue = toString(value);
  26949. // To avoid side effects (such as losing text selection), only set value if changed
  26950. if (newValue !== node.value) {
  26951. node.value = newValue;
  26952. }
  26953. if (props.defaultValue == null && node.defaultValue !== newValue) {
  26954. node.defaultValue = newValue;
  26955. }
  26956. }
  26957. if (defaultValue != null) {
  26958. node.defaultValue = toString(defaultValue);
  26959. }
  26960. }
  26961. function postMountWrapper$3(element, props) {
  26962. var node = element;
  26963. // This is in postMount because we need access to the DOM node, which is not
  26964. // available until after the component has mounted.
  26965. var textContent = node.textContent;
  26966. // Only set node.value if textContent is equal to the expected
  26967. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  26968. // will populate textContent as well.
  26969. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  26970. if (textContent === node._wrapperState.initialValue) {
  26971. node.value = textContent;
  26972. }
  26973. }
  26974. function restoreControlledState$3(element, props) {
  26975. // DOM component is still mounted; update
  26976. updateWrapper$1(element, props);
  26977. }
  26978. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  26979. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  26980. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  26981. var Namespaces = {
  26982. html: HTML_NAMESPACE$1,
  26983. mathml: MATH_NAMESPACE,
  26984. svg: SVG_NAMESPACE
  26985. };
  26986. // Assumes there is no parent namespace.
  26987. function getIntrinsicNamespace(type) {
  26988. switch (type) {
  26989. case 'svg':
  26990. return SVG_NAMESPACE;
  26991. case 'math':
  26992. return MATH_NAMESPACE;
  26993. default:
  26994. return HTML_NAMESPACE$1;
  26995. }
  26996. }
  26997. function getChildNamespace(parentNamespace, type) {
  26998. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  26999. // No (or default) parent namespace: potential entry point.
  27000. return getIntrinsicNamespace(type);
  27001. }
  27002. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  27003. // We're leaving SVG.
  27004. return HTML_NAMESPACE$1;
  27005. }
  27006. // By default, pass namespace below.
  27007. return parentNamespace;
  27008. }
  27009. /* globals MSApp */
  27010. /**
  27011. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  27012. */
  27013. var createMicrosoftUnsafeLocalFunction = function (func) {
  27014. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  27015. return function (arg0, arg1, arg2, arg3) {
  27016. MSApp.execUnsafeLocalFunction(function () {
  27017. return func(arg0, arg1, arg2, arg3);
  27018. });
  27019. };
  27020. } else {
  27021. return func;
  27022. }
  27023. };
  27024. // SVG temp container for IE lacking innerHTML
  27025. var reusableSVGContainer = void 0;
  27026. /**
  27027. * Set the innerHTML property of a node
  27028. *
  27029. * @param {DOMElement} node
  27030. * @param {string} html
  27031. * @internal
  27032. */
  27033. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  27034. // IE does not have innerHTML for SVG nodes, so instead we inject the
  27035. // new markup in a temp node and then move the child nodes across into
  27036. // the target node
  27037. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  27038. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  27039. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  27040. var svgNode = reusableSVGContainer.firstChild;
  27041. while (node.firstChild) {
  27042. node.removeChild(node.firstChild);
  27043. }
  27044. while (svgNode.firstChild) {
  27045. node.appendChild(svgNode.firstChild);
  27046. }
  27047. } else {
  27048. node.innerHTML = html;
  27049. }
  27050. });
  27051. /**
  27052. * Set the textContent property of a node. For text updates, it's faster
  27053. * to set the `nodeValue` of the Text node directly instead of using
  27054. * `.textContent` which will remove the existing node and create a new one.
  27055. *
  27056. * @param {DOMElement} node
  27057. * @param {string} text
  27058. * @internal
  27059. */
  27060. var setTextContent = function (node, text) {
  27061. if (text) {
  27062. var firstChild = node.firstChild;
  27063. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  27064. firstChild.nodeValue = text;
  27065. return;
  27066. }
  27067. }
  27068. node.textContent = text;
  27069. };
  27070. /**
  27071. * CSS properties which accept numbers but are not in units of "px".
  27072. */
  27073. var isUnitlessNumber = {
  27074. animationIterationCount: true,
  27075. borderImageOutset: true,
  27076. borderImageSlice: true,
  27077. borderImageWidth: true,
  27078. boxFlex: true,
  27079. boxFlexGroup: true,
  27080. boxOrdinalGroup: true,
  27081. columnCount: true,
  27082. columns: true,
  27083. flex: true,
  27084. flexGrow: true,
  27085. flexPositive: true,
  27086. flexShrink: true,
  27087. flexNegative: true,
  27088. flexOrder: true,
  27089. gridArea: true,
  27090. gridRow: true,
  27091. gridRowEnd: true,
  27092. gridRowSpan: true,
  27093. gridRowStart: true,
  27094. gridColumn: true,
  27095. gridColumnEnd: true,
  27096. gridColumnSpan: true,
  27097. gridColumnStart: true,
  27098. fontWeight: true,
  27099. lineClamp: true,
  27100. lineHeight: true,
  27101. opacity: true,
  27102. order: true,
  27103. orphans: true,
  27104. tabSize: true,
  27105. widows: true,
  27106. zIndex: true,
  27107. zoom: true,
  27108. // SVG-related properties
  27109. fillOpacity: true,
  27110. floodOpacity: true,
  27111. stopOpacity: true,
  27112. strokeDasharray: true,
  27113. strokeDashoffset: true,
  27114. strokeMiterlimit: true,
  27115. strokeOpacity: true,
  27116. strokeWidth: true
  27117. };
  27118. /**
  27119. * @param {string} prefix vendor-specific prefix, eg: Webkit
  27120. * @param {string} key style name, eg: transitionDuration
  27121. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  27122. * WebkitTransitionDuration
  27123. */
  27124. function prefixKey(prefix, key) {
  27125. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  27126. }
  27127. /**
  27128. * Support style names that may come passed in prefixed by adding permutations
  27129. * of vendor prefixes.
  27130. */
  27131. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  27132. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  27133. // infinite loop, because it iterates over the newly added props too.
  27134. Object.keys(isUnitlessNumber).forEach(function (prop) {
  27135. prefixes.forEach(function (prefix) {
  27136. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  27137. });
  27138. });
  27139. /**
  27140. * Convert a value into the proper css writable value. The style name `name`
  27141. * should be logical (no hyphens), as specified
  27142. * in `CSSProperty.isUnitlessNumber`.
  27143. *
  27144. * @param {string} name CSS property name such as `topMargin`.
  27145. * @param {*} value CSS property value such as `10px`.
  27146. * @return {string} Normalized style value with dimensions applied.
  27147. */
  27148. function dangerousStyleValue(name, value, isCustomProperty) {
  27149. // Note that we've removed escapeTextForBrowser() calls here since the
  27150. // whole string will be escaped when the attribute is injected into
  27151. // the markup. If you provide unsafe user data here they can inject
  27152. // arbitrary CSS which may be problematic (I couldn't repro this):
  27153. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  27154. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  27155. // This is not an XSS hole but instead a potential CSS injection issue
  27156. // which has lead to a greater discussion about how we're going to
  27157. // trust URLs moving forward. See #2115901
  27158. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  27159. if (isEmpty) {
  27160. return '';
  27161. }
  27162. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  27163. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  27164. }
  27165. return ('' + value).trim();
  27166. }
  27167. var uppercasePattern = /([A-Z])/g;
  27168. var msPattern = /^ms-/;
  27169. /**
  27170. * Hyphenates a camelcased CSS property name, for example:
  27171. *
  27172. * > hyphenateStyleName('backgroundColor')
  27173. * < "background-color"
  27174. * > hyphenateStyleName('MozTransition')
  27175. * < "-moz-transition"
  27176. * > hyphenateStyleName('msTransition')
  27177. * < "-ms-transition"
  27178. *
  27179. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  27180. * is converted to `-ms-`.
  27181. */
  27182. function hyphenateStyleName(name) {
  27183. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  27184. }
  27185. var warnValidStyle = function () {};
  27186. {
  27187. // 'msTransform' is correct, but the other prefixes should be capitalized
  27188. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  27189. var msPattern$1 = /^-ms-/;
  27190. var hyphenPattern = /-(.)/g;
  27191. // style values shouldn't contain a semicolon
  27192. var badStyleValueWithSemicolonPattern = /;\s*$/;
  27193. var warnedStyleNames = {};
  27194. var warnedStyleValues = {};
  27195. var warnedForNaNValue = false;
  27196. var warnedForInfinityValue = false;
  27197. var camelize = function (string) {
  27198. return string.replace(hyphenPattern, function (_, character) {
  27199. return character.toUpperCase();
  27200. });
  27201. };
  27202. var warnHyphenatedStyleName = function (name) {
  27203. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  27204. return;
  27205. }
  27206. warnedStyleNames[name] = true;
  27207. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  27208. // As Andi Smith suggests
  27209. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  27210. // is converted to lowercase `ms`.
  27211. camelize(name.replace(msPattern$1, 'ms-')));
  27212. };
  27213. var warnBadVendoredStyleName = function (name) {
  27214. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  27215. return;
  27216. }
  27217. warnedStyleNames[name] = true;
  27218. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  27219. };
  27220. var warnStyleValueWithSemicolon = function (name, value) {
  27221. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  27222. return;
  27223. }
  27224. warnedStyleValues[value] = true;
  27225. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  27226. };
  27227. var warnStyleValueIsNaN = function (name, value) {
  27228. if (warnedForNaNValue) {
  27229. return;
  27230. }
  27231. warnedForNaNValue = true;
  27232. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  27233. };
  27234. var warnStyleValueIsInfinity = function (name, value) {
  27235. if (warnedForInfinityValue) {
  27236. return;
  27237. }
  27238. warnedForInfinityValue = true;
  27239. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  27240. };
  27241. warnValidStyle = function (name, value) {
  27242. if (name.indexOf('-') > -1) {
  27243. warnHyphenatedStyleName(name);
  27244. } else if (badVendoredStyleNamePattern.test(name)) {
  27245. warnBadVendoredStyleName(name);
  27246. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  27247. warnStyleValueWithSemicolon(name, value);
  27248. }
  27249. if (typeof value === 'number') {
  27250. if (isNaN(value)) {
  27251. warnStyleValueIsNaN(name, value);
  27252. } else if (!isFinite(value)) {
  27253. warnStyleValueIsInfinity(name, value);
  27254. }
  27255. }
  27256. };
  27257. }
  27258. var warnValidStyle$1 = warnValidStyle;
  27259. /**
  27260. * Operations for dealing with CSS properties.
  27261. */
  27262. /**
  27263. * This creates a string that is expected to be equivalent to the style
  27264. * attribute generated by server-side rendering. It by-passes warnings and
  27265. * security checks so it's not safe to use this value for anything other than
  27266. * comparison. It is only used in DEV for SSR validation.
  27267. */
  27268. function createDangerousStringForStyles(styles) {
  27269. {
  27270. var serialized = '';
  27271. var delimiter = '';
  27272. for (var styleName in styles) {
  27273. if (!styles.hasOwnProperty(styleName)) {
  27274. continue;
  27275. }
  27276. var styleValue = styles[styleName];
  27277. if (styleValue != null) {
  27278. var isCustomProperty = styleName.indexOf('--') === 0;
  27279. serialized += delimiter + hyphenateStyleName(styleName) + ':';
  27280. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  27281. delimiter = ';';
  27282. }
  27283. }
  27284. return serialized || null;
  27285. }
  27286. }
  27287. /**
  27288. * Sets the value for multiple styles on a node. If a value is specified as
  27289. * '' (empty string), the corresponding style property will be unset.
  27290. *
  27291. * @param {DOMElement} node
  27292. * @param {object} styles
  27293. */
  27294. function setValueForStyles(node, styles) {
  27295. var style = node.style;
  27296. for (var styleName in styles) {
  27297. if (!styles.hasOwnProperty(styleName)) {
  27298. continue;
  27299. }
  27300. var isCustomProperty = styleName.indexOf('--') === 0;
  27301. {
  27302. if (!isCustomProperty) {
  27303. warnValidStyle$1(styleName, styles[styleName]);
  27304. }
  27305. }
  27306. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  27307. if (styleName === 'float') {
  27308. styleName = 'cssFloat';
  27309. }
  27310. if (isCustomProperty) {
  27311. style.setProperty(styleName, styleValue);
  27312. } else {
  27313. style[styleName] = styleValue;
  27314. }
  27315. }
  27316. }
  27317. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  27318. // those special-case tags.
  27319. var omittedCloseTags = {
  27320. area: true,
  27321. base: true,
  27322. br: true,
  27323. col: true,
  27324. embed: true,
  27325. hr: true,
  27326. img: true,
  27327. input: true,
  27328. keygen: true,
  27329. link: true,
  27330. meta: true,
  27331. param: true,
  27332. source: true,
  27333. track: true,
  27334. wbr: true
  27335. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  27336. };
  27337. // For HTML, certain tags cannot have children. This has the same purpose as
  27338. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  27339. var voidElementTags = _assign({
  27340. menuitem: true
  27341. }, omittedCloseTags);
  27342. // TODO: We can remove this if we add invariantWithStack()
  27343. // or add stack by default to invariants where possible.
  27344. var HTML$1 = '__html';
  27345. var ReactDebugCurrentFrame$2 = null;
  27346. {
  27347. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  27348. }
  27349. function assertValidProps(tag, props) {
  27350. if (!props) {
  27351. return;
  27352. }
  27353. // Note the use of `==` which checks for null or undefined.
  27354. if (voidElementTags[tag]) {
  27355. !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  27356. }
  27357. if (props.dangerouslySetInnerHTML != null) {
  27358. !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;
  27359. !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
  27360. }
  27361. {
  27362. !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
  27363. }
  27364. !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  27365. }
  27366. function isCustomComponent(tagName, props) {
  27367. if (tagName.indexOf('-') === -1) {
  27368. return typeof props.is === 'string';
  27369. }
  27370. switch (tagName) {
  27371. // These are reserved SVG and MathML elements.
  27372. // We don't mind this whitelist too much because we expect it to never grow.
  27373. // The alternative is to track the namespace in a few places which is convoluted.
  27374. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  27375. case 'annotation-xml':
  27376. case 'color-profile':
  27377. case 'font-face':
  27378. case 'font-face-src':
  27379. case 'font-face-uri':
  27380. case 'font-face-format':
  27381. case 'font-face-name':
  27382. case 'missing-glyph':
  27383. return false;
  27384. default:
  27385. return true;
  27386. }
  27387. }
  27388. // When adding attributes to the HTML or SVG whitelist, be sure to
  27389. // also add them to this module to ensure casing and incorrect name
  27390. // warnings.
  27391. var possibleStandardNames = {
  27392. // HTML
  27393. accept: 'accept',
  27394. acceptcharset: 'acceptCharset',
  27395. 'accept-charset': 'acceptCharset',
  27396. accesskey: 'accessKey',
  27397. action: 'action',
  27398. allowfullscreen: 'allowFullScreen',
  27399. alt: 'alt',
  27400. as: 'as',
  27401. async: 'async',
  27402. autocapitalize: 'autoCapitalize',
  27403. autocomplete: 'autoComplete',
  27404. autocorrect: 'autoCorrect',
  27405. autofocus: 'autoFocus',
  27406. autoplay: 'autoPlay',
  27407. autosave: 'autoSave',
  27408. capture: 'capture',
  27409. cellpadding: 'cellPadding',
  27410. cellspacing: 'cellSpacing',
  27411. challenge: 'challenge',
  27412. charset: 'charSet',
  27413. checked: 'checked',
  27414. children: 'children',
  27415. cite: 'cite',
  27416. class: 'className',
  27417. classid: 'classID',
  27418. classname: 'className',
  27419. cols: 'cols',
  27420. colspan: 'colSpan',
  27421. content: 'content',
  27422. contenteditable: 'contentEditable',
  27423. contextmenu: 'contextMenu',
  27424. controls: 'controls',
  27425. controlslist: 'controlsList',
  27426. coords: 'coords',
  27427. crossorigin: 'crossOrigin',
  27428. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  27429. data: 'data',
  27430. datetime: 'dateTime',
  27431. default: 'default',
  27432. defaultchecked: 'defaultChecked',
  27433. defaultvalue: 'defaultValue',
  27434. defer: 'defer',
  27435. dir: 'dir',
  27436. disabled: 'disabled',
  27437. download: 'download',
  27438. draggable: 'draggable',
  27439. enctype: 'encType',
  27440. for: 'htmlFor',
  27441. form: 'form',
  27442. formmethod: 'formMethod',
  27443. formaction: 'formAction',
  27444. formenctype: 'formEncType',
  27445. formnovalidate: 'formNoValidate',
  27446. formtarget: 'formTarget',
  27447. frameborder: 'frameBorder',
  27448. headers: 'headers',
  27449. height: 'height',
  27450. hidden: 'hidden',
  27451. high: 'high',
  27452. href: 'href',
  27453. hreflang: 'hrefLang',
  27454. htmlfor: 'htmlFor',
  27455. httpequiv: 'httpEquiv',
  27456. 'http-equiv': 'httpEquiv',
  27457. icon: 'icon',
  27458. id: 'id',
  27459. innerhtml: 'innerHTML',
  27460. inputmode: 'inputMode',
  27461. integrity: 'integrity',
  27462. is: 'is',
  27463. itemid: 'itemID',
  27464. itemprop: 'itemProp',
  27465. itemref: 'itemRef',
  27466. itemscope: 'itemScope',
  27467. itemtype: 'itemType',
  27468. keyparams: 'keyParams',
  27469. keytype: 'keyType',
  27470. kind: 'kind',
  27471. label: 'label',
  27472. lang: 'lang',
  27473. list: 'list',
  27474. loop: 'loop',
  27475. low: 'low',
  27476. manifest: 'manifest',
  27477. marginwidth: 'marginWidth',
  27478. marginheight: 'marginHeight',
  27479. max: 'max',
  27480. maxlength: 'maxLength',
  27481. media: 'media',
  27482. mediagroup: 'mediaGroup',
  27483. method: 'method',
  27484. min: 'min',
  27485. minlength: 'minLength',
  27486. multiple: 'multiple',
  27487. muted: 'muted',
  27488. name: 'name',
  27489. nomodule: 'noModule',
  27490. nonce: 'nonce',
  27491. novalidate: 'noValidate',
  27492. open: 'open',
  27493. optimum: 'optimum',
  27494. pattern: 'pattern',
  27495. placeholder: 'placeholder',
  27496. playsinline: 'playsInline',
  27497. poster: 'poster',
  27498. preload: 'preload',
  27499. profile: 'profile',
  27500. radiogroup: 'radioGroup',
  27501. readonly: 'readOnly',
  27502. referrerpolicy: 'referrerPolicy',
  27503. rel: 'rel',
  27504. required: 'required',
  27505. reversed: 'reversed',
  27506. role: 'role',
  27507. rows: 'rows',
  27508. rowspan: 'rowSpan',
  27509. sandbox: 'sandbox',
  27510. scope: 'scope',
  27511. scoped: 'scoped',
  27512. scrolling: 'scrolling',
  27513. seamless: 'seamless',
  27514. selected: 'selected',
  27515. shape: 'shape',
  27516. size: 'size',
  27517. sizes: 'sizes',
  27518. span: 'span',
  27519. spellcheck: 'spellCheck',
  27520. src: 'src',
  27521. srcdoc: 'srcDoc',
  27522. srclang: 'srcLang',
  27523. srcset: 'srcSet',
  27524. start: 'start',
  27525. step: 'step',
  27526. style: 'style',
  27527. summary: 'summary',
  27528. tabindex: 'tabIndex',
  27529. target: 'target',
  27530. title: 'title',
  27531. type: 'type',
  27532. usemap: 'useMap',
  27533. value: 'value',
  27534. width: 'width',
  27535. wmode: 'wmode',
  27536. wrap: 'wrap',
  27537. // SVG
  27538. about: 'about',
  27539. accentheight: 'accentHeight',
  27540. 'accent-height': 'accentHeight',
  27541. accumulate: 'accumulate',
  27542. additive: 'additive',
  27543. alignmentbaseline: 'alignmentBaseline',
  27544. 'alignment-baseline': 'alignmentBaseline',
  27545. allowreorder: 'allowReorder',
  27546. alphabetic: 'alphabetic',
  27547. amplitude: 'amplitude',
  27548. arabicform: 'arabicForm',
  27549. 'arabic-form': 'arabicForm',
  27550. ascent: 'ascent',
  27551. attributename: 'attributeName',
  27552. attributetype: 'attributeType',
  27553. autoreverse: 'autoReverse',
  27554. azimuth: 'azimuth',
  27555. basefrequency: 'baseFrequency',
  27556. baselineshift: 'baselineShift',
  27557. 'baseline-shift': 'baselineShift',
  27558. baseprofile: 'baseProfile',
  27559. bbox: 'bbox',
  27560. begin: 'begin',
  27561. bias: 'bias',
  27562. by: 'by',
  27563. calcmode: 'calcMode',
  27564. capheight: 'capHeight',
  27565. 'cap-height': 'capHeight',
  27566. clip: 'clip',
  27567. clippath: 'clipPath',
  27568. 'clip-path': 'clipPath',
  27569. clippathunits: 'clipPathUnits',
  27570. cliprule: 'clipRule',
  27571. 'clip-rule': 'clipRule',
  27572. color: 'color',
  27573. colorinterpolation: 'colorInterpolation',
  27574. 'color-interpolation': 'colorInterpolation',
  27575. colorinterpolationfilters: 'colorInterpolationFilters',
  27576. 'color-interpolation-filters': 'colorInterpolationFilters',
  27577. colorprofile: 'colorProfile',
  27578. 'color-profile': 'colorProfile',
  27579. colorrendering: 'colorRendering',
  27580. 'color-rendering': 'colorRendering',
  27581. contentscripttype: 'contentScriptType',
  27582. contentstyletype: 'contentStyleType',
  27583. cursor: 'cursor',
  27584. cx: 'cx',
  27585. cy: 'cy',
  27586. d: 'd',
  27587. datatype: 'datatype',
  27588. decelerate: 'decelerate',
  27589. descent: 'descent',
  27590. diffuseconstant: 'diffuseConstant',
  27591. direction: 'direction',
  27592. display: 'display',
  27593. divisor: 'divisor',
  27594. dominantbaseline: 'dominantBaseline',
  27595. 'dominant-baseline': 'dominantBaseline',
  27596. dur: 'dur',
  27597. dx: 'dx',
  27598. dy: 'dy',
  27599. edgemode: 'edgeMode',
  27600. elevation: 'elevation',
  27601. enablebackground: 'enableBackground',
  27602. 'enable-background': 'enableBackground',
  27603. end: 'end',
  27604. exponent: 'exponent',
  27605. externalresourcesrequired: 'externalResourcesRequired',
  27606. fill: 'fill',
  27607. fillopacity: 'fillOpacity',
  27608. 'fill-opacity': 'fillOpacity',
  27609. fillrule: 'fillRule',
  27610. 'fill-rule': 'fillRule',
  27611. filter: 'filter',
  27612. filterres: 'filterRes',
  27613. filterunits: 'filterUnits',
  27614. floodopacity: 'floodOpacity',
  27615. 'flood-opacity': 'floodOpacity',
  27616. floodcolor: 'floodColor',
  27617. 'flood-color': 'floodColor',
  27618. focusable: 'focusable',
  27619. fontfamily: 'fontFamily',
  27620. 'font-family': 'fontFamily',
  27621. fontsize: 'fontSize',
  27622. 'font-size': 'fontSize',
  27623. fontsizeadjust: 'fontSizeAdjust',
  27624. 'font-size-adjust': 'fontSizeAdjust',
  27625. fontstretch: 'fontStretch',
  27626. 'font-stretch': 'fontStretch',
  27627. fontstyle: 'fontStyle',
  27628. 'font-style': 'fontStyle',
  27629. fontvariant: 'fontVariant',
  27630. 'font-variant': 'fontVariant',
  27631. fontweight: 'fontWeight',
  27632. 'font-weight': 'fontWeight',
  27633. format: 'format',
  27634. from: 'from',
  27635. fx: 'fx',
  27636. fy: 'fy',
  27637. g1: 'g1',
  27638. g2: 'g2',
  27639. glyphname: 'glyphName',
  27640. 'glyph-name': 'glyphName',
  27641. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  27642. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  27643. glyphorientationvertical: 'glyphOrientationVertical',
  27644. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  27645. glyphref: 'glyphRef',
  27646. gradienttransform: 'gradientTransform',
  27647. gradientunits: 'gradientUnits',
  27648. hanging: 'hanging',
  27649. horizadvx: 'horizAdvX',
  27650. 'horiz-adv-x': 'horizAdvX',
  27651. horizoriginx: 'horizOriginX',
  27652. 'horiz-origin-x': 'horizOriginX',
  27653. ideographic: 'ideographic',
  27654. imagerendering: 'imageRendering',
  27655. 'image-rendering': 'imageRendering',
  27656. in2: 'in2',
  27657. in: 'in',
  27658. inlist: 'inlist',
  27659. intercept: 'intercept',
  27660. k1: 'k1',
  27661. k2: 'k2',
  27662. k3: 'k3',
  27663. k4: 'k4',
  27664. k: 'k',
  27665. kernelmatrix: 'kernelMatrix',
  27666. kernelunitlength: 'kernelUnitLength',
  27667. kerning: 'kerning',
  27668. keypoints: 'keyPoints',
  27669. keysplines: 'keySplines',
  27670. keytimes: 'keyTimes',
  27671. lengthadjust: 'lengthAdjust',
  27672. letterspacing: 'letterSpacing',
  27673. 'letter-spacing': 'letterSpacing',
  27674. lightingcolor: 'lightingColor',
  27675. 'lighting-color': 'lightingColor',
  27676. limitingconeangle: 'limitingConeAngle',
  27677. local: 'local',
  27678. markerend: 'markerEnd',
  27679. 'marker-end': 'markerEnd',
  27680. markerheight: 'markerHeight',
  27681. markermid: 'markerMid',
  27682. 'marker-mid': 'markerMid',
  27683. markerstart: 'markerStart',
  27684. 'marker-start': 'markerStart',
  27685. markerunits: 'markerUnits',
  27686. markerwidth: 'markerWidth',
  27687. mask: 'mask',
  27688. maskcontentunits: 'maskContentUnits',
  27689. maskunits: 'maskUnits',
  27690. mathematical: 'mathematical',
  27691. mode: 'mode',
  27692. numoctaves: 'numOctaves',
  27693. offset: 'offset',
  27694. opacity: 'opacity',
  27695. operator: 'operator',
  27696. order: 'order',
  27697. orient: 'orient',
  27698. orientation: 'orientation',
  27699. origin: 'origin',
  27700. overflow: 'overflow',
  27701. overlineposition: 'overlinePosition',
  27702. 'overline-position': 'overlinePosition',
  27703. overlinethickness: 'overlineThickness',
  27704. 'overline-thickness': 'overlineThickness',
  27705. paintorder: 'paintOrder',
  27706. 'paint-order': 'paintOrder',
  27707. panose1: 'panose1',
  27708. 'panose-1': 'panose1',
  27709. pathlength: 'pathLength',
  27710. patterncontentunits: 'patternContentUnits',
  27711. patterntransform: 'patternTransform',
  27712. patternunits: 'patternUnits',
  27713. pointerevents: 'pointerEvents',
  27714. 'pointer-events': 'pointerEvents',
  27715. points: 'points',
  27716. pointsatx: 'pointsAtX',
  27717. pointsaty: 'pointsAtY',
  27718. pointsatz: 'pointsAtZ',
  27719. prefix: 'prefix',
  27720. preservealpha: 'preserveAlpha',
  27721. preserveaspectratio: 'preserveAspectRatio',
  27722. primitiveunits: 'primitiveUnits',
  27723. property: 'property',
  27724. r: 'r',
  27725. radius: 'radius',
  27726. refx: 'refX',
  27727. refy: 'refY',
  27728. renderingintent: 'renderingIntent',
  27729. 'rendering-intent': 'renderingIntent',
  27730. repeatcount: 'repeatCount',
  27731. repeatdur: 'repeatDur',
  27732. requiredextensions: 'requiredExtensions',
  27733. requiredfeatures: 'requiredFeatures',
  27734. resource: 'resource',
  27735. restart: 'restart',
  27736. result: 'result',
  27737. results: 'results',
  27738. rotate: 'rotate',
  27739. rx: 'rx',
  27740. ry: 'ry',
  27741. scale: 'scale',
  27742. security: 'security',
  27743. seed: 'seed',
  27744. shaperendering: 'shapeRendering',
  27745. 'shape-rendering': 'shapeRendering',
  27746. slope: 'slope',
  27747. spacing: 'spacing',
  27748. specularconstant: 'specularConstant',
  27749. specularexponent: 'specularExponent',
  27750. speed: 'speed',
  27751. spreadmethod: 'spreadMethod',
  27752. startoffset: 'startOffset',
  27753. stddeviation: 'stdDeviation',
  27754. stemh: 'stemh',
  27755. stemv: 'stemv',
  27756. stitchtiles: 'stitchTiles',
  27757. stopcolor: 'stopColor',
  27758. 'stop-color': 'stopColor',
  27759. stopopacity: 'stopOpacity',
  27760. 'stop-opacity': 'stopOpacity',
  27761. strikethroughposition: 'strikethroughPosition',
  27762. 'strikethrough-position': 'strikethroughPosition',
  27763. strikethroughthickness: 'strikethroughThickness',
  27764. 'strikethrough-thickness': 'strikethroughThickness',
  27765. string: 'string',
  27766. stroke: 'stroke',
  27767. strokedasharray: 'strokeDasharray',
  27768. 'stroke-dasharray': 'strokeDasharray',
  27769. strokedashoffset: 'strokeDashoffset',
  27770. 'stroke-dashoffset': 'strokeDashoffset',
  27771. strokelinecap: 'strokeLinecap',
  27772. 'stroke-linecap': 'strokeLinecap',
  27773. strokelinejoin: 'strokeLinejoin',
  27774. 'stroke-linejoin': 'strokeLinejoin',
  27775. strokemiterlimit: 'strokeMiterlimit',
  27776. 'stroke-miterlimit': 'strokeMiterlimit',
  27777. strokewidth: 'strokeWidth',
  27778. 'stroke-width': 'strokeWidth',
  27779. strokeopacity: 'strokeOpacity',
  27780. 'stroke-opacity': 'strokeOpacity',
  27781. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  27782. suppresshydrationwarning: 'suppressHydrationWarning',
  27783. surfacescale: 'surfaceScale',
  27784. systemlanguage: 'systemLanguage',
  27785. tablevalues: 'tableValues',
  27786. targetx: 'targetX',
  27787. targety: 'targetY',
  27788. textanchor: 'textAnchor',
  27789. 'text-anchor': 'textAnchor',
  27790. textdecoration: 'textDecoration',
  27791. 'text-decoration': 'textDecoration',
  27792. textlength: 'textLength',
  27793. textrendering: 'textRendering',
  27794. 'text-rendering': 'textRendering',
  27795. to: 'to',
  27796. transform: 'transform',
  27797. typeof: 'typeof',
  27798. u1: 'u1',
  27799. u2: 'u2',
  27800. underlineposition: 'underlinePosition',
  27801. 'underline-position': 'underlinePosition',
  27802. underlinethickness: 'underlineThickness',
  27803. 'underline-thickness': 'underlineThickness',
  27804. unicode: 'unicode',
  27805. unicodebidi: 'unicodeBidi',
  27806. 'unicode-bidi': 'unicodeBidi',
  27807. unicoderange: 'unicodeRange',
  27808. 'unicode-range': 'unicodeRange',
  27809. unitsperem: 'unitsPerEm',
  27810. 'units-per-em': 'unitsPerEm',
  27811. unselectable: 'unselectable',
  27812. valphabetic: 'vAlphabetic',
  27813. 'v-alphabetic': 'vAlphabetic',
  27814. values: 'values',
  27815. vectoreffect: 'vectorEffect',
  27816. 'vector-effect': 'vectorEffect',
  27817. version: 'version',
  27818. vertadvy: 'vertAdvY',
  27819. 'vert-adv-y': 'vertAdvY',
  27820. vertoriginx: 'vertOriginX',
  27821. 'vert-origin-x': 'vertOriginX',
  27822. vertoriginy: 'vertOriginY',
  27823. 'vert-origin-y': 'vertOriginY',
  27824. vhanging: 'vHanging',
  27825. 'v-hanging': 'vHanging',
  27826. videographic: 'vIdeographic',
  27827. 'v-ideographic': 'vIdeographic',
  27828. viewbox: 'viewBox',
  27829. viewtarget: 'viewTarget',
  27830. visibility: 'visibility',
  27831. vmathematical: 'vMathematical',
  27832. 'v-mathematical': 'vMathematical',
  27833. vocab: 'vocab',
  27834. widths: 'widths',
  27835. wordspacing: 'wordSpacing',
  27836. 'word-spacing': 'wordSpacing',
  27837. writingmode: 'writingMode',
  27838. 'writing-mode': 'writingMode',
  27839. x1: 'x1',
  27840. x2: 'x2',
  27841. x: 'x',
  27842. xchannelselector: 'xChannelSelector',
  27843. xheight: 'xHeight',
  27844. 'x-height': 'xHeight',
  27845. xlinkactuate: 'xlinkActuate',
  27846. 'xlink:actuate': 'xlinkActuate',
  27847. xlinkarcrole: 'xlinkArcrole',
  27848. 'xlink:arcrole': 'xlinkArcrole',
  27849. xlinkhref: 'xlinkHref',
  27850. 'xlink:href': 'xlinkHref',
  27851. xlinkrole: 'xlinkRole',
  27852. 'xlink:role': 'xlinkRole',
  27853. xlinkshow: 'xlinkShow',
  27854. 'xlink:show': 'xlinkShow',
  27855. xlinktitle: 'xlinkTitle',
  27856. 'xlink:title': 'xlinkTitle',
  27857. xlinktype: 'xlinkType',
  27858. 'xlink:type': 'xlinkType',
  27859. xmlbase: 'xmlBase',
  27860. 'xml:base': 'xmlBase',
  27861. xmllang: 'xmlLang',
  27862. 'xml:lang': 'xmlLang',
  27863. xmlns: 'xmlns',
  27864. 'xml:space': 'xmlSpace',
  27865. xmlnsxlink: 'xmlnsXlink',
  27866. 'xmlns:xlink': 'xmlnsXlink',
  27867. xmlspace: 'xmlSpace',
  27868. y1: 'y1',
  27869. y2: 'y2',
  27870. y: 'y',
  27871. ychannelselector: 'yChannelSelector',
  27872. z: 'z',
  27873. zoomandpan: 'zoomAndPan'
  27874. };
  27875. var ariaProperties = {
  27876. 'aria-current': 0, // state
  27877. 'aria-details': 0,
  27878. 'aria-disabled': 0, // state
  27879. 'aria-hidden': 0, // state
  27880. 'aria-invalid': 0, // state
  27881. 'aria-keyshortcuts': 0,
  27882. 'aria-label': 0,
  27883. 'aria-roledescription': 0,
  27884. // Widget Attributes
  27885. 'aria-autocomplete': 0,
  27886. 'aria-checked': 0,
  27887. 'aria-expanded': 0,
  27888. 'aria-haspopup': 0,
  27889. 'aria-level': 0,
  27890. 'aria-modal': 0,
  27891. 'aria-multiline': 0,
  27892. 'aria-multiselectable': 0,
  27893. 'aria-orientation': 0,
  27894. 'aria-placeholder': 0,
  27895. 'aria-pressed': 0,
  27896. 'aria-readonly': 0,
  27897. 'aria-required': 0,
  27898. 'aria-selected': 0,
  27899. 'aria-sort': 0,
  27900. 'aria-valuemax': 0,
  27901. 'aria-valuemin': 0,
  27902. 'aria-valuenow': 0,
  27903. 'aria-valuetext': 0,
  27904. // Live Region Attributes
  27905. 'aria-atomic': 0,
  27906. 'aria-busy': 0,
  27907. 'aria-live': 0,
  27908. 'aria-relevant': 0,
  27909. // Drag-and-Drop Attributes
  27910. 'aria-dropeffect': 0,
  27911. 'aria-grabbed': 0,
  27912. // Relationship Attributes
  27913. 'aria-activedescendant': 0,
  27914. 'aria-colcount': 0,
  27915. 'aria-colindex': 0,
  27916. 'aria-colspan': 0,
  27917. 'aria-controls': 0,
  27918. 'aria-describedby': 0,
  27919. 'aria-errormessage': 0,
  27920. 'aria-flowto': 0,
  27921. 'aria-labelledby': 0,
  27922. 'aria-owns': 0,
  27923. 'aria-posinset': 0,
  27924. 'aria-rowcount': 0,
  27925. 'aria-rowindex': 0,
  27926. 'aria-rowspan': 0,
  27927. 'aria-setsize': 0
  27928. };
  27929. var warnedProperties = {};
  27930. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  27931. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  27932. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  27933. function validateProperty(tagName, name) {
  27934. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  27935. return true;
  27936. }
  27937. if (rARIACamel.test(name)) {
  27938. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  27939. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  27940. // If this is an aria-* attribute, but is not listed in the known DOM
  27941. // DOM properties, then it is an invalid aria-* attribute.
  27942. if (correctName == null) {
  27943. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  27944. warnedProperties[name] = true;
  27945. return true;
  27946. }
  27947. // aria-* attributes should be lowercase; suggest the lowercase version.
  27948. if (name !== correctName) {
  27949. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  27950. warnedProperties[name] = true;
  27951. return true;
  27952. }
  27953. }
  27954. if (rARIA.test(name)) {
  27955. var lowerCasedName = name.toLowerCase();
  27956. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  27957. // If this is an aria-* attribute, but is not listed in the known DOM
  27958. // DOM properties, then it is an invalid aria-* attribute.
  27959. if (standardName == null) {
  27960. warnedProperties[name] = true;
  27961. return false;
  27962. }
  27963. // aria-* attributes should be lowercase; suggest the lowercase version.
  27964. if (name !== standardName) {
  27965. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  27966. warnedProperties[name] = true;
  27967. return true;
  27968. }
  27969. }
  27970. return true;
  27971. }
  27972. function warnInvalidARIAProps(type, props) {
  27973. var invalidProps = [];
  27974. for (var key in props) {
  27975. var isValid = validateProperty(type, key);
  27976. if (!isValid) {
  27977. invalidProps.push(key);
  27978. }
  27979. }
  27980. var unknownPropString = invalidProps.map(function (prop) {
  27981. return '`' + prop + '`';
  27982. }).join(', ');
  27983. if (invalidProps.length === 1) {
  27984. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  27985. } else if (invalidProps.length > 1) {
  27986. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  27987. }
  27988. }
  27989. function validateProperties(type, props) {
  27990. if (isCustomComponent(type, props)) {
  27991. return;
  27992. }
  27993. warnInvalidARIAProps(type, props);
  27994. }
  27995. var didWarnValueNull = false;
  27996. function validateProperties$1(type, props) {
  27997. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  27998. return;
  27999. }
  28000. if (props != null && props.value === null && !didWarnValueNull) {
  28001. didWarnValueNull = true;
  28002. if (type === 'select' && props.multiple) {
  28003. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
  28004. } else {
  28005. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  28006. }
  28007. }
  28008. }
  28009. var validateProperty$1 = function () {};
  28010. {
  28011. var warnedProperties$1 = {};
  28012. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  28013. var EVENT_NAME_REGEX = /^on./;
  28014. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  28015. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  28016. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  28017. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  28018. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  28019. return true;
  28020. }
  28021. var lowerCasedName = name.toLowerCase();
  28022. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  28023. warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
  28024. warnedProperties$1[name] = true;
  28025. return true;
  28026. }
  28027. // We can't rely on the event system being injected on the server.
  28028. if (canUseEventSystem) {
  28029. if (registrationNameModules.hasOwnProperty(name)) {
  28030. return true;
  28031. }
  28032. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  28033. if (registrationName != null) {
  28034. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  28035. warnedProperties$1[name] = true;
  28036. return true;
  28037. }
  28038. if (EVENT_NAME_REGEX.test(name)) {
  28039. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  28040. warnedProperties$1[name] = true;
  28041. return true;
  28042. }
  28043. } else if (EVENT_NAME_REGEX.test(name)) {
  28044. // If no event plugins have been injected, we are in a server environment.
  28045. // So we can't tell if the event name is correct for sure, but we can filter
  28046. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  28047. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  28048. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  28049. }
  28050. warnedProperties$1[name] = true;
  28051. return true;
  28052. }
  28053. // Let the ARIA attribute hook validate ARIA attributes
  28054. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  28055. return true;
  28056. }
  28057. if (lowerCasedName === 'innerhtml') {
  28058. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  28059. warnedProperties$1[name] = true;
  28060. return true;
  28061. }
  28062. if (lowerCasedName === 'aria') {
  28063. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  28064. warnedProperties$1[name] = true;
  28065. return true;
  28066. }
  28067. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  28068. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  28069. warnedProperties$1[name] = true;
  28070. return true;
  28071. }
  28072. if (typeof value === 'number' && isNaN(value)) {
  28073. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  28074. warnedProperties$1[name] = true;
  28075. return true;
  28076. }
  28077. var propertyInfo = getPropertyInfo(name);
  28078. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  28079. // Known attributes should match the casing specified in the property config.
  28080. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  28081. var standardName = possibleStandardNames[lowerCasedName];
  28082. if (standardName !== name) {
  28083. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  28084. warnedProperties$1[name] = true;
  28085. return true;
  28086. }
  28087. } else if (!isReserved && name !== lowerCasedName) {
  28088. // Unknown attributes should have lowercase casing since that's how they
  28089. // will be cased anyway with server rendering.
  28090. warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
  28091. warnedProperties$1[name] = true;
  28092. return true;
  28093. }
  28094. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  28095. if (value) {
  28096. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
  28097. } else {
  28098. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
  28099. }
  28100. warnedProperties$1[name] = true;
  28101. return true;
  28102. }
  28103. // Now that we've validated casing, do not validate
  28104. // data types for reserved props
  28105. if (isReserved) {
  28106. return true;
  28107. }
  28108. // Warn when a known attribute is a bad type
  28109. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  28110. warnedProperties$1[name] = true;
  28111. return false;
  28112. }
  28113. // Warn when passing the strings 'false' or 'true' into a boolean prop
  28114. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  28115. warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
  28116. warnedProperties$1[name] = true;
  28117. return true;
  28118. }
  28119. return true;
  28120. };
  28121. }
  28122. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  28123. var unknownProps = [];
  28124. for (var key in props) {
  28125. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  28126. if (!isValid) {
  28127. unknownProps.push(key);
  28128. }
  28129. }
  28130. var unknownPropString = unknownProps.map(function (prop) {
  28131. return '`' + prop + '`';
  28132. }).join(', ');
  28133. if (unknownProps.length === 1) {
  28134. warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  28135. } else if (unknownProps.length > 1) {
  28136. warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  28137. }
  28138. };
  28139. function validateProperties$2(type, props, canUseEventSystem) {
  28140. if (isCustomComponent(type, props)) {
  28141. return;
  28142. }
  28143. warnUnknownProperties(type, props, canUseEventSystem);
  28144. }
  28145. // TODO: direct imports like some-package/src/* are bad. Fix me.
  28146. var didWarnInvalidHydration = false;
  28147. var didWarnShadyDOM = false;
  28148. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  28149. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  28150. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  28151. var AUTOFOCUS = 'autoFocus';
  28152. var CHILDREN = 'children';
  28153. var STYLE$1 = 'style';
  28154. var HTML = '__html';
  28155. var HTML_NAMESPACE = Namespaces.html;
  28156. var warnedUnknownTags = void 0;
  28157. var suppressHydrationWarning = void 0;
  28158. var validatePropertiesInDevelopment = void 0;
  28159. var warnForTextDifference = void 0;
  28160. var warnForPropDifference = void 0;
  28161. var warnForExtraAttributes = void 0;
  28162. var warnForInvalidEventListener = void 0;
  28163. var canDiffStyleForHydrationWarning = void 0;
  28164. var normalizeMarkupForTextOrAttribute = void 0;
  28165. var normalizeHTML = void 0;
  28166. {
  28167. warnedUnknownTags = {
  28168. // Chrome is the only major browser not shipping <time>. But as of July
  28169. // 2017 it intends to ship it due to widespread usage. We intentionally
  28170. // *don't* warn for <time> even if it's unrecognized by Chrome because
  28171. // it soon will be, and many apps have been using it anyway.
  28172. time: true,
  28173. // There are working polyfills for <dialog>. Let people use it.
  28174. dialog: true,
  28175. // Electron ships a custom <webview> tag to display external web content in
  28176. // an isolated frame and process.
  28177. // This tag is not present in non Electron environments such as JSDom which
  28178. // is often used for testing purposes.
  28179. // @see https://electronjs.org/docs/api/webview-tag
  28180. webview: true
  28181. };
  28182. validatePropertiesInDevelopment = function (type, props) {
  28183. validateProperties(type, props);
  28184. validateProperties$1(type, props);
  28185. validateProperties$2(type, props, /* canUseEventSystem */true);
  28186. };
  28187. // IE 11 parses & normalizes the style attribute as opposed to other
  28188. // browsers. It adds spaces and sorts the properties in some
  28189. // non-alphabetical order. Handling that would require sorting CSS
  28190. // properties in the client & server versions or applying
  28191. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  28192. // normalized. Since it only affects IE, we're skipping style warnings
  28193. // in that browser completely in favor of doing all that work.
  28194. // See https://github.com/facebook/react/issues/11807
  28195. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  28196. // HTML parsing normalizes CR and CRLF to LF.
  28197. // It also can turn \u0000 into \uFFFD inside attributes.
  28198. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  28199. // If we have a mismatch, it might be caused by that.
  28200. // We will still patch up in this case but not fire the warning.
  28201. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  28202. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  28203. normalizeMarkupForTextOrAttribute = function (markup) {
  28204. var markupString = typeof markup === 'string' ? markup : '' + markup;
  28205. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  28206. };
  28207. warnForTextDifference = function (serverText, clientText) {
  28208. if (didWarnInvalidHydration) {
  28209. return;
  28210. }
  28211. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  28212. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  28213. if (normalizedServerText === normalizedClientText) {
  28214. return;
  28215. }
  28216. didWarnInvalidHydration = true;
  28217. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  28218. };
  28219. warnForPropDifference = function (propName, serverValue, clientValue) {
  28220. if (didWarnInvalidHydration) {
  28221. return;
  28222. }
  28223. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  28224. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  28225. if (normalizedServerValue === normalizedClientValue) {
  28226. return;
  28227. }
  28228. didWarnInvalidHydration = true;
  28229. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  28230. };
  28231. warnForExtraAttributes = function (attributeNames) {
  28232. if (didWarnInvalidHydration) {
  28233. return;
  28234. }
  28235. didWarnInvalidHydration = true;
  28236. var names = [];
  28237. attributeNames.forEach(function (name) {
  28238. names.push(name);
  28239. });
  28240. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  28241. };
  28242. warnForInvalidEventListener = function (registrationName, listener) {
  28243. if (listener === false) {
  28244. warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
  28245. } else {
  28246. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  28247. }
  28248. };
  28249. // Parse the HTML and read it back to normalize the HTML string so that it
  28250. // can be used for comparison.
  28251. normalizeHTML = function (parent, html) {
  28252. // We could have created a separate document here to avoid
  28253. // re-initializing custom elements if they exist. But this breaks
  28254. // how <noscript> is being handled. So we use the same document.
  28255. // See the discussion in https://github.com/facebook/react/pull/11157.
  28256. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  28257. testElement.innerHTML = html;
  28258. return testElement.innerHTML;
  28259. };
  28260. }
  28261. function ensureListeningTo(rootContainerElement, registrationName) {
  28262. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  28263. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  28264. listenTo(registrationName, doc);
  28265. }
  28266. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  28267. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  28268. }
  28269. function noop() {}
  28270. function trapClickOnNonInteractiveElement(node) {
  28271. // Mobile Safari does not fire properly bubble click events on
  28272. // non-interactive elements, which means delegated click listeners do not
  28273. // fire. The workaround for this bug involves attaching an empty click
  28274. // listener on the target node.
  28275. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  28276. // Just set it using the onclick property so that we don't have to manage any
  28277. // bookkeeping for it. Not sure if we need to clear it when the listener is
  28278. // removed.
  28279. // TODO: Only do this for the relevant Safaris maybe?
  28280. node.onclick = noop;
  28281. }
  28282. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  28283. for (var propKey in nextProps) {
  28284. if (!nextProps.hasOwnProperty(propKey)) {
  28285. continue;
  28286. }
  28287. var nextProp = nextProps[propKey];
  28288. if (propKey === STYLE$1) {
  28289. {
  28290. if (nextProp) {
  28291. // Freeze the next style object so that we can assume it won't be
  28292. // mutated. We have already warned for this in the past.
  28293. Object.freeze(nextProp);
  28294. }
  28295. }
  28296. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  28297. setValueForStyles(domElement, nextProp);
  28298. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28299. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  28300. if (nextHtml != null) {
  28301. setInnerHTML(domElement, nextHtml);
  28302. }
  28303. } else if (propKey === CHILDREN) {
  28304. if (typeof nextProp === 'string') {
  28305. // Avoid setting initial textContent when the text is empty. In IE11 setting
  28306. // textContent on a <textarea> will cause the placeholder to not
  28307. // show within the <textarea> until it has been focused and blurred again.
  28308. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  28309. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  28310. if (canSetTextContent) {
  28311. setTextContent(domElement, nextProp);
  28312. }
  28313. } else if (typeof nextProp === 'number') {
  28314. setTextContent(domElement, '' + nextProp);
  28315. }
  28316. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  28317. // Noop
  28318. } else if (propKey === AUTOFOCUS) {
  28319. // We polyfill it separately on the client during commit.
  28320. // We could have excluded it in the property list instead of
  28321. // adding a special case here, but then it wouldn't be emitted
  28322. // on server rendering (but we *do* want to emit it in SSR).
  28323. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28324. if (nextProp != null) {
  28325. if ( true && typeof nextProp !== 'function') {
  28326. warnForInvalidEventListener(propKey, nextProp);
  28327. }
  28328. ensureListeningTo(rootContainerElement, propKey);
  28329. }
  28330. } else if (nextProp != null) {
  28331. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  28332. }
  28333. }
  28334. }
  28335. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  28336. // TODO: Handle wasCustomComponentTag
  28337. for (var i = 0; i < updatePayload.length; i += 2) {
  28338. var propKey = updatePayload[i];
  28339. var propValue = updatePayload[i + 1];
  28340. if (propKey === STYLE$1) {
  28341. setValueForStyles(domElement, propValue);
  28342. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28343. setInnerHTML(domElement, propValue);
  28344. } else if (propKey === CHILDREN) {
  28345. setTextContent(domElement, propValue);
  28346. } else {
  28347. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  28348. }
  28349. }
  28350. }
  28351. function createElement(type, props, rootContainerElement, parentNamespace) {
  28352. var isCustomComponentTag = void 0;
  28353. // We create tags in the namespace of their parent container, except HTML
  28354. // tags get no namespace.
  28355. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  28356. var domElement = void 0;
  28357. var namespaceURI = parentNamespace;
  28358. if (namespaceURI === HTML_NAMESPACE) {
  28359. namespaceURI = getIntrinsicNamespace(type);
  28360. }
  28361. if (namespaceURI === HTML_NAMESPACE) {
  28362. {
  28363. isCustomComponentTag = isCustomComponent(type, props);
  28364. // Should this check be gated by parent namespace? Not sure we want to
  28365. // allow <SVG> or <mATH>.
  28366. !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
  28367. }
  28368. if (type === 'script') {
  28369. // Create the script via .innerHTML so its "parser-inserted" flag is
  28370. // set to true and it does not execute
  28371. var div = ownerDocument.createElement('div');
  28372. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  28373. // This is guaranteed to yield a script element.
  28374. var firstChild = div.firstChild;
  28375. domElement = div.removeChild(firstChild);
  28376. } else if (typeof props.is === 'string') {
  28377. // $FlowIssue `createElement` should be updated for Web Components
  28378. domElement = ownerDocument.createElement(type, { is: props.is });
  28379. } else {
  28380. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  28381. // See discussion in https://github.com/facebook/react/pull/6896
  28382. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  28383. domElement = ownerDocument.createElement(type);
  28384. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`
  28385. // attribute on `select`s needs to be added before `option`s are inserted. This prevents
  28386. // a bug where the `select` does not scroll to the correct option because singular
  28387. // `select` elements automatically pick the first item.
  28388. // See https://github.com/facebook/react/issues/13222
  28389. if (type === 'select' && props.multiple) {
  28390. var node = domElement;
  28391. node.multiple = true;
  28392. }
  28393. }
  28394. } else {
  28395. domElement = ownerDocument.createElementNS(namespaceURI, type);
  28396. }
  28397. {
  28398. if (namespaceURI === HTML_NAMESPACE) {
  28399. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  28400. warnedUnknownTags[type] = true;
  28401. warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  28402. }
  28403. }
  28404. }
  28405. return domElement;
  28406. }
  28407. function createTextNode(text, rootContainerElement) {
  28408. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  28409. }
  28410. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  28411. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  28412. {
  28413. validatePropertiesInDevelopment(tag, rawProps);
  28414. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  28415. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  28416. didWarnShadyDOM = true;
  28417. }
  28418. }
  28419. // TODO: Make sure that we check isMounted before firing any of these events.
  28420. var props = void 0;
  28421. switch (tag) {
  28422. case 'iframe':
  28423. case 'object':
  28424. trapBubbledEvent(TOP_LOAD, domElement);
  28425. props = rawProps;
  28426. break;
  28427. case 'video':
  28428. case 'audio':
  28429. // Create listener for each media event
  28430. for (var i = 0; i < mediaEventTypes.length; i++) {
  28431. trapBubbledEvent(mediaEventTypes[i], domElement);
  28432. }
  28433. props = rawProps;
  28434. break;
  28435. case 'source':
  28436. trapBubbledEvent(TOP_ERROR, domElement);
  28437. props = rawProps;
  28438. break;
  28439. case 'img':
  28440. case 'image':
  28441. case 'link':
  28442. trapBubbledEvent(TOP_ERROR, domElement);
  28443. trapBubbledEvent(TOP_LOAD, domElement);
  28444. props = rawProps;
  28445. break;
  28446. case 'form':
  28447. trapBubbledEvent(TOP_RESET, domElement);
  28448. trapBubbledEvent(TOP_SUBMIT, domElement);
  28449. props = rawProps;
  28450. break;
  28451. case 'details':
  28452. trapBubbledEvent(TOP_TOGGLE, domElement);
  28453. props = rawProps;
  28454. break;
  28455. case 'input':
  28456. initWrapperState(domElement, rawProps);
  28457. props = getHostProps(domElement, rawProps);
  28458. trapBubbledEvent(TOP_INVALID, domElement);
  28459. // For controlled components we always need to ensure we're listening
  28460. // to onChange. Even if there is no listener.
  28461. ensureListeningTo(rootContainerElement, 'onChange');
  28462. break;
  28463. case 'option':
  28464. validateProps(domElement, rawProps);
  28465. props = getHostProps$1(domElement, rawProps);
  28466. break;
  28467. case 'select':
  28468. initWrapperState$1(domElement, rawProps);
  28469. props = getHostProps$2(domElement, rawProps);
  28470. trapBubbledEvent(TOP_INVALID, domElement);
  28471. // For controlled components we always need to ensure we're listening
  28472. // to onChange. Even if there is no listener.
  28473. ensureListeningTo(rootContainerElement, 'onChange');
  28474. break;
  28475. case 'textarea':
  28476. initWrapperState$2(domElement, rawProps);
  28477. props = getHostProps$3(domElement, rawProps);
  28478. trapBubbledEvent(TOP_INVALID, domElement);
  28479. // For controlled components we always need to ensure we're listening
  28480. // to onChange. Even if there is no listener.
  28481. ensureListeningTo(rootContainerElement, 'onChange');
  28482. break;
  28483. default:
  28484. props = rawProps;
  28485. }
  28486. assertValidProps(tag, props);
  28487. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  28488. switch (tag) {
  28489. case 'input':
  28490. // TODO: Make sure we check if this is still unmounted or do any clean
  28491. // up necessary since we never stop tracking anymore.
  28492. track(domElement);
  28493. postMountWrapper(domElement, rawProps, false);
  28494. break;
  28495. case 'textarea':
  28496. // TODO: Make sure we check if this is still unmounted or do any clean
  28497. // up necessary since we never stop tracking anymore.
  28498. track(domElement);
  28499. postMountWrapper$3(domElement, rawProps);
  28500. break;
  28501. case 'option':
  28502. postMountWrapper$1(domElement, rawProps);
  28503. break;
  28504. case 'select':
  28505. postMountWrapper$2(domElement, rawProps);
  28506. break;
  28507. default:
  28508. if (typeof props.onClick === 'function') {
  28509. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28510. trapClickOnNonInteractiveElement(domElement);
  28511. }
  28512. break;
  28513. }
  28514. }
  28515. // Calculate the diff between the two objects.
  28516. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  28517. {
  28518. validatePropertiesInDevelopment(tag, nextRawProps);
  28519. }
  28520. var updatePayload = null;
  28521. var lastProps = void 0;
  28522. var nextProps = void 0;
  28523. switch (tag) {
  28524. case 'input':
  28525. lastProps = getHostProps(domElement, lastRawProps);
  28526. nextProps = getHostProps(domElement, nextRawProps);
  28527. updatePayload = [];
  28528. break;
  28529. case 'option':
  28530. lastProps = getHostProps$1(domElement, lastRawProps);
  28531. nextProps = getHostProps$1(domElement, nextRawProps);
  28532. updatePayload = [];
  28533. break;
  28534. case 'select':
  28535. lastProps = getHostProps$2(domElement, lastRawProps);
  28536. nextProps = getHostProps$2(domElement, nextRawProps);
  28537. updatePayload = [];
  28538. break;
  28539. case 'textarea':
  28540. lastProps = getHostProps$3(domElement, lastRawProps);
  28541. nextProps = getHostProps$3(domElement, nextRawProps);
  28542. updatePayload = [];
  28543. break;
  28544. default:
  28545. lastProps = lastRawProps;
  28546. nextProps = nextRawProps;
  28547. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  28548. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28549. trapClickOnNonInteractiveElement(domElement);
  28550. }
  28551. break;
  28552. }
  28553. assertValidProps(tag, nextProps);
  28554. var propKey = void 0;
  28555. var styleName = void 0;
  28556. var styleUpdates = null;
  28557. for (propKey in lastProps) {
  28558. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  28559. continue;
  28560. }
  28561. if (propKey === STYLE$1) {
  28562. var lastStyle = lastProps[propKey];
  28563. for (styleName in lastStyle) {
  28564. if (lastStyle.hasOwnProperty(styleName)) {
  28565. if (!styleUpdates) {
  28566. styleUpdates = {};
  28567. }
  28568. styleUpdates[styleName] = '';
  28569. }
  28570. }
  28571. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  28572. // Noop. This is handled by the clear text mechanism.
  28573. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  28574. // Noop
  28575. } else if (propKey === AUTOFOCUS) {
  28576. // Noop. It doesn't work on updates anyway.
  28577. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28578. // This is a special case. If any listener updates we need to ensure
  28579. // that the "current" fiber pointer gets updated so we need a commit
  28580. // to update this element.
  28581. if (!updatePayload) {
  28582. updatePayload = [];
  28583. }
  28584. } else {
  28585. // For all other deleted properties we add it to the queue. We use
  28586. // the whitelist in the commit phase instead.
  28587. (updatePayload = updatePayload || []).push(propKey, null);
  28588. }
  28589. }
  28590. for (propKey in nextProps) {
  28591. var nextProp = nextProps[propKey];
  28592. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  28593. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  28594. continue;
  28595. }
  28596. if (propKey === STYLE$1) {
  28597. {
  28598. if (nextProp) {
  28599. // Freeze the next style object so that we can assume it won't be
  28600. // mutated. We have already warned for this in the past.
  28601. Object.freeze(nextProp);
  28602. }
  28603. }
  28604. if (lastProp) {
  28605. // Unset styles on `lastProp` but not on `nextProp`.
  28606. for (styleName in lastProp) {
  28607. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  28608. if (!styleUpdates) {
  28609. styleUpdates = {};
  28610. }
  28611. styleUpdates[styleName] = '';
  28612. }
  28613. }
  28614. // Update styles that changed since `lastProp`.
  28615. for (styleName in nextProp) {
  28616. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  28617. if (!styleUpdates) {
  28618. styleUpdates = {};
  28619. }
  28620. styleUpdates[styleName] = nextProp[styleName];
  28621. }
  28622. }
  28623. } else {
  28624. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  28625. if (!styleUpdates) {
  28626. if (!updatePayload) {
  28627. updatePayload = [];
  28628. }
  28629. updatePayload.push(propKey, styleUpdates);
  28630. }
  28631. styleUpdates = nextProp;
  28632. }
  28633. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28634. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  28635. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  28636. if (nextHtml != null) {
  28637. if (lastHtml !== nextHtml) {
  28638. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  28639. }
  28640. } else {
  28641. // TODO: It might be too late to clear this if we have children
  28642. // inserted already.
  28643. }
  28644. } else if (propKey === CHILDREN) {
  28645. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  28646. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  28647. }
  28648. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  28649. // Noop
  28650. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28651. if (nextProp != null) {
  28652. // We eagerly listen to this even though we haven't committed yet.
  28653. if ( true && typeof nextProp !== 'function') {
  28654. warnForInvalidEventListener(propKey, nextProp);
  28655. }
  28656. ensureListeningTo(rootContainerElement, propKey);
  28657. }
  28658. if (!updatePayload && lastProp !== nextProp) {
  28659. // This is a special case. If any listener updates we need to ensure
  28660. // that the "current" props pointer gets updated so we need a commit
  28661. // to update this element.
  28662. updatePayload = [];
  28663. }
  28664. } else {
  28665. // For any other property we always add it to the queue and then we
  28666. // filter it out using the whitelist during the commit.
  28667. (updatePayload = updatePayload || []).push(propKey, nextProp);
  28668. }
  28669. }
  28670. if (styleUpdates) {
  28671. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  28672. }
  28673. return updatePayload;
  28674. }
  28675. // Apply the diff.
  28676. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  28677. // Update checked *before* name.
  28678. // In the middle of an update, it is possible to have multiple checked.
  28679. // When a checked radio tries to change name, browser makes another radio's checked false.
  28680. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  28681. updateChecked(domElement, nextRawProps);
  28682. }
  28683. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  28684. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  28685. // Apply the diff.
  28686. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  28687. // TODO: Ensure that an update gets scheduled if any of the special props
  28688. // changed.
  28689. switch (tag) {
  28690. case 'input':
  28691. // Update the wrapper around inputs *after* updating props. This has to
  28692. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  28693. // raise warnings and prevent the new value from being assigned.
  28694. updateWrapper(domElement, nextRawProps);
  28695. break;
  28696. case 'textarea':
  28697. updateWrapper$1(domElement, nextRawProps);
  28698. break;
  28699. case 'select':
  28700. // <select> value update needs to occur after <option> children
  28701. // reconciliation
  28702. postUpdateWrapper(domElement, nextRawProps);
  28703. break;
  28704. }
  28705. }
  28706. function getPossibleStandardName(propName) {
  28707. {
  28708. var lowerCasedName = propName.toLowerCase();
  28709. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  28710. return null;
  28711. }
  28712. return possibleStandardNames[lowerCasedName] || null;
  28713. }
  28714. return null;
  28715. }
  28716. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  28717. var isCustomComponentTag = void 0;
  28718. var extraAttributeNames = void 0;
  28719. {
  28720. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  28721. isCustomComponentTag = isCustomComponent(tag, rawProps);
  28722. validatePropertiesInDevelopment(tag, rawProps);
  28723. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  28724. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  28725. didWarnShadyDOM = true;
  28726. }
  28727. }
  28728. // TODO: Make sure that we check isMounted before firing any of these events.
  28729. switch (tag) {
  28730. case 'iframe':
  28731. case 'object':
  28732. trapBubbledEvent(TOP_LOAD, domElement);
  28733. break;
  28734. case 'video':
  28735. case 'audio':
  28736. // Create listener for each media event
  28737. for (var i = 0; i < mediaEventTypes.length; i++) {
  28738. trapBubbledEvent(mediaEventTypes[i], domElement);
  28739. }
  28740. break;
  28741. case 'source':
  28742. trapBubbledEvent(TOP_ERROR, domElement);
  28743. break;
  28744. case 'img':
  28745. case 'image':
  28746. case 'link':
  28747. trapBubbledEvent(TOP_ERROR, domElement);
  28748. trapBubbledEvent(TOP_LOAD, domElement);
  28749. break;
  28750. case 'form':
  28751. trapBubbledEvent(TOP_RESET, domElement);
  28752. trapBubbledEvent(TOP_SUBMIT, domElement);
  28753. break;
  28754. case 'details':
  28755. trapBubbledEvent(TOP_TOGGLE, domElement);
  28756. break;
  28757. case 'input':
  28758. initWrapperState(domElement, rawProps);
  28759. trapBubbledEvent(TOP_INVALID, domElement);
  28760. // For controlled components we always need to ensure we're listening
  28761. // to onChange. Even if there is no listener.
  28762. ensureListeningTo(rootContainerElement, 'onChange');
  28763. break;
  28764. case 'option':
  28765. validateProps(domElement, rawProps);
  28766. break;
  28767. case 'select':
  28768. initWrapperState$1(domElement, rawProps);
  28769. trapBubbledEvent(TOP_INVALID, domElement);
  28770. // For controlled components we always need to ensure we're listening
  28771. // to onChange. Even if there is no listener.
  28772. ensureListeningTo(rootContainerElement, 'onChange');
  28773. break;
  28774. case 'textarea':
  28775. initWrapperState$2(domElement, rawProps);
  28776. trapBubbledEvent(TOP_INVALID, domElement);
  28777. // For controlled components we always need to ensure we're listening
  28778. // to onChange. Even if there is no listener.
  28779. ensureListeningTo(rootContainerElement, 'onChange');
  28780. break;
  28781. }
  28782. assertValidProps(tag, rawProps);
  28783. {
  28784. extraAttributeNames = new Set();
  28785. var attributes = domElement.attributes;
  28786. for (var _i = 0; _i < attributes.length; _i++) {
  28787. var name = attributes[_i].name.toLowerCase();
  28788. switch (name) {
  28789. // Built-in SSR attribute is whitelisted
  28790. case 'data-reactroot':
  28791. break;
  28792. // Controlled attributes are not validated
  28793. // TODO: Only ignore them on controlled tags.
  28794. case 'value':
  28795. break;
  28796. case 'checked':
  28797. break;
  28798. case 'selected':
  28799. break;
  28800. default:
  28801. // Intentionally use the original name.
  28802. // See discussion in https://github.com/facebook/react/pull/10676.
  28803. extraAttributeNames.add(attributes[_i].name);
  28804. }
  28805. }
  28806. }
  28807. var updatePayload = null;
  28808. for (var propKey in rawProps) {
  28809. if (!rawProps.hasOwnProperty(propKey)) {
  28810. continue;
  28811. }
  28812. var nextProp = rawProps[propKey];
  28813. if (propKey === CHILDREN) {
  28814. // For text content children we compare against textContent. This
  28815. // might match additional HTML that is hidden when we read it using
  28816. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  28817. // satisfies our requirement. Our requirement is not to produce perfect
  28818. // HTML and attributes. Ideally we should preserve structure but it's
  28819. // ok not to if the visible content is still enough to indicate what
  28820. // even listeners these nodes might be wired up to.
  28821. // TODO: Warn if there is more than a single textNode as a child.
  28822. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  28823. if (typeof nextProp === 'string') {
  28824. if (domElement.textContent !== nextProp) {
  28825. if ( true && !suppressHydrationWarning) {
  28826. warnForTextDifference(domElement.textContent, nextProp);
  28827. }
  28828. updatePayload = [CHILDREN, nextProp];
  28829. }
  28830. } else if (typeof nextProp === 'number') {
  28831. if (domElement.textContent !== '' + nextProp) {
  28832. if ( true && !suppressHydrationWarning) {
  28833. warnForTextDifference(domElement.textContent, nextProp);
  28834. }
  28835. updatePayload = [CHILDREN, '' + nextProp];
  28836. }
  28837. }
  28838. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28839. if (nextProp != null) {
  28840. if ( true && typeof nextProp !== 'function') {
  28841. warnForInvalidEventListener(propKey, nextProp);
  28842. }
  28843. ensureListeningTo(rootContainerElement, propKey);
  28844. }
  28845. } else if ( true &&
  28846. // Convince Flow we've calculated it (it's DEV-only in this method.)
  28847. typeof isCustomComponentTag === 'boolean') {
  28848. // Validate that the properties correspond to their expected values.
  28849. var serverValue = void 0;
  28850. var propertyInfo = getPropertyInfo(propKey);
  28851. if (suppressHydrationWarning) {
  28852. // Don't bother comparing. We're ignoring all these warnings.
  28853. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  28854. // Controlled attributes are not validated
  28855. // TODO: Only ignore them on controlled tags.
  28856. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  28857. // Noop
  28858. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28859. var serverHTML = domElement.innerHTML;
  28860. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  28861. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  28862. if (expectedHTML !== serverHTML) {
  28863. warnForPropDifference(propKey, serverHTML, expectedHTML);
  28864. }
  28865. } else if (propKey === STYLE$1) {
  28866. // $FlowFixMe - Should be inferred as not undefined.
  28867. extraAttributeNames.delete(propKey);
  28868. if (canDiffStyleForHydrationWarning) {
  28869. var expectedStyle = createDangerousStringForStyles(nextProp);
  28870. serverValue = domElement.getAttribute('style');
  28871. if (expectedStyle !== serverValue) {
  28872. warnForPropDifference(propKey, serverValue, expectedStyle);
  28873. }
  28874. }
  28875. } else if (isCustomComponentTag) {
  28876. // $FlowFixMe - Should be inferred as not undefined.
  28877. extraAttributeNames.delete(propKey.toLowerCase());
  28878. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  28879. if (nextProp !== serverValue) {
  28880. warnForPropDifference(propKey, serverValue, nextProp);
  28881. }
  28882. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  28883. var isMismatchDueToBadCasing = false;
  28884. if (propertyInfo !== null) {
  28885. // $FlowFixMe - Should be inferred as not undefined.
  28886. extraAttributeNames.delete(propertyInfo.attributeName);
  28887. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  28888. } else {
  28889. var ownNamespace = parentNamespace;
  28890. if (ownNamespace === HTML_NAMESPACE) {
  28891. ownNamespace = getIntrinsicNamespace(tag);
  28892. }
  28893. if (ownNamespace === HTML_NAMESPACE) {
  28894. // $FlowFixMe - Should be inferred as not undefined.
  28895. extraAttributeNames.delete(propKey.toLowerCase());
  28896. } else {
  28897. var standardName = getPossibleStandardName(propKey);
  28898. if (standardName !== null && standardName !== propKey) {
  28899. // If an SVG prop is supplied with bad casing, it will
  28900. // be successfully parsed from HTML, but will produce a mismatch
  28901. // (and would be incorrectly rendered on the client).
  28902. // However, we already warn about bad casing elsewhere.
  28903. // So we'll skip the misleading extra mismatch warning in this case.
  28904. isMismatchDueToBadCasing = true;
  28905. // $FlowFixMe - Should be inferred as not undefined.
  28906. extraAttributeNames.delete(standardName);
  28907. }
  28908. // $FlowFixMe - Should be inferred as not undefined.
  28909. extraAttributeNames.delete(propKey);
  28910. }
  28911. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  28912. }
  28913. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  28914. warnForPropDifference(propKey, serverValue, nextProp);
  28915. }
  28916. }
  28917. }
  28918. }
  28919. {
  28920. // $FlowFixMe - Should be inferred as not undefined.
  28921. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  28922. // $FlowFixMe - Should be inferred as not undefined.
  28923. warnForExtraAttributes(extraAttributeNames);
  28924. }
  28925. }
  28926. switch (tag) {
  28927. case 'input':
  28928. // TODO: Make sure we check if this is still unmounted or do any clean
  28929. // up necessary since we never stop tracking anymore.
  28930. track(domElement);
  28931. postMountWrapper(domElement, rawProps, true);
  28932. break;
  28933. case 'textarea':
  28934. // TODO: Make sure we check if this is still unmounted or do any clean
  28935. // up necessary since we never stop tracking anymore.
  28936. track(domElement);
  28937. postMountWrapper$3(domElement, rawProps);
  28938. break;
  28939. case 'select':
  28940. case 'option':
  28941. // For input and textarea we current always set the value property at
  28942. // post mount to force it to diverge from attributes. However, for
  28943. // option and select we don't quite do the same thing and select
  28944. // is not resilient to the DOM state changing so we don't do that here.
  28945. // TODO: Consider not doing this for input and textarea.
  28946. break;
  28947. default:
  28948. if (typeof rawProps.onClick === 'function') {
  28949. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28950. trapClickOnNonInteractiveElement(domElement);
  28951. }
  28952. break;
  28953. }
  28954. return updatePayload;
  28955. }
  28956. function diffHydratedText(textNode, text) {
  28957. var isDifferent = textNode.nodeValue !== text;
  28958. return isDifferent;
  28959. }
  28960. function warnForUnmatchedText(textNode, text) {
  28961. {
  28962. warnForTextDifference(textNode.nodeValue, text);
  28963. }
  28964. }
  28965. function warnForDeletedHydratableElement(parentNode, child) {
  28966. {
  28967. if (didWarnInvalidHydration) {
  28968. return;
  28969. }
  28970. didWarnInvalidHydration = true;
  28971. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  28972. }
  28973. }
  28974. function warnForDeletedHydratableText(parentNode, child) {
  28975. {
  28976. if (didWarnInvalidHydration) {
  28977. return;
  28978. }
  28979. didWarnInvalidHydration = true;
  28980. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  28981. }
  28982. }
  28983. function warnForInsertedHydratedElement(parentNode, tag, props) {
  28984. {
  28985. if (didWarnInvalidHydration) {
  28986. return;
  28987. }
  28988. didWarnInvalidHydration = true;
  28989. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  28990. }
  28991. }
  28992. function warnForInsertedHydratedText(parentNode, text) {
  28993. {
  28994. if (text === '') {
  28995. // We expect to insert empty text nodes since they're not represented in
  28996. // the HTML.
  28997. // TODO: Remove this special case if we can just avoid inserting empty
  28998. // text nodes.
  28999. return;
  29000. }
  29001. if (didWarnInvalidHydration) {
  29002. return;
  29003. }
  29004. didWarnInvalidHydration = true;
  29005. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  29006. }
  29007. }
  29008. function restoreControlledState$1(domElement, tag, props) {
  29009. switch (tag) {
  29010. case 'input':
  29011. restoreControlledState(domElement, props);
  29012. return;
  29013. case 'textarea':
  29014. restoreControlledState$3(domElement, props);
  29015. return;
  29016. case 'select':
  29017. restoreControlledState$2(domElement, props);
  29018. return;
  29019. }
  29020. }
  29021. // TODO: direct imports like some-package/src/* are bad. Fix me.
  29022. var validateDOMNesting = function () {};
  29023. var updatedAncestorInfo = function () {};
  29024. {
  29025. // This validation code was written based on the HTML5 parsing spec:
  29026. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  29027. //
  29028. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  29029. // not clear what practical benefit doing so provides); instead, we warn only
  29030. // for cases where the parser will give a parse tree differing from what React
  29031. // intended. For example, <b><div></div></b> is invalid but we don't warn
  29032. // because it still parses correctly; we do warn for other cases like nested
  29033. // <p> tags where the beginning of the second element implicitly closes the
  29034. // first, causing a confusing mess.
  29035. // https://html.spec.whatwg.org/multipage/syntax.html#special
  29036. var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];
  29037. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  29038. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  29039. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  29040. // TODO: Distinguish by namespace here -- for <title>, including it here
  29041. // errs on the side of fewer warnings
  29042. 'foreignObject', 'desc', 'title'];
  29043. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  29044. var buttonScopeTags = inScopeTags.concat(['button']);
  29045. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  29046. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  29047. var emptyAncestorInfo = {
  29048. current: null,
  29049. formTag: null,
  29050. aTagInScope: null,
  29051. buttonTagInScope: null,
  29052. nobrTagInScope: null,
  29053. pTagInButtonScope: null,
  29054. listItemTagAutoclosing: null,
  29055. dlItemTagAutoclosing: null
  29056. };
  29057. updatedAncestorInfo = function (oldInfo, tag) {
  29058. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  29059. var info = { tag: tag };
  29060. if (inScopeTags.indexOf(tag) !== -1) {
  29061. ancestorInfo.aTagInScope = null;
  29062. ancestorInfo.buttonTagInScope = null;
  29063. ancestorInfo.nobrTagInScope = null;
  29064. }
  29065. if (buttonScopeTags.indexOf(tag) !== -1) {
  29066. ancestorInfo.pTagInButtonScope = null;
  29067. }
  29068. // See rules for 'li', 'dd', 'dt' start tags in
  29069. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  29070. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  29071. ancestorInfo.listItemTagAutoclosing = null;
  29072. ancestorInfo.dlItemTagAutoclosing = null;
  29073. }
  29074. ancestorInfo.current = info;
  29075. if (tag === 'form') {
  29076. ancestorInfo.formTag = info;
  29077. }
  29078. if (tag === 'a') {
  29079. ancestorInfo.aTagInScope = info;
  29080. }
  29081. if (tag === 'button') {
  29082. ancestorInfo.buttonTagInScope = info;
  29083. }
  29084. if (tag === 'nobr') {
  29085. ancestorInfo.nobrTagInScope = info;
  29086. }
  29087. if (tag === 'p') {
  29088. ancestorInfo.pTagInButtonScope = info;
  29089. }
  29090. if (tag === 'li') {
  29091. ancestorInfo.listItemTagAutoclosing = info;
  29092. }
  29093. if (tag === 'dd' || tag === 'dt') {
  29094. ancestorInfo.dlItemTagAutoclosing = info;
  29095. }
  29096. return ancestorInfo;
  29097. };
  29098. /**
  29099. * Returns whether
  29100. */
  29101. var isTagValidWithParent = function (tag, parentTag) {
  29102. // First, let's check if we're in an unusual parsing mode...
  29103. switch (parentTag) {
  29104. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  29105. case 'select':
  29106. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  29107. case 'optgroup':
  29108. return tag === 'option' || tag === '#text';
  29109. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  29110. // but
  29111. case 'option':
  29112. return tag === '#text';
  29113. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  29114. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  29115. // No special behavior since these rules fall back to "in body" mode for
  29116. // all except special table nodes which cause bad parsing behavior anyway.
  29117. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  29118. case 'tr':
  29119. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  29120. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  29121. case 'tbody':
  29122. case 'thead':
  29123. case 'tfoot':
  29124. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  29125. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  29126. case 'colgroup':
  29127. return tag === 'col' || tag === 'template';
  29128. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  29129. case 'table':
  29130. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  29131. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  29132. case 'head':
  29133. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  29134. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  29135. case 'html':
  29136. return tag === 'head' || tag === 'body';
  29137. case '#document':
  29138. return tag === 'html';
  29139. }
  29140. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  29141. // where the parsing rules cause implicit opens or closes to be added.
  29142. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  29143. switch (tag) {
  29144. case 'h1':
  29145. case 'h2':
  29146. case 'h3':
  29147. case 'h4':
  29148. case 'h5':
  29149. case 'h6':
  29150. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  29151. case 'rp':
  29152. case 'rt':
  29153. return impliedEndTags.indexOf(parentTag) === -1;
  29154. case 'body':
  29155. case 'caption':
  29156. case 'col':
  29157. case 'colgroup':
  29158. case 'frame':
  29159. case 'head':
  29160. case 'html':
  29161. case 'tbody':
  29162. case 'td':
  29163. case 'tfoot':
  29164. case 'th':
  29165. case 'thead':
  29166. case 'tr':
  29167. // These tags are only valid with a few parents that have special child
  29168. // parsing rules -- if we're down here, then none of those matched and
  29169. // so we allow it only if we don't know what the parent is, as all other
  29170. // cases are invalid.
  29171. return parentTag == null;
  29172. }
  29173. return true;
  29174. };
  29175. /**
  29176. * Returns whether
  29177. */
  29178. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  29179. switch (tag) {
  29180. case 'address':
  29181. case 'article':
  29182. case 'aside':
  29183. case 'blockquote':
  29184. case 'center':
  29185. case 'details':
  29186. case 'dialog':
  29187. case 'dir':
  29188. case 'div':
  29189. case 'dl':
  29190. case 'fieldset':
  29191. case 'figcaption':
  29192. case 'figure':
  29193. case 'footer':
  29194. case 'header':
  29195. case 'hgroup':
  29196. case 'main':
  29197. case 'menu':
  29198. case 'nav':
  29199. case 'ol':
  29200. case 'p':
  29201. case 'section':
  29202. case 'summary':
  29203. case 'ul':
  29204. case 'pre':
  29205. case 'listing':
  29206. case 'table':
  29207. case 'hr':
  29208. case 'xmp':
  29209. case 'h1':
  29210. case 'h2':
  29211. case 'h3':
  29212. case 'h4':
  29213. case 'h5':
  29214. case 'h6':
  29215. return ancestorInfo.pTagInButtonScope;
  29216. case 'form':
  29217. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  29218. case 'li':
  29219. return ancestorInfo.listItemTagAutoclosing;
  29220. case 'dd':
  29221. case 'dt':
  29222. return ancestorInfo.dlItemTagAutoclosing;
  29223. case 'button':
  29224. return ancestorInfo.buttonTagInScope;
  29225. case 'a':
  29226. // Spec says something about storing a list of markers, but it sounds
  29227. // equivalent to this check.
  29228. return ancestorInfo.aTagInScope;
  29229. case 'nobr':
  29230. return ancestorInfo.nobrTagInScope;
  29231. }
  29232. return null;
  29233. };
  29234. var didWarn = {};
  29235. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  29236. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  29237. var parentInfo = ancestorInfo.current;
  29238. var parentTag = parentInfo && parentInfo.tag;
  29239. if (childText != null) {
  29240. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  29241. childTag = '#text';
  29242. }
  29243. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  29244. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  29245. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  29246. if (!invalidParentOrAncestor) {
  29247. return;
  29248. }
  29249. var ancestorTag = invalidParentOrAncestor.tag;
  29250. var addendum = getCurrentFiberStackInDev();
  29251. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  29252. if (didWarn[warnKey]) {
  29253. return;
  29254. }
  29255. didWarn[warnKey] = true;
  29256. var tagDisplayName = childTag;
  29257. var whitespaceInfo = '';
  29258. if (childTag === '#text') {
  29259. if (/\S/.test(childText)) {
  29260. tagDisplayName = 'Text nodes';
  29261. } else {
  29262. tagDisplayName = 'Whitespace text nodes';
  29263. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  29264. }
  29265. } else {
  29266. tagDisplayName = '<' + childTag + '>';
  29267. }
  29268. if (invalidParent) {
  29269. var info = '';
  29270. if (ancestorTag === 'table' && childTag === 'tr') {
  29271. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  29272. }
  29273. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  29274. } else {
  29275. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  29276. }
  29277. };
  29278. }
  29279. // Renderers that don't support persistence
  29280. // can re-export everything from this module.
  29281. function shim() {
  29282. invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');
  29283. }
  29284. // Persistence (when unsupported)
  29285. var supportsPersistence = false;
  29286. var cloneInstance = shim;
  29287. var createContainerChildSet = shim;
  29288. var appendChildToContainerChildSet = shim;
  29289. var finalizeContainerChildren = shim;
  29290. var replaceContainerChildren = shim;
  29291. var cloneHiddenInstance = shim;
  29292. var cloneUnhiddenInstance = shim;
  29293. var createHiddenTextInstance = shim;
  29294. var SUPPRESS_HYDRATION_WARNING = void 0;
  29295. {
  29296. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  29297. }
  29298. var STYLE = 'style';
  29299. var eventsEnabled = null;
  29300. var selectionInformation = null;
  29301. function shouldAutoFocusHostComponent(type, props) {
  29302. switch (type) {
  29303. case 'button':
  29304. case 'input':
  29305. case 'select':
  29306. case 'textarea':
  29307. return !!props.autoFocus;
  29308. }
  29309. return false;
  29310. }
  29311. function getRootHostContext(rootContainerInstance) {
  29312. var type = void 0;
  29313. var namespace = void 0;
  29314. var nodeType = rootContainerInstance.nodeType;
  29315. switch (nodeType) {
  29316. case DOCUMENT_NODE:
  29317. case DOCUMENT_FRAGMENT_NODE:
  29318. {
  29319. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  29320. var root = rootContainerInstance.documentElement;
  29321. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  29322. break;
  29323. }
  29324. default:
  29325. {
  29326. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  29327. var ownNamespace = container.namespaceURI || null;
  29328. type = container.tagName;
  29329. namespace = getChildNamespace(ownNamespace, type);
  29330. break;
  29331. }
  29332. }
  29333. {
  29334. var validatedTag = type.toLowerCase();
  29335. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  29336. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  29337. }
  29338. return namespace;
  29339. }
  29340. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  29341. {
  29342. var parentHostContextDev = parentHostContext;
  29343. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  29344. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  29345. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  29346. }
  29347. var parentNamespace = parentHostContext;
  29348. return getChildNamespace(parentNamespace, type);
  29349. }
  29350. function getPublicInstance(instance) {
  29351. return instance;
  29352. }
  29353. function prepareForCommit(containerInfo) {
  29354. eventsEnabled = isEnabled();
  29355. selectionInformation = getSelectionInformation();
  29356. setEnabled(false);
  29357. }
  29358. function resetAfterCommit(containerInfo) {
  29359. restoreSelection(selectionInformation);
  29360. selectionInformation = null;
  29361. setEnabled(eventsEnabled);
  29362. eventsEnabled = null;
  29363. }
  29364. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  29365. var parentNamespace = void 0;
  29366. {
  29367. // TODO: take namespace into account when validating.
  29368. var hostContextDev = hostContext;
  29369. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  29370. if (typeof props.children === 'string' || typeof props.children === 'number') {
  29371. var string = '' + props.children;
  29372. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  29373. validateDOMNesting(null, string, ownAncestorInfo);
  29374. }
  29375. parentNamespace = hostContextDev.namespace;
  29376. }
  29377. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  29378. precacheFiberNode(internalInstanceHandle, domElement);
  29379. updateFiberProps(domElement, props);
  29380. return domElement;
  29381. }
  29382. function appendInitialChild(parentInstance, child) {
  29383. parentInstance.appendChild(child);
  29384. }
  29385. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  29386. setInitialProperties(domElement, type, props, rootContainerInstance);
  29387. return shouldAutoFocusHostComponent(type, props);
  29388. }
  29389. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  29390. {
  29391. var hostContextDev = hostContext;
  29392. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  29393. var string = '' + newProps.children;
  29394. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  29395. validateDOMNesting(null, string, ownAncestorInfo);
  29396. }
  29397. }
  29398. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  29399. }
  29400. function shouldSetTextContent(type, props) {
  29401. return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
  29402. }
  29403. function shouldDeprioritizeSubtree(type, props) {
  29404. return !!props.hidden;
  29405. }
  29406. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  29407. {
  29408. var hostContextDev = hostContext;
  29409. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  29410. }
  29411. var textNode = createTextNode(text, rootContainerInstance);
  29412. precacheFiberNode(internalInstanceHandle, textNode);
  29413. return textNode;
  29414. }
  29415. var isPrimaryRenderer = true;
  29416. // This initialization code may run even on server environments
  29417. // if a component just imports ReactDOM (e.g. for findDOMNode).
  29418. // Some environments might not have setTimeout or clearTimeout.
  29419. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  29420. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  29421. var noTimeout = -1;
  29422. // -------------------
  29423. // Mutation
  29424. // -------------------
  29425. var supportsMutation = true;
  29426. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  29427. // Despite the naming that might imply otherwise, this method only
  29428. // fires if there is an `Update` effect scheduled during mounting.
  29429. // This happens if `finalizeInitialChildren` returns `true` (which it
  29430. // does to implement the `autoFocus` attribute on the client). But
  29431. // there are also other cases when this might happen (such as patching
  29432. // up text content during hydration mismatch). So we'll check this again.
  29433. if (shouldAutoFocusHostComponent(type, newProps)) {
  29434. domElement.focus();
  29435. }
  29436. }
  29437. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  29438. // Update the props handle so that we know which props are the ones with
  29439. // with current event handlers.
  29440. updateFiberProps(domElement, newProps);
  29441. // Apply the diff to the DOM node.
  29442. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  29443. }
  29444. function resetTextContent(domElement) {
  29445. setTextContent(domElement, '');
  29446. }
  29447. function commitTextUpdate(textInstance, oldText, newText) {
  29448. textInstance.nodeValue = newText;
  29449. }
  29450. function appendChild(parentInstance, child) {
  29451. parentInstance.appendChild(child);
  29452. }
  29453. function appendChildToContainer(container, child) {
  29454. var parentNode = void 0;
  29455. if (container.nodeType === COMMENT_NODE) {
  29456. parentNode = container.parentNode;
  29457. parentNode.insertBefore(child, container);
  29458. } else {
  29459. parentNode = container;
  29460. parentNode.appendChild(child);
  29461. }
  29462. // This container might be used for a portal.
  29463. // If something inside a portal is clicked, that click should bubble
  29464. // through the React tree. However, on Mobile Safari the click would
  29465. // never bubble through the *DOM* tree unless an ancestor with onclick
  29466. // event exists. So we wouldn't see it and dispatch it.
  29467. // This is why we ensure that non React root containers have inline onclick
  29468. // defined.
  29469. // https://github.com/facebook/react/issues/11918
  29470. var reactRootContainer = container._reactRootContainer;
  29471. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  29472. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  29473. trapClickOnNonInteractiveElement(parentNode);
  29474. }
  29475. }
  29476. function insertBefore(parentInstance, child, beforeChild) {
  29477. parentInstance.insertBefore(child, beforeChild);
  29478. }
  29479. function insertInContainerBefore(container, child, beforeChild) {
  29480. if (container.nodeType === COMMENT_NODE) {
  29481. container.parentNode.insertBefore(child, beforeChild);
  29482. } else {
  29483. container.insertBefore(child, beforeChild);
  29484. }
  29485. }
  29486. function removeChild(parentInstance, child) {
  29487. parentInstance.removeChild(child);
  29488. }
  29489. function removeChildFromContainer(container, child) {
  29490. if (container.nodeType === COMMENT_NODE) {
  29491. container.parentNode.removeChild(child);
  29492. } else {
  29493. container.removeChild(child);
  29494. }
  29495. }
  29496. function hideInstance(instance) {
  29497. // TODO: Does this work for all element types? What about MathML? Should we
  29498. // pass host context to this method?
  29499. instance = instance;
  29500. instance.style.display = 'none';
  29501. }
  29502. function hideTextInstance(textInstance) {
  29503. textInstance.nodeValue = '';
  29504. }
  29505. function unhideInstance(instance, props) {
  29506. instance = instance;
  29507. var styleProp = props[STYLE];
  29508. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  29509. instance.style.display = dangerousStyleValue('display', display);
  29510. }
  29511. function unhideTextInstance(textInstance, text) {
  29512. textInstance.nodeValue = text;
  29513. }
  29514. // -------------------
  29515. // Hydration
  29516. // -------------------
  29517. var supportsHydration = true;
  29518. function canHydrateInstance(instance, type, props) {
  29519. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  29520. return null;
  29521. }
  29522. // This has now been refined to an element node.
  29523. return instance;
  29524. }
  29525. function canHydrateTextInstance(instance, text) {
  29526. if (text === '' || instance.nodeType !== TEXT_NODE) {
  29527. // Empty strings are not parsed by HTML so there won't be a correct match here.
  29528. return null;
  29529. }
  29530. // This has now been refined to a text node.
  29531. return instance;
  29532. }
  29533. function getNextHydratableSibling(instance) {
  29534. var node = instance.nextSibling;
  29535. // Skip non-hydratable nodes.
  29536. while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) {
  29537. node = node.nextSibling;
  29538. }
  29539. return node;
  29540. }
  29541. function getFirstHydratableChild(parentInstance) {
  29542. var next = parentInstance.firstChild;
  29543. // Skip non-hydratable nodes.
  29544. while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) {
  29545. next = next.nextSibling;
  29546. }
  29547. return next;
  29548. }
  29549. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  29550. precacheFiberNode(internalInstanceHandle, instance);
  29551. // TODO: Possibly defer this until the commit phase where all the events
  29552. // get attached.
  29553. updateFiberProps(instance, props);
  29554. var parentNamespace = void 0;
  29555. {
  29556. var hostContextDev = hostContext;
  29557. parentNamespace = hostContextDev.namespace;
  29558. }
  29559. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  29560. }
  29561. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  29562. precacheFiberNode(internalInstanceHandle, textInstance);
  29563. return diffHydratedText(textInstance, text);
  29564. }
  29565. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  29566. {
  29567. warnForUnmatchedText(textInstance, text);
  29568. }
  29569. }
  29570. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  29571. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29572. warnForUnmatchedText(textInstance, text);
  29573. }
  29574. }
  29575. function didNotHydrateContainerInstance(parentContainer, instance) {
  29576. {
  29577. if (instance.nodeType === ELEMENT_NODE) {
  29578. warnForDeletedHydratableElement(parentContainer, instance);
  29579. } else {
  29580. warnForDeletedHydratableText(parentContainer, instance);
  29581. }
  29582. }
  29583. }
  29584. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  29585. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29586. if (instance.nodeType === ELEMENT_NODE) {
  29587. warnForDeletedHydratableElement(parentInstance, instance);
  29588. } else {
  29589. warnForDeletedHydratableText(parentInstance, instance);
  29590. }
  29591. }
  29592. }
  29593. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  29594. {
  29595. warnForInsertedHydratedElement(parentContainer, type, props);
  29596. }
  29597. }
  29598. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  29599. {
  29600. warnForInsertedHydratedText(parentContainer, text);
  29601. }
  29602. }
  29603. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  29604. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29605. warnForInsertedHydratedElement(parentInstance, type, props);
  29606. }
  29607. }
  29608. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  29609. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29610. warnForInsertedHydratedText(parentInstance, text);
  29611. }
  29612. }
  29613. // Prefix measurements so that it's possible to filter them.
  29614. // Longer prefixes are hard to read in DevTools.
  29615. var reactEmoji = '\u269B';
  29616. var warningEmoji = '\u26D4';
  29617. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  29618. // Keep track of current fiber so that we know the path to unwind on pause.
  29619. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  29620. var currentFiber = null;
  29621. // If we're in the middle of user code, which fiber and method is it?
  29622. // Reusing `currentFiber` would be confusing for this because user code fiber
  29623. // can change during commit phase too, but we don't need to unwind it (since
  29624. // lifecycles in the commit phase don't resemble a tree).
  29625. var currentPhase = null;
  29626. var currentPhaseFiber = null;
  29627. // Did lifecycle hook schedule an update? This is often a performance problem,
  29628. // so we will keep track of it, and include it in the report.
  29629. // Track commits caused by cascading updates.
  29630. var isCommitting = false;
  29631. var hasScheduledUpdateInCurrentCommit = false;
  29632. var hasScheduledUpdateInCurrentPhase = false;
  29633. var commitCountInCurrentWorkLoop = 0;
  29634. var effectCountInCurrentCommit = 0;
  29635. var isWaitingForCallback = false;
  29636. // During commits, we only show a measurement once per method name
  29637. // to avoid stretch the commit phase with measurement overhead.
  29638. var labelsInCurrentCommit = new Set();
  29639. var formatMarkName = function (markName) {
  29640. return reactEmoji + ' ' + markName;
  29641. };
  29642. var formatLabel = function (label, warning) {
  29643. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  29644. var suffix = warning ? ' Warning: ' + warning : '';
  29645. return '' + prefix + label + suffix;
  29646. };
  29647. var beginMark = function (markName) {
  29648. performance.mark(formatMarkName(markName));
  29649. };
  29650. var clearMark = function (markName) {
  29651. performance.clearMarks(formatMarkName(markName));
  29652. };
  29653. var endMark = function (label, markName, warning) {
  29654. var formattedMarkName = formatMarkName(markName);
  29655. var formattedLabel = formatLabel(label, warning);
  29656. try {
  29657. performance.measure(formattedLabel, formattedMarkName);
  29658. } catch (err) {}
  29659. // If previous mark was missing for some reason, this will throw.
  29660. // This could only happen if React crashed in an unexpected place earlier.
  29661. // Don't pile on with more errors.
  29662. // Clear marks immediately to avoid growing buffer.
  29663. performance.clearMarks(formattedMarkName);
  29664. performance.clearMeasures(formattedLabel);
  29665. };
  29666. var getFiberMarkName = function (label, debugID) {
  29667. return label + ' (#' + debugID + ')';
  29668. };
  29669. var getFiberLabel = function (componentName, isMounted, phase) {
  29670. if (phase === null) {
  29671. // These are composite component total time measurements.
  29672. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  29673. } else {
  29674. // Composite component methods.
  29675. return componentName + '.' + phase;
  29676. }
  29677. };
  29678. var beginFiberMark = function (fiber, phase) {
  29679. var componentName = getComponentName(fiber.type) || 'Unknown';
  29680. var debugID = fiber._debugID;
  29681. var isMounted = fiber.alternate !== null;
  29682. var label = getFiberLabel(componentName, isMounted, phase);
  29683. if (isCommitting && labelsInCurrentCommit.has(label)) {
  29684. // During the commit phase, we don't show duplicate labels because
  29685. // there is a fixed overhead for every measurement, and we don't
  29686. // want to stretch the commit phase beyond necessary.
  29687. return false;
  29688. }
  29689. labelsInCurrentCommit.add(label);
  29690. var markName = getFiberMarkName(label, debugID);
  29691. beginMark(markName);
  29692. return true;
  29693. };
  29694. var clearFiberMark = function (fiber, phase) {
  29695. var componentName = getComponentName(fiber.type) || 'Unknown';
  29696. var debugID = fiber._debugID;
  29697. var isMounted = fiber.alternate !== null;
  29698. var label = getFiberLabel(componentName, isMounted, phase);
  29699. var markName = getFiberMarkName(label, debugID);
  29700. clearMark(markName);
  29701. };
  29702. var endFiberMark = function (fiber, phase, warning) {
  29703. var componentName = getComponentName(fiber.type) || 'Unknown';
  29704. var debugID = fiber._debugID;
  29705. var isMounted = fiber.alternate !== null;
  29706. var label = getFiberLabel(componentName, isMounted, phase);
  29707. var markName = getFiberMarkName(label, debugID);
  29708. endMark(label, markName, warning);
  29709. };
  29710. var shouldIgnoreFiber = function (fiber) {
  29711. // Host components should be skipped in the timeline.
  29712. // We could check typeof fiber.type, but does this work with RN?
  29713. switch (fiber.tag) {
  29714. case HostRoot:
  29715. case HostComponent:
  29716. case HostText:
  29717. case HostPortal:
  29718. case Fragment:
  29719. case ContextProvider:
  29720. case ContextConsumer:
  29721. case Mode:
  29722. return true;
  29723. default:
  29724. return false;
  29725. }
  29726. };
  29727. var clearPendingPhaseMeasurement = function () {
  29728. if (currentPhase !== null && currentPhaseFiber !== null) {
  29729. clearFiberMark(currentPhaseFiber, currentPhase);
  29730. }
  29731. currentPhaseFiber = null;
  29732. currentPhase = null;
  29733. hasScheduledUpdateInCurrentPhase = false;
  29734. };
  29735. var pauseTimers = function () {
  29736. // Stops all currently active measurements so that they can be resumed
  29737. // if we continue in a later deferred loop from the same unit of work.
  29738. var fiber = currentFiber;
  29739. while (fiber) {
  29740. if (fiber._debugIsCurrentlyTiming) {
  29741. endFiberMark(fiber, null, null);
  29742. }
  29743. fiber = fiber.return;
  29744. }
  29745. };
  29746. var resumeTimersRecursively = function (fiber) {
  29747. if (fiber.return !== null) {
  29748. resumeTimersRecursively(fiber.return);
  29749. }
  29750. if (fiber._debugIsCurrentlyTiming) {
  29751. beginFiberMark(fiber, null);
  29752. }
  29753. };
  29754. var resumeTimers = function () {
  29755. // Resumes all measurements that were active during the last deferred loop.
  29756. if (currentFiber !== null) {
  29757. resumeTimersRecursively(currentFiber);
  29758. }
  29759. };
  29760. function recordEffect() {
  29761. if (enableUserTimingAPI) {
  29762. effectCountInCurrentCommit++;
  29763. }
  29764. }
  29765. function recordScheduleUpdate() {
  29766. if (enableUserTimingAPI) {
  29767. if (isCommitting) {
  29768. hasScheduledUpdateInCurrentCommit = true;
  29769. }
  29770. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  29771. hasScheduledUpdateInCurrentPhase = true;
  29772. }
  29773. }
  29774. }
  29775. function startRequestCallbackTimer() {
  29776. if (enableUserTimingAPI) {
  29777. if (supportsUserTiming && !isWaitingForCallback) {
  29778. isWaitingForCallback = true;
  29779. beginMark('(Waiting for async callback...)');
  29780. }
  29781. }
  29782. }
  29783. function stopRequestCallbackTimer(didExpire, expirationTime) {
  29784. if (enableUserTimingAPI) {
  29785. if (supportsUserTiming) {
  29786. isWaitingForCallback = false;
  29787. var warning = didExpire ? 'React was blocked by main thread' : null;
  29788. endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);
  29789. }
  29790. }
  29791. }
  29792. function startWorkTimer(fiber) {
  29793. if (enableUserTimingAPI) {
  29794. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29795. return;
  29796. }
  29797. // If we pause, this is the fiber to unwind from.
  29798. currentFiber = fiber;
  29799. if (!beginFiberMark(fiber, null)) {
  29800. return;
  29801. }
  29802. fiber._debugIsCurrentlyTiming = true;
  29803. }
  29804. }
  29805. function cancelWorkTimer(fiber) {
  29806. if (enableUserTimingAPI) {
  29807. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29808. return;
  29809. }
  29810. // Remember we shouldn't complete measurement for this fiber.
  29811. // Otherwise flamechart will be deep even for small updates.
  29812. fiber._debugIsCurrentlyTiming = false;
  29813. clearFiberMark(fiber, null);
  29814. }
  29815. }
  29816. function stopWorkTimer(fiber) {
  29817. if (enableUserTimingAPI) {
  29818. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29819. return;
  29820. }
  29821. // If we pause, its parent is the fiber to unwind from.
  29822. currentFiber = fiber.return;
  29823. if (!fiber._debugIsCurrentlyTiming) {
  29824. return;
  29825. }
  29826. fiber._debugIsCurrentlyTiming = false;
  29827. endFiberMark(fiber, null, null);
  29828. }
  29829. }
  29830. function stopFailedWorkTimer(fiber) {
  29831. if (enableUserTimingAPI) {
  29832. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29833. return;
  29834. }
  29835. // If we pause, its parent is the fiber to unwind from.
  29836. currentFiber = fiber.return;
  29837. if (!fiber._debugIsCurrentlyTiming) {
  29838. return;
  29839. }
  29840. fiber._debugIsCurrentlyTiming = false;
  29841. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  29842. endFiberMark(fiber, null, warning);
  29843. }
  29844. }
  29845. function startPhaseTimer(fiber, phase) {
  29846. if (enableUserTimingAPI) {
  29847. if (!supportsUserTiming) {
  29848. return;
  29849. }
  29850. clearPendingPhaseMeasurement();
  29851. if (!beginFiberMark(fiber, phase)) {
  29852. return;
  29853. }
  29854. currentPhaseFiber = fiber;
  29855. currentPhase = phase;
  29856. }
  29857. }
  29858. function stopPhaseTimer() {
  29859. if (enableUserTimingAPI) {
  29860. if (!supportsUserTiming) {
  29861. return;
  29862. }
  29863. if (currentPhase !== null && currentPhaseFiber !== null) {
  29864. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  29865. endFiberMark(currentPhaseFiber, currentPhase, warning);
  29866. }
  29867. currentPhase = null;
  29868. currentPhaseFiber = null;
  29869. }
  29870. }
  29871. function startWorkLoopTimer(nextUnitOfWork) {
  29872. if (enableUserTimingAPI) {
  29873. currentFiber = nextUnitOfWork;
  29874. if (!supportsUserTiming) {
  29875. return;
  29876. }
  29877. commitCountInCurrentWorkLoop = 0;
  29878. // This is top level call.
  29879. // Any other measurements are performed within.
  29880. beginMark('(React Tree Reconciliation)');
  29881. // Resume any measurements that were in progress during the last loop.
  29882. resumeTimers();
  29883. }
  29884. }
  29885. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  29886. if (enableUserTimingAPI) {
  29887. if (!supportsUserTiming) {
  29888. return;
  29889. }
  29890. var warning = null;
  29891. if (interruptedBy !== null) {
  29892. if (interruptedBy.tag === HostRoot) {
  29893. warning = 'A top-level update interrupted the previous render';
  29894. } else {
  29895. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  29896. warning = 'An update to ' + componentName + ' interrupted the previous render';
  29897. }
  29898. } else if (commitCountInCurrentWorkLoop > 1) {
  29899. warning = 'There were cascading updates';
  29900. }
  29901. commitCountInCurrentWorkLoop = 0;
  29902. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  29903. // Pause any measurements until the next loop.
  29904. pauseTimers();
  29905. endMark(label, '(React Tree Reconciliation)', warning);
  29906. }
  29907. }
  29908. function startCommitTimer() {
  29909. if (enableUserTimingAPI) {
  29910. if (!supportsUserTiming) {
  29911. return;
  29912. }
  29913. isCommitting = true;
  29914. hasScheduledUpdateInCurrentCommit = false;
  29915. labelsInCurrentCommit.clear();
  29916. beginMark('(Committing Changes)');
  29917. }
  29918. }
  29919. function stopCommitTimer() {
  29920. if (enableUserTimingAPI) {
  29921. if (!supportsUserTiming) {
  29922. return;
  29923. }
  29924. var warning = null;
  29925. if (hasScheduledUpdateInCurrentCommit) {
  29926. warning = 'Lifecycle hook scheduled a cascading update';
  29927. } else if (commitCountInCurrentWorkLoop > 0) {
  29928. warning = 'Caused by a cascading update in earlier commit';
  29929. }
  29930. hasScheduledUpdateInCurrentCommit = false;
  29931. commitCountInCurrentWorkLoop++;
  29932. isCommitting = false;
  29933. labelsInCurrentCommit.clear();
  29934. endMark('(Committing Changes)', '(Committing Changes)', warning);
  29935. }
  29936. }
  29937. function startCommitSnapshotEffectsTimer() {
  29938. if (enableUserTimingAPI) {
  29939. if (!supportsUserTiming) {
  29940. return;
  29941. }
  29942. effectCountInCurrentCommit = 0;
  29943. beginMark('(Committing Snapshot Effects)');
  29944. }
  29945. }
  29946. function stopCommitSnapshotEffectsTimer() {
  29947. if (enableUserTimingAPI) {
  29948. if (!supportsUserTiming) {
  29949. return;
  29950. }
  29951. var count = effectCountInCurrentCommit;
  29952. effectCountInCurrentCommit = 0;
  29953. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  29954. }
  29955. }
  29956. function startCommitHostEffectsTimer() {
  29957. if (enableUserTimingAPI) {
  29958. if (!supportsUserTiming) {
  29959. return;
  29960. }
  29961. effectCountInCurrentCommit = 0;
  29962. beginMark('(Committing Host Effects)');
  29963. }
  29964. }
  29965. function stopCommitHostEffectsTimer() {
  29966. if (enableUserTimingAPI) {
  29967. if (!supportsUserTiming) {
  29968. return;
  29969. }
  29970. var count = effectCountInCurrentCommit;
  29971. effectCountInCurrentCommit = 0;
  29972. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  29973. }
  29974. }
  29975. function startCommitLifeCyclesTimer() {
  29976. if (enableUserTimingAPI) {
  29977. if (!supportsUserTiming) {
  29978. return;
  29979. }
  29980. effectCountInCurrentCommit = 0;
  29981. beginMark('(Calling Lifecycle Methods)');
  29982. }
  29983. }
  29984. function stopCommitLifeCyclesTimer() {
  29985. if (enableUserTimingAPI) {
  29986. if (!supportsUserTiming) {
  29987. return;
  29988. }
  29989. var count = effectCountInCurrentCommit;
  29990. effectCountInCurrentCommit = 0;
  29991. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  29992. }
  29993. }
  29994. var valueStack = [];
  29995. var fiberStack = void 0;
  29996. {
  29997. fiberStack = [];
  29998. }
  29999. var index = -1;
  30000. function createCursor(defaultValue) {
  30001. return {
  30002. current: defaultValue
  30003. };
  30004. }
  30005. function pop(cursor, fiber) {
  30006. if (index < 0) {
  30007. {
  30008. warningWithoutStack$1(false, 'Unexpected pop.');
  30009. }
  30010. return;
  30011. }
  30012. {
  30013. if (fiber !== fiberStack[index]) {
  30014. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  30015. }
  30016. }
  30017. cursor.current = valueStack[index];
  30018. valueStack[index] = null;
  30019. {
  30020. fiberStack[index] = null;
  30021. }
  30022. index--;
  30023. }
  30024. function push(cursor, value, fiber) {
  30025. index++;
  30026. valueStack[index] = cursor.current;
  30027. {
  30028. fiberStack[index] = fiber;
  30029. }
  30030. cursor.current = value;
  30031. }
  30032. function checkThatStackIsEmpty() {
  30033. {
  30034. if (index !== -1) {
  30035. warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');
  30036. }
  30037. }
  30038. }
  30039. function resetStackAfterFatalErrorInDev() {
  30040. {
  30041. index = -1;
  30042. valueStack.length = 0;
  30043. fiberStack.length = 0;
  30044. }
  30045. }
  30046. var warnedAboutMissingGetChildContext = void 0;
  30047. {
  30048. warnedAboutMissingGetChildContext = {};
  30049. }
  30050. var emptyContextObject = {};
  30051. {
  30052. Object.freeze(emptyContextObject);
  30053. }
  30054. // A cursor to the current merged context object on the stack.
  30055. var contextStackCursor = createCursor(emptyContextObject);
  30056. // A cursor to a boolean indicating whether the context has changed.
  30057. var didPerformWorkStackCursor = createCursor(false);
  30058. // Keep track of the previous context object that was on the stack.
  30059. // We use this to get access to the parent context after we have already
  30060. // pushed the next context provider, and now need to merge their contexts.
  30061. var previousContext = emptyContextObject;
  30062. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  30063. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  30064. // If the fiber is a context provider itself, when we read its context
  30065. // we may have already pushed its own child context on the stack. A context
  30066. // provider should not "see" its own child context. Therefore we read the
  30067. // previous (parent) context instead for a context provider.
  30068. return previousContext;
  30069. }
  30070. return contextStackCursor.current;
  30071. }
  30072. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  30073. var instance = workInProgress.stateNode;
  30074. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  30075. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  30076. }
  30077. function getMaskedContext(workInProgress, unmaskedContext) {
  30078. var type = workInProgress.type;
  30079. var contextTypes = type.contextTypes;
  30080. if (!contextTypes) {
  30081. return emptyContextObject;
  30082. }
  30083. // Avoid recreating masked context unless unmasked context has changed.
  30084. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  30085. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  30086. var instance = workInProgress.stateNode;
  30087. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  30088. return instance.__reactInternalMemoizedMaskedChildContext;
  30089. }
  30090. var context = {};
  30091. for (var key in contextTypes) {
  30092. context[key] = unmaskedContext[key];
  30093. }
  30094. {
  30095. var name = getComponentName(type) || 'Unknown';
  30096. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  30097. }
  30098. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  30099. // Context is created before the class component is instantiated so check for instance.
  30100. if (instance) {
  30101. cacheContext(workInProgress, unmaskedContext, context);
  30102. }
  30103. return context;
  30104. }
  30105. function hasContextChanged() {
  30106. return didPerformWorkStackCursor.current;
  30107. }
  30108. function isContextProvider(type) {
  30109. var childContextTypes = type.childContextTypes;
  30110. return childContextTypes !== null && childContextTypes !== undefined;
  30111. }
  30112. function popContext(fiber) {
  30113. pop(didPerformWorkStackCursor, fiber);
  30114. pop(contextStackCursor, fiber);
  30115. }
  30116. function popTopLevelContextObject(fiber) {
  30117. pop(didPerformWorkStackCursor, fiber);
  30118. pop(contextStackCursor, fiber);
  30119. }
  30120. function pushTopLevelContextObject(fiber, context, didChange) {
  30121. !(contextStackCursor.current === emptyContextObject) ? invariant(false, 'Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  30122. push(contextStackCursor, context, fiber);
  30123. push(didPerformWorkStackCursor, didChange, fiber);
  30124. }
  30125. function processChildContext(fiber, type, parentContext) {
  30126. var instance = fiber.stateNode;
  30127. var childContextTypes = type.childContextTypes;
  30128. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  30129. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  30130. if (typeof instance.getChildContext !== 'function') {
  30131. {
  30132. var componentName = getComponentName(type) || 'Unknown';
  30133. if (!warnedAboutMissingGetChildContext[componentName]) {
  30134. warnedAboutMissingGetChildContext[componentName] = true;
  30135. warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
  30136. }
  30137. }
  30138. return parentContext;
  30139. }
  30140. var childContext = void 0;
  30141. {
  30142. setCurrentPhase('getChildContext');
  30143. }
  30144. startPhaseTimer(fiber, 'getChildContext');
  30145. childContext = instance.getChildContext();
  30146. stopPhaseTimer();
  30147. {
  30148. setCurrentPhase(null);
  30149. }
  30150. for (var contextKey in childContext) {
  30151. !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;
  30152. }
  30153. {
  30154. var name = getComponentName(type) || 'Unknown';
  30155. checkPropTypes(childContextTypes, childContext, 'child context', name,
  30156. // In practice, there is one case in which we won't get a stack. It's when
  30157. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  30158. // context from the parent component instance. The stack will be missing
  30159. // because it's outside of the reconciliation, and so the pointer has not
  30160. // been set. This is rare and doesn't matter. We'll also remove that API.
  30161. getCurrentFiberStackInDev);
  30162. }
  30163. return _assign({}, parentContext, childContext);
  30164. }
  30165. function pushContextProvider(workInProgress) {
  30166. var instance = workInProgress.stateNode;
  30167. // We push the context as early as possible to ensure stack integrity.
  30168. // If the instance does not exist yet, we will push null at first,
  30169. // and replace it on the stack later when invalidating the context.
  30170. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  30171. // Remember the parent context so we can merge with it later.
  30172. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  30173. previousContext = contextStackCursor.current;
  30174. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  30175. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  30176. return true;
  30177. }
  30178. function invalidateContextProvider(workInProgress, type, didChange) {
  30179. var instance = workInProgress.stateNode;
  30180. !instance ? invariant(false, 'Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  30181. if (didChange) {
  30182. // Merge parent and own context.
  30183. // Skip this if we're not updating due to sCU.
  30184. // This avoids unnecessarily recomputing memoized values.
  30185. var mergedContext = processChildContext(workInProgress, type, previousContext);
  30186. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  30187. // Replace the old (or empty) context with the new one.
  30188. // It is important to unwind the context in the reverse order.
  30189. pop(didPerformWorkStackCursor, workInProgress);
  30190. pop(contextStackCursor, workInProgress);
  30191. // Now push the new context and mark that it has changed.
  30192. push(contextStackCursor, mergedContext, workInProgress);
  30193. push(didPerformWorkStackCursor, didChange, workInProgress);
  30194. } else {
  30195. pop(didPerformWorkStackCursor, workInProgress);
  30196. push(didPerformWorkStackCursor, didChange, workInProgress);
  30197. }
  30198. }
  30199. function findCurrentUnmaskedContext(fiber) {
  30200. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  30201. // makes sense elsewhere
  30202. !(isFiberMounted(fiber) && fiber.tag === ClassComponent) ? invariant(false, 'Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  30203. var node = fiber;
  30204. do {
  30205. switch (node.tag) {
  30206. case HostRoot:
  30207. return node.stateNode.context;
  30208. case ClassComponent:
  30209. {
  30210. var Component = node.type;
  30211. if (isContextProvider(Component)) {
  30212. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  30213. }
  30214. break;
  30215. }
  30216. }
  30217. node = node.return;
  30218. } while (node !== null);
  30219. invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');
  30220. }
  30221. var onCommitFiberRoot = null;
  30222. var onCommitFiberUnmount = null;
  30223. var hasLoggedError = false;
  30224. function catchErrors(fn) {
  30225. return function (arg) {
  30226. try {
  30227. return fn(arg);
  30228. } catch (err) {
  30229. if ( true && !hasLoggedError) {
  30230. hasLoggedError = true;
  30231. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  30232. }
  30233. }
  30234. };
  30235. }
  30236. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  30237. function injectInternals(internals) {
  30238. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  30239. // No DevTools
  30240. return false;
  30241. }
  30242. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  30243. if (hook.isDisabled) {
  30244. // This isn't a real property on the hook, but it can be set to opt out
  30245. // of DevTools integration and associated warnings and logs.
  30246. // https://github.com/facebook/react/issues/3877
  30247. return true;
  30248. }
  30249. if (!hook.supportsFiber) {
  30250. {
  30251. warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
  30252. }
  30253. // DevTools exists, even though it doesn't support Fiber.
  30254. return true;
  30255. }
  30256. try {
  30257. var rendererID = hook.inject(internals);
  30258. // We have successfully injected, so now it is safe to set up hooks.
  30259. onCommitFiberRoot = catchErrors(function (root) {
  30260. return hook.onCommitFiberRoot(rendererID, root);
  30261. });
  30262. onCommitFiberUnmount = catchErrors(function (fiber) {
  30263. return hook.onCommitFiberUnmount(rendererID, fiber);
  30264. });
  30265. } catch (err) {
  30266. // Catch all errors because it is unsafe to throw during initialization.
  30267. {
  30268. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  30269. }
  30270. }
  30271. // DevTools exists
  30272. return true;
  30273. }
  30274. function onCommitRoot(root) {
  30275. if (typeof onCommitFiberRoot === 'function') {
  30276. onCommitFiberRoot(root);
  30277. }
  30278. }
  30279. function onCommitUnmount(fiber) {
  30280. if (typeof onCommitFiberUnmount === 'function') {
  30281. onCommitFiberUnmount(fiber);
  30282. }
  30283. }
  30284. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  30285. // Math.pow(2, 30) - 1
  30286. // 0b111111111111111111111111111111
  30287. var maxSigned31BitInt = 1073741823;
  30288. var NoWork = 0;
  30289. var Never = 1;
  30290. var Sync = maxSigned31BitInt;
  30291. var UNIT_SIZE = 10;
  30292. var MAGIC_NUMBER_OFFSET = maxSigned31BitInt - 1;
  30293. // 1 unit of expiration time represents 10ms.
  30294. function msToExpirationTime(ms) {
  30295. // Always add an offset so that we don't clash with the magic number for NoWork.
  30296. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  30297. }
  30298. function expirationTimeToMs(expirationTime) {
  30299. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  30300. }
  30301. function ceiling(num, precision) {
  30302. return ((num / precision | 0) + 1) * precision;
  30303. }
  30304. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  30305. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  30306. }
  30307. var LOW_PRIORITY_EXPIRATION = 5000;
  30308. var LOW_PRIORITY_BATCH_SIZE = 250;
  30309. function computeAsyncExpiration(currentTime) {
  30310. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  30311. }
  30312. // We intentionally set a higher expiration time for interactive updates in
  30313. // dev than in production.
  30314. //
  30315. // If the main thread is being blocked so long that you hit the expiration,
  30316. // it's a problem that could be solved with better scheduling.
  30317. //
  30318. // People will be more likely to notice this and fix it with the long
  30319. // expiration time in development.
  30320. //
  30321. // In production we opt for better UX at the risk of masking scheduling
  30322. // problems, by expiring fast.
  30323. var HIGH_PRIORITY_EXPIRATION = 500;
  30324. var HIGH_PRIORITY_BATCH_SIZE = 100;
  30325. function computeInteractiveExpiration(currentTime) {
  30326. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  30327. }
  30328. var NoContext = 0;
  30329. var ConcurrentMode = 1;
  30330. var StrictMode = 2;
  30331. var ProfileMode = 4;
  30332. var hasBadMapPolyfill = void 0;
  30333. {
  30334. hasBadMapPolyfill = false;
  30335. try {
  30336. var nonExtensibleObject = Object.preventExtensions({});
  30337. var testMap = new Map([[nonExtensibleObject, null]]);
  30338. var testSet = new Set([nonExtensibleObject]);
  30339. // This is necessary for Rollup to not consider these unused.
  30340. // https://github.com/rollup/rollup/issues/1771
  30341. // TODO: we can remove these if Rollup fixes the bug.
  30342. testMap.set(0, 0);
  30343. testSet.add(0);
  30344. } catch (e) {
  30345. // TODO: Consider warning about bad polyfills
  30346. hasBadMapPolyfill = true;
  30347. }
  30348. }
  30349. // A Fiber is work on a Component that needs to be done or was done. There can
  30350. // be more than one per component.
  30351. var debugCounter = void 0;
  30352. {
  30353. debugCounter = 1;
  30354. }
  30355. function FiberNode(tag, pendingProps, key, mode) {
  30356. // Instance
  30357. this.tag = tag;
  30358. this.key = key;
  30359. this.elementType = null;
  30360. this.type = null;
  30361. this.stateNode = null;
  30362. // Fiber
  30363. this.return = null;
  30364. this.child = null;
  30365. this.sibling = null;
  30366. this.index = 0;
  30367. this.ref = null;
  30368. this.pendingProps = pendingProps;
  30369. this.memoizedProps = null;
  30370. this.updateQueue = null;
  30371. this.memoizedState = null;
  30372. this.firstContextDependency = null;
  30373. this.mode = mode;
  30374. // Effects
  30375. this.effectTag = NoEffect;
  30376. this.nextEffect = null;
  30377. this.firstEffect = null;
  30378. this.lastEffect = null;
  30379. this.expirationTime = NoWork;
  30380. this.childExpirationTime = NoWork;
  30381. this.alternate = null;
  30382. if (enableProfilerTimer) {
  30383. this.actualDuration = 0;
  30384. this.actualStartTime = -1;
  30385. this.selfBaseDuration = 0;
  30386. this.treeBaseDuration = 0;
  30387. }
  30388. {
  30389. this._debugID = debugCounter++;
  30390. this._debugSource = null;
  30391. this._debugOwner = null;
  30392. this._debugIsCurrentlyTiming = false;
  30393. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  30394. Object.preventExtensions(this);
  30395. }
  30396. }
  30397. }
  30398. // This is a constructor function, rather than a POJO constructor, still
  30399. // please ensure we do the following:
  30400. // 1) Nobody should add any instance methods on this. Instance methods can be
  30401. // more difficult to predict when they get optimized and they are almost
  30402. // never inlined properly in static compilers.
  30403. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  30404. // always know when it is a fiber.
  30405. // 3) We might want to experiment with using numeric keys since they are easier
  30406. // to optimize in a non-JIT environment.
  30407. // 4) We can easily go from a constructor to a createFiber object literal if that
  30408. // is faster.
  30409. // 5) It should be easy to port this to a C struct and keep a C implementation
  30410. // compatible.
  30411. var createFiber = function (tag, pendingProps, key, mode) {
  30412. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  30413. return new FiberNode(tag, pendingProps, key, mode);
  30414. };
  30415. function shouldConstruct(Component) {
  30416. var prototype = Component.prototype;
  30417. return !!(prototype && prototype.isReactComponent);
  30418. }
  30419. function isSimpleFunctionComponent(type) {
  30420. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  30421. }
  30422. function resolveLazyComponentTag(Component) {
  30423. if (typeof Component === 'function') {
  30424. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  30425. } else if (Component !== undefined && Component !== null) {
  30426. var $$typeof = Component.$$typeof;
  30427. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  30428. return ForwardRef;
  30429. }
  30430. if ($$typeof === REACT_MEMO_TYPE) {
  30431. return MemoComponent;
  30432. }
  30433. }
  30434. return IndeterminateComponent;
  30435. }
  30436. // This is used to create an alternate fiber to do work on.
  30437. function createWorkInProgress(current, pendingProps, expirationTime) {
  30438. var workInProgress = current.alternate;
  30439. if (workInProgress === null) {
  30440. // We use a double buffering pooling technique because we know that we'll
  30441. // only ever need at most two versions of a tree. We pool the "other" unused
  30442. // node that we're free to reuse. This is lazily created to avoid allocating
  30443. // extra objects for things that are never updated. It also allow us to
  30444. // reclaim the extra memory if needed.
  30445. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  30446. workInProgress.elementType = current.elementType;
  30447. workInProgress.type = current.type;
  30448. workInProgress.stateNode = current.stateNode;
  30449. {
  30450. // DEV-only fields
  30451. workInProgress._debugID = current._debugID;
  30452. workInProgress._debugSource = current._debugSource;
  30453. workInProgress._debugOwner = current._debugOwner;
  30454. }
  30455. workInProgress.alternate = current;
  30456. current.alternate = workInProgress;
  30457. } else {
  30458. workInProgress.pendingProps = pendingProps;
  30459. // We already have an alternate.
  30460. // Reset the effect tag.
  30461. workInProgress.effectTag = NoEffect;
  30462. // The effect list is no longer valid.
  30463. workInProgress.nextEffect = null;
  30464. workInProgress.firstEffect = null;
  30465. workInProgress.lastEffect = null;
  30466. if (enableProfilerTimer) {
  30467. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  30468. // This prevents time from endlessly accumulating in new commits.
  30469. // This has the downside of resetting values for different priority renders,
  30470. // But works for yielding (the common case) and should support resuming.
  30471. workInProgress.actualDuration = 0;
  30472. workInProgress.actualStartTime = -1;
  30473. }
  30474. }
  30475. workInProgress.childExpirationTime = current.childExpirationTime;
  30476. workInProgress.expirationTime = current.expirationTime;
  30477. workInProgress.child = current.child;
  30478. workInProgress.memoizedProps = current.memoizedProps;
  30479. workInProgress.memoizedState = current.memoizedState;
  30480. workInProgress.updateQueue = current.updateQueue;
  30481. workInProgress.firstContextDependency = current.firstContextDependency;
  30482. // These will be overridden during the parent's reconciliation
  30483. workInProgress.sibling = current.sibling;
  30484. workInProgress.index = current.index;
  30485. workInProgress.ref = current.ref;
  30486. if (enableProfilerTimer) {
  30487. workInProgress.selfBaseDuration = current.selfBaseDuration;
  30488. workInProgress.treeBaseDuration = current.treeBaseDuration;
  30489. }
  30490. return workInProgress;
  30491. }
  30492. function createHostRootFiber(isConcurrent) {
  30493. var mode = isConcurrent ? ConcurrentMode | StrictMode : NoContext;
  30494. if (enableProfilerTimer && isDevToolsPresent) {
  30495. // Always collect profile timings when DevTools are present.
  30496. // This enables DevTools to start capturing timing at any point–
  30497. // Without some nodes in the tree having empty base times.
  30498. mode |= ProfileMode;
  30499. }
  30500. return createFiber(HostRoot, null, null, mode);
  30501. }
  30502. function createFiberFromTypeAndProps(type, // React$ElementType
  30503. key, pendingProps, owner, mode, expirationTime) {
  30504. var fiber = void 0;
  30505. var fiberTag = IndeterminateComponent;
  30506. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  30507. var resolvedType = type;
  30508. if (typeof type === 'function') {
  30509. if (shouldConstruct(type)) {
  30510. fiberTag = ClassComponent;
  30511. }
  30512. } else if (typeof type === 'string') {
  30513. fiberTag = HostComponent;
  30514. } else {
  30515. getTag: switch (type) {
  30516. case REACT_FRAGMENT_TYPE:
  30517. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  30518. case REACT_CONCURRENT_MODE_TYPE:
  30519. return createFiberFromMode(pendingProps, mode | ConcurrentMode | StrictMode, expirationTime, key);
  30520. case REACT_STRICT_MODE_TYPE:
  30521. return createFiberFromMode(pendingProps, mode | StrictMode, expirationTime, key);
  30522. case REACT_PROFILER_TYPE:
  30523. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  30524. case REACT_SUSPENSE_TYPE:
  30525. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  30526. default:
  30527. {
  30528. if (typeof type === 'object' && type !== null) {
  30529. switch (type.$$typeof) {
  30530. case REACT_PROVIDER_TYPE:
  30531. fiberTag = ContextProvider;
  30532. break getTag;
  30533. case REACT_CONTEXT_TYPE:
  30534. // This is a consumer
  30535. fiberTag = ContextConsumer;
  30536. break getTag;
  30537. case REACT_FORWARD_REF_TYPE:
  30538. fiberTag = ForwardRef;
  30539. break getTag;
  30540. case REACT_MEMO_TYPE:
  30541. fiberTag = MemoComponent;
  30542. break getTag;
  30543. case REACT_LAZY_TYPE:
  30544. fiberTag = LazyComponent;
  30545. resolvedType = null;
  30546. break getTag;
  30547. }
  30548. }
  30549. var info = '';
  30550. {
  30551. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  30552. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
  30553. }
  30554. var ownerName = owner ? getComponentName(owner.type) : null;
  30555. if (ownerName) {
  30556. info += '\n\nCheck the render method of `' + ownerName + '`.';
  30557. }
  30558. }
  30559. invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info);
  30560. }
  30561. }
  30562. }
  30563. fiber = createFiber(fiberTag, pendingProps, key, mode);
  30564. fiber.elementType = type;
  30565. fiber.type = resolvedType;
  30566. fiber.expirationTime = expirationTime;
  30567. return fiber;
  30568. }
  30569. function createFiberFromElement(element, mode, expirationTime) {
  30570. var owner = null;
  30571. {
  30572. owner = element._owner;
  30573. }
  30574. var type = element.type;
  30575. var key = element.key;
  30576. var pendingProps = element.props;
  30577. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  30578. {
  30579. fiber._debugSource = element._source;
  30580. fiber._debugOwner = element._owner;
  30581. }
  30582. return fiber;
  30583. }
  30584. function createFiberFromFragment(elements, mode, expirationTime, key) {
  30585. var fiber = createFiber(Fragment, elements, key, mode);
  30586. fiber.expirationTime = expirationTime;
  30587. return fiber;
  30588. }
  30589. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  30590. {
  30591. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  30592. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  30593. }
  30594. }
  30595. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  30596. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  30597. fiber.elementType = REACT_PROFILER_TYPE;
  30598. fiber.type = REACT_PROFILER_TYPE;
  30599. fiber.expirationTime = expirationTime;
  30600. return fiber;
  30601. }
  30602. function createFiberFromMode(pendingProps, mode, expirationTime, key) {
  30603. var fiber = createFiber(Mode, pendingProps, key, mode);
  30604. // TODO: The Mode fiber shouldn't have a type. It has a tag.
  30605. var type = (mode & ConcurrentMode) === NoContext ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;
  30606. fiber.elementType = type;
  30607. fiber.type = type;
  30608. fiber.expirationTime = expirationTime;
  30609. return fiber;
  30610. }
  30611. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  30612. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  30613. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  30614. var type = REACT_SUSPENSE_TYPE;
  30615. fiber.elementType = type;
  30616. fiber.type = type;
  30617. fiber.expirationTime = expirationTime;
  30618. return fiber;
  30619. }
  30620. function createFiberFromText(content, mode, expirationTime) {
  30621. var fiber = createFiber(HostText, content, null, mode);
  30622. fiber.expirationTime = expirationTime;
  30623. return fiber;
  30624. }
  30625. function createFiberFromHostInstanceForDeletion() {
  30626. var fiber = createFiber(HostComponent, null, null, NoContext);
  30627. // TODO: These should not need a type.
  30628. fiber.elementType = 'DELETED';
  30629. fiber.type = 'DELETED';
  30630. return fiber;
  30631. }
  30632. function createFiberFromPortal(portal, mode, expirationTime) {
  30633. var pendingProps = portal.children !== null ? portal.children : [];
  30634. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  30635. fiber.expirationTime = expirationTime;
  30636. fiber.stateNode = {
  30637. containerInfo: portal.containerInfo,
  30638. pendingChildren: null, // Used by persistent updates
  30639. implementation: portal.implementation
  30640. };
  30641. return fiber;
  30642. }
  30643. // Used for stashing WIP properties to replay failed work in DEV.
  30644. function assignFiberPropertiesInDEV(target, source) {
  30645. if (target === null) {
  30646. // This Fiber's initial properties will always be overwritten.
  30647. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  30648. target = createFiber(IndeterminateComponent, null, null, NoContext);
  30649. }
  30650. // This is intentionally written as a list of all properties.
  30651. // We tried to use Object.assign() instead but this is called in
  30652. // the hottest path, and Object.assign() was too slow:
  30653. // https://github.com/facebook/react/issues/12502
  30654. // This code is DEV-only so size is not a concern.
  30655. target.tag = source.tag;
  30656. target.key = source.key;
  30657. target.elementType = source.elementType;
  30658. target.type = source.type;
  30659. target.stateNode = source.stateNode;
  30660. target.return = source.return;
  30661. target.child = source.child;
  30662. target.sibling = source.sibling;
  30663. target.index = source.index;
  30664. target.ref = source.ref;
  30665. target.pendingProps = source.pendingProps;
  30666. target.memoizedProps = source.memoizedProps;
  30667. target.updateQueue = source.updateQueue;
  30668. target.memoizedState = source.memoizedState;
  30669. target.firstContextDependency = source.firstContextDependency;
  30670. target.mode = source.mode;
  30671. target.effectTag = source.effectTag;
  30672. target.nextEffect = source.nextEffect;
  30673. target.firstEffect = source.firstEffect;
  30674. target.lastEffect = source.lastEffect;
  30675. target.expirationTime = source.expirationTime;
  30676. target.childExpirationTime = source.childExpirationTime;
  30677. target.alternate = source.alternate;
  30678. if (enableProfilerTimer) {
  30679. target.actualDuration = source.actualDuration;
  30680. target.actualStartTime = source.actualStartTime;
  30681. target.selfBaseDuration = source.selfBaseDuration;
  30682. target.treeBaseDuration = source.treeBaseDuration;
  30683. }
  30684. target._debugID = source._debugID;
  30685. target._debugSource = source._debugSource;
  30686. target._debugOwner = source._debugOwner;
  30687. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  30688. return target;
  30689. }
  30690. // TODO: This should be lifted into the renderer.
  30691. // The following attributes are only used by interaction tracing builds.
  30692. // They enable interactions to be associated with their async work,
  30693. // And expose interaction metadata to the React DevTools Profiler plugin.
  30694. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  30695. // Exported FiberRoot type includes all properties,
  30696. // To avoid requiring potentially error-prone :any casts throughout the project.
  30697. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  30698. // The types are defined separately within this file to ensure they stay in sync.
  30699. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  30700. function createFiberRoot(containerInfo, isConcurrent, hydrate) {
  30701. // Cyclic construction. This cheats the type system right now because
  30702. // stateNode is any.
  30703. var uninitializedFiber = createHostRootFiber(isConcurrent);
  30704. var root = void 0;
  30705. if (enableSchedulerTracing) {
  30706. root = {
  30707. current: uninitializedFiber,
  30708. containerInfo: containerInfo,
  30709. pendingChildren: null,
  30710. earliestPendingTime: NoWork,
  30711. latestPendingTime: NoWork,
  30712. earliestSuspendedTime: NoWork,
  30713. latestSuspendedTime: NoWork,
  30714. latestPingedTime: NoWork,
  30715. didError: false,
  30716. pendingCommitExpirationTime: NoWork,
  30717. finishedWork: null,
  30718. timeoutHandle: noTimeout,
  30719. context: null,
  30720. pendingContext: null,
  30721. hydrate: hydrate,
  30722. nextExpirationTimeToWorkOn: NoWork,
  30723. expirationTime: NoWork,
  30724. firstBatch: null,
  30725. nextScheduledRoot: null,
  30726. interactionThreadID: tracing.unstable_getThreadID(),
  30727. memoizedInteractions: new Set(),
  30728. pendingInteractionMap: new Map()
  30729. };
  30730. } else {
  30731. root = {
  30732. current: uninitializedFiber,
  30733. containerInfo: containerInfo,
  30734. pendingChildren: null,
  30735. earliestPendingTime: NoWork,
  30736. latestPendingTime: NoWork,
  30737. earliestSuspendedTime: NoWork,
  30738. latestSuspendedTime: NoWork,
  30739. latestPingedTime: NoWork,
  30740. didError: false,
  30741. pendingCommitExpirationTime: NoWork,
  30742. finishedWork: null,
  30743. timeoutHandle: noTimeout,
  30744. context: null,
  30745. pendingContext: null,
  30746. hydrate: hydrate,
  30747. nextExpirationTimeToWorkOn: NoWork,
  30748. expirationTime: NoWork,
  30749. firstBatch: null,
  30750. nextScheduledRoot: null
  30751. };
  30752. }
  30753. uninitializedFiber.stateNode = root;
  30754. // The reason for the way the Flow types are structured in this file,
  30755. // Is to avoid needing :any casts everywhere interaction tracing fields are used.
  30756. // Unfortunately that requires an :any cast for non-interaction tracing capable builds.
  30757. // $FlowFixMe Remove this :any cast and replace it with something better.
  30758. return root;
  30759. }
  30760. /**
  30761. * Forked from fbjs/warning:
  30762. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  30763. *
  30764. * Only change is we use console.warn instead of console.error,
  30765. * and do nothing when 'console' is not supported.
  30766. * This really simplifies the code.
  30767. * ---
  30768. * Similar to invariant but only logs a warning if the condition is not met.
  30769. * This can be used to log issues in development environments in critical
  30770. * paths. Removing the logging code for production environments will keep the
  30771. * same logic and follow the same code paths.
  30772. */
  30773. var lowPriorityWarning = function () {};
  30774. {
  30775. var printWarning = function (format) {
  30776. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  30777. args[_key - 1] = arguments[_key];
  30778. }
  30779. var argIndex = 0;
  30780. var message = 'Warning: ' + format.replace(/%s/g, function () {
  30781. return args[argIndex++];
  30782. });
  30783. if (typeof console !== 'undefined') {
  30784. console.warn(message);
  30785. }
  30786. try {
  30787. // --- Welcome to debugging React ---
  30788. // This error was thrown as a convenience so that you can use this stack
  30789. // to find the callsite that caused this warning to fire.
  30790. throw new Error(message);
  30791. } catch (x) {}
  30792. };
  30793. lowPriorityWarning = function (condition, format) {
  30794. if (format === undefined) {
  30795. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  30796. }
  30797. if (!condition) {
  30798. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  30799. args[_key2 - 2] = arguments[_key2];
  30800. }
  30801. printWarning.apply(undefined, [format].concat(args));
  30802. }
  30803. };
  30804. }
  30805. var lowPriorityWarning$1 = lowPriorityWarning;
  30806. var ReactStrictModeWarnings = {
  30807. discardPendingWarnings: function () {},
  30808. flushPendingDeprecationWarnings: function () {},
  30809. flushPendingUnsafeLifecycleWarnings: function () {},
  30810. recordDeprecationWarnings: function (fiber, instance) {},
  30811. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  30812. recordLegacyContextWarning: function (fiber, instance) {},
  30813. flushLegacyContextWarning: function () {}
  30814. };
  30815. {
  30816. var LIFECYCLE_SUGGESTIONS = {
  30817. UNSAFE_componentWillMount: 'componentDidMount',
  30818. UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',
  30819. UNSAFE_componentWillUpdate: 'componentDidUpdate'
  30820. };
  30821. var pendingComponentWillMountWarnings = [];
  30822. var pendingComponentWillReceivePropsWarnings = [];
  30823. var pendingComponentWillUpdateWarnings = [];
  30824. var pendingUnsafeLifecycleWarnings = new Map();
  30825. var pendingLegacyContextWarning = new Map();
  30826. // Tracks components we have already warned about.
  30827. var didWarnAboutDeprecatedLifecycles = new Set();
  30828. var didWarnAboutUnsafeLifecycles = new Set();
  30829. var didWarnAboutLegacyContext = new Set();
  30830. var setToSortedString = function (set) {
  30831. var array = [];
  30832. set.forEach(function (value) {
  30833. array.push(value);
  30834. });
  30835. return array.sort().join(', ');
  30836. };
  30837. ReactStrictModeWarnings.discardPendingWarnings = function () {
  30838. pendingComponentWillMountWarnings = [];
  30839. pendingComponentWillReceivePropsWarnings = [];
  30840. pendingComponentWillUpdateWarnings = [];
  30841. pendingUnsafeLifecycleWarnings = new Map();
  30842. pendingLegacyContextWarning = new Map();
  30843. };
  30844. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  30845. pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {
  30846. var lifecyclesWarningMesages = [];
  30847. Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {
  30848. var lifecycleWarnings = lifecycleWarningsMap[lifecycle];
  30849. if (lifecycleWarnings.length > 0) {
  30850. var componentNames = new Set();
  30851. lifecycleWarnings.forEach(function (fiber) {
  30852. componentNames.add(getComponentName(fiber.type) || 'Component');
  30853. didWarnAboutUnsafeLifecycles.add(fiber.type);
  30854. });
  30855. var formatted = lifecycle.replace('UNSAFE_', '');
  30856. var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
  30857. var sortedComponentNames = setToSortedString(componentNames);
  30858. lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));
  30859. }
  30860. });
  30861. if (lifecyclesWarningMesages.length > 0) {
  30862. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  30863. warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMesages.join('\n\n'));
  30864. }
  30865. });
  30866. pendingUnsafeLifecycleWarnings = new Map();
  30867. };
  30868. var findStrictRoot = function (fiber) {
  30869. var maybeStrictRoot = null;
  30870. var node = fiber;
  30871. while (node !== null) {
  30872. if (node.mode & StrictMode) {
  30873. maybeStrictRoot = node;
  30874. }
  30875. node = node.return;
  30876. }
  30877. return maybeStrictRoot;
  30878. };
  30879. ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {
  30880. if (pendingComponentWillMountWarnings.length > 0) {
  30881. var uniqueNames = new Set();
  30882. pendingComponentWillMountWarnings.forEach(function (fiber) {
  30883. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  30884. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  30885. });
  30886. var sortedNames = setToSortedString(uniqueNames);
  30887. lowPriorityWarning$1(false, 'componentWillMount is deprecated and will be removed in the next major version. ' + 'Use componentDidMount instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillMount.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', sortedNames);
  30888. pendingComponentWillMountWarnings = [];
  30889. }
  30890. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  30891. var _uniqueNames = new Set();
  30892. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  30893. _uniqueNames.add(getComponentName(fiber.type) || 'Component');
  30894. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  30895. });
  30896. var _sortedNames = setToSortedString(_uniqueNames);
  30897. lowPriorityWarning$1(false, 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' + 'Use static getDerivedStateFromProps instead.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames);
  30898. pendingComponentWillReceivePropsWarnings = [];
  30899. }
  30900. if (pendingComponentWillUpdateWarnings.length > 0) {
  30901. var _uniqueNames2 = new Set();
  30902. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  30903. _uniqueNames2.add(getComponentName(fiber.type) || 'Component');
  30904. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  30905. });
  30906. var _sortedNames2 = setToSortedString(_uniqueNames2);
  30907. lowPriorityWarning$1(false, 'componentWillUpdate is deprecated and will be removed in the next major version. ' + 'Use componentDidUpdate instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillUpdate.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames2);
  30908. pendingComponentWillUpdateWarnings = [];
  30909. }
  30910. };
  30911. ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {
  30912. // Dedup strategy: Warn once per component.
  30913. if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {
  30914. return;
  30915. }
  30916. // Don't warn about react-lifecycles-compat polyfilled components.
  30917. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  30918. pendingComponentWillMountWarnings.push(fiber);
  30919. }
  30920. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  30921. pendingComponentWillReceivePropsWarnings.push(fiber);
  30922. }
  30923. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  30924. pendingComponentWillUpdateWarnings.push(fiber);
  30925. }
  30926. };
  30927. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  30928. var strictRoot = findStrictRoot(fiber);
  30929. if (strictRoot === null) {
  30930. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  30931. return;
  30932. }
  30933. // Dedup strategy: Warn once per component.
  30934. // This is difficult to track any other way since component names
  30935. // are often vague and are likely to collide between 3rd party libraries.
  30936. // An expand property is probably okay to use here since it's DEV-only,
  30937. // and will only be set in the event of serious warnings.
  30938. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  30939. return;
  30940. }
  30941. var warningsForRoot = void 0;
  30942. if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {
  30943. warningsForRoot = {
  30944. UNSAFE_componentWillMount: [],
  30945. UNSAFE_componentWillReceiveProps: [],
  30946. UNSAFE_componentWillUpdate: []
  30947. };
  30948. pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);
  30949. } else {
  30950. warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);
  30951. }
  30952. var unsafeLifecycles = [];
  30953. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {
  30954. unsafeLifecycles.push('UNSAFE_componentWillMount');
  30955. }
  30956. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  30957. unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');
  30958. }
  30959. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {
  30960. unsafeLifecycles.push('UNSAFE_componentWillUpdate');
  30961. }
  30962. if (unsafeLifecycles.length > 0) {
  30963. unsafeLifecycles.forEach(function (lifecycle) {
  30964. warningsForRoot[lifecycle].push(fiber);
  30965. });
  30966. }
  30967. };
  30968. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  30969. var strictRoot = findStrictRoot(fiber);
  30970. if (strictRoot === null) {
  30971. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  30972. return;
  30973. }
  30974. // Dedup strategy: Warn once per component.
  30975. if (didWarnAboutLegacyContext.has(fiber.type)) {
  30976. return;
  30977. }
  30978. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  30979. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  30980. if (warningsForRoot === undefined) {
  30981. warningsForRoot = [];
  30982. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  30983. }
  30984. warningsForRoot.push(fiber);
  30985. }
  30986. };
  30987. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  30988. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  30989. var uniqueNames = new Set();
  30990. fiberArray.forEach(function (fiber) {
  30991. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  30992. didWarnAboutLegacyContext.add(fiber.type);
  30993. });
  30994. var sortedNames = setToSortedString(uniqueNames);
  30995. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  30996. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, sortedNames);
  30997. });
  30998. };
  30999. }
  31000. // This lets us hook into Fiber to debug what it's doing.
  31001. // See https://github.com/facebook/react/pull/8033.
  31002. // This is not part of the public API, not even for React DevTools.
  31003. // You may only inject a debugTool if you work on React Fiber itself.
  31004. var ReactFiberInstrumentation = {
  31005. debugTool: null
  31006. };
  31007. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  31008. // TODO: Offscreen updates should never suspend. However, a promise that
  31009. // suspended inside an offscreen subtree should be able to ping at the priority
  31010. // of the outer render.
  31011. function markPendingPriorityLevel(root, expirationTime) {
  31012. // If there's a gap between completing a failed root and retrying it,
  31013. // additional updates may be scheduled. Clear `didError`, in case the update
  31014. // is sufficient to fix the error.
  31015. root.didError = false;
  31016. // Update the latest and earliest pending times
  31017. var earliestPendingTime = root.earliestPendingTime;
  31018. if (earliestPendingTime === NoWork) {
  31019. // No other pending updates.
  31020. root.earliestPendingTime = root.latestPendingTime = expirationTime;
  31021. } else {
  31022. if (earliestPendingTime < expirationTime) {
  31023. // This is the earliest pending update.
  31024. root.earliestPendingTime = expirationTime;
  31025. } else {
  31026. var latestPendingTime = root.latestPendingTime;
  31027. if (latestPendingTime > expirationTime) {
  31028. // This is the latest pending update
  31029. root.latestPendingTime = expirationTime;
  31030. }
  31031. }
  31032. }
  31033. findNextExpirationTimeToWorkOn(expirationTime, root);
  31034. }
  31035. function markCommittedPriorityLevels(root, earliestRemainingTime) {
  31036. root.didError = false;
  31037. if (earliestRemainingTime === NoWork) {
  31038. // Fast path. There's no remaining work. Clear everything.
  31039. root.earliestPendingTime = NoWork;
  31040. root.latestPendingTime = NoWork;
  31041. root.earliestSuspendedTime = NoWork;
  31042. root.latestSuspendedTime = NoWork;
  31043. root.latestPingedTime = NoWork;
  31044. findNextExpirationTimeToWorkOn(NoWork, root);
  31045. return;
  31046. }
  31047. // Let's see if the previous latest known pending level was just flushed.
  31048. var latestPendingTime = root.latestPendingTime;
  31049. if (latestPendingTime !== NoWork) {
  31050. if (latestPendingTime > earliestRemainingTime) {
  31051. // We've flushed all the known pending levels.
  31052. root.earliestPendingTime = root.latestPendingTime = NoWork;
  31053. } else {
  31054. var earliestPendingTime = root.earliestPendingTime;
  31055. if (earliestPendingTime > earliestRemainingTime) {
  31056. // We've flushed the earliest known pending level. Set this to the
  31057. // latest pending time.
  31058. root.earliestPendingTime = root.latestPendingTime;
  31059. }
  31060. }
  31061. }
  31062. // Now let's handle the earliest remaining level in the whole tree. We need to
  31063. // decide whether to treat it as a pending level or as suspended. Check
  31064. // it falls within the range of known suspended levels.
  31065. var earliestSuspendedTime = root.earliestSuspendedTime;
  31066. if (earliestSuspendedTime === NoWork) {
  31067. // There's no suspended work. Treat the earliest remaining level as a
  31068. // pending level.
  31069. markPendingPriorityLevel(root, earliestRemainingTime);
  31070. findNextExpirationTimeToWorkOn(NoWork, root);
  31071. return;
  31072. }
  31073. var latestSuspendedTime = root.latestSuspendedTime;
  31074. if (earliestRemainingTime < latestSuspendedTime) {
  31075. // The earliest remaining level is later than all the suspended work. That
  31076. // means we've flushed all the suspended work.
  31077. root.earliestSuspendedTime = NoWork;
  31078. root.latestSuspendedTime = NoWork;
  31079. root.latestPingedTime = NoWork;
  31080. // There's no suspended work. Treat the earliest remaining level as a
  31081. // pending level.
  31082. markPendingPriorityLevel(root, earliestRemainingTime);
  31083. findNextExpirationTimeToWorkOn(NoWork, root);
  31084. return;
  31085. }
  31086. if (earliestRemainingTime > earliestSuspendedTime) {
  31087. // The earliest remaining time is earlier than all the suspended work.
  31088. // Treat it as a pending update.
  31089. markPendingPriorityLevel(root, earliestRemainingTime);
  31090. findNextExpirationTimeToWorkOn(NoWork, root);
  31091. return;
  31092. }
  31093. // The earliest remaining time falls within the range of known suspended
  31094. // levels. We should treat this as suspended work.
  31095. findNextExpirationTimeToWorkOn(NoWork, root);
  31096. }
  31097. function hasLowerPriorityWork(root, erroredExpirationTime) {
  31098. var latestPendingTime = root.latestPendingTime;
  31099. var latestSuspendedTime = root.latestSuspendedTime;
  31100. var latestPingedTime = root.latestPingedTime;
  31101. return latestPendingTime !== NoWork && latestPendingTime < erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime < erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime < erroredExpirationTime;
  31102. }
  31103. function isPriorityLevelSuspended(root, expirationTime) {
  31104. var earliestSuspendedTime = root.earliestSuspendedTime;
  31105. var latestSuspendedTime = root.latestSuspendedTime;
  31106. return earliestSuspendedTime !== NoWork && expirationTime <= earliestSuspendedTime && expirationTime >= latestSuspendedTime;
  31107. }
  31108. function markSuspendedPriorityLevel(root, suspendedTime) {
  31109. root.didError = false;
  31110. clearPing(root, suspendedTime);
  31111. // First, check the known pending levels and update them if needed.
  31112. var earliestPendingTime = root.earliestPendingTime;
  31113. var latestPendingTime = root.latestPendingTime;
  31114. if (earliestPendingTime === suspendedTime) {
  31115. if (latestPendingTime === suspendedTime) {
  31116. // Both known pending levels were suspended. Clear them.
  31117. root.earliestPendingTime = root.latestPendingTime = NoWork;
  31118. } else {
  31119. // The earliest pending level was suspended. Clear by setting it to the
  31120. // latest pending level.
  31121. root.earliestPendingTime = latestPendingTime;
  31122. }
  31123. } else if (latestPendingTime === suspendedTime) {
  31124. // The latest pending level was suspended. Clear by setting it to the
  31125. // latest pending level.
  31126. root.latestPendingTime = earliestPendingTime;
  31127. }
  31128. // Finally, update the known suspended levels.
  31129. var earliestSuspendedTime = root.earliestSuspendedTime;
  31130. var latestSuspendedTime = root.latestSuspendedTime;
  31131. if (earliestSuspendedTime === NoWork) {
  31132. // No other suspended levels.
  31133. root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;
  31134. } else {
  31135. if (earliestSuspendedTime < suspendedTime) {
  31136. // This is the earliest suspended level.
  31137. root.earliestSuspendedTime = suspendedTime;
  31138. } else if (latestSuspendedTime > suspendedTime) {
  31139. // This is the latest suspended level
  31140. root.latestSuspendedTime = suspendedTime;
  31141. }
  31142. }
  31143. findNextExpirationTimeToWorkOn(suspendedTime, root);
  31144. }
  31145. function markPingedPriorityLevel(root, pingedTime) {
  31146. root.didError = false;
  31147. // TODO: When we add back resuming, we need to ensure the progressed work
  31148. // is thrown out and not reused during the restarted render. One way to
  31149. // invalidate the progressed work is to restart at expirationTime + 1.
  31150. var latestPingedTime = root.latestPingedTime;
  31151. if (latestPingedTime === NoWork || latestPingedTime > pingedTime) {
  31152. root.latestPingedTime = pingedTime;
  31153. }
  31154. findNextExpirationTimeToWorkOn(pingedTime, root);
  31155. }
  31156. function clearPing(root, completedTime) {
  31157. // TODO: Track whether the root was pinged during the render phase. If so,
  31158. // we need to make sure we don't lose track of it.
  31159. var latestPingedTime = root.latestPingedTime;
  31160. if (latestPingedTime !== NoWork && latestPingedTime >= completedTime) {
  31161. root.latestPingedTime = NoWork;
  31162. }
  31163. }
  31164. function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
  31165. var earliestExpirationTime = renderExpirationTime;
  31166. var earliestPendingTime = root.earliestPendingTime;
  31167. var earliestSuspendedTime = root.earliestSuspendedTime;
  31168. if (earliestPendingTime > earliestExpirationTime) {
  31169. earliestExpirationTime = earliestPendingTime;
  31170. }
  31171. if (earliestSuspendedTime > earliestExpirationTime) {
  31172. earliestExpirationTime = earliestSuspendedTime;
  31173. }
  31174. return earliestExpirationTime;
  31175. }
  31176. function didExpireAtExpirationTime(root, currentTime) {
  31177. var expirationTime = root.expirationTime;
  31178. if (expirationTime !== NoWork && currentTime <= expirationTime) {
  31179. // The root has expired. Flush all work up to the current time.
  31180. root.nextExpirationTimeToWorkOn = currentTime;
  31181. }
  31182. }
  31183. function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
  31184. var earliestSuspendedTime = root.earliestSuspendedTime;
  31185. var latestSuspendedTime = root.latestSuspendedTime;
  31186. var earliestPendingTime = root.earliestPendingTime;
  31187. var latestPingedTime = root.latestPingedTime;
  31188. // Work on the earliest pending time. Failing that, work on the latest
  31189. // pinged time.
  31190. var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;
  31191. // If there is no pending or pinged work, check if there's suspended work
  31192. // that's lower priority than what we just completed.
  31193. if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime < completedExpirationTime)) {
  31194. // The lowest priority suspended work is the work most likely to be
  31195. // committed next. Let's start rendering it again, so that if it times out,
  31196. // it's ready to commit.
  31197. nextExpirationTimeToWorkOn = latestSuspendedTime;
  31198. }
  31199. var expirationTime = nextExpirationTimeToWorkOn;
  31200. if (expirationTime !== NoWork && earliestSuspendedTime > expirationTime) {
  31201. // Expire using the earliest known expiration time.
  31202. expirationTime = earliestSuspendedTime;
  31203. }
  31204. root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;
  31205. root.expirationTime = expirationTime;
  31206. }
  31207. // UpdateQueue is a linked list of prioritized updates.
  31208. //
  31209. // Like fibers, update queues come in pairs: a current queue, which represents
  31210. // the visible state of the screen, and a work-in-progress queue, which is
  31211. // can be mutated and processed asynchronously before it is committed — a form
  31212. // of double buffering. If a work-in-progress render is discarded before
  31213. // finishing, we create a new work-in-progress by cloning the current queue.
  31214. //
  31215. // Both queues share a persistent, singly-linked list structure. To schedule an
  31216. // update, we append it to the end of both queues. Each queue maintains a
  31217. // pointer to first update in the persistent list that hasn't been processed.
  31218. // The work-in-progress pointer always has a position equal to or greater than
  31219. // the current queue, since we always work on that one. The current queue's
  31220. // pointer is only updated during the commit phase, when we swap in the
  31221. // work-in-progress.
  31222. //
  31223. // For example:
  31224. //
  31225. // Current pointer: A - B - C - D - E - F
  31226. // Work-in-progress pointer: D - E - F
  31227. // ^
  31228. // The work-in-progress queue has
  31229. // processed more updates than current.
  31230. //
  31231. // The reason we append to both queues is because otherwise we might drop
  31232. // updates without ever processing them. For example, if we only add updates to
  31233. // the work-in-progress queue, some updates could be lost whenever a work-in
  31234. // -progress render restarts by cloning from current. Similarly, if we only add
  31235. // updates to the current queue, the updates will be lost whenever an already
  31236. // in-progress queue commits and swaps with the current queue. However, by
  31237. // adding to both queues, we guarantee that the update will be part of the next
  31238. // work-in-progress. (And because the work-in-progress queue becomes the
  31239. // current queue once it commits, there's no danger of applying the same
  31240. // update twice.)
  31241. //
  31242. // Prioritization
  31243. // --------------
  31244. //
  31245. // Updates are not sorted by priority, but by insertion; new updates are always
  31246. // appended to the end of the list.
  31247. //
  31248. // The priority is still important, though. When processing the update queue
  31249. // during the render phase, only the updates with sufficient priority are
  31250. // included in the result. If we skip an update because it has insufficient
  31251. // priority, it remains in the queue to be processed later, during a lower
  31252. // priority render. Crucially, all updates subsequent to a skipped update also
  31253. // remain in the queue *regardless of their priority*. That means high priority
  31254. // updates are sometimes processed twice, at two separate priorities. We also
  31255. // keep track of a base state, that represents the state before the first
  31256. // update in the queue is applied.
  31257. //
  31258. // For example:
  31259. //
  31260. // Given a base state of '', and the following queue of updates
  31261. //
  31262. // A1 - B2 - C1 - D2
  31263. //
  31264. // where the number indicates the priority, and the update is applied to the
  31265. // previous state by appending a letter, React will process these updates as
  31266. // two separate renders, one per distinct priority level:
  31267. //
  31268. // First render, at priority 1:
  31269. // Base state: ''
  31270. // Updates: [A1, C1]
  31271. // Result state: 'AC'
  31272. //
  31273. // Second render, at priority 2:
  31274. // Base state: 'A' <- The base state does not include C1,
  31275. // because B2 was skipped.
  31276. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  31277. // Result state: 'ABCD'
  31278. //
  31279. // Because we process updates in insertion order, and rebase high priority
  31280. // updates when preceding updates are skipped, the final result is deterministic
  31281. // regardless of priority. Intermediate state may vary according to system
  31282. // resources, but the final state is always the same.
  31283. var UpdateState = 0;
  31284. var ReplaceState = 1;
  31285. var ForceUpdate = 2;
  31286. var CaptureUpdate = 3;
  31287. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  31288. // It should only be read right after calling `processUpdateQueue`, via
  31289. // `checkHasForceUpdateAfterProcessing`.
  31290. var hasForceUpdate = false;
  31291. var didWarnUpdateInsideUpdate = void 0;
  31292. var currentlyProcessingQueue = void 0;
  31293. var resetCurrentlyProcessingQueue = void 0;
  31294. {
  31295. didWarnUpdateInsideUpdate = false;
  31296. currentlyProcessingQueue = null;
  31297. resetCurrentlyProcessingQueue = function () {
  31298. currentlyProcessingQueue = null;
  31299. };
  31300. }
  31301. function createUpdateQueue(baseState) {
  31302. var queue = {
  31303. baseState: baseState,
  31304. firstUpdate: null,
  31305. lastUpdate: null,
  31306. firstCapturedUpdate: null,
  31307. lastCapturedUpdate: null,
  31308. firstEffect: null,
  31309. lastEffect: null,
  31310. firstCapturedEffect: null,
  31311. lastCapturedEffect: null
  31312. };
  31313. return queue;
  31314. }
  31315. function cloneUpdateQueue(currentQueue) {
  31316. var queue = {
  31317. baseState: currentQueue.baseState,
  31318. firstUpdate: currentQueue.firstUpdate,
  31319. lastUpdate: currentQueue.lastUpdate,
  31320. // TODO: With resuming, if we bail out and resuse the child tree, we should
  31321. // keep these effects.
  31322. firstCapturedUpdate: null,
  31323. lastCapturedUpdate: null,
  31324. firstEffect: null,
  31325. lastEffect: null,
  31326. firstCapturedEffect: null,
  31327. lastCapturedEffect: null
  31328. };
  31329. return queue;
  31330. }
  31331. function createUpdate(expirationTime) {
  31332. return {
  31333. expirationTime: expirationTime,
  31334. tag: UpdateState,
  31335. payload: null,
  31336. callback: null,
  31337. next: null,
  31338. nextEffect: null
  31339. };
  31340. }
  31341. function appendUpdateToQueue(queue, update) {
  31342. // Append the update to the end of the list.
  31343. if (queue.lastUpdate === null) {
  31344. // Queue is empty
  31345. queue.firstUpdate = queue.lastUpdate = update;
  31346. } else {
  31347. queue.lastUpdate.next = update;
  31348. queue.lastUpdate = update;
  31349. }
  31350. }
  31351. function enqueueUpdate(fiber, update) {
  31352. // Update queues are created lazily.
  31353. var alternate = fiber.alternate;
  31354. var queue1 = void 0;
  31355. var queue2 = void 0;
  31356. if (alternate === null) {
  31357. // There's only one fiber.
  31358. queue1 = fiber.updateQueue;
  31359. queue2 = null;
  31360. if (queue1 === null) {
  31361. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  31362. }
  31363. } else {
  31364. // There are two owners.
  31365. queue1 = fiber.updateQueue;
  31366. queue2 = alternate.updateQueue;
  31367. if (queue1 === null) {
  31368. if (queue2 === null) {
  31369. // Neither fiber has an update queue. Create new ones.
  31370. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  31371. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  31372. } else {
  31373. // Only one fiber has an update queue. Clone to create a new one.
  31374. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  31375. }
  31376. } else {
  31377. if (queue2 === null) {
  31378. // Only one fiber has an update queue. Clone to create a new one.
  31379. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  31380. } else {
  31381. // Both owners have an update queue.
  31382. }
  31383. }
  31384. }
  31385. if (queue2 === null || queue1 === queue2) {
  31386. // There's only a single queue.
  31387. appendUpdateToQueue(queue1, update);
  31388. } else {
  31389. // There are two queues. We need to append the update to both queues,
  31390. // while accounting for the persistent structure of the list — we don't
  31391. // want the same update to be added multiple times.
  31392. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  31393. // One of the queues is not empty. We must add the update to both queues.
  31394. appendUpdateToQueue(queue1, update);
  31395. appendUpdateToQueue(queue2, update);
  31396. } else {
  31397. // Both queues are non-empty. The last update is the same in both lists,
  31398. // because of structural sharing. So, only append to one of the lists.
  31399. appendUpdateToQueue(queue1, update);
  31400. // But we still need to update the `lastUpdate` pointer of queue2.
  31401. queue2.lastUpdate = update;
  31402. }
  31403. }
  31404. {
  31405. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  31406. warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
  31407. didWarnUpdateInsideUpdate = true;
  31408. }
  31409. }
  31410. }
  31411. function enqueueCapturedUpdate(workInProgress, update) {
  31412. // Captured updates go into a separate list, and only on the work-in-
  31413. // progress queue.
  31414. var workInProgressQueue = workInProgress.updateQueue;
  31415. if (workInProgressQueue === null) {
  31416. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  31417. } else {
  31418. // TODO: I put this here rather than createWorkInProgress so that we don't
  31419. // clone the queue unnecessarily. There's probably a better way to
  31420. // structure this.
  31421. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  31422. }
  31423. // Append the update to the end of the list.
  31424. if (workInProgressQueue.lastCapturedUpdate === null) {
  31425. // This is the first render phase update
  31426. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  31427. } else {
  31428. workInProgressQueue.lastCapturedUpdate.next = update;
  31429. workInProgressQueue.lastCapturedUpdate = update;
  31430. }
  31431. }
  31432. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  31433. var current = workInProgress.alternate;
  31434. if (current !== null) {
  31435. // If the work-in-progress queue is equal to the current queue,
  31436. // we need to clone it first.
  31437. if (queue === current.updateQueue) {
  31438. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  31439. }
  31440. }
  31441. return queue;
  31442. }
  31443. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  31444. switch (update.tag) {
  31445. case ReplaceState:
  31446. {
  31447. var _payload = update.payload;
  31448. if (typeof _payload === 'function') {
  31449. // Updater function
  31450. {
  31451. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  31452. _payload.call(instance, prevState, nextProps);
  31453. }
  31454. }
  31455. return _payload.call(instance, prevState, nextProps);
  31456. }
  31457. // State object
  31458. return _payload;
  31459. }
  31460. case CaptureUpdate:
  31461. {
  31462. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  31463. }
  31464. // Intentional fallthrough
  31465. case UpdateState:
  31466. {
  31467. var _payload2 = update.payload;
  31468. var partialState = void 0;
  31469. if (typeof _payload2 === 'function') {
  31470. // Updater function
  31471. {
  31472. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  31473. _payload2.call(instance, prevState, nextProps);
  31474. }
  31475. }
  31476. partialState = _payload2.call(instance, prevState, nextProps);
  31477. } else {
  31478. // Partial state object
  31479. partialState = _payload2;
  31480. }
  31481. if (partialState === null || partialState === undefined) {
  31482. // Null and undefined are treated as no-ops.
  31483. return prevState;
  31484. }
  31485. // Merge the partial state and the previous state.
  31486. return _assign({}, prevState, partialState);
  31487. }
  31488. case ForceUpdate:
  31489. {
  31490. hasForceUpdate = true;
  31491. return prevState;
  31492. }
  31493. }
  31494. return prevState;
  31495. }
  31496. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  31497. hasForceUpdate = false;
  31498. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  31499. {
  31500. currentlyProcessingQueue = queue;
  31501. }
  31502. // These values may change as we process the queue.
  31503. var newBaseState = queue.baseState;
  31504. var newFirstUpdate = null;
  31505. var newExpirationTime = NoWork;
  31506. // Iterate through the list of updates to compute the result.
  31507. var update = queue.firstUpdate;
  31508. var resultState = newBaseState;
  31509. while (update !== null) {
  31510. var updateExpirationTime = update.expirationTime;
  31511. if (updateExpirationTime < renderExpirationTime) {
  31512. // This update does not have sufficient priority. Skip it.
  31513. if (newFirstUpdate === null) {
  31514. // This is the first skipped update. It will be the first update in
  31515. // the new list.
  31516. newFirstUpdate = update;
  31517. // Since this is the first update that was skipped, the current result
  31518. // is the new base state.
  31519. newBaseState = resultState;
  31520. }
  31521. // Since this update will remain in the list, update the remaining
  31522. // expiration time.
  31523. if (newExpirationTime < updateExpirationTime) {
  31524. newExpirationTime = updateExpirationTime;
  31525. }
  31526. } else {
  31527. // This update does have sufficient priority. Process it and compute
  31528. // a new result.
  31529. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  31530. var _callback = update.callback;
  31531. if (_callback !== null) {
  31532. workInProgress.effectTag |= Callback;
  31533. // Set this to null, in case it was mutated during an aborted render.
  31534. update.nextEffect = null;
  31535. if (queue.lastEffect === null) {
  31536. queue.firstEffect = queue.lastEffect = update;
  31537. } else {
  31538. queue.lastEffect.nextEffect = update;
  31539. queue.lastEffect = update;
  31540. }
  31541. }
  31542. }
  31543. // Continue to the next update.
  31544. update = update.next;
  31545. }
  31546. // Separately, iterate though the list of captured updates.
  31547. var newFirstCapturedUpdate = null;
  31548. update = queue.firstCapturedUpdate;
  31549. while (update !== null) {
  31550. var _updateExpirationTime = update.expirationTime;
  31551. if (_updateExpirationTime < renderExpirationTime) {
  31552. // This update does not have sufficient priority. Skip it.
  31553. if (newFirstCapturedUpdate === null) {
  31554. // This is the first skipped captured update. It will be the first
  31555. // update in the new list.
  31556. newFirstCapturedUpdate = update;
  31557. // If this is the first update that was skipped, the current result is
  31558. // the new base state.
  31559. if (newFirstUpdate === null) {
  31560. newBaseState = resultState;
  31561. }
  31562. }
  31563. // Since this update will remain in the list, update the remaining
  31564. // expiration time.
  31565. if (newExpirationTime < _updateExpirationTime) {
  31566. newExpirationTime = _updateExpirationTime;
  31567. }
  31568. } else {
  31569. // This update does have sufficient priority. Process it and compute
  31570. // a new result.
  31571. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  31572. var _callback2 = update.callback;
  31573. if (_callback2 !== null) {
  31574. workInProgress.effectTag |= Callback;
  31575. // Set this to null, in case it was mutated during an aborted render.
  31576. update.nextEffect = null;
  31577. if (queue.lastCapturedEffect === null) {
  31578. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  31579. } else {
  31580. queue.lastCapturedEffect.nextEffect = update;
  31581. queue.lastCapturedEffect = update;
  31582. }
  31583. }
  31584. }
  31585. update = update.next;
  31586. }
  31587. if (newFirstUpdate === null) {
  31588. queue.lastUpdate = null;
  31589. }
  31590. if (newFirstCapturedUpdate === null) {
  31591. queue.lastCapturedUpdate = null;
  31592. } else {
  31593. workInProgress.effectTag |= Callback;
  31594. }
  31595. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  31596. // We processed every update, without skipping. That means the new base
  31597. // state is the same as the result state.
  31598. newBaseState = resultState;
  31599. }
  31600. queue.baseState = newBaseState;
  31601. queue.firstUpdate = newFirstUpdate;
  31602. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  31603. // Set the remaining expiration time to be whatever is remaining in the queue.
  31604. // This should be fine because the only two other things that contribute to
  31605. // expiration time are props and context. We're already in the middle of the
  31606. // begin phase by the time we start processing the queue, so we've already
  31607. // dealt with the props. Context in components that specify
  31608. // shouldComponentUpdate is tricky; but we'll have to account for
  31609. // that regardless.
  31610. workInProgress.expirationTime = newExpirationTime;
  31611. workInProgress.memoizedState = resultState;
  31612. {
  31613. currentlyProcessingQueue = null;
  31614. }
  31615. }
  31616. function callCallback(callback, context) {
  31617. !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;
  31618. callback.call(context);
  31619. }
  31620. function resetHasForceUpdateBeforeProcessing() {
  31621. hasForceUpdate = false;
  31622. }
  31623. function checkHasForceUpdateAfterProcessing() {
  31624. return hasForceUpdate;
  31625. }
  31626. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  31627. // If the finished render included captured updates, and there are still
  31628. // lower priority updates left over, we need to keep the captured updates
  31629. // in the queue so that they are rebased and not dropped once we process the
  31630. // queue again at the lower priority.
  31631. if (finishedQueue.firstCapturedUpdate !== null) {
  31632. // Join the captured update list to the end of the normal list.
  31633. if (finishedQueue.lastUpdate !== null) {
  31634. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  31635. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  31636. }
  31637. // Clear the list of captured updates.
  31638. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  31639. }
  31640. // Commit the effects
  31641. commitUpdateEffects(finishedQueue.firstEffect, instance);
  31642. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  31643. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  31644. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  31645. }
  31646. function commitUpdateEffects(effect, instance) {
  31647. while (effect !== null) {
  31648. var _callback3 = effect.callback;
  31649. if (_callback3 !== null) {
  31650. effect.callback = null;
  31651. callCallback(_callback3, instance);
  31652. }
  31653. effect = effect.nextEffect;
  31654. }
  31655. }
  31656. function createCapturedValue(value, source) {
  31657. // If the value is an error, call this function immediately after it is thrown
  31658. // so the stack is accurate.
  31659. return {
  31660. value: value,
  31661. source: source,
  31662. stack: getStackByFiberInDevAndProd(source)
  31663. };
  31664. }
  31665. var valueCursor = createCursor(null);
  31666. var rendererSigil = void 0;
  31667. {
  31668. // Use this to detect multiple renderers using the same context
  31669. rendererSigil = {};
  31670. }
  31671. var currentlyRenderingFiber = null;
  31672. var lastContextDependency = null;
  31673. var lastContextWithAllBitsObserved = null;
  31674. function resetContextDependences() {
  31675. // This is called right before React yields execution, to ensure `readContext`
  31676. // cannot be called outside the render phase.
  31677. currentlyRenderingFiber = null;
  31678. lastContextDependency = null;
  31679. lastContextWithAllBitsObserved = null;
  31680. }
  31681. function pushProvider(providerFiber, nextValue) {
  31682. var context = providerFiber.type._context;
  31683. if (isPrimaryRenderer) {
  31684. push(valueCursor, context._currentValue, providerFiber);
  31685. context._currentValue = nextValue;
  31686. {
  31687. !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  31688. context._currentRenderer = rendererSigil;
  31689. }
  31690. } else {
  31691. push(valueCursor, context._currentValue2, providerFiber);
  31692. context._currentValue2 = nextValue;
  31693. {
  31694. !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  31695. context._currentRenderer2 = rendererSigil;
  31696. }
  31697. }
  31698. }
  31699. function popProvider(providerFiber) {
  31700. var currentValue = valueCursor.current;
  31701. pop(valueCursor, providerFiber);
  31702. var context = providerFiber.type._context;
  31703. if (isPrimaryRenderer) {
  31704. context._currentValue = currentValue;
  31705. } else {
  31706. context._currentValue2 = currentValue;
  31707. }
  31708. }
  31709. function calculateChangedBits(context, newValue, oldValue) {
  31710. // Use Object.is to compare the new context value to the old value. Inlined
  31711. // Object.is polyfill.
  31712. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  31713. if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare
  31714. ) {
  31715. // No change
  31716. return 0;
  31717. } else {
  31718. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;
  31719. {
  31720. !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  31721. }
  31722. return changedBits | 0;
  31723. }
  31724. }
  31725. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  31726. var fiber = workInProgress.child;
  31727. if (fiber !== null) {
  31728. // Set the return pointer of the child to the work-in-progress fiber.
  31729. fiber.return = workInProgress;
  31730. }
  31731. while (fiber !== null) {
  31732. var nextFiber = void 0;
  31733. // Visit this fiber.
  31734. var dependency = fiber.firstContextDependency;
  31735. if (dependency !== null) {
  31736. do {
  31737. // Check if the context matches.
  31738. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  31739. // Match! Schedule an update on this fiber.
  31740. if (fiber.tag === ClassComponent) {
  31741. // Schedule a force update on the work-in-progress.
  31742. var update = createUpdate(renderExpirationTime);
  31743. update.tag = ForceUpdate;
  31744. // TODO: Because we don't have a work-in-progress, this will add the
  31745. // update to the current fiber, too, which means it will persist even if
  31746. // this render is thrown away. Since it's a race condition, not sure it's
  31747. // worth fixing.
  31748. enqueueUpdate(fiber, update);
  31749. }
  31750. if (fiber.expirationTime < renderExpirationTime) {
  31751. fiber.expirationTime = renderExpirationTime;
  31752. }
  31753. var alternate = fiber.alternate;
  31754. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  31755. alternate.expirationTime = renderExpirationTime;
  31756. }
  31757. // Update the child expiration time of all the ancestors, including
  31758. // the alternates.
  31759. var node = fiber.return;
  31760. while (node !== null) {
  31761. alternate = node.alternate;
  31762. if (node.childExpirationTime < renderExpirationTime) {
  31763. node.childExpirationTime = renderExpirationTime;
  31764. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  31765. alternate.childExpirationTime = renderExpirationTime;
  31766. }
  31767. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  31768. alternate.childExpirationTime = renderExpirationTime;
  31769. } else {
  31770. // Neither alternate was updated, which means the rest of the
  31771. // ancestor path already has sufficient priority.
  31772. break;
  31773. }
  31774. node = node.return;
  31775. }
  31776. }
  31777. nextFiber = fiber.child;
  31778. dependency = dependency.next;
  31779. } while (dependency !== null);
  31780. } else if (fiber.tag === ContextProvider) {
  31781. // Don't scan deeper if this is a matching provider
  31782. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  31783. } else {
  31784. // Traverse down.
  31785. nextFiber = fiber.child;
  31786. }
  31787. if (nextFiber !== null) {
  31788. // Set the return pointer of the child to the work-in-progress fiber.
  31789. nextFiber.return = fiber;
  31790. } else {
  31791. // No child. Traverse to next sibling.
  31792. nextFiber = fiber;
  31793. while (nextFiber !== null) {
  31794. if (nextFiber === workInProgress) {
  31795. // We're back to the root of this subtree. Exit.
  31796. nextFiber = null;
  31797. break;
  31798. }
  31799. var sibling = nextFiber.sibling;
  31800. if (sibling !== null) {
  31801. // Set the return pointer of the sibling to the work-in-progress fiber.
  31802. sibling.return = nextFiber.return;
  31803. nextFiber = sibling;
  31804. break;
  31805. }
  31806. // No more siblings. Traverse up.
  31807. nextFiber = nextFiber.return;
  31808. }
  31809. }
  31810. fiber = nextFiber;
  31811. }
  31812. }
  31813. function prepareToReadContext(workInProgress, renderExpirationTime) {
  31814. currentlyRenderingFiber = workInProgress;
  31815. lastContextDependency = null;
  31816. lastContextWithAllBitsObserved = null;
  31817. // Reset the work-in-progress list
  31818. workInProgress.firstContextDependency = null;
  31819. }
  31820. function readContext(context, observedBits) {
  31821. if (lastContextWithAllBitsObserved === context) {
  31822. // Nothing to do. We already observe everything in this context.
  31823. } else if (observedBits === false || observedBits === 0) {
  31824. // Do not observe any updates.
  31825. } else {
  31826. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  31827. if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {
  31828. // Observe all updates.
  31829. lastContextWithAllBitsObserved = context;
  31830. resolvedObservedBits = maxSigned31BitInt;
  31831. } else {
  31832. resolvedObservedBits = observedBits;
  31833. }
  31834. var contextItem = {
  31835. context: context,
  31836. observedBits: resolvedObservedBits,
  31837. next: null
  31838. };
  31839. if (lastContextDependency === null) {
  31840. !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
  31841. // This is the first dependency in the list
  31842. currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem;
  31843. } else {
  31844. // Append a new context item.
  31845. lastContextDependency = lastContextDependency.next = contextItem;
  31846. }
  31847. }
  31848. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  31849. }
  31850. var NoEffect$1 = /* */0;
  31851. var UnmountSnapshot = /* */2;
  31852. var UnmountMutation = /* */4;
  31853. var MountMutation = /* */8;
  31854. var UnmountLayout = /* */16;
  31855. var MountLayout = /* */32;
  31856. var MountPassive = /* */64;
  31857. var UnmountPassive = /* */128;
  31858. function areHookInputsEqual(arr1, arr2) {
  31859. // Don't bother comparing lengths in prod because these arrays should be
  31860. // passed inline.
  31861. {
  31862. !(arr1.length === arr2.length) ? warning$1(false, 'Detected a variable number of hook dependencies. The length of the ' + 'dependencies array should be constant between renders.\n\n' + 'Previous: %s\n' + 'Incoming: %s', arr1.join(', '), arr2.join(', ')) : void 0;
  31863. }
  31864. for (var i = 0; i < arr1.length; i++) {
  31865. // Inlined Object.is polyfill.
  31866. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  31867. var val1 = arr1[i];
  31868. var val2 = arr2[i];
  31869. if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare
  31870. ) {
  31871. continue;
  31872. }
  31873. return false;
  31874. }
  31875. return true;
  31876. }
  31877. // These are set right before calling the component.
  31878. var renderExpirationTime = NoWork;
  31879. // The work-in-progress fiber. I've named it differently to distinguish it from
  31880. // the work-in-progress hook.
  31881. var currentlyRenderingFiber$1 = null;
  31882. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  31883. // current hook list is the list that belongs to the current fiber. The
  31884. // work-in-progress hook list is a new list that will be added to the
  31885. // work-in-progress fiber.
  31886. var firstCurrentHook = null;
  31887. var currentHook = null;
  31888. var firstWorkInProgressHook = null;
  31889. var workInProgressHook = null;
  31890. var remainingExpirationTime = NoWork;
  31891. var componentUpdateQueue = null;
  31892. // Updates scheduled during render will trigger an immediate re-render at the
  31893. // end of the current pass. We can't store these updates on the normal queue,
  31894. // because if the work is aborted, they should be discarded. Because this is
  31895. // a relatively rare case, we also don't want to add an additional field to
  31896. // either the hook or queue object types. So we store them in a lazily create
  31897. // map of queue -> render-phase updates, which are discarded once the component
  31898. // completes without re-rendering.
  31899. // Whether the work-in-progress hook is a re-rendered hook
  31900. var isReRender = false;
  31901. // Whether an update was scheduled during the currently executing render pass.
  31902. var didScheduleRenderPhaseUpdate = false;
  31903. // Lazily created map of render-phase updates
  31904. var renderPhaseUpdates = null;
  31905. // Counter to prevent infinite loops.
  31906. var numberOfReRenders = 0;
  31907. var RE_RENDER_LIMIT = 25;
  31908. function resolveCurrentlyRenderingFiber() {
  31909. !(currentlyRenderingFiber$1 !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  31910. return currentlyRenderingFiber$1;
  31911. }
  31912. function prepareToUseHooks(current, workInProgress, nextRenderExpirationTime) {
  31913. if (!enableHooks) {
  31914. return;
  31915. }
  31916. renderExpirationTime = nextRenderExpirationTime;
  31917. currentlyRenderingFiber$1 = workInProgress;
  31918. firstCurrentHook = current !== null ? current.memoizedState : null;
  31919. // The following should have already been reset
  31920. // currentHook = null;
  31921. // workInProgressHook = null;
  31922. // remainingExpirationTime = NoWork;
  31923. // componentUpdateQueue = null;
  31924. // isReRender = false;
  31925. // didScheduleRenderPhaseUpdate = false;
  31926. // renderPhaseUpdates = null;
  31927. // numberOfReRenders = 0;
  31928. }
  31929. function finishHooks(Component, props, children, refOrContext) {
  31930. if (!enableHooks) {
  31931. return children;
  31932. }
  31933. // This must be called after every function component to prevent hooks from
  31934. // being used in classes.
  31935. while (didScheduleRenderPhaseUpdate) {
  31936. // Updates were scheduled during the render phase. They are stored in
  31937. // the `renderPhaseUpdates` map. Call the component again, reusing the
  31938. // work-in-progress hooks and applying the additional updates on top. Keep
  31939. // restarting until no more updates are scheduled.
  31940. didScheduleRenderPhaseUpdate = false;
  31941. numberOfReRenders += 1;
  31942. // Start over from the beginning of the list
  31943. currentHook = null;
  31944. workInProgressHook = null;
  31945. componentUpdateQueue = null;
  31946. children = Component(props, refOrContext);
  31947. }
  31948. renderPhaseUpdates = null;
  31949. numberOfReRenders = 0;
  31950. var renderedWork = currentlyRenderingFiber$1;
  31951. renderedWork.memoizedState = firstWorkInProgressHook;
  31952. renderedWork.expirationTime = remainingExpirationTime;
  31953. renderedWork.updateQueue = componentUpdateQueue;
  31954. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  31955. renderExpirationTime = NoWork;
  31956. currentlyRenderingFiber$1 = null;
  31957. firstCurrentHook = null;
  31958. currentHook = null;
  31959. firstWorkInProgressHook = null;
  31960. workInProgressHook = null;
  31961. remainingExpirationTime = NoWork;
  31962. componentUpdateQueue = null;
  31963. // Always set during createWorkInProgress
  31964. // isReRender = false;
  31965. // These were reset above
  31966. // didScheduleRenderPhaseUpdate = false;
  31967. // renderPhaseUpdates = null;
  31968. // numberOfReRenders = 0;
  31969. !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0;
  31970. return children;
  31971. }
  31972. function resetHooks() {
  31973. if (!enableHooks) {
  31974. return;
  31975. }
  31976. // This is called instead of `finishHooks` if the component throws. It's also
  31977. // called inside mountIndeterminateComponent if we determine the component
  31978. // is a module-style component.
  31979. renderExpirationTime = NoWork;
  31980. currentlyRenderingFiber$1 = null;
  31981. firstCurrentHook = null;
  31982. currentHook = null;
  31983. firstWorkInProgressHook = null;
  31984. workInProgressHook = null;
  31985. remainingExpirationTime = NoWork;
  31986. componentUpdateQueue = null;
  31987. // Always set during createWorkInProgress
  31988. // isReRender = false;
  31989. didScheduleRenderPhaseUpdate = false;
  31990. renderPhaseUpdates = null;
  31991. numberOfReRenders = 0;
  31992. }
  31993. function createHook() {
  31994. return {
  31995. memoizedState: null,
  31996. baseState: null,
  31997. queue: null,
  31998. baseUpdate: null,
  31999. next: null
  32000. };
  32001. }
  32002. function cloneHook(hook) {
  32003. return {
  32004. memoizedState: hook.memoizedState,
  32005. baseState: hook.memoizedState,
  32006. queue: hook.queue,
  32007. baseUpdate: hook.baseUpdate,
  32008. next: null
  32009. };
  32010. }
  32011. function createWorkInProgressHook() {
  32012. if (workInProgressHook === null) {
  32013. // This is the first hook in the list
  32014. if (firstWorkInProgressHook === null) {
  32015. isReRender = false;
  32016. currentHook = firstCurrentHook;
  32017. if (currentHook === null) {
  32018. // This is a newly mounted hook
  32019. workInProgressHook = createHook();
  32020. } else {
  32021. // Clone the current hook.
  32022. workInProgressHook = cloneHook(currentHook);
  32023. }
  32024. firstWorkInProgressHook = workInProgressHook;
  32025. } else {
  32026. // There's already a work-in-progress. Reuse it.
  32027. isReRender = true;
  32028. currentHook = firstCurrentHook;
  32029. workInProgressHook = firstWorkInProgressHook;
  32030. }
  32031. } else {
  32032. if (workInProgressHook.next === null) {
  32033. isReRender = false;
  32034. var hook = void 0;
  32035. if (currentHook === null) {
  32036. // This is a newly mounted hook
  32037. hook = createHook();
  32038. } else {
  32039. currentHook = currentHook.next;
  32040. if (currentHook === null) {
  32041. // This is a newly mounted hook
  32042. hook = createHook();
  32043. } else {
  32044. // Clone the current hook.
  32045. hook = cloneHook(currentHook);
  32046. }
  32047. }
  32048. // Append to the end of the list
  32049. workInProgressHook = workInProgressHook.next = hook;
  32050. } else {
  32051. // There's already a work-in-progress. Reuse it.
  32052. isReRender = true;
  32053. workInProgressHook = workInProgressHook.next;
  32054. currentHook = currentHook !== null ? currentHook.next : null;
  32055. }
  32056. }
  32057. return workInProgressHook;
  32058. }
  32059. function createFunctionComponentUpdateQueue() {
  32060. return {
  32061. lastEffect: null
  32062. };
  32063. }
  32064. function basicStateReducer(state, action) {
  32065. return typeof action === 'function' ? action(state) : action;
  32066. }
  32067. function useContext(context, observedBits) {
  32068. // Ensure we're in a function component (class components support only the
  32069. // .unstable_read() form)
  32070. resolveCurrentlyRenderingFiber();
  32071. return readContext(context, observedBits);
  32072. }
  32073. function useState(initialState) {
  32074. return useReducer(basicStateReducer,
  32075. // useReducer has a special case to support lazy useState initializers
  32076. initialState);
  32077. }
  32078. function useReducer(reducer, initialState, initialAction) {
  32079. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32080. workInProgressHook = createWorkInProgressHook();
  32081. var queue = workInProgressHook.queue;
  32082. if (queue !== null) {
  32083. // Already have a queue, so this is an update.
  32084. if (isReRender) {
  32085. // This is a re-render. Apply the new render phase updates to the previous
  32086. var _dispatch2 = queue.dispatch;
  32087. if (renderPhaseUpdates !== null) {
  32088. // Render phase updates are stored in a map of queue -> linked list
  32089. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  32090. if (firstRenderPhaseUpdate !== undefined) {
  32091. renderPhaseUpdates.delete(queue);
  32092. var newState = workInProgressHook.memoizedState;
  32093. var update = firstRenderPhaseUpdate;
  32094. do {
  32095. // Process this render phase update. We don't have to check the
  32096. // priority because it will always be the same as the current
  32097. // render's.
  32098. var _action = update.action;
  32099. newState = reducer(newState, _action);
  32100. update = update.next;
  32101. } while (update !== null);
  32102. workInProgressHook.memoizedState = newState;
  32103. // Don't persist the state accumlated from the render phase updates to
  32104. // the base state unless the queue is empty.
  32105. // TODO: Not sure if this is the desired semantics, but it's what we
  32106. // do for gDSFP. I can't remember why.
  32107. if (workInProgressHook.baseUpdate === queue.last) {
  32108. workInProgressHook.baseState = newState;
  32109. }
  32110. return [newState, _dispatch2];
  32111. }
  32112. }
  32113. return [workInProgressHook.memoizedState, _dispatch2];
  32114. }
  32115. // The last update in the entire queue
  32116. var _last = queue.last;
  32117. // The last update that is part of the base state.
  32118. var _baseUpdate = workInProgressHook.baseUpdate;
  32119. // Find the first unprocessed update.
  32120. var first = void 0;
  32121. if (_baseUpdate !== null) {
  32122. if (_last !== null) {
  32123. // For the first update, the queue is a circular linked list where
  32124. // `queue.last.next = queue.first`. Once the first update commits, and
  32125. // the `baseUpdate` is no longer empty, we can unravel the list.
  32126. _last.next = null;
  32127. }
  32128. first = _baseUpdate.next;
  32129. } else {
  32130. first = _last !== null ? _last.next : null;
  32131. }
  32132. if (first !== null) {
  32133. var _newState = workInProgressHook.baseState;
  32134. var newBaseState = null;
  32135. var newBaseUpdate = null;
  32136. var prevUpdate = _baseUpdate;
  32137. var _update = first;
  32138. var didSkip = false;
  32139. do {
  32140. var updateExpirationTime = _update.expirationTime;
  32141. if (updateExpirationTime < renderExpirationTime) {
  32142. // Priority is insufficient. Skip this update. If this is the first
  32143. // skipped update, the previous update/state is the new base
  32144. // update/state.
  32145. if (!didSkip) {
  32146. didSkip = true;
  32147. newBaseUpdate = prevUpdate;
  32148. newBaseState = _newState;
  32149. }
  32150. // Update the remaining priority in the queue.
  32151. if (updateExpirationTime > remainingExpirationTime) {
  32152. remainingExpirationTime = updateExpirationTime;
  32153. }
  32154. } else {
  32155. // Process this update.
  32156. var _action2 = _update.action;
  32157. _newState = reducer(_newState, _action2);
  32158. }
  32159. prevUpdate = _update;
  32160. _update = _update.next;
  32161. } while (_update !== null && _update !== first);
  32162. if (!didSkip) {
  32163. newBaseUpdate = prevUpdate;
  32164. newBaseState = _newState;
  32165. }
  32166. workInProgressHook.memoizedState = _newState;
  32167. workInProgressHook.baseUpdate = newBaseUpdate;
  32168. workInProgressHook.baseState = newBaseState;
  32169. }
  32170. var _dispatch = queue.dispatch;
  32171. return [workInProgressHook.memoizedState, _dispatch];
  32172. }
  32173. // There's no existing queue, so this is the initial render.
  32174. if (reducer === basicStateReducer) {
  32175. // Special case for `useState`.
  32176. if (typeof initialState === 'function') {
  32177. initialState = initialState();
  32178. }
  32179. } else if (initialAction !== undefined && initialAction !== null) {
  32180. initialState = reducer(initialState, initialAction);
  32181. }
  32182. workInProgressHook.memoizedState = workInProgressHook.baseState = initialState;
  32183. queue = workInProgressHook.queue = {
  32184. last: null,
  32185. dispatch: null
  32186. };
  32187. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  32188. return [workInProgressHook.memoizedState, dispatch];
  32189. }
  32190. function pushEffect(tag, create, destroy, inputs) {
  32191. var effect = {
  32192. tag: tag,
  32193. create: create,
  32194. destroy: destroy,
  32195. inputs: inputs,
  32196. // Circular
  32197. next: null
  32198. };
  32199. if (componentUpdateQueue === null) {
  32200. componentUpdateQueue = createFunctionComponentUpdateQueue();
  32201. componentUpdateQueue.lastEffect = effect.next = effect;
  32202. } else {
  32203. var _lastEffect = componentUpdateQueue.lastEffect;
  32204. if (_lastEffect === null) {
  32205. componentUpdateQueue.lastEffect = effect.next = effect;
  32206. } else {
  32207. var firstEffect = _lastEffect.next;
  32208. _lastEffect.next = effect;
  32209. effect.next = firstEffect;
  32210. componentUpdateQueue.lastEffect = effect;
  32211. }
  32212. }
  32213. return effect;
  32214. }
  32215. function useRef(initialValue) {
  32216. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32217. workInProgressHook = createWorkInProgressHook();
  32218. var ref = void 0;
  32219. if (workInProgressHook.memoizedState === null) {
  32220. ref = { current: initialValue };
  32221. {
  32222. Object.seal(ref);
  32223. }
  32224. workInProgressHook.memoizedState = ref;
  32225. } else {
  32226. ref = workInProgressHook.memoizedState;
  32227. }
  32228. return ref;
  32229. }
  32230. function useMutationEffect(create, inputs) {
  32231. useEffectImpl(Snapshot | Update, UnmountSnapshot | MountMutation, create, inputs);
  32232. }
  32233. function useLayoutEffect(create, inputs) {
  32234. useEffectImpl(Update, UnmountMutation | MountLayout, create, inputs);
  32235. }
  32236. function useEffect(create, inputs) {
  32237. useEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, inputs);
  32238. }
  32239. function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) {
  32240. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32241. workInProgressHook = createWorkInProgressHook();
  32242. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [create];
  32243. var destroy = null;
  32244. if (currentHook !== null) {
  32245. var prevEffect = currentHook.memoizedState;
  32246. destroy = prevEffect.destroy;
  32247. if (areHookInputsEqual(nextInputs, prevEffect.inputs)) {
  32248. pushEffect(NoEffect$1, create, destroy, nextInputs);
  32249. return;
  32250. }
  32251. }
  32252. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  32253. workInProgressHook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextInputs);
  32254. }
  32255. function useImperativeMethods(ref, create, inputs) {
  32256. // TODO: If inputs are provided, should we skip comparing the ref itself?
  32257. var nextInputs = inputs !== null && inputs !== undefined ? inputs.concat([ref]) : [ref, create];
  32258. // TODO: I've implemented this on top of useEffect because it's almost the
  32259. // same thing, and it would require an equal amount of code. It doesn't seem
  32260. // like a common enough use case to justify the additional size.
  32261. useEffectImpl(Update, UnmountMutation | MountLayout, function () {
  32262. if (typeof ref === 'function') {
  32263. var refCallback = ref;
  32264. var _inst = create();
  32265. refCallback(_inst);
  32266. return function () {
  32267. return refCallback(null);
  32268. };
  32269. } else if (ref !== null && ref !== undefined) {
  32270. var refObject = ref;
  32271. var _inst2 = create();
  32272. refObject.current = _inst2;
  32273. return function () {
  32274. refObject.current = null;
  32275. };
  32276. }
  32277. }, nextInputs);
  32278. }
  32279. function useCallback(callback, inputs) {
  32280. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32281. workInProgressHook = createWorkInProgressHook();
  32282. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [callback];
  32283. var prevState = workInProgressHook.memoizedState;
  32284. if (prevState !== null) {
  32285. var prevInputs = prevState[1];
  32286. if (areHookInputsEqual(nextInputs, prevInputs)) {
  32287. return prevState[0];
  32288. }
  32289. }
  32290. workInProgressHook.memoizedState = [callback, nextInputs];
  32291. return callback;
  32292. }
  32293. function useMemo(nextCreate, inputs) {
  32294. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32295. workInProgressHook = createWorkInProgressHook();
  32296. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [nextCreate];
  32297. var prevState = workInProgressHook.memoizedState;
  32298. if (prevState !== null) {
  32299. var prevInputs = prevState[1];
  32300. if (areHookInputsEqual(nextInputs, prevInputs)) {
  32301. return prevState[0];
  32302. }
  32303. }
  32304. var nextValue = nextCreate();
  32305. workInProgressHook.memoizedState = [nextValue, nextInputs];
  32306. return nextValue;
  32307. }
  32308. function dispatchAction(fiber, queue, action) {
  32309. !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0;
  32310. var alternate = fiber.alternate;
  32311. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  32312. // This is a render phase update. Stash it in a lazily-created map of
  32313. // queue -> linked list of updates. After this render pass, we'll restart
  32314. // and apply the stashed updates on top of the work-in-progress hook.
  32315. didScheduleRenderPhaseUpdate = true;
  32316. var update = {
  32317. expirationTime: renderExpirationTime,
  32318. action: action,
  32319. next: null
  32320. };
  32321. if (renderPhaseUpdates === null) {
  32322. renderPhaseUpdates = new Map();
  32323. }
  32324. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  32325. if (firstRenderPhaseUpdate === undefined) {
  32326. renderPhaseUpdates.set(queue, update);
  32327. } else {
  32328. // Append the update to the end of the list.
  32329. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  32330. while (lastRenderPhaseUpdate.next !== null) {
  32331. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  32332. }
  32333. lastRenderPhaseUpdate.next = update;
  32334. }
  32335. } else {
  32336. var currentTime = requestCurrentTime();
  32337. var _expirationTime = computeExpirationForFiber(currentTime, fiber);
  32338. var _update2 = {
  32339. expirationTime: _expirationTime,
  32340. action: action,
  32341. next: null
  32342. };
  32343. flushPassiveEffects();
  32344. // Append the update to the end of the list.
  32345. var _last2 = queue.last;
  32346. if (_last2 === null) {
  32347. // This is the first update. Create a circular list.
  32348. _update2.next = _update2;
  32349. } else {
  32350. var first = _last2.next;
  32351. if (first !== null) {
  32352. // Still circular.
  32353. _update2.next = first;
  32354. }
  32355. _last2.next = _update2;
  32356. }
  32357. queue.last = _update2;
  32358. scheduleWork(fiber, _expirationTime);
  32359. }
  32360. }
  32361. var NO_CONTEXT = {};
  32362. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  32363. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  32364. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  32365. function requiredContext(c) {
  32366. !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  32367. return c;
  32368. }
  32369. function getRootHostContainer() {
  32370. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  32371. return rootInstance;
  32372. }
  32373. function pushHostContainer(fiber, nextRootInstance) {
  32374. // Push current root instance onto the stack;
  32375. // This allows us to reset root when portals are popped.
  32376. push(rootInstanceStackCursor, nextRootInstance, fiber);
  32377. // Track the context and the Fiber that provided it.
  32378. // This enables us to pop only Fibers that provide unique contexts.
  32379. push(contextFiberStackCursor, fiber, fiber);
  32380. // Finally, we need to push the host context to the stack.
  32381. // However, we can't just call getRootHostContext() and push it because
  32382. // we'd have a different number of entries on the stack depending on
  32383. // whether getRootHostContext() throws somewhere in renderer code or not.
  32384. // So we push an empty value first. This lets us safely unwind on errors.
  32385. push(contextStackCursor$1, NO_CONTEXT, fiber);
  32386. var nextRootContext = getRootHostContext(nextRootInstance);
  32387. // Now that we know this function doesn't throw, replace it.
  32388. pop(contextStackCursor$1, fiber);
  32389. push(contextStackCursor$1, nextRootContext, fiber);
  32390. }
  32391. function popHostContainer(fiber) {
  32392. pop(contextStackCursor$1, fiber);
  32393. pop(contextFiberStackCursor, fiber);
  32394. pop(rootInstanceStackCursor, fiber);
  32395. }
  32396. function getHostContext() {
  32397. var context = requiredContext(contextStackCursor$1.current);
  32398. return context;
  32399. }
  32400. function pushHostContext(fiber) {
  32401. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  32402. var context = requiredContext(contextStackCursor$1.current);
  32403. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  32404. // Don't push this Fiber's context unless it's unique.
  32405. if (context === nextContext) {
  32406. return;
  32407. }
  32408. // Track the context and the Fiber that provided it.
  32409. // This enables us to pop only Fibers that provide unique contexts.
  32410. push(contextFiberStackCursor, fiber, fiber);
  32411. push(contextStackCursor$1, nextContext, fiber);
  32412. }
  32413. function popHostContext(fiber) {
  32414. // Do not pop unless this Fiber provided the current context.
  32415. // pushHostContext() only pushes Fibers that provide unique contexts.
  32416. if (contextFiberStackCursor.current !== fiber) {
  32417. return;
  32418. }
  32419. pop(contextStackCursor$1, fiber);
  32420. pop(contextFiberStackCursor, fiber);
  32421. }
  32422. var commitTime = 0;
  32423. var profilerStartTime = -1;
  32424. function getCommitTime() {
  32425. return commitTime;
  32426. }
  32427. function recordCommitTime() {
  32428. if (!enableProfilerTimer) {
  32429. return;
  32430. }
  32431. commitTime = scheduler.unstable_now();
  32432. }
  32433. function startProfilerTimer(fiber) {
  32434. if (!enableProfilerTimer) {
  32435. return;
  32436. }
  32437. profilerStartTime = scheduler.unstable_now();
  32438. if (fiber.actualStartTime < 0) {
  32439. fiber.actualStartTime = scheduler.unstable_now();
  32440. }
  32441. }
  32442. function stopProfilerTimerIfRunning(fiber) {
  32443. if (!enableProfilerTimer) {
  32444. return;
  32445. }
  32446. profilerStartTime = -1;
  32447. }
  32448. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  32449. if (!enableProfilerTimer) {
  32450. return;
  32451. }
  32452. if (profilerStartTime >= 0) {
  32453. var elapsedTime = scheduler.unstable_now() - profilerStartTime;
  32454. fiber.actualDuration += elapsedTime;
  32455. if (overrideBaseTime) {
  32456. fiber.selfBaseDuration = elapsedTime;
  32457. }
  32458. profilerStartTime = -1;
  32459. }
  32460. }
  32461. function resolveDefaultProps(Component, baseProps) {
  32462. if (Component && Component.defaultProps) {
  32463. // Resolve default props. Taken from ReactElement
  32464. var props = _assign({}, baseProps);
  32465. var defaultProps = Component.defaultProps;
  32466. for (var propName in defaultProps) {
  32467. if (props[propName] === undefined) {
  32468. props[propName] = defaultProps[propName];
  32469. }
  32470. }
  32471. return props;
  32472. }
  32473. return baseProps;
  32474. }
  32475. function readLazyComponentType(lazyComponent) {
  32476. var status = lazyComponent._status;
  32477. var result = lazyComponent._result;
  32478. switch (status) {
  32479. case Resolved:
  32480. {
  32481. var Component = result;
  32482. return Component;
  32483. }
  32484. case Rejected:
  32485. {
  32486. var error = result;
  32487. throw error;
  32488. }
  32489. case Pending:
  32490. {
  32491. var thenable = result;
  32492. throw thenable;
  32493. }
  32494. default:
  32495. {
  32496. lazyComponent._status = Pending;
  32497. var ctor = lazyComponent._ctor;
  32498. var _thenable = ctor();
  32499. _thenable.then(function (moduleObject) {
  32500. if (lazyComponent._status === Pending) {
  32501. var defaultExport = moduleObject.default;
  32502. {
  32503. if (defaultExport === undefined) {
  32504. warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
  32505. }
  32506. }
  32507. lazyComponent._status = Resolved;
  32508. lazyComponent._result = defaultExport;
  32509. }
  32510. }, function (error) {
  32511. if (lazyComponent._status === Pending) {
  32512. lazyComponent._status = Rejected;
  32513. lazyComponent._result = error;
  32514. }
  32515. });
  32516. lazyComponent._result = _thenable;
  32517. throw _thenable;
  32518. }
  32519. }
  32520. }
  32521. var ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner;
  32522. function readContext$1(contextType) {
  32523. var dispatcher = ReactCurrentOwner$4.currentDispatcher;
  32524. return dispatcher.readContext(contextType);
  32525. }
  32526. var fakeInternalInstance = {};
  32527. var isArray$1 = Array.isArray;
  32528. // React.Component uses a shared frozen object by default.
  32529. // We'll use it to determine whether we need to initialize legacy refs.
  32530. var emptyRefsObject = new React.Component().refs;
  32531. var didWarnAboutStateAssignmentForComponent = void 0;
  32532. var didWarnAboutUninitializedState = void 0;
  32533. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  32534. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  32535. var didWarnAboutUndefinedDerivedState = void 0;
  32536. var warnOnUndefinedDerivedState = void 0;
  32537. var warnOnInvalidCallback$1 = void 0;
  32538. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  32539. var didWarnAboutContextTypeAndContextTypes = void 0;
  32540. var didWarnAboutInvalidateContextType = void 0;
  32541. {
  32542. didWarnAboutStateAssignmentForComponent = new Set();
  32543. didWarnAboutUninitializedState = new Set();
  32544. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  32545. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  32546. didWarnAboutDirectlyAssigningPropsToState = new Set();
  32547. didWarnAboutUndefinedDerivedState = new Set();
  32548. didWarnAboutContextTypeAndContextTypes = new Set();
  32549. didWarnAboutInvalidateContextType = new Set();
  32550. var didWarnOnInvalidCallback = new Set();
  32551. warnOnInvalidCallback$1 = function (callback, callerName) {
  32552. if (callback === null || typeof callback === 'function') {
  32553. return;
  32554. }
  32555. var key = callerName + '_' + callback;
  32556. if (!didWarnOnInvalidCallback.has(key)) {
  32557. didWarnOnInvalidCallback.add(key);
  32558. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  32559. }
  32560. };
  32561. warnOnUndefinedDerivedState = function (type, partialState) {
  32562. if (partialState === undefined) {
  32563. var componentName = getComponentName(type) || 'Component';
  32564. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  32565. didWarnAboutUndefinedDerivedState.add(componentName);
  32566. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  32567. }
  32568. }
  32569. };
  32570. // This is so gross but it's at least non-critical and can be removed if
  32571. // it causes problems. This is meant to give a nicer error message for
  32572. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  32573. // ...)) which otherwise throws a "_processChildContext is not a function"
  32574. // exception.
  32575. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  32576. enumerable: false,
  32577. value: function () {
  32578. invariant(false, '_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).');
  32579. }
  32580. });
  32581. Object.freeze(fakeInternalInstance);
  32582. }
  32583. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  32584. var prevState = workInProgress.memoizedState;
  32585. {
  32586. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32587. // Invoke the function an extra time to help detect side-effects.
  32588. getDerivedStateFromProps(nextProps, prevState);
  32589. }
  32590. }
  32591. var partialState = getDerivedStateFromProps(nextProps, prevState);
  32592. {
  32593. warnOnUndefinedDerivedState(ctor, partialState);
  32594. }
  32595. // Merge the partial state and the previous state.
  32596. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  32597. workInProgress.memoizedState = memoizedState;
  32598. // Once the update queue is empty, persist the derived state onto the
  32599. // base state.
  32600. var updateQueue = workInProgress.updateQueue;
  32601. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  32602. updateQueue.baseState = memoizedState;
  32603. }
  32604. }
  32605. var classComponentUpdater = {
  32606. isMounted: isMounted,
  32607. enqueueSetState: function (inst, payload, callback) {
  32608. var fiber = get(inst);
  32609. var currentTime = requestCurrentTime();
  32610. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  32611. var update = createUpdate(expirationTime);
  32612. update.payload = payload;
  32613. if (callback !== undefined && callback !== null) {
  32614. {
  32615. warnOnInvalidCallback$1(callback, 'setState');
  32616. }
  32617. update.callback = callback;
  32618. }
  32619. flushPassiveEffects();
  32620. enqueueUpdate(fiber, update);
  32621. scheduleWork(fiber, expirationTime);
  32622. },
  32623. enqueueReplaceState: function (inst, payload, callback) {
  32624. var fiber = get(inst);
  32625. var currentTime = requestCurrentTime();
  32626. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  32627. var update = createUpdate(expirationTime);
  32628. update.tag = ReplaceState;
  32629. update.payload = payload;
  32630. if (callback !== undefined && callback !== null) {
  32631. {
  32632. warnOnInvalidCallback$1(callback, 'replaceState');
  32633. }
  32634. update.callback = callback;
  32635. }
  32636. flushPassiveEffects();
  32637. enqueueUpdate(fiber, update);
  32638. scheduleWork(fiber, expirationTime);
  32639. },
  32640. enqueueForceUpdate: function (inst, callback) {
  32641. var fiber = get(inst);
  32642. var currentTime = requestCurrentTime();
  32643. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  32644. var update = createUpdate(expirationTime);
  32645. update.tag = ForceUpdate;
  32646. if (callback !== undefined && callback !== null) {
  32647. {
  32648. warnOnInvalidCallback$1(callback, 'forceUpdate');
  32649. }
  32650. update.callback = callback;
  32651. }
  32652. flushPassiveEffects();
  32653. enqueueUpdate(fiber, update);
  32654. scheduleWork(fiber, expirationTime);
  32655. }
  32656. };
  32657. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  32658. var instance = workInProgress.stateNode;
  32659. if (typeof instance.shouldComponentUpdate === 'function') {
  32660. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  32661. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  32662. stopPhaseTimer();
  32663. {
  32664. !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
  32665. }
  32666. return shouldUpdate;
  32667. }
  32668. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  32669. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  32670. }
  32671. return true;
  32672. }
  32673. function checkClassInstance(workInProgress, ctor, newProps) {
  32674. var instance = workInProgress.stateNode;
  32675. {
  32676. var name = getComponentName(ctor) || 'Component';
  32677. var renderPresent = instance.render;
  32678. if (!renderPresent) {
  32679. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  32680. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  32681. } else {
  32682. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  32683. }
  32684. }
  32685. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  32686. !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;
  32687. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  32688. !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;
  32689. var noInstancePropTypes = !instance.propTypes;
  32690. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  32691. var noInstanceContextType = !instance.contextType;
  32692. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  32693. var noInstanceContextTypes = !instance.contextTypes;
  32694. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  32695. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  32696. didWarnAboutContextTypeAndContextTypes.add(ctor);
  32697. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  32698. }
  32699. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  32700. !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;
  32701. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  32702. warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
  32703. }
  32704. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  32705. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  32706. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  32707. !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;
  32708. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  32709. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  32710. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  32711. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  32712. var hasMutatedProps = instance.props !== newProps;
  32713. !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
  32714. var noInstanceDefaultProps = !instance.defaultProps;
  32715. !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;
  32716. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  32717. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  32718. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  32719. }
  32720. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  32721. !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  32722. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  32723. !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  32724. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  32725. !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
  32726. var _state = instance.state;
  32727. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  32728. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  32729. }
  32730. if (typeof instance.getChildContext === 'function') {
  32731. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  32732. }
  32733. }
  32734. }
  32735. function adoptClassInstance(workInProgress, instance) {
  32736. instance.updater = classComponentUpdater;
  32737. workInProgress.stateNode = instance;
  32738. // The instance needs access to the fiber so that it can schedule updates
  32739. set(instance, workInProgress);
  32740. {
  32741. instance._reactInternalInstance = fakeInternalInstance;
  32742. }
  32743. }
  32744. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  32745. var isLegacyContextConsumer = false;
  32746. var unmaskedContext = emptyContextObject;
  32747. var context = null;
  32748. var contextType = ctor.contextType;
  32749. if (typeof contextType === 'object' && contextType !== null) {
  32750. {
  32751. if (contextType.$$typeof !== REACT_CONTEXT_TYPE && !didWarnAboutInvalidateContextType.has(ctor)) {
  32752. didWarnAboutInvalidateContextType.add(ctor);
  32753. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', getComponentName(ctor) || 'Component');
  32754. }
  32755. }
  32756. context = readContext$1(contextType);
  32757. } else {
  32758. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  32759. var contextTypes = ctor.contextTypes;
  32760. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  32761. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  32762. }
  32763. // Instantiate twice to help detect side-effects.
  32764. {
  32765. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32766. new ctor(props, context); // eslint-disable-line no-new
  32767. }
  32768. }
  32769. var instance = new ctor(props, context);
  32770. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  32771. adoptClassInstance(workInProgress, instance);
  32772. {
  32773. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  32774. var componentName = getComponentName(ctor) || 'Component';
  32775. if (!didWarnAboutUninitializedState.has(componentName)) {
  32776. didWarnAboutUninitializedState.add(componentName);
  32777. warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
  32778. }
  32779. }
  32780. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  32781. // Warn about these lifecycles if they are present.
  32782. // Don't warn about react-lifecycles-compat polyfilled methods though.
  32783. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  32784. var foundWillMountName = null;
  32785. var foundWillReceivePropsName = null;
  32786. var foundWillUpdateName = null;
  32787. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  32788. foundWillMountName = 'componentWillMount';
  32789. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  32790. foundWillMountName = 'UNSAFE_componentWillMount';
  32791. }
  32792. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  32793. foundWillReceivePropsName = 'componentWillReceiveProps';
  32794. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  32795. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  32796. }
  32797. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  32798. foundWillUpdateName = 'componentWillUpdate';
  32799. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  32800. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  32801. }
  32802. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  32803. var _componentName = getComponentName(ctor) || 'Component';
  32804. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  32805. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  32806. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  32807. warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '');
  32808. }
  32809. }
  32810. }
  32811. }
  32812. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  32813. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  32814. if (isLegacyContextConsumer) {
  32815. cacheContext(workInProgress, unmaskedContext, context);
  32816. }
  32817. return instance;
  32818. }
  32819. function callComponentWillMount(workInProgress, instance) {
  32820. startPhaseTimer(workInProgress, 'componentWillMount');
  32821. var oldState = instance.state;
  32822. if (typeof instance.componentWillMount === 'function') {
  32823. instance.componentWillMount();
  32824. }
  32825. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  32826. instance.UNSAFE_componentWillMount();
  32827. }
  32828. stopPhaseTimer();
  32829. if (oldState !== instance.state) {
  32830. {
  32831. warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  32832. }
  32833. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  32834. }
  32835. }
  32836. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  32837. var oldState = instance.state;
  32838. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  32839. if (typeof instance.componentWillReceiveProps === 'function') {
  32840. instance.componentWillReceiveProps(newProps, nextContext);
  32841. }
  32842. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  32843. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  32844. }
  32845. stopPhaseTimer();
  32846. if (instance.state !== oldState) {
  32847. {
  32848. var componentName = getComponentName(workInProgress.type) || 'Component';
  32849. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  32850. didWarnAboutStateAssignmentForComponent.add(componentName);
  32851. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  32852. }
  32853. }
  32854. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  32855. }
  32856. }
  32857. // Invokes the mount life-cycles on a previously never rendered instance.
  32858. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  32859. {
  32860. checkClassInstance(workInProgress, ctor, newProps);
  32861. }
  32862. var instance = workInProgress.stateNode;
  32863. instance.props = newProps;
  32864. instance.state = workInProgress.memoizedState;
  32865. instance.refs = emptyRefsObject;
  32866. var contextType = ctor.contextType;
  32867. if (typeof contextType === 'object' && contextType !== null) {
  32868. instance.context = readContext$1(contextType);
  32869. } else {
  32870. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  32871. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  32872. }
  32873. {
  32874. if (instance.state === newProps) {
  32875. var componentName = getComponentName(ctor) || 'Component';
  32876. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  32877. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  32878. warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
  32879. }
  32880. }
  32881. if (workInProgress.mode & StrictMode) {
  32882. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  32883. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  32884. }
  32885. if (warnAboutDeprecatedLifecycles) {
  32886. ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
  32887. }
  32888. }
  32889. var updateQueue = workInProgress.updateQueue;
  32890. if (updateQueue !== null) {
  32891. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  32892. instance.state = workInProgress.memoizedState;
  32893. }
  32894. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  32895. if (typeof getDerivedStateFromProps === 'function') {
  32896. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  32897. instance.state = workInProgress.memoizedState;
  32898. }
  32899. // In order to support react-lifecycles-compat polyfilled components,
  32900. // Unsafe lifecycles should not be invoked for components using the new APIs.
  32901. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  32902. callComponentWillMount(workInProgress, instance);
  32903. // If we had additional state updates during this life-cycle, let's
  32904. // process them now.
  32905. updateQueue = workInProgress.updateQueue;
  32906. if (updateQueue !== null) {
  32907. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  32908. instance.state = workInProgress.memoizedState;
  32909. }
  32910. }
  32911. if (typeof instance.componentDidMount === 'function') {
  32912. workInProgress.effectTag |= Update;
  32913. }
  32914. }
  32915. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  32916. var instance = workInProgress.stateNode;
  32917. var oldProps = workInProgress.memoizedProps;
  32918. instance.props = oldProps;
  32919. var oldContext = instance.context;
  32920. var contextType = ctor.contextType;
  32921. var nextContext = void 0;
  32922. if (typeof contextType === 'object' && contextType !== null) {
  32923. nextContext = readContext$1(contextType);
  32924. } else {
  32925. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  32926. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  32927. }
  32928. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  32929. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  32930. // Note: During these life-cycles, instance.props/instance.state are what
  32931. // ever the previously attempted to render - not the "current". However,
  32932. // during componentDidUpdate we pass the "current" props.
  32933. // In order to support react-lifecycles-compat polyfilled components,
  32934. // Unsafe lifecycles should not be invoked for components using the new APIs.
  32935. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  32936. if (oldProps !== newProps || oldContext !== nextContext) {
  32937. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  32938. }
  32939. }
  32940. resetHasForceUpdateBeforeProcessing();
  32941. var oldState = workInProgress.memoizedState;
  32942. var newState = instance.state = oldState;
  32943. var updateQueue = workInProgress.updateQueue;
  32944. if (updateQueue !== null) {
  32945. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  32946. newState = workInProgress.memoizedState;
  32947. }
  32948. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  32949. // If an update was already in progress, we should schedule an Update
  32950. // effect even though we're bailing out, so that cWU/cDU are called.
  32951. if (typeof instance.componentDidMount === 'function') {
  32952. workInProgress.effectTag |= Update;
  32953. }
  32954. return false;
  32955. }
  32956. if (typeof getDerivedStateFromProps === 'function') {
  32957. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  32958. newState = workInProgress.memoizedState;
  32959. }
  32960. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  32961. if (shouldUpdate) {
  32962. // In order to support react-lifecycles-compat polyfilled components,
  32963. // Unsafe lifecycles should not be invoked for components using the new APIs.
  32964. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  32965. startPhaseTimer(workInProgress, 'componentWillMount');
  32966. if (typeof instance.componentWillMount === 'function') {
  32967. instance.componentWillMount();
  32968. }
  32969. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  32970. instance.UNSAFE_componentWillMount();
  32971. }
  32972. stopPhaseTimer();
  32973. }
  32974. if (typeof instance.componentDidMount === 'function') {
  32975. workInProgress.effectTag |= Update;
  32976. }
  32977. } else {
  32978. // If an update was already in progress, we should schedule an Update
  32979. // effect even though we're bailing out, so that cWU/cDU are called.
  32980. if (typeof instance.componentDidMount === 'function') {
  32981. workInProgress.effectTag |= Update;
  32982. }
  32983. // If shouldComponentUpdate returned false, we should still update the
  32984. // memoized state to indicate that this work can be reused.
  32985. workInProgress.memoizedProps = newProps;
  32986. workInProgress.memoizedState = newState;
  32987. }
  32988. // Update the existing instance's state, props, and context pointers even
  32989. // if shouldComponentUpdate returns false.
  32990. instance.props = newProps;
  32991. instance.state = newState;
  32992. instance.context = nextContext;
  32993. return shouldUpdate;
  32994. }
  32995. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  32996. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  32997. var instance = workInProgress.stateNode;
  32998. var oldProps = workInProgress.memoizedProps;
  32999. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  33000. var oldContext = instance.context;
  33001. var contextType = ctor.contextType;
  33002. var nextContext = void 0;
  33003. if (typeof contextType === 'object' && contextType !== null) {
  33004. nextContext = readContext$1(contextType);
  33005. } else {
  33006. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  33007. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  33008. }
  33009. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  33010. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  33011. // Note: During these life-cycles, instance.props/instance.state are what
  33012. // ever the previously attempted to render - not the "current". However,
  33013. // during componentDidUpdate we pass the "current" props.
  33014. // In order to support react-lifecycles-compat polyfilled components,
  33015. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33016. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  33017. if (oldProps !== newProps || oldContext !== nextContext) {
  33018. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  33019. }
  33020. }
  33021. resetHasForceUpdateBeforeProcessing();
  33022. var oldState = workInProgress.memoizedState;
  33023. var newState = instance.state = oldState;
  33024. var updateQueue = workInProgress.updateQueue;
  33025. if (updateQueue !== null) {
  33026. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  33027. newState = workInProgress.memoizedState;
  33028. }
  33029. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  33030. // If an update was already in progress, we should schedule an Update
  33031. // effect even though we're bailing out, so that cWU/cDU are called.
  33032. if (typeof instance.componentDidUpdate === 'function') {
  33033. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33034. workInProgress.effectTag |= Update;
  33035. }
  33036. }
  33037. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33038. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33039. workInProgress.effectTag |= Snapshot;
  33040. }
  33041. }
  33042. return false;
  33043. }
  33044. if (typeof getDerivedStateFromProps === 'function') {
  33045. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  33046. newState = workInProgress.memoizedState;
  33047. }
  33048. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  33049. if (shouldUpdate) {
  33050. // In order to support react-lifecycles-compat polyfilled components,
  33051. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33052. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  33053. startPhaseTimer(workInProgress, 'componentWillUpdate');
  33054. if (typeof instance.componentWillUpdate === 'function') {
  33055. instance.componentWillUpdate(newProps, newState, nextContext);
  33056. }
  33057. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  33058. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  33059. }
  33060. stopPhaseTimer();
  33061. }
  33062. if (typeof instance.componentDidUpdate === 'function') {
  33063. workInProgress.effectTag |= Update;
  33064. }
  33065. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33066. workInProgress.effectTag |= Snapshot;
  33067. }
  33068. } else {
  33069. // If an update was already in progress, we should schedule an Update
  33070. // effect even though we're bailing out, so that cWU/cDU are called.
  33071. if (typeof instance.componentDidUpdate === 'function') {
  33072. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33073. workInProgress.effectTag |= Update;
  33074. }
  33075. }
  33076. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33077. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33078. workInProgress.effectTag |= Snapshot;
  33079. }
  33080. }
  33081. // If shouldComponentUpdate returned false, we should still update the
  33082. // memoized props/state to indicate that this work can be reused.
  33083. workInProgress.memoizedProps = newProps;
  33084. workInProgress.memoizedState = newState;
  33085. }
  33086. // Update the existing instance's state, props, and context pointers even
  33087. // if shouldComponentUpdate returns false.
  33088. instance.props = newProps;
  33089. instance.state = newState;
  33090. instance.context = nextContext;
  33091. return shouldUpdate;
  33092. }
  33093. var didWarnAboutMaps = void 0;
  33094. var didWarnAboutGenerators = void 0;
  33095. var didWarnAboutStringRefInStrictMode = void 0;
  33096. var ownerHasKeyUseWarning = void 0;
  33097. var ownerHasFunctionTypeWarning = void 0;
  33098. var warnForMissingKey = function (child) {};
  33099. {
  33100. didWarnAboutMaps = false;
  33101. didWarnAboutGenerators = false;
  33102. didWarnAboutStringRefInStrictMode = {};
  33103. /**
  33104. * Warn if there's no key explicitly set on dynamic arrays of children or
  33105. * object keys are not valid. This allows us to keep track of children between
  33106. * updates.
  33107. */
  33108. ownerHasKeyUseWarning = {};
  33109. ownerHasFunctionTypeWarning = {};
  33110. warnForMissingKey = function (child) {
  33111. if (child === null || typeof child !== 'object') {
  33112. return;
  33113. }
  33114. if (!child._store || child._store.validated || child.key != null) {
  33115. return;
  33116. }
  33117. !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  33118. child._store.validated = true;
  33119. var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  33120. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  33121. return;
  33122. }
  33123. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  33124. warning$1(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  33125. };
  33126. }
  33127. var isArray = Array.isArray;
  33128. function coerceRef(returnFiber, current$$1, element) {
  33129. var mixedRef = element.ref;
  33130. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  33131. {
  33132. if (returnFiber.mode & StrictMode) {
  33133. var componentName = getComponentName(returnFiber.type) || 'Component';
  33134. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  33135. warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  33136. didWarnAboutStringRefInStrictMode[componentName] = true;
  33137. }
  33138. }
  33139. }
  33140. if (element._owner) {
  33141. var owner = element._owner;
  33142. var inst = void 0;
  33143. if (owner) {
  33144. var ownerFiber = owner;
  33145. !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs.') : void 0;
  33146. inst = ownerFiber.stateNode;
  33147. }
  33148. !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
  33149. var stringRef = '' + mixedRef;
  33150. // Check if previous string ref matches new string ref
  33151. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  33152. return current$$1.ref;
  33153. }
  33154. var ref = function (value) {
  33155. var refs = inst.refs;
  33156. if (refs === emptyRefsObject) {
  33157. // This is a lazy pooled frozen object, so we need to initialize.
  33158. refs = inst.refs = {};
  33159. }
  33160. if (value === null) {
  33161. delete refs[stringRef];
  33162. } else {
  33163. refs[stringRef] = value;
  33164. }
  33165. };
  33166. ref._stringRef = stringRef;
  33167. return ref;
  33168. } else {
  33169. !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;
  33170. !element._owner ? invariant(false, 'Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.', mixedRef) : void 0;
  33171. }
  33172. }
  33173. return mixedRef;
  33174. }
  33175. function throwOnInvalidObjectType(returnFiber, newChild) {
  33176. if (returnFiber.type !== 'textarea') {
  33177. var addendum = '';
  33178. {
  33179. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  33180. }
  33181. invariant(false, 'Objects are not valid as a React child (found: %s).%s', Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild, addendum);
  33182. }
  33183. }
  33184. function warnOnFunctionType() {
  33185. var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();
  33186. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  33187. return;
  33188. }
  33189. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  33190. warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  33191. }
  33192. // This wrapper function exists because I expect to clone the code in each path
  33193. // to be able to optimize each path individually by branching early. This needs
  33194. // a compiler or we can do it manually. Helpers that don't need this branching
  33195. // live outside of this function.
  33196. function ChildReconciler(shouldTrackSideEffects) {
  33197. function deleteChild(returnFiber, childToDelete) {
  33198. if (!shouldTrackSideEffects) {
  33199. // Noop.
  33200. return;
  33201. }
  33202. // Deletions are added in reversed order so we add it to the front.
  33203. // At this point, the return fiber's effect list is empty except for
  33204. // deletions, so we can just append the deletion to the list. The remaining
  33205. // effects aren't added until the complete phase. Once we implement
  33206. // resuming, this may not be true.
  33207. var last = returnFiber.lastEffect;
  33208. if (last !== null) {
  33209. last.nextEffect = childToDelete;
  33210. returnFiber.lastEffect = childToDelete;
  33211. } else {
  33212. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  33213. }
  33214. childToDelete.nextEffect = null;
  33215. childToDelete.effectTag = Deletion;
  33216. }
  33217. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  33218. if (!shouldTrackSideEffects) {
  33219. // Noop.
  33220. return null;
  33221. }
  33222. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  33223. // assuming that after the first child we've already added everything.
  33224. var childToDelete = currentFirstChild;
  33225. while (childToDelete !== null) {
  33226. deleteChild(returnFiber, childToDelete);
  33227. childToDelete = childToDelete.sibling;
  33228. }
  33229. return null;
  33230. }
  33231. function mapRemainingChildren(returnFiber, currentFirstChild) {
  33232. // Add the remaining children to a temporary map so that we can find them by
  33233. // keys quickly. Implicit (null) keys get added to this set with their index
  33234. var existingChildren = new Map();
  33235. var existingChild = currentFirstChild;
  33236. while (existingChild !== null) {
  33237. if (existingChild.key !== null) {
  33238. existingChildren.set(existingChild.key, existingChild);
  33239. } else {
  33240. existingChildren.set(existingChild.index, existingChild);
  33241. }
  33242. existingChild = existingChild.sibling;
  33243. }
  33244. return existingChildren;
  33245. }
  33246. function useFiber(fiber, pendingProps, expirationTime) {
  33247. // We currently set sibling to null and index to 0 here because it is easy
  33248. // to forget to do before returning it. E.g. for the single child case.
  33249. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  33250. clone.index = 0;
  33251. clone.sibling = null;
  33252. return clone;
  33253. }
  33254. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  33255. newFiber.index = newIndex;
  33256. if (!shouldTrackSideEffects) {
  33257. // Noop.
  33258. return lastPlacedIndex;
  33259. }
  33260. var current$$1 = newFiber.alternate;
  33261. if (current$$1 !== null) {
  33262. var oldIndex = current$$1.index;
  33263. if (oldIndex < lastPlacedIndex) {
  33264. // This is a move.
  33265. newFiber.effectTag = Placement;
  33266. return lastPlacedIndex;
  33267. } else {
  33268. // This item can stay in place.
  33269. return oldIndex;
  33270. }
  33271. } else {
  33272. // This is an insertion.
  33273. newFiber.effectTag = Placement;
  33274. return lastPlacedIndex;
  33275. }
  33276. }
  33277. function placeSingleChild(newFiber) {
  33278. // This is simpler for the single child case. We only need to do a
  33279. // placement for inserting new children.
  33280. if (shouldTrackSideEffects && newFiber.alternate === null) {
  33281. newFiber.effectTag = Placement;
  33282. }
  33283. return newFiber;
  33284. }
  33285. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  33286. if (current$$1 === null || current$$1.tag !== HostText) {
  33287. // Insert
  33288. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  33289. created.return = returnFiber;
  33290. return created;
  33291. } else {
  33292. // Update
  33293. var existing = useFiber(current$$1, textContent, expirationTime);
  33294. existing.return = returnFiber;
  33295. return existing;
  33296. }
  33297. }
  33298. function updateElement(returnFiber, current$$1, element, expirationTime) {
  33299. if (current$$1 !== null && current$$1.elementType === element.type) {
  33300. // Move based on index
  33301. var existing = useFiber(current$$1, element.props, expirationTime);
  33302. existing.ref = coerceRef(returnFiber, current$$1, element);
  33303. existing.return = returnFiber;
  33304. {
  33305. existing._debugSource = element._source;
  33306. existing._debugOwner = element._owner;
  33307. }
  33308. return existing;
  33309. } else {
  33310. // Insert
  33311. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  33312. created.ref = coerceRef(returnFiber, current$$1, element);
  33313. created.return = returnFiber;
  33314. return created;
  33315. }
  33316. }
  33317. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  33318. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  33319. // Insert
  33320. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  33321. created.return = returnFiber;
  33322. return created;
  33323. } else {
  33324. // Update
  33325. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  33326. existing.return = returnFiber;
  33327. return existing;
  33328. }
  33329. }
  33330. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  33331. if (current$$1 === null || current$$1.tag !== Fragment) {
  33332. // Insert
  33333. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  33334. created.return = returnFiber;
  33335. return created;
  33336. } else {
  33337. // Update
  33338. var existing = useFiber(current$$1, fragment, expirationTime);
  33339. existing.return = returnFiber;
  33340. return existing;
  33341. }
  33342. }
  33343. function createChild(returnFiber, newChild, expirationTime) {
  33344. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33345. // Text nodes don't have keys. If the previous node is implicitly keyed
  33346. // we can continue to replace it without aborting even if it is not a text
  33347. // node.
  33348. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  33349. created.return = returnFiber;
  33350. return created;
  33351. }
  33352. if (typeof newChild === 'object' && newChild !== null) {
  33353. switch (newChild.$$typeof) {
  33354. case REACT_ELEMENT_TYPE:
  33355. {
  33356. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  33357. _created.ref = coerceRef(returnFiber, null, newChild);
  33358. _created.return = returnFiber;
  33359. return _created;
  33360. }
  33361. case REACT_PORTAL_TYPE:
  33362. {
  33363. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  33364. _created2.return = returnFiber;
  33365. return _created2;
  33366. }
  33367. }
  33368. if (isArray(newChild) || getIteratorFn(newChild)) {
  33369. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  33370. _created3.return = returnFiber;
  33371. return _created3;
  33372. }
  33373. throwOnInvalidObjectType(returnFiber, newChild);
  33374. }
  33375. {
  33376. if (typeof newChild === 'function') {
  33377. warnOnFunctionType();
  33378. }
  33379. }
  33380. return null;
  33381. }
  33382. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  33383. // Update the fiber if the keys match, otherwise return null.
  33384. var key = oldFiber !== null ? oldFiber.key : null;
  33385. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33386. // Text nodes don't have keys. If the previous node is implicitly keyed
  33387. // we can continue to replace it without aborting even if it is not a text
  33388. // node.
  33389. if (key !== null) {
  33390. return null;
  33391. }
  33392. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  33393. }
  33394. if (typeof newChild === 'object' && newChild !== null) {
  33395. switch (newChild.$$typeof) {
  33396. case REACT_ELEMENT_TYPE:
  33397. {
  33398. if (newChild.key === key) {
  33399. if (newChild.type === REACT_FRAGMENT_TYPE) {
  33400. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  33401. }
  33402. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  33403. } else {
  33404. return null;
  33405. }
  33406. }
  33407. case REACT_PORTAL_TYPE:
  33408. {
  33409. if (newChild.key === key) {
  33410. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  33411. } else {
  33412. return null;
  33413. }
  33414. }
  33415. }
  33416. if (isArray(newChild) || getIteratorFn(newChild)) {
  33417. if (key !== null) {
  33418. return null;
  33419. }
  33420. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  33421. }
  33422. throwOnInvalidObjectType(returnFiber, newChild);
  33423. }
  33424. {
  33425. if (typeof newChild === 'function') {
  33426. warnOnFunctionType();
  33427. }
  33428. }
  33429. return null;
  33430. }
  33431. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  33432. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33433. // Text nodes don't have keys, so we neither have to check the old nor
  33434. // new node for the key. If both are text nodes, they match.
  33435. var matchedFiber = existingChildren.get(newIdx) || null;
  33436. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  33437. }
  33438. if (typeof newChild === 'object' && newChild !== null) {
  33439. switch (newChild.$$typeof) {
  33440. case REACT_ELEMENT_TYPE:
  33441. {
  33442. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  33443. if (newChild.type === REACT_FRAGMENT_TYPE) {
  33444. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  33445. }
  33446. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  33447. }
  33448. case REACT_PORTAL_TYPE:
  33449. {
  33450. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  33451. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  33452. }
  33453. }
  33454. if (isArray(newChild) || getIteratorFn(newChild)) {
  33455. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  33456. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  33457. }
  33458. throwOnInvalidObjectType(returnFiber, newChild);
  33459. }
  33460. {
  33461. if (typeof newChild === 'function') {
  33462. warnOnFunctionType();
  33463. }
  33464. }
  33465. return null;
  33466. }
  33467. /**
  33468. * Warns if there is a duplicate or missing key
  33469. */
  33470. function warnOnInvalidKey(child, knownKeys) {
  33471. {
  33472. if (typeof child !== 'object' || child === null) {
  33473. return knownKeys;
  33474. }
  33475. switch (child.$$typeof) {
  33476. case REACT_ELEMENT_TYPE:
  33477. case REACT_PORTAL_TYPE:
  33478. warnForMissingKey(child);
  33479. var key = child.key;
  33480. if (typeof key !== 'string') {
  33481. break;
  33482. }
  33483. if (knownKeys === null) {
  33484. knownKeys = new Set();
  33485. knownKeys.add(key);
  33486. break;
  33487. }
  33488. if (!knownKeys.has(key)) {
  33489. knownKeys.add(key);
  33490. break;
  33491. }
  33492. warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
  33493. break;
  33494. default:
  33495. break;
  33496. }
  33497. }
  33498. return knownKeys;
  33499. }
  33500. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  33501. // This algorithm can't optimize by searching from boths ends since we
  33502. // don't have backpointers on fibers. I'm trying to see how far we can get
  33503. // with that model. If it ends up not being worth the tradeoffs, we can
  33504. // add it later.
  33505. // Even with a two ended optimization, we'd want to optimize for the case
  33506. // where there are few changes and brute force the comparison instead of
  33507. // going for the Map. It'd like to explore hitting that path first in
  33508. // forward-only mode and only go for the Map once we notice that we need
  33509. // lots of look ahead. This doesn't handle reversal as well as two ended
  33510. // search but that's unusual. Besides, for the two ended optimization to
  33511. // work on Iterables, we'd need to copy the whole set.
  33512. // In this first iteration, we'll just live with hitting the bad case
  33513. // (adding everything to a Map) in for every insert/move.
  33514. // If you change this code, also update reconcileChildrenIterator() which
  33515. // uses the same algorithm.
  33516. {
  33517. // First, validate keys.
  33518. var knownKeys = null;
  33519. for (var i = 0; i < newChildren.length; i++) {
  33520. var child = newChildren[i];
  33521. knownKeys = warnOnInvalidKey(child, knownKeys);
  33522. }
  33523. }
  33524. var resultingFirstChild = null;
  33525. var previousNewFiber = null;
  33526. var oldFiber = currentFirstChild;
  33527. var lastPlacedIndex = 0;
  33528. var newIdx = 0;
  33529. var nextOldFiber = null;
  33530. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  33531. if (oldFiber.index > newIdx) {
  33532. nextOldFiber = oldFiber;
  33533. oldFiber = null;
  33534. } else {
  33535. nextOldFiber = oldFiber.sibling;
  33536. }
  33537. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  33538. if (newFiber === null) {
  33539. // TODO: This breaks on empty slots like null children. That's
  33540. // unfortunate because it triggers the slow path all the time. We need
  33541. // a better way to communicate whether this was a miss or null,
  33542. // boolean, undefined, etc.
  33543. if (oldFiber === null) {
  33544. oldFiber = nextOldFiber;
  33545. }
  33546. break;
  33547. }
  33548. if (shouldTrackSideEffects) {
  33549. if (oldFiber && newFiber.alternate === null) {
  33550. // We matched the slot, but we didn't reuse the existing fiber, so we
  33551. // need to delete the existing child.
  33552. deleteChild(returnFiber, oldFiber);
  33553. }
  33554. }
  33555. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  33556. if (previousNewFiber === null) {
  33557. // TODO: Move out of the loop. This only happens for the first run.
  33558. resultingFirstChild = newFiber;
  33559. } else {
  33560. // TODO: Defer siblings if we're not at the right index for this slot.
  33561. // I.e. if we had null values before, then we want to defer this
  33562. // for each null value. However, we also don't want to call updateSlot
  33563. // with the previous one.
  33564. previousNewFiber.sibling = newFiber;
  33565. }
  33566. previousNewFiber = newFiber;
  33567. oldFiber = nextOldFiber;
  33568. }
  33569. if (newIdx === newChildren.length) {
  33570. // We've reached the end of the new children. We can delete the rest.
  33571. deleteRemainingChildren(returnFiber, oldFiber);
  33572. return resultingFirstChild;
  33573. }
  33574. if (oldFiber === null) {
  33575. // If we don't have any more existing children we can choose a fast path
  33576. // since the rest will all be insertions.
  33577. for (; newIdx < newChildren.length; newIdx++) {
  33578. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  33579. if (!_newFiber) {
  33580. continue;
  33581. }
  33582. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  33583. if (previousNewFiber === null) {
  33584. // TODO: Move out of the loop. This only happens for the first run.
  33585. resultingFirstChild = _newFiber;
  33586. } else {
  33587. previousNewFiber.sibling = _newFiber;
  33588. }
  33589. previousNewFiber = _newFiber;
  33590. }
  33591. return resultingFirstChild;
  33592. }
  33593. // Add all children to a key map for quick lookups.
  33594. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  33595. // Keep scanning and use the map to restore deleted items as moves.
  33596. for (; newIdx < newChildren.length; newIdx++) {
  33597. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  33598. if (_newFiber2) {
  33599. if (shouldTrackSideEffects) {
  33600. if (_newFiber2.alternate !== null) {
  33601. // The new fiber is a work in progress, but if there exists a
  33602. // current, that means that we reused the fiber. We need to delete
  33603. // it from the child list so that we don't add it to the deletion
  33604. // list.
  33605. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  33606. }
  33607. }
  33608. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  33609. if (previousNewFiber === null) {
  33610. resultingFirstChild = _newFiber2;
  33611. } else {
  33612. previousNewFiber.sibling = _newFiber2;
  33613. }
  33614. previousNewFiber = _newFiber2;
  33615. }
  33616. }
  33617. if (shouldTrackSideEffects) {
  33618. // Any existing children that weren't consumed above were deleted. We need
  33619. // to add them to the deletion list.
  33620. existingChildren.forEach(function (child) {
  33621. return deleteChild(returnFiber, child);
  33622. });
  33623. }
  33624. return resultingFirstChild;
  33625. }
  33626. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  33627. // This is the same implementation as reconcileChildrenArray(),
  33628. // but using the iterator instead.
  33629. var iteratorFn = getIteratorFn(newChildrenIterable);
  33630. !(typeof iteratorFn === 'function') ? invariant(false, 'An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  33631. {
  33632. // We don't support rendering Generators because it's a mutation.
  33633. // See https://github.com/facebook/react/issues/12995
  33634. if (typeof Symbol === 'function' &&
  33635. // $FlowFixMe Flow doesn't know about toStringTag
  33636. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  33637. !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
  33638. didWarnAboutGenerators = true;
  33639. }
  33640. // Warn about using Maps as children
  33641. if (newChildrenIterable.entries === iteratorFn) {
  33642. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  33643. didWarnAboutMaps = true;
  33644. }
  33645. // First, validate keys.
  33646. // We'll get a different iterator later for the main pass.
  33647. var _newChildren = iteratorFn.call(newChildrenIterable);
  33648. if (_newChildren) {
  33649. var knownKeys = null;
  33650. var _step = _newChildren.next();
  33651. for (; !_step.done; _step = _newChildren.next()) {
  33652. var child = _step.value;
  33653. knownKeys = warnOnInvalidKey(child, knownKeys);
  33654. }
  33655. }
  33656. }
  33657. var newChildren = iteratorFn.call(newChildrenIterable);
  33658. !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;
  33659. var resultingFirstChild = null;
  33660. var previousNewFiber = null;
  33661. var oldFiber = currentFirstChild;
  33662. var lastPlacedIndex = 0;
  33663. var newIdx = 0;
  33664. var nextOldFiber = null;
  33665. var step = newChildren.next();
  33666. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  33667. if (oldFiber.index > newIdx) {
  33668. nextOldFiber = oldFiber;
  33669. oldFiber = null;
  33670. } else {
  33671. nextOldFiber = oldFiber.sibling;
  33672. }
  33673. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  33674. if (newFiber === null) {
  33675. // TODO: This breaks on empty slots like null children. That's
  33676. // unfortunate because it triggers the slow path all the time. We need
  33677. // a better way to communicate whether this was a miss or null,
  33678. // boolean, undefined, etc.
  33679. if (!oldFiber) {
  33680. oldFiber = nextOldFiber;
  33681. }
  33682. break;
  33683. }
  33684. if (shouldTrackSideEffects) {
  33685. if (oldFiber && newFiber.alternate === null) {
  33686. // We matched the slot, but we didn't reuse the existing fiber, so we
  33687. // need to delete the existing child.
  33688. deleteChild(returnFiber, oldFiber);
  33689. }
  33690. }
  33691. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  33692. if (previousNewFiber === null) {
  33693. // TODO: Move out of the loop. This only happens for the first run.
  33694. resultingFirstChild = newFiber;
  33695. } else {
  33696. // TODO: Defer siblings if we're not at the right index for this slot.
  33697. // I.e. if we had null values before, then we want to defer this
  33698. // for each null value. However, we also don't want to call updateSlot
  33699. // with the previous one.
  33700. previousNewFiber.sibling = newFiber;
  33701. }
  33702. previousNewFiber = newFiber;
  33703. oldFiber = nextOldFiber;
  33704. }
  33705. if (step.done) {
  33706. // We've reached the end of the new children. We can delete the rest.
  33707. deleteRemainingChildren(returnFiber, oldFiber);
  33708. return resultingFirstChild;
  33709. }
  33710. if (oldFiber === null) {
  33711. // If we don't have any more existing children we can choose a fast path
  33712. // since the rest will all be insertions.
  33713. for (; !step.done; newIdx++, step = newChildren.next()) {
  33714. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  33715. if (_newFiber3 === null) {
  33716. continue;
  33717. }
  33718. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  33719. if (previousNewFiber === null) {
  33720. // TODO: Move out of the loop. This only happens for the first run.
  33721. resultingFirstChild = _newFiber3;
  33722. } else {
  33723. previousNewFiber.sibling = _newFiber3;
  33724. }
  33725. previousNewFiber = _newFiber3;
  33726. }
  33727. return resultingFirstChild;
  33728. }
  33729. // Add all children to a key map for quick lookups.
  33730. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  33731. // Keep scanning and use the map to restore deleted items as moves.
  33732. for (; !step.done; newIdx++, step = newChildren.next()) {
  33733. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  33734. if (_newFiber4 !== null) {
  33735. if (shouldTrackSideEffects) {
  33736. if (_newFiber4.alternate !== null) {
  33737. // The new fiber is a work in progress, but if there exists a
  33738. // current, that means that we reused the fiber. We need to delete
  33739. // it from the child list so that we don't add it to the deletion
  33740. // list.
  33741. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  33742. }
  33743. }
  33744. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  33745. if (previousNewFiber === null) {
  33746. resultingFirstChild = _newFiber4;
  33747. } else {
  33748. previousNewFiber.sibling = _newFiber4;
  33749. }
  33750. previousNewFiber = _newFiber4;
  33751. }
  33752. }
  33753. if (shouldTrackSideEffects) {
  33754. // Any existing children that weren't consumed above were deleted. We need
  33755. // to add them to the deletion list.
  33756. existingChildren.forEach(function (child) {
  33757. return deleteChild(returnFiber, child);
  33758. });
  33759. }
  33760. return resultingFirstChild;
  33761. }
  33762. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  33763. // There's no need to check for keys on text nodes since we don't have a
  33764. // way to define them.
  33765. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  33766. // We already have an existing node so let's just update it and delete
  33767. // the rest.
  33768. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  33769. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  33770. existing.return = returnFiber;
  33771. return existing;
  33772. }
  33773. // The existing first child is not a text node so we need to create one
  33774. // and delete the existing ones.
  33775. deleteRemainingChildren(returnFiber, currentFirstChild);
  33776. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  33777. created.return = returnFiber;
  33778. return created;
  33779. }
  33780. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  33781. var key = element.key;
  33782. var child = currentFirstChild;
  33783. while (child !== null) {
  33784. // TODO: If key === null and child.key === null, then this only applies to
  33785. // the first item in the list.
  33786. if (child.key === key) {
  33787. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type) {
  33788. deleteRemainingChildren(returnFiber, child.sibling);
  33789. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  33790. existing.ref = coerceRef(returnFiber, child, element);
  33791. existing.return = returnFiber;
  33792. {
  33793. existing._debugSource = element._source;
  33794. existing._debugOwner = element._owner;
  33795. }
  33796. return existing;
  33797. } else {
  33798. deleteRemainingChildren(returnFiber, child);
  33799. break;
  33800. }
  33801. } else {
  33802. deleteChild(returnFiber, child);
  33803. }
  33804. child = child.sibling;
  33805. }
  33806. if (element.type === REACT_FRAGMENT_TYPE) {
  33807. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  33808. created.return = returnFiber;
  33809. return created;
  33810. } else {
  33811. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  33812. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  33813. _created4.return = returnFiber;
  33814. return _created4;
  33815. }
  33816. }
  33817. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  33818. var key = portal.key;
  33819. var child = currentFirstChild;
  33820. while (child !== null) {
  33821. // TODO: If key === null and child.key === null, then this only applies to
  33822. // the first item in the list.
  33823. if (child.key === key) {
  33824. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  33825. deleteRemainingChildren(returnFiber, child.sibling);
  33826. var existing = useFiber(child, portal.children || [], expirationTime);
  33827. existing.return = returnFiber;
  33828. return existing;
  33829. } else {
  33830. deleteRemainingChildren(returnFiber, child);
  33831. break;
  33832. }
  33833. } else {
  33834. deleteChild(returnFiber, child);
  33835. }
  33836. child = child.sibling;
  33837. }
  33838. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  33839. created.return = returnFiber;
  33840. return created;
  33841. }
  33842. // This API will tag the children with the side-effect of the reconciliation
  33843. // itself. They will be added to the side-effect list as we pass through the
  33844. // children and the parent.
  33845. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  33846. // This function is not recursive.
  33847. // If the top level item is an array, we treat it as a set of children,
  33848. // not as a fragment. Nested arrays on the other hand will be treated as
  33849. // fragment nodes. Recursion happens at the normal flow.
  33850. // Handle top level unkeyed fragments as if they were arrays.
  33851. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  33852. // We treat the ambiguous cases above the same.
  33853. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  33854. if (isUnkeyedTopLevelFragment) {
  33855. newChild = newChild.props.children;
  33856. }
  33857. // Handle object types
  33858. var isObject = typeof newChild === 'object' && newChild !== null;
  33859. if (isObject) {
  33860. switch (newChild.$$typeof) {
  33861. case REACT_ELEMENT_TYPE:
  33862. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  33863. case REACT_PORTAL_TYPE:
  33864. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  33865. }
  33866. }
  33867. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33868. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  33869. }
  33870. if (isArray(newChild)) {
  33871. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  33872. }
  33873. if (getIteratorFn(newChild)) {
  33874. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  33875. }
  33876. if (isObject) {
  33877. throwOnInvalidObjectType(returnFiber, newChild);
  33878. }
  33879. {
  33880. if (typeof newChild === 'function') {
  33881. warnOnFunctionType();
  33882. }
  33883. }
  33884. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  33885. // If the new child is undefined, and the return fiber is a composite
  33886. // component, throw an error. If Fiber return types are disabled,
  33887. // we already threw above.
  33888. switch (returnFiber.tag) {
  33889. case ClassComponent:
  33890. {
  33891. {
  33892. var instance = returnFiber.stateNode;
  33893. if (instance.render._isMockFunction) {
  33894. // We allow auto-mocks to proceed as if they're returning null.
  33895. break;
  33896. }
  33897. }
  33898. }
  33899. // Intentionally fall through to the next case, which handles both
  33900. // functions and classes
  33901. // eslint-disable-next-lined no-fallthrough
  33902. case FunctionComponent:
  33903. {
  33904. var Component = returnFiber.type;
  33905. invariant(false, '%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', Component.displayName || Component.name || 'Component');
  33906. }
  33907. }
  33908. }
  33909. // Remaining cases are all treated as empty.
  33910. return deleteRemainingChildren(returnFiber, currentFirstChild);
  33911. }
  33912. return reconcileChildFibers;
  33913. }
  33914. var reconcileChildFibers = ChildReconciler(true);
  33915. var mountChildFibers = ChildReconciler(false);
  33916. function cloneChildFibers(current$$1, workInProgress) {
  33917. !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;
  33918. if (workInProgress.child === null) {
  33919. return;
  33920. }
  33921. var currentChild = workInProgress.child;
  33922. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  33923. workInProgress.child = newChild;
  33924. newChild.return = workInProgress;
  33925. while (currentChild.sibling !== null) {
  33926. currentChild = currentChild.sibling;
  33927. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  33928. newChild.return = workInProgress;
  33929. }
  33930. newChild.sibling = null;
  33931. }
  33932. // The deepest Fiber on the stack involved in a hydration context.
  33933. // This may have been an insertion or a hydration.
  33934. var hydrationParentFiber = null;
  33935. var nextHydratableInstance = null;
  33936. var isHydrating = false;
  33937. function enterHydrationState(fiber) {
  33938. if (!supportsHydration) {
  33939. return false;
  33940. }
  33941. var parentInstance = fiber.stateNode.containerInfo;
  33942. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  33943. hydrationParentFiber = fiber;
  33944. isHydrating = true;
  33945. return true;
  33946. }
  33947. function deleteHydratableInstance(returnFiber, instance) {
  33948. {
  33949. switch (returnFiber.tag) {
  33950. case HostRoot:
  33951. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  33952. break;
  33953. case HostComponent:
  33954. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  33955. break;
  33956. }
  33957. }
  33958. var childToDelete = createFiberFromHostInstanceForDeletion();
  33959. childToDelete.stateNode = instance;
  33960. childToDelete.return = returnFiber;
  33961. childToDelete.effectTag = Deletion;
  33962. // This might seem like it belongs on progressedFirstDeletion. However,
  33963. // these children are not part of the reconciliation list of children.
  33964. // Even if we abort and rereconcile the children, that will try to hydrate
  33965. // again and the nodes are still in the host tree so these will be
  33966. // recreated.
  33967. if (returnFiber.lastEffect !== null) {
  33968. returnFiber.lastEffect.nextEffect = childToDelete;
  33969. returnFiber.lastEffect = childToDelete;
  33970. } else {
  33971. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  33972. }
  33973. }
  33974. function insertNonHydratedInstance(returnFiber, fiber) {
  33975. fiber.effectTag |= Placement;
  33976. {
  33977. switch (returnFiber.tag) {
  33978. case HostRoot:
  33979. {
  33980. var parentContainer = returnFiber.stateNode.containerInfo;
  33981. switch (fiber.tag) {
  33982. case HostComponent:
  33983. var type = fiber.type;
  33984. var props = fiber.pendingProps;
  33985. didNotFindHydratableContainerInstance(parentContainer, type, props);
  33986. break;
  33987. case HostText:
  33988. var text = fiber.pendingProps;
  33989. didNotFindHydratableContainerTextInstance(parentContainer, text);
  33990. break;
  33991. }
  33992. break;
  33993. }
  33994. case HostComponent:
  33995. {
  33996. var parentType = returnFiber.type;
  33997. var parentProps = returnFiber.memoizedProps;
  33998. var parentInstance = returnFiber.stateNode;
  33999. switch (fiber.tag) {
  34000. case HostComponent:
  34001. var _type = fiber.type;
  34002. var _props = fiber.pendingProps;
  34003. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  34004. break;
  34005. case HostText:
  34006. var _text = fiber.pendingProps;
  34007. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  34008. break;
  34009. }
  34010. break;
  34011. }
  34012. default:
  34013. return;
  34014. }
  34015. }
  34016. }
  34017. function tryHydrate(fiber, nextInstance) {
  34018. switch (fiber.tag) {
  34019. case HostComponent:
  34020. {
  34021. var type = fiber.type;
  34022. var props = fiber.pendingProps;
  34023. var instance = canHydrateInstance(nextInstance, type, props);
  34024. if (instance !== null) {
  34025. fiber.stateNode = instance;
  34026. return true;
  34027. }
  34028. return false;
  34029. }
  34030. case HostText:
  34031. {
  34032. var text = fiber.pendingProps;
  34033. var textInstance = canHydrateTextInstance(nextInstance, text);
  34034. if (textInstance !== null) {
  34035. fiber.stateNode = textInstance;
  34036. return true;
  34037. }
  34038. return false;
  34039. }
  34040. default:
  34041. return false;
  34042. }
  34043. }
  34044. function tryToClaimNextHydratableInstance(fiber) {
  34045. if (!isHydrating) {
  34046. return;
  34047. }
  34048. var nextInstance = nextHydratableInstance;
  34049. if (!nextInstance) {
  34050. // Nothing to hydrate. Make it an insertion.
  34051. insertNonHydratedInstance(hydrationParentFiber, fiber);
  34052. isHydrating = false;
  34053. hydrationParentFiber = fiber;
  34054. return;
  34055. }
  34056. var firstAttemptedInstance = nextInstance;
  34057. if (!tryHydrate(fiber, nextInstance)) {
  34058. // If we can't hydrate this instance let's try the next one.
  34059. // We use this as a heuristic. It's based on intuition and not data so it
  34060. // might be flawed or unnecessary.
  34061. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  34062. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  34063. // Nothing to hydrate. Make it an insertion.
  34064. insertNonHydratedInstance(hydrationParentFiber, fiber);
  34065. isHydrating = false;
  34066. hydrationParentFiber = fiber;
  34067. return;
  34068. }
  34069. // We matched the next one, we'll now assume that the first one was
  34070. // superfluous and we'll delete it. Since we can't eagerly delete it
  34071. // we'll have to schedule a deletion. To do that, this node needs a dummy
  34072. // fiber associated with it.
  34073. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  34074. }
  34075. hydrationParentFiber = fiber;
  34076. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  34077. }
  34078. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  34079. if (!supportsHydration) {
  34080. invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  34081. }
  34082. var instance = fiber.stateNode;
  34083. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  34084. // TODO: Type this specific to this type of component.
  34085. fiber.updateQueue = updatePayload;
  34086. // If the update payload indicates that there is a change or if there
  34087. // is a new ref we mark this as an update.
  34088. if (updatePayload !== null) {
  34089. return true;
  34090. }
  34091. return false;
  34092. }
  34093. function prepareToHydrateHostTextInstance(fiber) {
  34094. if (!supportsHydration) {
  34095. invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  34096. }
  34097. var textInstance = fiber.stateNode;
  34098. var textContent = fiber.memoizedProps;
  34099. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  34100. {
  34101. if (shouldUpdate) {
  34102. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  34103. // hydration parent is the parent host component of this host text.
  34104. var returnFiber = hydrationParentFiber;
  34105. if (returnFiber !== null) {
  34106. switch (returnFiber.tag) {
  34107. case HostRoot:
  34108. {
  34109. var parentContainer = returnFiber.stateNode.containerInfo;
  34110. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  34111. break;
  34112. }
  34113. case HostComponent:
  34114. {
  34115. var parentType = returnFiber.type;
  34116. var parentProps = returnFiber.memoizedProps;
  34117. var parentInstance = returnFiber.stateNode;
  34118. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  34119. break;
  34120. }
  34121. }
  34122. }
  34123. }
  34124. }
  34125. return shouldUpdate;
  34126. }
  34127. function popToNextHostParent(fiber) {
  34128. var parent = fiber.return;
  34129. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) {
  34130. parent = parent.return;
  34131. }
  34132. hydrationParentFiber = parent;
  34133. }
  34134. function popHydrationState(fiber) {
  34135. if (!supportsHydration) {
  34136. return false;
  34137. }
  34138. if (fiber !== hydrationParentFiber) {
  34139. // We're deeper than the current hydration context, inside an inserted
  34140. // tree.
  34141. return false;
  34142. }
  34143. if (!isHydrating) {
  34144. // If we're not currently hydrating but we're in a hydration context, then
  34145. // we were an insertion and now need to pop up reenter hydration of our
  34146. // siblings.
  34147. popToNextHostParent(fiber);
  34148. isHydrating = true;
  34149. return false;
  34150. }
  34151. var type = fiber.type;
  34152. // If we have any remaining hydratable nodes, we need to delete them now.
  34153. // We only do this deeper than head and body since they tend to have random
  34154. // other nodes in them. We also ignore components with pure text content in
  34155. // side of them.
  34156. // TODO: Better heuristic.
  34157. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  34158. var nextInstance = nextHydratableInstance;
  34159. while (nextInstance) {
  34160. deleteHydratableInstance(fiber, nextInstance);
  34161. nextInstance = getNextHydratableSibling(nextInstance);
  34162. }
  34163. }
  34164. popToNextHostParent(fiber);
  34165. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  34166. return true;
  34167. }
  34168. function resetHydrationState() {
  34169. if (!supportsHydration) {
  34170. return;
  34171. }
  34172. hydrationParentFiber = null;
  34173. nextHydratableInstance = null;
  34174. isHydrating = false;
  34175. }
  34176. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  34177. var didWarnAboutBadClass = void 0;
  34178. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  34179. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  34180. var didWarnAboutFunctionRefs = void 0;
  34181. {
  34182. didWarnAboutBadClass = {};
  34183. didWarnAboutContextTypeOnFunctionComponent = {};
  34184. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  34185. didWarnAboutFunctionRefs = {};
  34186. }
  34187. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  34188. if (current$$1 === null) {
  34189. // If this is a fresh new component that hasn't been rendered yet, we
  34190. // won't update its child set by applying minimal side-effects. Instead,
  34191. // we will add them all to the child before it gets rendered. That means
  34192. // we can optimize this reconciliation pass by not tracking side-effects.
  34193. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34194. } else {
  34195. // If the current child is the same as the work in progress, it means that
  34196. // we haven't yet started any work on these children. Therefore, we use
  34197. // the clone algorithm to create a copy of all the current children.
  34198. // If we had any progressed work already, that is invalid at this point so
  34199. // let's throw it out.
  34200. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  34201. }
  34202. }
  34203. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  34204. // This function is fork of reconcileChildren. It's used in cases where we
  34205. // want to reconcile without matching against the existing set. This has the
  34206. // effect of all current children being unmounted; even if the type and key
  34207. // are the same, the old child is unmounted and a new child is created.
  34208. //
  34209. // To do this, we're going to go through the reconcile algorithm twice. In
  34210. // the first pass, we schedule a deletion for all the current children by
  34211. // passing null.
  34212. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  34213. // In the second pass, we mount the new children. The trick here is that we
  34214. // pass null in place of where we usually pass the current child set. This has
  34215. // the effect of remounting all children regardless of whether their their
  34216. // identity matches.
  34217. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34218. }
  34219. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  34220. var render = Component.render;
  34221. var ref = workInProgress.ref;
  34222. // The rest is a fork of updateFunctionComponent
  34223. var nextChildren = void 0;
  34224. prepareToReadContext(workInProgress, renderExpirationTime);
  34225. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  34226. {
  34227. ReactCurrentOwner$3.current = workInProgress;
  34228. setCurrentPhase('render');
  34229. nextChildren = render(nextProps, ref);
  34230. setCurrentPhase(null);
  34231. }
  34232. nextChildren = finishHooks(render, nextProps, nextChildren, ref);
  34233. // React DevTools reads this flag.
  34234. workInProgress.effectTag |= PerformedWork;
  34235. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34236. return workInProgress.child;
  34237. }
  34238. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  34239. if (current$$1 === null) {
  34240. var type = Component.type;
  34241. if (isSimpleFunctionComponent(type) && Component.compare === null) {
  34242. // If this is a plain function component without default props,
  34243. // and with only the default shallow comparison, we upgrade it
  34244. // to a SimpleMemoComponent to allow fast path updates.
  34245. workInProgress.tag = SimpleMemoComponent;
  34246. workInProgress.type = type;
  34247. return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime);
  34248. }
  34249. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  34250. child.ref = workInProgress.ref;
  34251. child.return = workInProgress;
  34252. workInProgress.child = child;
  34253. return child;
  34254. }
  34255. var currentChild = current$$1.child; // This is always exactly one child
  34256. if (updateExpirationTime < renderExpirationTime) {
  34257. // This will be the props with resolved defaultProps,
  34258. // unlike current.memoizedProps which will be the unresolved ones.
  34259. var prevProps = currentChild.memoizedProps;
  34260. // Default to shallow comparison
  34261. var compare = Component.compare;
  34262. compare = compare !== null ? compare : shallowEqual;
  34263. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  34264. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34265. }
  34266. }
  34267. // React DevTools reads this flag.
  34268. workInProgress.effectTag |= PerformedWork;
  34269. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  34270. newChild.ref = workInProgress.ref;
  34271. newChild.return = workInProgress;
  34272. workInProgress.child = newChild;
  34273. return newChild;
  34274. }
  34275. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  34276. if (current$$1 !== null && updateExpirationTime < renderExpirationTime) {
  34277. var prevProps = current$$1.memoizedProps;
  34278. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  34279. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34280. }
  34281. }
  34282. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  34283. }
  34284. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  34285. var nextChildren = workInProgress.pendingProps;
  34286. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34287. return workInProgress.child;
  34288. }
  34289. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  34290. var nextChildren = workInProgress.pendingProps.children;
  34291. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34292. return workInProgress.child;
  34293. }
  34294. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  34295. if (enableProfilerTimer) {
  34296. workInProgress.effectTag |= Update;
  34297. }
  34298. var nextProps = workInProgress.pendingProps;
  34299. var nextChildren = nextProps.children;
  34300. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34301. return workInProgress.child;
  34302. }
  34303. function markRef(current$$1, workInProgress) {
  34304. var ref = workInProgress.ref;
  34305. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  34306. // Schedule a Ref effect
  34307. workInProgress.effectTag |= Ref;
  34308. }
  34309. }
  34310. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  34311. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  34312. var context = getMaskedContext(workInProgress, unmaskedContext);
  34313. var nextChildren = void 0;
  34314. prepareToReadContext(workInProgress, renderExpirationTime);
  34315. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  34316. {
  34317. ReactCurrentOwner$3.current = workInProgress;
  34318. setCurrentPhase('render');
  34319. nextChildren = Component(nextProps, context);
  34320. setCurrentPhase(null);
  34321. }
  34322. nextChildren = finishHooks(Component, nextProps, nextChildren, context);
  34323. // React DevTools reads this flag.
  34324. workInProgress.effectTag |= PerformedWork;
  34325. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34326. return workInProgress.child;
  34327. }
  34328. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  34329. // Push context providers early to prevent context stack mismatches.
  34330. // During mounting we don't know the child context yet as the instance doesn't exist.
  34331. // We will invalidate the child context in finishClassComponent() right after rendering.
  34332. var hasContext = void 0;
  34333. if (isContextProvider(Component)) {
  34334. hasContext = true;
  34335. pushContextProvider(workInProgress);
  34336. } else {
  34337. hasContext = false;
  34338. }
  34339. prepareToReadContext(workInProgress, renderExpirationTime);
  34340. var instance = workInProgress.stateNode;
  34341. var shouldUpdate = void 0;
  34342. if (instance === null) {
  34343. if (current$$1 !== null) {
  34344. // An class component without an instance only mounts if it suspended
  34345. // inside a non- concurrent tree, in an inconsistent state. We want to
  34346. // tree it like a new mount, even though an empty version of it already
  34347. // committed. Disconnect the alternate pointers.
  34348. current$$1.alternate = null;
  34349. workInProgress.alternate = null;
  34350. // Since this is conceptually a new fiber, schedule a Placement effect
  34351. workInProgress.effectTag |= Placement;
  34352. }
  34353. // In the initial pass we might need to construct the instance.
  34354. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34355. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34356. shouldUpdate = true;
  34357. } else if (current$$1 === null) {
  34358. // In a resume, we'll already have an instance we can reuse.
  34359. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34360. } else {
  34361. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  34362. }
  34363. return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  34364. }
  34365. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  34366. // Refs should update even if shouldComponentUpdate returns false
  34367. markRef(current$$1, workInProgress);
  34368. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  34369. if (!shouldUpdate && !didCaptureError) {
  34370. // Context providers should defer to sCU for rendering
  34371. if (hasContext) {
  34372. invalidateContextProvider(workInProgress, Component, false);
  34373. }
  34374. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34375. }
  34376. var instance = workInProgress.stateNode;
  34377. // Rerender
  34378. ReactCurrentOwner$3.current = workInProgress;
  34379. var nextChildren = void 0;
  34380. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  34381. // If we captured an error, but getDerivedStateFrom catch is not defined,
  34382. // unmount all the children. componentDidCatch will schedule an update to
  34383. // re-render a fallback. This is temporary until we migrate everyone to
  34384. // the new API.
  34385. // TODO: Warn in a future release.
  34386. nextChildren = null;
  34387. if (enableProfilerTimer) {
  34388. stopProfilerTimerIfRunning(workInProgress);
  34389. }
  34390. } else {
  34391. {
  34392. setCurrentPhase('render');
  34393. nextChildren = instance.render();
  34394. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  34395. instance.render();
  34396. }
  34397. setCurrentPhase(null);
  34398. }
  34399. }
  34400. // React DevTools reads this flag.
  34401. workInProgress.effectTag |= PerformedWork;
  34402. if (current$$1 !== null && didCaptureError) {
  34403. // If we're recovering from an error, reconcile without reusing any of
  34404. // the existing children. Conceptually, the normal children and the children
  34405. // that are shown on error are two different sets, so we shouldn't reuse
  34406. // normal children even if their identities match.
  34407. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34408. } else {
  34409. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34410. }
  34411. // Memoize state using the values we just used to render.
  34412. // TODO: Restructure so we never read values from the instance.
  34413. workInProgress.memoizedState = instance.state;
  34414. // The context might have changed so we need to recalculate it.
  34415. if (hasContext) {
  34416. invalidateContextProvider(workInProgress, Component, true);
  34417. }
  34418. return workInProgress.child;
  34419. }
  34420. function pushHostRootContext(workInProgress) {
  34421. var root = workInProgress.stateNode;
  34422. if (root.pendingContext) {
  34423. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  34424. } else if (root.context) {
  34425. // Should always be set
  34426. pushTopLevelContextObject(workInProgress, root.context, false);
  34427. }
  34428. pushHostContainer(workInProgress, root.containerInfo);
  34429. }
  34430. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  34431. pushHostRootContext(workInProgress);
  34432. var updateQueue = workInProgress.updateQueue;
  34433. !(updateQueue !== null) ? invariant(false, 'If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  34434. var nextProps = workInProgress.pendingProps;
  34435. var prevState = workInProgress.memoizedState;
  34436. var prevChildren = prevState !== null ? prevState.element : null;
  34437. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  34438. var nextState = workInProgress.memoizedState;
  34439. // Caution: React DevTools currently depends on this property
  34440. // being called "element".
  34441. var nextChildren = nextState.element;
  34442. if (nextChildren === prevChildren) {
  34443. // If the state is the same as before, that's a bailout because we had
  34444. // no work that expires at this time.
  34445. resetHydrationState();
  34446. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34447. }
  34448. var root = workInProgress.stateNode;
  34449. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  34450. // If we don't have any current children this might be the first pass.
  34451. // We always try to hydrate. If this isn't a hydration pass there won't
  34452. // be any children to hydrate which is effectively the same thing as
  34453. // not hydrating.
  34454. // This is a bit of a hack. We track the host root as a placement to
  34455. // know that we're currently in a mounting state. That way isMounted
  34456. // works as expected. We must reset this before committing.
  34457. // TODO: Delete this when we delete isMounted and findDOMNode.
  34458. workInProgress.effectTag |= Placement;
  34459. // Ensure that children mount into this root without tracking
  34460. // side-effects. This ensures that we don't store Placement effects on
  34461. // nodes that will be hydrated.
  34462. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34463. } else {
  34464. // Otherwise reset hydration state in case we aborted and resumed another
  34465. // root.
  34466. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34467. resetHydrationState();
  34468. }
  34469. return workInProgress.child;
  34470. }
  34471. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  34472. pushHostContext(workInProgress);
  34473. if (current$$1 === null) {
  34474. tryToClaimNextHydratableInstance(workInProgress);
  34475. }
  34476. var type = workInProgress.type;
  34477. var nextProps = workInProgress.pendingProps;
  34478. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  34479. var nextChildren = nextProps.children;
  34480. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  34481. if (isDirectTextChild) {
  34482. // We special case a direct text child of a host node. This is a common
  34483. // case. We won't handle it as a reified child. We will instead handle
  34484. // this in the host environment that also have access to this prop. That
  34485. // avoids allocating another HostText fiber and traversing it.
  34486. nextChildren = null;
  34487. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  34488. // If we're switching from a direct text child to a normal child, or to
  34489. // empty, we need to schedule the text content to be reset.
  34490. workInProgress.effectTag |= ContentReset;
  34491. }
  34492. markRef(current$$1, workInProgress);
  34493. // Check the host config to see if the children are offscreen/hidden.
  34494. if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) {
  34495. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  34496. workInProgress.expirationTime = Never;
  34497. return null;
  34498. }
  34499. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34500. return workInProgress.child;
  34501. }
  34502. function updateHostText(current$$1, workInProgress) {
  34503. if (current$$1 === null) {
  34504. tryToClaimNextHydratableInstance(workInProgress);
  34505. }
  34506. // Nothing to do here. This is terminal. We'll do the completion step
  34507. // immediately after.
  34508. return null;
  34509. }
  34510. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  34511. if (_current !== null) {
  34512. // An lazy component only mounts if it suspended inside a non-
  34513. // concurrent tree, in an inconsistent state. We want to treat it like
  34514. // a new mount, even though an empty version of it already committed.
  34515. // Disconnect the alternate pointers.
  34516. _current.alternate = null;
  34517. workInProgress.alternate = null;
  34518. // Since this is conceptually a new fiber, schedule a Placement effect
  34519. workInProgress.effectTag |= Placement;
  34520. }
  34521. var props = workInProgress.pendingProps;
  34522. // We can't start a User Timing measurement with correct label yet.
  34523. // Cancel and resume right after we know the tag.
  34524. cancelWorkTimer(workInProgress);
  34525. var Component = readLazyComponentType(elementType);
  34526. // Store the unwrapped component in the type.
  34527. workInProgress.type = Component;
  34528. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  34529. startWorkTimer(workInProgress);
  34530. var resolvedProps = resolveDefaultProps(Component, props);
  34531. var child = void 0;
  34532. switch (resolvedTag) {
  34533. case FunctionComponent:
  34534. {
  34535. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  34536. break;
  34537. }
  34538. case ClassComponent:
  34539. {
  34540. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  34541. break;
  34542. }
  34543. case ForwardRef:
  34544. {
  34545. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  34546. break;
  34547. }
  34548. case MemoComponent:
  34549. {
  34550. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  34551. updateExpirationTime, renderExpirationTime);
  34552. break;
  34553. }
  34554. default:
  34555. {
  34556. // This message intentionally doesn't mention ForwardRef or MemoComponent
  34557. // because the fact that it's a separate type of work is an
  34558. // implementation detail.
  34559. invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component);
  34560. }
  34561. }
  34562. return child;
  34563. }
  34564. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  34565. if (_current !== null) {
  34566. // An incomplete component only mounts if it suspended inside a non-
  34567. // concurrent tree, in an inconsistent state. We want to treat it like
  34568. // a new mount, even though an empty version of it already committed.
  34569. // Disconnect the alternate pointers.
  34570. _current.alternate = null;
  34571. workInProgress.alternate = null;
  34572. // Since this is conceptually a new fiber, schedule a Placement effect
  34573. workInProgress.effectTag |= Placement;
  34574. }
  34575. // Promote the fiber to a class and try rendering again.
  34576. workInProgress.tag = ClassComponent;
  34577. // The rest of this function is a fork of `updateClassComponent`
  34578. // Push context providers early to prevent context stack mismatches.
  34579. // During mounting we don't know the child context yet as the instance doesn't exist.
  34580. // We will invalidate the child context in finishClassComponent() right after rendering.
  34581. var hasContext = void 0;
  34582. if (isContextProvider(Component)) {
  34583. hasContext = true;
  34584. pushContextProvider(workInProgress);
  34585. } else {
  34586. hasContext = false;
  34587. }
  34588. prepareToReadContext(workInProgress, renderExpirationTime);
  34589. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34590. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34591. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  34592. }
  34593. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  34594. if (_current !== null) {
  34595. // An indeterminate component only mounts if it suspended inside a non-
  34596. // concurrent tree, in an inconsistent state. We want to treat it like
  34597. // a new mount, even though an empty version of it already committed.
  34598. // Disconnect the alternate pointers.
  34599. _current.alternate = null;
  34600. workInProgress.alternate = null;
  34601. // Since this is conceptually a new fiber, schedule a Placement effect
  34602. workInProgress.effectTag |= Placement;
  34603. }
  34604. var props = workInProgress.pendingProps;
  34605. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  34606. var context = getMaskedContext(workInProgress, unmaskedContext);
  34607. prepareToReadContext(workInProgress, renderExpirationTime);
  34608. prepareToUseHooks(null, workInProgress, renderExpirationTime);
  34609. var value = void 0;
  34610. {
  34611. if (Component.prototype && typeof Component.prototype.render === 'function') {
  34612. var componentName = getComponentName(Component) || 'Unknown';
  34613. if (!didWarnAboutBadClass[componentName]) {
  34614. warningWithoutStack$1(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
  34615. didWarnAboutBadClass[componentName] = true;
  34616. }
  34617. }
  34618. if (workInProgress.mode & StrictMode) {
  34619. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  34620. }
  34621. ReactCurrentOwner$3.current = workInProgress;
  34622. value = Component(props, context);
  34623. }
  34624. // React DevTools reads this flag.
  34625. workInProgress.effectTag |= PerformedWork;
  34626. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  34627. // Proceed under the assumption that this is a class instance
  34628. workInProgress.tag = ClassComponent;
  34629. // Throw out any hooks that were used.
  34630. resetHooks();
  34631. // Push context providers early to prevent context stack mismatches.
  34632. // During mounting we don't know the child context yet as the instance doesn't exist.
  34633. // We will invalidate the child context in finishClassComponent() right after rendering.
  34634. var hasContext = false;
  34635. if (isContextProvider(Component)) {
  34636. hasContext = true;
  34637. pushContextProvider(workInProgress);
  34638. } else {
  34639. hasContext = false;
  34640. }
  34641. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  34642. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  34643. if (typeof getDerivedStateFromProps === 'function') {
  34644. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  34645. }
  34646. adoptClassInstance(workInProgress, value);
  34647. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  34648. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  34649. } else {
  34650. // Proceed under the assumption that this is a function component
  34651. workInProgress.tag = FunctionComponent;
  34652. value = finishHooks(Component, props, value, context);
  34653. {
  34654. if (Component) {
  34655. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  34656. }
  34657. if (workInProgress.ref !== null) {
  34658. var info = '';
  34659. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  34660. if (ownerName) {
  34661. info += '\n\nCheck the render method of `' + ownerName + '`.';
  34662. }
  34663. var warningKey = ownerName || workInProgress._debugID || '';
  34664. var debugSource = workInProgress._debugSource;
  34665. if (debugSource) {
  34666. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  34667. }
  34668. if (!didWarnAboutFunctionRefs[warningKey]) {
  34669. didWarnAboutFunctionRefs[warningKey] = true;
  34670. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info);
  34671. }
  34672. }
  34673. if (typeof Component.getDerivedStateFromProps === 'function') {
  34674. var _componentName = getComponentName(Component) || 'Unknown';
  34675. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName]) {
  34676. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName);
  34677. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName] = true;
  34678. }
  34679. }
  34680. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  34681. var _componentName2 = getComponentName(Component) || 'Unknown';
  34682. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName2]) {
  34683. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName2);
  34684. didWarnAboutContextTypeOnFunctionComponent[_componentName2] = true;
  34685. }
  34686. }
  34687. }
  34688. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  34689. return workInProgress.child;
  34690. }
  34691. }
  34692. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  34693. var mode = workInProgress.mode;
  34694. var nextProps = workInProgress.pendingProps;
  34695. // We should attempt to render the primary children unless this boundary
  34696. // already suspended during this render (`alreadyCaptured` is true).
  34697. var nextState = workInProgress.memoizedState;
  34698. var nextDidTimeout = void 0;
  34699. if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  34700. // This is the first attempt.
  34701. nextState = null;
  34702. nextDidTimeout = false;
  34703. } else {
  34704. // Something in this boundary's subtree already suspended. Switch to
  34705. // rendering the fallback children.
  34706. nextState = {
  34707. timedOutAt: nextState !== null ? nextState.timedOutAt : NoWork
  34708. };
  34709. nextDidTimeout = true;
  34710. workInProgress.effectTag &= ~DidCapture;
  34711. }
  34712. // This next part is a bit confusing. If the children timeout, we switch to
  34713. // showing the fallback children in place of the "primary" children.
  34714. // However, we don't want to delete the primary children because then their
  34715. // state will be lost (both the React state and the host state, e.g.
  34716. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  34717. // Both the fallback children AND the primary children are rendered at the
  34718. // same time. Once the primary children are un-suspended, we can delete
  34719. // the fallback children — don't need to preserve their state.
  34720. //
  34721. // The two sets of children are siblings in the host environment, but
  34722. // semantically, for purposes of reconciliation, they are two separate sets.
  34723. // So we store them using two fragment fibers.
  34724. //
  34725. // However, we want to avoid allocating extra fibers for every placeholder.
  34726. // They're only necessary when the children time out, because that's the
  34727. // only time when both sets are mounted.
  34728. //
  34729. // So, the extra fragment fibers are only used if the children time out.
  34730. // Otherwise, we render the primary children directly. This requires some
  34731. // custom reconciliation logic to preserve the state of the primary
  34732. // children. It's essentially a very basic form of re-parenting.
  34733. // `child` points to the child fiber. In the normal case, this is the first
  34734. // fiber of the primary children set. In the timed-out case, it's a
  34735. // a fragment fiber containing the primary children.
  34736. var child = void 0;
  34737. // `next` points to the next fiber React should render. In the normal case,
  34738. // it's the same as `child`: the first fiber of the primary children set.
  34739. // In the timed-out case, it's a fragment fiber containing the *fallback*
  34740. // children -- we skip over the primary children entirely.
  34741. var next = void 0;
  34742. if (current$$1 === null) {
  34743. // This is the initial mount. This branch is pretty simple because there's
  34744. // no previous state that needs to be preserved.
  34745. if (nextDidTimeout) {
  34746. // Mount separate fragments for primary and fallback children.
  34747. var nextFallbackChildren = nextProps.fallback;
  34748. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  34749. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  34750. // Outside of concurrent mode, we commit the effects from the
  34751. var progressedState = workInProgress.memoizedState;
  34752. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  34753. primaryChildFragment.child = progressedPrimaryChild;
  34754. }
  34755. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  34756. primaryChildFragment.sibling = fallbackChildFragment;
  34757. child = primaryChildFragment;
  34758. // Skip the primary children, and continue working on the
  34759. // fallback children.
  34760. next = fallbackChildFragment;
  34761. child.return = next.return = workInProgress;
  34762. } else {
  34763. // Mount the primary children without an intermediate fragment fiber.
  34764. var nextPrimaryChildren = nextProps.children;
  34765. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  34766. }
  34767. } else {
  34768. // This is an update. This branch is more complicated because we need to
  34769. // ensure the state of the primary children is preserved.
  34770. var prevState = current$$1.memoizedState;
  34771. var prevDidTimeout = prevState !== null;
  34772. if (prevDidTimeout) {
  34773. // The current tree already timed out. That means each child set is
  34774. var currentPrimaryChildFragment = current$$1.child;
  34775. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  34776. if (nextDidTimeout) {
  34777. // Still timed out. Reuse the current primary children by cloning
  34778. // its fragment. We're going to skip over these entirely.
  34779. var _nextFallbackChildren = nextProps.fallback;
  34780. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  34781. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  34782. // Outside of concurrent mode, we commit the effects from the
  34783. var _progressedState = workInProgress.memoizedState;
  34784. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  34785. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  34786. _primaryChildFragment.child = _progressedPrimaryChild;
  34787. }
  34788. }
  34789. // Because primaryChildFragment is a new fiber that we're inserting as the
  34790. // parent of a new tree, we need to set its treeBaseDuration.
  34791. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  34792. // treeBaseDuration is the sum of all the child tree base durations.
  34793. var treeBaseDuration = 0;
  34794. var hiddenChild = _primaryChildFragment.child;
  34795. while (hiddenChild !== null) {
  34796. treeBaseDuration += hiddenChild.treeBaseDuration;
  34797. hiddenChild = hiddenChild.sibling;
  34798. }
  34799. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  34800. }
  34801. // Clone the fallback child fragment, too. These we'll continue
  34802. // working on.
  34803. var _fallbackChildFragment = _primaryChildFragment.sibling = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  34804. child = _primaryChildFragment;
  34805. _primaryChildFragment.childExpirationTime = NoWork;
  34806. // Skip the primary children, and continue working on the
  34807. // fallback children.
  34808. next = _fallbackChildFragment;
  34809. child.return = next.return = workInProgress;
  34810. } else {
  34811. // No longer suspended. Switch back to showing the primary children,
  34812. // and remove the intermediate fragment fiber.
  34813. var _nextPrimaryChildren = nextProps.children;
  34814. var currentPrimaryChild = currentPrimaryChildFragment.child;
  34815. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  34816. // If this render doesn't suspend, we need to delete the fallback
  34817. // children. Wait until the complete phase, after we've confirmed the
  34818. // fallback is no longer needed.
  34819. // TODO: Would it be better to store the fallback fragment on
  34820. // the stateNode?
  34821. // Continue rendering the children, like we normally do.
  34822. child = next = primaryChild;
  34823. }
  34824. } else {
  34825. // The current tree has not already timed out. That means the primary
  34826. // children are not wrapped in a fragment fiber.
  34827. var _currentPrimaryChild = current$$1.child;
  34828. if (nextDidTimeout) {
  34829. // Timed out. Wrap the children in a fragment fiber to keep them
  34830. // separate from the fallback children.
  34831. var _nextFallbackChildren2 = nextProps.fallback;
  34832. var _primaryChildFragment2 = createFiberFromFragment(
  34833. // It shouldn't matter what the pending props are because we aren't
  34834. // going to render this fragment.
  34835. null, mode, NoWork, null);
  34836. _primaryChildFragment2.child = _currentPrimaryChild;
  34837. // Even though we're creating a new fiber, there are no new children,
  34838. // because we're reusing an already mounted tree. So we don't need to
  34839. // schedule a placement.
  34840. // primaryChildFragment.effectTag |= Placement;
  34841. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  34842. // Outside of concurrent mode, we commit the effects from the
  34843. var _progressedState2 = workInProgress.memoizedState;
  34844. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  34845. _primaryChildFragment2.child = _progressedPrimaryChild2;
  34846. }
  34847. // Because primaryChildFragment is a new fiber that we're inserting as the
  34848. // parent of a new tree, we need to set its treeBaseDuration.
  34849. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  34850. // treeBaseDuration is the sum of all the child tree base durations.
  34851. var _treeBaseDuration = 0;
  34852. var _hiddenChild = _primaryChildFragment2.child;
  34853. while (_hiddenChild !== null) {
  34854. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  34855. _hiddenChild = _hiddenChild.sibling;
  34856. }
  34857. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  34858. }
  34859. // Create a fragment from the fallback children, too.
  34860. var _fallbackChildFragment2 = _primaryChildFragment2.sibling = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  34861. _fallbackChildFragment2.effectTag |= Placement;
  34862. child = _primaryChildFragment2;
  34863. _primaryChildFragment2.childExpirationTime = NoWork;
  34864. // Skip the primary children, and continue working on the
  34865. // fallback children.
  34866. next = _fallbackChildFragment2;
  34867. child.return = next.return = workInProgress;
  34868. } else {
  34869. // Still haven't timed out. Continue rendering the children, like we
  34870. // normally do.
  34871. var _nextPrimaryChildren2 = nextProps.children;
  34872. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  34873. }
  34874. }
  34875. }
  34876. workInProgress.memoizedState = nextState;
  34877. workInProgress.child = child;
  34878. return next;
  34879. }
  34880. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  34881. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  34882. var nextChildren = workInProgress.pendingProps;
  34883. if (current$$1 === null) {
  34884. // Portals are special because we don't append the children during mount
  34885. // but at commit. Therefore we need to track insertions which the normal
  34886. // flow doesn't do during mount. This doesn't happen at the root because
  34887. // the root always starts with a "current" with a null child.
  34888. // TODO: Consider unifying this with how the root works.
  34889. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34890. } else {
  34891. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34892. }
  34893. return workInProgress.child;
  34894. }
  34895. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  34896. var providerType = workInProgress.type;
  34897. var context = providerType._context;
  34898. var newProps = workInProgress.pendingProps;
  34899. var oldProps = workInProgress.memoizedProps;
  34900. var newValue = newProps.value;
  34901. {
  34902. var providerPropTypes = workInProgress.type.propTypes;
  34903. if (providerPropTypes) {
  34904. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  34905. }
  34906. }
  34907. pushProvider(workInProgress, newValue);
  34908. if (oldProps !== null) {
  34909. var oldValue = oldProps.value;
  34910. var changedBits = calculateChangedBits(context, newValue, oldValue);
  34911. if (changedBits === 0) {
  34912. // No change. Bailout early if children are the same.
  34913. if (oldProps.children === newProps.children && !hasContextChanged()) {
  34914. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34915. }
  34916. } else {
  34917. // The context value changed. Search for matching consumers and schedule
  34918. // them to update.
  34919. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  34920. }
  34921. }
  34922. var newChildren = newProps.children;
  34923. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  34924. return workInProgress.child;
  34925. }
  34926. var hasWarnedAboutUsingContextAsConsumer = false;
  34927. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  34928. var context = workInProgress.type;
  34929. // The logic below for Context differs depending on PROD or DEV mode. In
  34930. // DEV mode, we create a separate object for Context.Consumer that acts
  34931. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  34932. // so we use the old behaviour (Context.Consumer references Context) to
  34933. // reduce size and overhead. The separate object references context via
  34934. // a property called "_context", which also gives us the ability to check
  34935. // in DEV mode if this property exists or not and warn if it does not.
  34936. {
  34937. if (context._context === undefined) {
  34938. // This may be because it's a Context (rather than a Consumer).
  34939. // Or it may be because it's older React where they're the same thing.
  34940. // We only want to warn if we're sure it's a new React.
  34941. if (context !== context.Consumer) {
  34942. if (!hasWarnedAboutUsingContextAsConsumer) {
  34943. hasWarnedAboutUsingContextAsConsumer = true;
  34944. warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  34945. }
  34946. }
  34947. } else {
  34948. context = context._context;
  34949. }
  34950. }
  34951. var newProps = workInProgress.pendingProps;
  34952. var render = newProps.children;
  34953. {
  34954. !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;
  34955. }
  34956. prepareToReadContext(workInProgress, renderExpirationTime);
  34957. var newValue = readContext(context, newProps.unstable_observedBits);
  34958. var newChildren = void 0;
  34959. {
  34960. ReactCurrentOwner$3.current = workInProgress;
  34961. setCurrentPhase('render');
  34962. newChildren = render(newValue);
  34963. setCurrentPhase(null);
  34964. }
  34965. // React DevTools reads this flag.
  34966. workInProgress.effectTag |= PerformedWork;
  34967. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  34968. return workInProgress.child;
  34969. }
  34970. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  34971. cancelWorkTimer(workInProgress);
  34972. if (current$$1 !== null) {
  34973. // Reuse previous context list
  34974. workInProgress.firstContextDependency = current$$1.firstContextDependency;
  34975. }
  34976. if (enableProfilerTimer) {
  34977. // Don't update "base" render times for bailouts.
  34978. stopProfilerTimerIfRunning(workInProgress);
  34979. }
  34980. // Check if the children have any pending work.
  34981. var childExpirationTime = workInProgress.childExpirationTime;
  34982. if (childExpirationTime < renderExpirationTime) {
  34983. // The children don't have any work either. We can skip them.
  34984. // TODO: Once we add back resuming, we should check if the children are
  34985. // a work-in-progress set. If so, we need to transfer their effects.
  34986. return null;
  34987. } else {
  34988. // This fiber doesn't have work, but its subtree does. Clone the child
  34989. // fibers and continue.
  34990. cloneChildFibers(current$$1, workInProgress);
  34991. return workInProgress.child;
  34992. }
  34993. }
  34994. function beginWork(current$$1, workInProgress, renderExpirationTime) {
  34995. var updateExpirationTime = workInProgress.expirationTime;
  34996. if (current$$1 !== null) {
  34997. var oldProps = current$$1.memoizedProps;
  34998. var newProps = workInProgress.pendingProps;
  34999. if (oldProps === newProps && !hasContextChanged() && updateExpirationTime < renderExpirationTime) {
  35000. // This fiber does not have any pending work. Bailout without entering
  35001. // the begin phase. There's still some bookkeeping we that needs to be done
  35002. // in this optimized path, mostly pushing stuff onto the stack.
  35003. switch (workInProgress.tag) {
  35004. case HostRoot:
  35005. pushHostRootContext(workInProgress);
  35006. resetHydrationState();
  35007. break;
  35008. case HostComponent:
  35009. pushHostContext(workInProgress);
  35010. break;
  35011. case ClassComponent:
  35012. {
  35013. var Component = workInProgress.type;
  35014. if (isContextProvider(Component)) {
  35015. pushContextProvider(workInProgress);
  35016. }
  35017. break;
  35018. }
  35019. case HostPortal:
  35020. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  35021. break;
  35022. case ContextProvider:
  35023. {
  35024. var newValue = workInProgress.memoizedProps.value;
  35025. pushProvider(workInProgress, newValue);
  35026. break;
  35027. }
  35028. case Profiler:
  35029. if (enableProfilerTimer) {
  35030. workInProgress.effectTag |= Update;
  35031. }
  35032. break;
  35033. case SuspenseComponent:
  35034. {
  35035. var state = workInProgress.memoizedState;
  35036. var didTimeout = state !== null;
  35037. if (didTimeout) {
  35038. // If this boundary is currently timed out, we need to decide
  35039. // whether to retry the primary children, or to skip over it and
  35040. // go straight to the fallback. Check the priority of the primary
  35041. var primaryChildFragment = workInProgress.child;
  35042. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  35043. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  35044. // The primary children have pending work. Use the normal path
  35045. // to attempt to render the primary children again.
  35046. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  35047. } else {
  35048. // The primary children do not have pending work with sufficient
  35049. // priority. Bailout.
  35050. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  35051. if (child !== null) {
  35052. // The fallback children have pending work. Skip over the
  35053. // primary children and work on the fallback.
  35054. return child.sibling;
  35055. } else {
  35056. return null;
  35057. }
  35058. }
  35059. }
  35060. break;
  35061. }
  35062. }
  35063. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  35064. }
  35065. }
  35066. // Before entering the begin phase, clear the expiration time.
  35067. workInProgress.expirationTime = NoWork;
  35068. switch (workInProgress.tag) {
  35069. case IndeterminateComponent:
  35070. {
  35071. var elementType = workInProgress.elementType;
  35072. return mountIndeterminateComponent(current$$1, workInProgress, elementType, renderExpirationTime);
  35073. }
  35074. case LazyComponent:
  35075. {
  35076. var _elementType = workInProgress.elementType;
  35077. return mountLazyComponent(current$$1, workInProgress, _elementType, updateExpirationTime, renderExpirationTime);
  35078. }
  35079. case FunctionComponent:
  35080. {
  35081. var _Component = workInProgress.type;
  35082. var unresolvedProps = workInProgress.pendingProps;
  35083. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  35084. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  35085. }
  35086. case ClassComponent:
  35087. {
  35088. var _Component2 = workInProgress.type;
  35089. var _unresolvedProps = workInProgress.pendingProps;
  35090. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  35091. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  35092. }
  35093. case HostRoot:
  35094. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  35095. case HostComponent:
  35096. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  35097. case HostText:
  35098. return updateHostText(current$$1, workInProgress);
  35099. case SuspenseComponent:
  35100. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  35101. case HostPortal:
  35102. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  35103. case ForwardRef:
  35104. {
  35105. var type = workInProgress.type;
  35106. var _unresolvedProps2 = workInProgress.pendingProps;
  35107. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  35108. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  35109. }
  35110. case Fragment:
  35111. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  35112. case Mode:
  35113. return updateMode(current$$1, workInProgress, renderExpirationTime);
  35114. case Profiler:
  35115. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  35116. case ContextProvider:
  35117. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  35118. case ContextConsumer:
  35119. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  35120. case MemoComponent:
  35121. {
  35122. var _type = workInProgress.type;
  35123. var _unresolvedProps3 = workInProgress.pendingProps;
  35124. var _resolvedProps3 = resolveDefaultProps(_type.type, _unresolvedProps3);
  35125. return updateMemoComponent(current$$1, workInProgress, _type, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  35126. }
  35127. case SimpleMemoComponent:
  35128. {
  35129. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  35130. }
  35131. case IncompleteClassComponent:
  35132. {
  35133. var _Component3 = workInProgress.type;
  35134. var _unresolvedProps4 = workInProgress.pendingProps;
  35135. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  35136. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  35137. }
  35138. default:
  35139. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  35140. }
  35141. }
  35142. function markUpdate(workInProgress) {
  35143. // Tag the fiber with an update effect. This turns a Placement into
  35144. // a PlacementAndUpdate.
  35145. workInProgress.effectTag |= Update;
  35146. }
  35147. function markRef$1(workInProgress) {
  35148. workInProgress.effectTag |= Ref;
  35149. }
  35150. var appendAllChildren = void 0;
  35151. var updateHostContainer = void 0;
  35152. var updateHostComponent$1 = void 0;
  35153. var updateHostText$1 = void 0;
  35154. if (supportsMutation) {
  35155. // Mutation mode
  35156. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  35157. // We only have the top Fiber that was created but we need recurse down its
  35158. // children to find all the terminal nodes.
  35159. var node = workInProgress.child;
  35160. while (node !== null) {
  35161. if (node.tag === HostComponent || node.tag === HostText) {
  35162. appendInitialChild(parent, node.stateNode);
  35163. } else if (node.tag === HostPortal) {
  35164. // If we have a portal child, then we don't want to traverse
  35165. // down its children. Instead, we'll get insertions from each child in
  35166. // the portal directly.
  35167. } else if (node.child !== null) {
  35168. node.child.return = node;
  35169. node = node.child;
  35170. continue;
  35171. }
  35172. if (node === workInProgress) {
  35173. return;
  35174. }
  35175. while (node.sibling === null) {
  35176. if (node.return === null || node.return === workInProgress) {
  35177. return;
  35178. }
  35179. node = node.return;
  35180. }
  35181. node.sibling.return = node.return;
  35182. node = node.sibling;
  35183. }
  35184. };
  35185. updateHostContainer = function (workInProgress) {
  35186. // Noop
  35187. };
  35188. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  35189. // If we have an alternate, that means this is an update and we need to
  35190. // schedule a side-effect to do the updates.
  35191. var oldProps = current.memoizedProps;
  35192. if (oldProps === newProps) {
  35193. // In mutation mode, this is sufficient for a bailout because
  35194. // we won't touch this node even if children changed.
  35195. return;
  35196. }
  35197. // If we get updated because one of our children updated, we don't
  35198. // have newProps so we'll have to reuse them.
  35199. // TODO: Split the update API as separate for the props vs. children.
  35200. // Even better would be if children weren't special cased at all tho.
  35201. var instance = workInProgress.stateNode;
  35202. var currentHostContext = getHostContext();
  35203. // TODO: Experiencing an error where oldProps is null. Suggests a host
  35204. // component is hitting the resume path. Figure out why. Possibly
  35205. // related to `hidden`.
  35206. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  35207. // TODO: Type this specific to this type of component.
  35208. workInProgress.updateQueue = updatePayload;
  35209. // If the update payload indicates that there is a change or if there
  35210. // is a new ref we mark this as an update. All the work is done in commitWork.
  35211. if (updatePayload) {
  35212. markUpdate(workInProgress);
  35213. }
  35214. };
  35215. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  35216. // If the text differs, mark it as an update. All the work in done in commitWork.
  35217. if (oldText !== newText) {
  35218. markUpdate(workInProgress);
  35219. }
  35220. };
  35221. } else if (supportsPersistence) {
  35222. // Persistent host tree mode
  35223. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  35224. // We only have the top Fiber that was created but we need recurse down its
  35225. // children to find all the terminal nodes.
  35226. var node = workInProgress.child;
  35227. while (node !== null) {
  35228. // eslint-disable-next-line no-labels
  35229. branches: if (node.tag === HostComponent) {
  35230. var instance = node.stateNode;
  35231. if (needsVisibilityToggle) {
  35232. var props = node.memoizedProps;
  35233. var type = node.type;
  35234. if (isHidden) {
  35235. // This child is inside a timed out tree. Hide it.
  35236. instance = cloneHiddenInstance(instance, type, props, node);
  35237. } else {
  35238. // This child was previously inside a timed out tree. If it was not
  35239. // updated during this render, it may need to be unhidden. Clone
  35240. // again to be sure.
  35241. instance = cloneUnhiddenInstance(instance, type, props, node);
  35242. }
  35243. node.stateNode = instance;
  35244. }
  35245. appendInitialChild(parent, instance);
  35246. } else if (node.tag === HostText) {
  35247. var _instance = node.stateNode;
  35248. if (needsVisibilityToggle) {
  35249. var text = node.memoizedProps;
  35250. var rootContainerInstance = getRootHostContainer();
  35251. var currentHostContext = getHostContext();
  35252. if (isHidden) {
  35253. _instance = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35254. } else {
  35255. _instance = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35256. }
  35257. node.stateNode = _instance;
  35258. }
  35259. appendInitialChild(parent, _instance);
  35260. } else if (node.tag === HostPortal) {
  35261. // If we have a portal child, then we don't want to traverse
  35262. // down its children. Instead, we'll get insertions from each child in
  35263. // the portal directly.
  35264. } else if (node.tag === SuspenseComponent) {
  35265. var current = node.alternate;
  35266. if (current !== null) {
  35267. var oldState = current.memoizedState;
  35268. var newState = node.memoizedState;
  35269. var oldIsHidden = oldState !== null;
  35270. var newIsHidden = newState !== null;
  35271. if (oldIsHidden !== newIsHidden) {
  35272. // The placeholder either just timed out or switched back to the normal
  35273. // children after having previously timed out. Toggle the visibility of
  35274. // the direct host children.
  35275. var primaryChildParent = newIsHidden ? node.child : node;
  35276. if (primaryChildParent !== null) {
  35277. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  35278. }
  35279. // eslint-disable-next-line no-labels
  35280. break branches;
  35281. }
  35282. }
  35283. if (node.child !== null) {
  35284. // Continue traversing like normal
  35285. node.child.return = node;
  35286. node = node.child;
  35287. continue;
  35288. }
  35289. } else if (node.child !== null) {
  35290. node.child.return = node;
  35291. node = node.child;
  35292. continue;
  35293. }
  35294. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  35295. node = node;
  35296. if (node === workInProgress) {
  35297. return;
  35298. }
  35299. while (node.sibling === null) {
  35300. if (node.return === null || node.return === workInProgress) {
  35301. return;
  35302. }
  35303. node = node.return;
  35304. }
  35305. node.sibling.return = node.return;
  35306. node = node.sibling;
  35307. }
  35308. };
  35309. // An unfortunate fork of appendAllChildren because we have two different parent types.
  35310. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  35311. // We only have the top Fiber that was created but we need recurse down its
  35312. // children to find all the terminal nodes.
  35313. var node = workInProgress.child;
  35314. while (node !== null) {
  35315. // eslint-disable-next-line no-labels
  35316. branches: if (node.tag === HostComponent) {
  35317. var instance = node.stateNode;
  35318. if (needsVisibilityToggle) {
  35319. var props = node.memoizedProps;
  35320. var type = node.type;
  35321. if (isHidden) {
  35322. // This child is inside a timed out tree. Hide it.
  35323. instance = cloneHiddenInstance(instance, type, props, node);
  35324. } else {
  35325. // This child was previously inside a timed out tree. If it was not
  35326. // updated during this render, it may need to be unhidden. Clone
  35327. // again to be sure.
  35328. instance = cloneUnhiddenInstance(instance, type, props, node);
  35329. }
  35330. node.stateNode = instance;
  35331. }
  35332. appendChildToContainerChildSet(containerChildSet, instance);
  35333. } else if (node.tag === HostText) {
  35334. var _instance2 = node.stateNode;
  35335. if (needsVisibilityToggle) {
  35336. var text = node.memoizedProps;
  35337. var rootContainerInstance = getRootHostContainer();
  35338. var currentHostContext = getHostContext();
  35339. if (isHidden) {
  35340. _instance2 = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35341. } else {
  35342. _instance2 = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35343. }
  35344. node.stateNode = _instance2;
  35345. }
  35346. appendChildToContainerChildSet(containerChildSet, _instance2);
  35347. } else if (node.tag === HostPortal) {
  35348. // If we have a portal child, then we don't want to traverse
  35349. // down its children. Instead, we'll get insertions from each child in
  35350. // the portal directly.
  35351. } else if (node.tag === SuspenseComponent) {
  35352. var current = node.alternate;
  35353. if (current !== null) {
  35354. var oldState = current.memoizedState;
  35355. var newState = node.memoizedState;
  35356. var oldIsHidden = oldState !== null;
  35357. var newIsHidden = newState !== null;
  35358. if (oldIsHidden !== newIsHidden) {
  35359. // The placeholder either just timed out or switched back to the normal
  35360. // children after having previously timed out. Toggle the visibility of
  35361. // the direct host children.
  35362. var primaryChildParent = newIsHidden ? node.child : node;
  35363. if (primaryChildParent !== null) {
  35364. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  35365. }
  35366. // eslint-disable-next-line no-labels
  35367. break branches;
  35368. }
  35369. }
  35370. if (node.child !== null) {
  35371. // Continue traversing like normal
  35372. node.child.return = node;
  35373. node = node.child;
  35374. continue;
  35375. }
  35376. } else if (node.child !== null) {
  35377. node.child.return = node;
  35378. node = node.child;
  35379. continue;
  35380. }
  35381. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  35382. node = node;
  35383. if (node === workInProgress) {
  35384. return;
  35385. }
  35386. while (node.sibling === null) {
  35387. if (node.return === null || node.return === workInProgress) {
  35388. return;
  35389. }
  35390. node = node.return;
  35391. }
  35392. node.sibling.return = node.return;
  35393. node = node.sibling;
  35394. }
  35395. };
  35396. updateHostContainer = function (workInProgress) {
  35397. var portalOrRoot = workInProgress.stateNode;
  35398. var childrenUnchanged = workInProgress.firstEffect === null;
  35399. if (childrenUnchanged) {
  35400. // No changes, just reuse the existing instance.
  35401. } else {
  35402. var container = portalOrRoot.containerInfo;
  35403. var newChildSet = createContainerChildSet(container);
  35404. // If children might have changed, we have to add them all to the set.
  35405. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  35406. portalOrRoot.pendingChildren = newChildSet;
  35407. // Schedule an update on the container to swap out the container.
  35408. markUpdate(workInProgress);
  35409. finalizeContainerChildren(container, newChildSet);
  35410. }
  35411. };
  35412. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  35413. var currentInstance = current.stateNode;
  35414. var oldProps = current.memoizedProps;
  35415. // If there are no effects associated with this node, then none of our children had any updates.
  35416. // This guarantees that we can reuse all of them.
  35417. var childrenUnchanged = workInProgress.firstEffect === null;
  35418. if (childrenUnchanged && oldProps === newProps) {
  35419. // No changes, just reuse the existing instance.
  35420. // Note that this might release a previous clone.
  35421. workInProgress.stateNode = currentInstance;
  35422. return;
  35423. }
  35424. var recyclableInstance = workInProgress.stateNode;
  35425. var currentHostContext = getHostContext();
  35426. var updatePayload = null;
  35427. if (oldProps !== newProps) {
  35428. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  35429. }
  35430. if (childrenUnchanged && updatePayload === null) {
  35431. // No changes, just reuse the existing instance.
  35432. // Note that this might release a previous clone.
  35433. workInProgress.stateNode = currentInstance;
  35434. return;
  35435. }
  35436. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  35437. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  35438. markUpdate(workInProgress);
  35439. }
  35440. workInProgress.stateNode = newInstance;
  35441. if (childrenUnchanged) {
  35442. // If there are no other effects in this tree, we need to flag this node as having one.
  35443. // Even though we're not going to use it for anything.
  35444. // Otherwise parents won't know that there are new children to propagate upwards.
  35445. markUpdate(workInProgress);
  35446. } else {
  35447. // If children might have changed, we have to add them all to the set.
  35448. appendAllChildren(newInstance, workInProgress, false, false);
  35449. }
  35450. };
  35451. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  35452. if (oldText !== newText) {
  35453. // If the text content differs, we'll create a new text instance for it.
  35454. var rootContainerInstance = getRootHostContainer();
  35455. var currentHostContext = getHostContext();
  35456. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  35457. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  35458. // This lets the parents know that at least one of their children has changed.
  35459. markUpdate(workInProgress);
  35460. }
  35461. };
  35462. } else {
  35463. // No host operations
  35464. updateHostContainer = function (workInProgress) {
  35465. // Noop
  35466. };
  35467. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  35468. // Noop
  35469. };
  35470. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  35471. // Noop
  35472. };
  35473. }
  35474. function completeWork(current, workInProgress, renderExpirationTime) {
  35475. var newProps = workInProgress.pendingProps;
  35476. switch (workInProgress.tag) {
  35477. case IndeterminateComponent:
  35478. break;
  35479. case LazyComponent:
  35480. break;
  35481. case SimpleMemoComponent:
  35482. case FunctionComponent:
  35483. break;
  35484. case ClassComponent:
  35485. {
  35486. var Component = workInProgress.type;
  35487. if (isContextProvider(Component)) {
  35488. popContext(workInProgress);
  35489. }
  35490. break;
  35491. }
  35492. case HostRoot:
  35493. {
  35494. popHostContainer(workInProgress);
  35495. popTopLevelContextObject(workInProgress);
  35496. var fiberRoot = workInProgress.stateNode;
  35497. if (fiberRoot.pendingContext) {
  35498. fiberRoot.context = fiberRoot.pendingContext;
  35499. fiberRoot.pendingContext = null;
  35500. }
  35501. if (current === null || current.child === null) {
  35502. // If we hydrated, pop so that we can delete any remaining children
  35503. // that weren't hydrated.
  35504. popHydrationState(workInProgress);
  35505. // This resets the hacky state to fix isMounted before committing.
  35506. // TODO: Delete this when we delete isMounted and findDOMNode.
  35507. workInProgress.effectTag &= ~Placement;
  35508. }
  35509. updateHostContainer(workInProgress);
  35510. break;
  35511. }
  35512. case HostComponent:
  35513. {
  35514. popHostContext(workInProgress);
  35515. var rootContainerInstance = getRootHostContainer();
  35516. var type = workInProgress.type;
  35517. if (current !== null && workInProgress.stateNode != null) {
  35518. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  35519. if (current.ref !== workInProgress.ref) {
  35520. markRef$1(workInProgress);
  35521. }
  35522. } else {
  35523. if (!newProps) {
  35524. !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  35525. // This can happen when we abort work.
  35526. break;
  35527. }
  35528. var currentHostContext = getHostContext();
  35529. // TODO: Move createInstance to beginWork and keep it on a context
  35530. // "stack" as the parent. Then append children as we go in beginWork
  35531. // or completeWork depending on we want to add then top->down or
  35532. // bottom->up. Top->down is faster in IE11.
  35533. var wasHydrated = popHydrationState(workInProgress);
  35534. if (wasHydrated) {
  35535. // TODO: Move this and createInstance step into the beginPhase
  35536. // to consolidate.
  35537. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  35538. // If changes to the hydrated node needs to be applied at the
  35539. // commit-phase we mark this as such.
  35540. markUpdate(workInProgress);
  35541. }
  35542. } else {
  35543. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  35544. appendAllChildren(instance, workInProgress, false, false);
  35545. // Certain renderers require commit-time effects for initial mount.
  35546. // (eg DOM renderer supports auto-focus for certain elements).
  35547. // Make sure such renderers get scheduled for later work.
  35548. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {
  35549. markUpdate(workInProgress);
  35550. }
  35551. workInProgress.stateNode = instance;
  35552. }
  35553. if (workInProgress.ref !== null) {
  35554. // If there is a ref on a host node we need to schedule a callback
  35555. markRef$1(workInProgress);
  35556. }
  35557. }
  35558. break;
  35559. }
  35560. case HostText:
  35561. {
  35562. var newText = newProps;
  35563. if (current && workInProgress.stateNode != null) {
  35564. var oldText = current.memoizedProps;
  35565. // If we have an alternate, that means this is an update and we need
  35566. // to schedule a side-effect to do the updates.
  35567. updateHostText$1(current, workInProgress, oldText, newText);
  35568. } else {
  35569. if (typeof newText !== 'string') {
  35570. !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  35571. // This can happen when we abort work.
  35572. }
  35573. var _rootContainerInstance = getRootHostContainer();
  35574. var _currentHostContext = getHostContext();
  35575. var _wasHydrated = popHydrationState(workInProgress);
  35576. if (_wasHydrated) {
  35577. if (prepareToHydrateHostTextInstance(workInProgress)) {
  35578. markUpdate(workInProgress);
  35579. }
  35580. } else {
  35581. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  35582. }
  35583. }
  35584. break;
  35585. }
  35586. case ForwardRef:
  35587. break;
  35588. case SuspenseComponent:
  35589. {
  35590. var nextState = workInProgress.memoizedState;
  35591. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  35592. // Something suspended. Re-render with the fallback children.
  35593. workInProgress.expirationTime = renderExpirationTime;
  35594. // Do not reset the effect list.
  35595. return workInProgress;
  35596. }
  35597. var nextDidTimeout = nextState !== null;
  35598. var prevDidTimeout = current !== null && current.memoizedState !== null;
  35599. if (current !== null && !nextDidTimeout && prevDidTimeout) {
  35600. // We just switched from the fallback to the normal children. Delete
  35601. // the fallback.
  35602. // TODO: Would it be better to store the fallback fragment on
  35603. var currentFallbackChild = current.child.sibling;
  35604. if (currentFallbackChild !== null) {
  35605. // Deletions go at the beginning of the return fiber's effect list
  35606. var first = workInProgress.firstEffect;
  35607. if (first !== null) {
  35608. workInProgress.firstEffect = currentFallbackChild;
  35609. currentFallbackChild.nextEffect = first;
  35610. } else {
  35611. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  35612. currentFallbackChild.nextEffect = null;
  35613. }
  35614. currentFallbackChild.effectTag = Deletion;
  35615. }
  35616. }
  35617. // The children either timed out after previously being visible, or
  35618. // were restored after previously being hidden. Schedule an effect
  35619. // to update their visiblity.
  35620. if (
  35621. //
  35622. nextDidTimeout !== prevDidTimeout ||
  35623. // Outside concurrent mode, the primary children commit in an
  35624. // inconsistent state, even if they are hidden. So if they are hidden,
  35625. // we need to schedule an effect to re-hide them, just in case.
  35626. (workInProgress.effectTag & ConcurrentMode) === NoContext && nextDidTimeout) {
  35627. workInProgress.effectTag |= Update;
  35628. }
  35629. break;
  35630. }
  35631. case Fragment:
  35632. break;
  35633. case Mode:
  35634. break;
  35635. case Profiler:
  35636. break;
  35637. case HostPortal:
  35638. popHostContainer(workInProgress);
  35639. updateHostContainer(workInProgress);
  35640. break;
  35641. case ContextProvider:
  35642. // Pop provider fiber
  35643. popProvider(workInProgress);
  35644. break;
  35645. case ContextConsumer:
  35646. break;
  35647. case MemoComponent:
  35648. break;
  35649. case IncompleteClassComponent:
  35650. {
  35651. // Same as class component case. I put it down here so that the tags are
  35652. // sequential to ensure this switch is compiled to a jump table.
  35653. var _Component = workInProgress.type;
  35654. if (isContextProvider(_Component)) {
  35655. popContext(workInProgress);
  35656. }
  35657. break;
  35658. }
  35659. default:
  35660. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  35661. }
  35662. return null;
  35663. }
  35664. function shouldCaptureSuspense(current, workInProgress) {
  35665. // In order to capture, the Suspense component must have a fallback prop.
  35666. if (workInProgress.memoizedProps.fallback === undefined) {
  35667. return false;
  35668. }
  35669. // If it was the primary children that just suspended, capture and render the
  35670. // fallback. Otherwise, don't capture and bubble to the next boundary.
  35671. var nextState = workInProgress.memoizedState;
  35672. return nextState === null;
  35673. }
  35674. // This module is forked in different environments.
  35675. // By default, return `true` to log errors to the console.
  35676. // Forks can return `false` if this isn't desirable.
  35677. function showErrorDialog(capturedError) {
  35678. return true;
  35679. }
  35680. function logCapturedError(capturedError) {
  35681. var logError = showErrorDialog(capturedError);
  35682. // Allow injected showErrorDialog() to prevent default console.error logging.
  35683. // This enables renderers like ReactNative to better manage redbox behavior.
  35684. if (logError === false) {
  35685. return;
  35686. }
  35687. var error = capturedError.error;
  35688. {
  35689. var componentName = capturedError.componentName,
  35690. componentStack = capturedError.componentStack,
  35691. errorBoundaryName = capturedError.errorBoundaryName,
  35692. errorBoundaryFound = capturedError.errorBoundaryFound,
  35693. willRetry = capturedError.willRetry;
  35694. // Browsers support silencing uncaught errors by calling
  35695. // `preventDefault()` in window `error` handler.
  35696. // We record this information as an expando on the error.
  35697. if (error != null && error._suppressLogging) {
  35698. if (errorBoundaryFound && willRetry) {
  35699. // The error is recoverable and was silenced.
  35700. // Ignore it and don't print the stack addendum.
  35701. // This is handy for testing error boundaries without noise.
  35702. return;
  35703. }
  35704. // The error is fatal. Since the silencing might have
  35705. // been accidental, we'll surface it anyway.
  35706. // However, the browser would have silenced the original error
  35707. // so we'll print it first, and then print the stack addendum.
  35708. console.error(error);
  35709. // For a more detailed description of this block, see:
  35710. // https://github.com/facebook/react/pull/13384
  35711. }
  35712. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  35713. var errorBoundaryMessage = void 0;
  35714. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  35715. if (errorBoundaryFound && errorBoundaryName) {
  35716. if (willRetry) {
  35717. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  35718. } else {
  35719. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  35720. }
  35721. } else {
  35722. errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';
  35723. }
  35724. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  35725. // In development, we provide our own message with just the component stack.
  35726. // We don't include the original error message and JS stack because the browser
  35727. // has already printed it. Even if the application swallows the error, it is still
  35728. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  35729. console.error(combinedMessage);
  35730. }
  35731. }
  35732. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  35733. {
  35734. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  35735. }
  35736. function logError(boundary, errorInfo) {
  35737. var source = errorInfo.source;
  35738. var stack = errorInfo.stack;
  35739. if (stack === null && source !== null) {
  35740. stack = getStackByFiberInDevAndProd(source);
  35741. }
  35742. var capturedError = {
  35743. componentName: source !== null ? getComponentName(source.type) : null,
  35744. componentStack: stack !== null ? stack : '',
  35745. error: errorInfo.value,
  35746. errorBoundary: null,
  35747. errorBoundaryName: null,
  35748. errorBoundaryFound: false,
  35749. willRetry: false
  35750. };
  35751. if (boundary !== null && boundary.tag === ClassComponent) {
  35752. capturedError.errorBoundary = boundary.stateNode;
  35753. capturedError.errorBoundaryName = getComponentName(boundary.type);
  35754. capturedError.errorBoundaryFound = true;
  35755. capturedError.willRetry = true;
  35756. }
  35757. try {
  35758. logCapturedError(capturedError);
  35759. } catch (e) {
  35760. // This method must not throw, or React internal state will get messed up.
  35761. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  35762. // we want to report this error outside of the normal stack as a last resort.
  35763. // https://github.com/facebook/react/issues/13188
  35764. setTimeout(function () {
  35765. throw e;
  35766. });
  35767. }
  35768. }
  35769. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  35770. startPhaseTimer(current$$1, 'componentWillUnmount');
  35771. instance.props = current$$1.memoizedProps;
  35772. instance.state = current$$1.memoizedState;
  35773. instance.componentWillUnmount();
  35774. stopPhaseTimer();
  35775. };
  35776. // Capture errors so they don't interrupt unmounting.
  35777. function safelyCallComponentWillUnmount(current$$1, instance) {
  35778. {
  35779. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  35780. if (hasCaughtError()) {
  35781. var unmountError = clearCaughtError();
  35782. captureCommitPhaseError(current$$1, unmountError);
  35783. }
  35784. }
  35785. }
  35786. function safelyDetachRef(current$$1) {
  35787. var ref = current$$1.ref;
  35788. if (ref !== null) {
  35789. if (typeof ref === 'function') {
  35790. {
  35791. invokeGuardedCallback(null, ref, null, null);
  35792. if (hasCaughtError()) {
  35793. var refError = clearCaughtError();
  35794. captureCommitPhaseError(current$$1, refError);
  35795. }
  35796. }
  35797. } else {
  35798. ref.current = null;
  35799. }
  35800. }
  35801. }
  35802. function safelyCallDestroy(current$$1, destroy) {
  35803. {
  35804. invokeGuardedCallback(null, destroy, null);
  35805. if (hasCaughtError()) {
  35806. var error = clearCaughtError();
  35807. captureCommitPhaseError(current$$1, error);
  35808. }
  35809. }
  35810. }
  35811. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  35812. switch (finishedWork.tag) {
  35813. case FunctionComponent:
  35814. case ForwardRef:
  35815. case SimpleMemoComponent:
  35816. {
  35817. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  35818. return;
  35819. }
  35820. case ClassComponent:
  35821. {
  35822. if (finishedWork.effectTag & Snapshot) {
  35823. if (current$$1 !== null) {
  35824. var prevProps = current$$1.memoizedProps;
  35825. var prevState = current$$1.memoizedState;
  35826. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  35827. var instance = finishedWork.stateNode;
  35828. // We could update instance props and state here,
  35829. // but instead we rely on them being set during last render.
  35830. // TODO: revisit this when we implement resuming.
  35831. {
  35832. if (finishedWork.type === finishedWork.elementType) {
  35833. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35834. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35835. }
  35836. }
  35837. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  35838. {
  35839. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  35840. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  35841. didWarnSet.add(finishedWork.type);
  35842. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  35843. }
  35844. }
  35845. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  35846. stopPhaseTimer();
  35847. }
  35848. }
  35849. return;
  35850. }
  35851. case HostRoot:
  35852. case HostComponent:
  35853. case HostText:
  35854. case HostPortal:
  35855. case IncompleteClassComponent:
  35856. // Nothing to do for these component types
  35857. return;
  35858. default:
  35859. {
  35860. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  35861. }
  35862. }
  35863. }
  35864. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  35865. if (!enableHooks) {
  35866. return;
  35867. }
  35868. var updateQueue = finishedWork.updateQueue;
  35869. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  35870. if (lastEffect !== null) {
  35871. var firstEffect = lastEffect.next;
  35872. var effect = firstEffect;
  35873. do {
  35874. if ((effect.tag & unmountTag) !== NoEffect$1) {
  35875. // Unmount
  35876. var destroy = effect.destroy;
  35877. effect.destroy = null;
  35878. if (destroy !== null) {
  35879. destroy();
  35880. }
  35881. }
  35882. if ((effect.tag & mountTag) !== NoEffect$1) {
  35883. // Mount
  35884. var create = effect.create;
  35885. var _destroy = create();
  35886. if (typeof _destroy !== 'function') {
  35887. {
  35888. if (_destroy !== null && _destroy !== undefined) {
  35889. warningWithoutStack$1(false, 'useEffect function must return a cleanup function or ' + 'nothing.%s%s', typeof _destroy.then === 'function' ? ' Promises and useEffect(async () => ...) are not ' + 'supported, but you can call an async function inside an ' + 'effect.' : '', getStackByFiberInDevAndProd(finishedWork));
  35890. }
  35891. }
  35892. _destroy = null;
  35893. }
  35894. effect.destroy = _destroy;
  35895. }
  35896. effect = effect.next;
  35897. } while (effect !== firstEffect);
  35898. }
  35899. }
  35900. function commitPassiveHookEffects(finishedWork) {
  35901. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  35902. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  35903. }
  35904. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  35905. switch (finishedWork.tag) {
  35906. case FunctionComponent:
  35907. case ForwardRef:
  35908. case SimpleMemoComponent:
  35909. {
  35910. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  35911. break;
  35912. }
  35913. case ClassComponent:
  35914. {
  35915. var instance = finishedWork.stateNode;
  35916. if (finishedWork.effectTag & Update) {
  35917. if (current$$1 === null) {
  35918. startPhaseTimer(finishedWork, 'componentDidMount');
  35919. // We could update instance props and state here,
  35920. // but instead we rely on them being set during last render.
  35921. // TODO: revisit this when we implement resuming.
  35922. {
  35923. if (finishedWork.type === finishedWork.elementType) {
  35924. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35925. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35926. }
  35927. }
  35928. instance.componentDidMount();
  35929. stopPhaseTimer();
  35930. } else {
  35931. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  35932. var prevState = current$$1.memoizedState;
  35933. startPhaseTimer(finishedWork, 'componentDidUpdate');
  35934. // We could update instance props and state here,
  35935. // but instead we rely on them being set during last render.
  35936. // TODO: revisit this when we implement resuming.
  35937. {
  35938. if (finishedWork.type === finishedWork.elementType) {
  35939. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35940. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35941. }
  35942. }
  35943. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  35944. stopPhaseTimer();
  35945. }
  35946. }
  35947. var updateQueue = finishedWork.updateQueue;
  35948. if (updateQueue !== null) {
  35949. {
  35950. if (finishedWork.type === finishedWork.elementType) {
  35951. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35952. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35953. }
  35954. }
  35955. // We could update instance props and state here,
  35956. // but instead we rely on them being set during last render.
  35957. // TODO: revisit this when we implement resuming.
  35958. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  35959. }
  35960. return;
  35961. }
  35962. case HostRoot:
  35963. {
  35964. var _updateQueue = finishedWork.updateQueue;
  35965. if (_updateQueue !== null) {
  35966. var _instance = null;
  35967. if (finishedWork.child !== null) {
  35968. switch (finishedWork.child.tag) {
  35969. case HostComponent:
  35970. _instance = getPublicInstance(finishedWork.child.stateNode);
  35971. break;
  35972. case ClassComponent:
  35973. _instance = finishedWork.child.stateNode;
  35974. break;
  35975. }
  35976. }
  35977. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  35978. }
  35979. return;
  35980. }
  35981. case HostComponent:
  35982. {
  35983. var _instance2 = finishedWork.stateNode;
  35984. // Renderers may schedule work to be done after host components are mounted
  35985. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  35986. // These effects should only be committed when components are first mounted,
  35987. // aka when there is no current/alternate.
  35988. if (current$$1 === null && finishedWork.effectTag & Update) {
  35989. var type = finishedWork.type;
  35990. var props = finishedWork.memoizedProps;
  35991. commitMount(_instance2, type, props, finishedWork);
  35992. }
  35993. return;
  35994. }
  35995. case HostText:
  35996. {
  35997. // We have no life-cycles associated with text.
  35998. return;
  35999. }
  36000. case HostPortal:
  36001. {
  36002. // We have no life-cycles associated with portals.
  36003. return;
  36004. }
  36005. case Profiler:
  36006. {
  36007. if (enableProfilerTimer) {
  36008. var onRender = finishedWork.memoizedProps.onRender;
  36009. if (enableSchedulerTracing) {
  36010. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  36011. } else {
  36012. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  36013. }
  36014. }
  36015. return;
  36016. }
  36017. case SuspenseComponent:
  36018. break;
  36019. case IncompleteClassComponent:
  36020. break;
  36021. default:
  36022. {
  36023. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  36024. }
  36025. }
  36026. }
  36027. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  36028. if (supportsMutation) {
  36029. // We only have the top Fiber that was inserted but we need recurse down its
  36030. var node = finishedWork;
  36031. while (true) {
  36032. if (node.tag === HostComponent) {
  36033. var instance = node.stateNode;
  36034. if (isHidden) {
  36035. hideInstance(instance);
  36036. } else {
  36037. unhideInstance(node.stateNode, node.memoizedProps);
  36038. }
  36039. } else if (node.tag === HostText) {
  36040. var _instance3 = node.stateNode;
  36041. if (isHidden) {
  36042. hideTextInstance(_instance3);
  36043. } else {
  36044. unhideTextInstance(_instance3, node.memoizedProps);
  36045. }
  36046. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  36047. // Found a nested Suspense component that timed out. Skip over the
  36048. var fallbackChildFragment = node.child.sibling;
  36049. fallbackChildFragment.return = node;
  36050. node = fallbackChildFragment;
  36051. continue;
  36052. } else if (node.child !== null) {
  36053. node.child.return = node;
  36054. node = node.child;
  36055. continue;
  36056. }
  36057. if (node === finishedWork) {
  36058. return;
  36059. }
  36060. while (node.sibling === null) {
  36061. if (node.return === null || node.return === finishedWork) {
  36062. return;
  36063. }
  36064. node = node.return;
  36065. }
  36066. node.sibling.return = node.return;
  36067. node = node.sibling;
  36068. }
  36069. }
  36070. }
  36071. function commitAttachRef(finishedWork) {
  36072. var ref = finishedWork.ref;
  36073. if (ref !== null) {
  36074. var instance = finishedWork.stateNode;
  36075. var instanceToUse = void 0;
  36076. switch (finishedWork.tag) {
  36077. case HostComponent:
  36078. instanceToUse = getPublicInstance(instance);
  36079. break;
  36080. default:
  36081. instanceToUse = instance;
  36082. }
  36083. if (typeof ref === 'function') {
  36084. ref(instanceToUse);
  36085. } else {
  36086. {
  36087. if (!ref.hasOwnProperty('current')) {
  36088. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  36089. }
  36090. }
  36091. ref.current = instanceToUse;
  36092. }
  36093. }
  36094. }
  36095. function commitDetachRef(current$$1) {
  36096. var currentRef = current$$1.ref;
  36097. if (currentRef !== null) {
  36098. if (typeof currentRef === 'function') {
  36099. currentRef(null);
  36100. } else {
  36101. currentRef.current = null;
  36102. }
  36103. }
  36104. }
  36105. // User-originating errors (lifecycles and refs) should not interrupt
  36106. // deletion, so don't let them throw. Host-originating errors should
  36107. // interrupt deletion, so it's okay
  36108. function commitUnmount(current$$1) {
  36109. onCommitUnmount(current$$1);
  36110. switch (current$$1.tag) {
  36111. case FunctionComponent:
  36112. case ForwardRef:
  36113. case MemoComponent:
  36114. case SimpleMemoComponent:
  36115. {
  36116. var updateQueue = current$$1.updateQueue;
  36117. if (updateQueue !== null) {
  36118. var lastEffect = updateQueue.lastEffect;
  36119. if (lastEffect !== null) {
  36120. var firstEffect = lastEffect.next;
  36121. var effect = firstEffect;
  36122. do {
  36123. var destroy = effect.destroy;
  36124. if (destroy !== null) {
  36125. safelyCallDestroy(current$$1, destroy);
  36126. }
  36127. effect = effect.next;
  36128. } while (effect !== firstEffect);
  36129. }
  36130. }
  36131. break;
  36132. }
  36133. case ClassComponent:
  36134. {
  36135. safelyDetachRef(current$$1);
  36136. var instance = current$$1.stateNode;
  36137. if (typeof instance.componentWillUnmount === 'function') {
  36138. safelyCallComponentWillUnmount(current$$1, instance);
  36139. }
  36140. return;
  36141. }
  36142. case HostComponent:
  36143. {
  36144. safelyDetachRef(current$$1);
  36145. return;
  36146. }
  36147. case HostPortal:
  36148. {
  36149. // TODO: this is recursive.
  36150. // We are also not using this parent because
  36151. // the portal will get pushed immediately.
  36152. if (supportsMutation) {
  36153. unmountHostComponents(current$$1);
  36154. } else if (supportsPersistence) {
  36155. emptyPortalContainer(current$$1);
  36156. }
  36157. return;
  36158. }
  36159. }
  36160. }
  36161. function commitNestedUnmounts(root) {
  36162. // While we're inside a removed host node we don't want to call
  36163. // removeChild on the inner nodes because they're removed by the top
  36164. // call anyway. We also want to call componentWillUnmount on all
  36165. // composites before this host node is removed from the tree. Therefore
  36166. var node = root;
  36167. while (true) {
  36168. commitUnmount(node);
  36169. // Visit children because they may contain more composite or host nodes.
  36170. // Skip portals because commitUnmount() currently visits them recursively.
  36171. if (node.child !== null && (
  36172. // If we use mutation we drill down into portals using commitUnmount above.
  36173. // If we don't use mutation we drill down into portals here instead.
  36174. !supportsMutation || node.tag !== HostPortal)) {
  36175. node.child.return = node;
  36176. node = node.child;
  36177. continue;
  36178. }
  36179. if (node === root) {
  36180. return;
  36181. }
  36182. while (node.sibling === null) {
  36183. if (node.return === null || node.return === root) {
  36184. return;
  36185. }
  36186. node = node.return;
  36187. }
  36188. node.sibling.return = node.return;
  36189. node = node.sibling;
  36190. }
  36191. }
  36192. function detachFiber(current$$1) {
  36193. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  36194. // should clear the child pointer of the parent alternate to let this
  36195. // get GC:ed but we don't know which for sure which parent is the current
  36196. // one so we'll settle for GC:ing the subtree of this child. This child
  36197. // itself will be GC:ed when the parent updates the next time.
  36198. current$$1.return = null;
  36199. current$$1.child = null;
  36200. if (current$$1.alternate) {
  36201. current$$1.alternate.child = null;
  36202. current$$1.alternate.return = null;
  36203. }
  36204. }
  36205. function emptyPortalContainer(current$$1) {
  36206. if (!supportsPersistence) {
  36207. return;
  36208. }
  36209. var portal = current$$1.stateNode;
  36210. var containerInfo = portal.containerInfo;
  36211. var emptyChildSet = createContainerChildSet(containerInfo);
  36212. replaceContainerChildren(containerInfo, emptyChildSet);
  36213. }
  36214. function commitContainer(finishedWork) {
  36215. if (!supportsPersistence) {
  36216. return;
  36217. }
  36218. switch (finishedWork.tag) {
  36219. case ClassComponent:
  36220. {
  36221. return;
  36222. }
  36223. case HostComponent:
  36224. {
  36225. return;
  36226. }
  36227. case HostText:
  36228. {
  36229. return;
  36230. }
  36231. case HostRoot:
  36232. case HostPortal:
  36233. {
  36234. var portalOrRoot = finishedWork.stateNode;
  36235. var containerInfo = portalOrRoot.containerInfo,
  36236. _pendingChildren = portalOrRoot.pendingChildren;
  36237. replaceContainerChildren(containerInfo, _pendingChildren);
  36238. return;
  36239. }
  36240. default:
  36241. {
  36242. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  36243. }
  36244. }
  36245. }
  36246. function getHostParentFiber(fiber) {
  36247. var parent = fiber.return;
  36248. while (parent !== null) {
  36249. if (isHostParent(parent)) {
  36250. return parent;
  36251. }
  36252. parent = parent.return;
  36253. }
  36254. invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');
  36255. }
  36256. function isHostParent(fiber) {
  36257. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  36258. }
  36259. function getHostSibling(fiber) {
  36260. // We're going to search forward into the tree until we find a sibling host
  36261. // node. Unfortunately, if multiple insertions are done in a row we have to
  36262. // search past them. This leads to exponential search for the next sibling.
  36263. var node = fiber;
  36264. siblings: while (true) {
  36265. // If we didn't find anything, let's try the next sibling.
  36266. while (node.sibling === null) {
  36267. if (node.return === null || isHostParent(node.return)) {
  36268. // If we pop out of the root or hit the parent the fiber we are the
  36269. // last sibling.
  36270. return null;
  36271. }
  36272. node = node.return;
  36273. }
  36274. node.sibling.return = node.return;
  36275. node = node.sibling;
  36276. while (node.tag !== HostComponent && node.tag !== HostText) {
  36277. // If it is not host node and, we might have a host node inside it.
  36278. // Try to search down until we find one.
  36279. if (node.effectTag & Placement) {
  36280. // If we don't have a child, try the siblings instead.
  36281. continue siblings;
  36282. }
  36283. // If we don't have a child, try the siblings instead.
  36284. // We also skip portals because they are not part of this host tree.
  36285. if (node.child === null || node.tag === HostPortal) {
  36286. continue siblings;
  36287. } else {
  36288. node.child.return = node;
  36289. node = node.child;
  36290. }
  36291. }
  36292. // Check if this host node is stable or about to be placed.
  36293. if (!(node.effectTag & Placement)) {
  36294. // Found it!
  36295. return node.stateNode;
  36296. }
  36297. }
  36298. }
  36299. function commitPlacement(finishedWork) {
  36300. if (!supportsMutation) {
  36301. return;
  36302. }
  36303. // Recursively insert all host nodes into the parent.
  36304. var parentFiber = getHostParentFiber(finishedWork);
  36305. // Note: these two variables *must* always be updated together.
  36306. var parent = void 0;
  36307. var isContainer = void 0;
  36308. switch (parentFiber.tag) {
  36309. case HostComponent:
  36310. parent = parentFiber.stateNode;
  36311. isContainer = false;
  36312. break;
  36313. case HostRoot:
  36314. parent = parentFiber.stateNode.containerInfo;
  36315. isContainer = true;
  36316. break;
  36317. case HostPortal:
  36318. parent = parentFiber.stateNode.containerInfo;
  36319. isContainer = true;
  36320. break;
  36321. default:
  36322. invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');
  36323. }
  36324. if (parentFiber.effectTag & ContentReset) {
  36325. // Reset the text content of the parent before doing any insertions
  36326. resetTextContent(parent);
  36327. // Clear ContentReset from the effect tag
  36328. parentFiber.effectTag &= ~ContentReset;
  36329. }
  36330. var before = getHostSibling(finishedWork);
  36331. // We only have the top Fiber that was inserted but we need recurse down its
  36332. // children to find all the terminal nodes.
  36333. var node = finishedWork;
  36334. while (true) {
  36335. if (node.tag === HostComponent || node.tag === HostText) {
  36336. if (before) {
  36337. if (isContainer) {
  36338. insertInContainerBefore(parent, node.stateNode, before);
  36339. } else {
  36340. insertBefore(parent, node.stateNode, before);
  36341. }
  36342. } else {
  36343. if (isContainer) {
  36344. appendChildToContainer(parent, node.stateNode);
  36345. } else {
  36346. appendChild(parent, node.stateNode);
  36347. }
  36348. }
  36349. } else if (node.tag === HostPortal) {
  36350. // If the insertion itself is a portal, then we don't want to traverse
  36351. // down its children. Instead, we'll get insertions from each child in
  36352. // the portal directly.
  36353. } else if (node.child !== null) {
  36354. node.child.return = node;
  36355. node = node.child;
  36356. continue;
  36357. }
  36358. if (node === finishedWork) {
  36359. return;
  36360. }
  36361. while (node.sibling === null) {
  36362. if (node.return === null || node.return === finishedWork) {
  36363. return;
  36364. }
  36365. node = node.return;
  36366. }
  36367. node.sibling.return = node.return;
  36368. node = node.sibling;
  36369. }
  36370. }
  36371. function unmountHostComponents(current$$1) {
  36372. // We only have the top Fiber that was deleted but we need recurse down its
  36373. var node = current$$1;
  36374. // Each iteration, currentParent is populated with node's host parent if not
  36375. // currentParentIsValid.
  36376. var currentParentIsValid = false;
  36377. // Note: these two variables *must* always be updated together.
  36378. var currentParent = void 0;
  36379. var currentParentIsContainer = void 0;
  36380. while (true) {
  36381. if (!currentParentIsValid) {
  36382. var parent = node.return;
  36383. findParent: while (true) {
  36384. !(parent !== null) ? invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  36385. switch (parent.tag) {
  36386. case HostComponent:
  36387. currentParent = parent.stateNode;
  36388. currentParentIsContainer = false;
  36389. break findParent;
  36390. case HostRoot:
  36391. currentParent = parent.stateNode.containerInfo;
  36392. currentParentIsContainer = true;
  36393. break findParent;
  36394. case HostPortal:
  36395. currentParent = parent.stateNode.containerInfo;
  36396. currentParentIsContainer = true;
  36397. break findParent;
  36398. }
  36399. parent = parent.return;
  36400. }
  36401. currentParentIsValid = true;
  36402. }
  36403. if (node.tag === HostComponent || node.tag === HostText) {
  36404. commitNestedUnmounts(node);
  36405. // After all the children have unmounted, it is now safe to remove the
  36406. // node from the tree.
  36407. if (currentParentIsContainer) {
  36408. removeChildFromContainer(currentParent, node.stateNode);
  36409. } else {
  36410. removeChild(currentParent, node.stateNode);
  36411. }
  36412. // Don't visit children because we already visited them.
  36413. } else if (node.tag === HostPortal) {
  36414. // When we go into a portal, it becomes the parent to remove from.
  36415. // We will reassign it back when we pop the portal on the way up.
  36416. currentParent = node.stateNode.containerInfo;
  36417. currentParentIsContainer = true;
  36418. // Visit children because portals might contain host components.
  36419. if (node.child !== null) {
  36420. node.child.return = node;
  36421. node = node.child;
  36422. continue;
  36423. }
  36424. } else {
  36425. commitUnmount(node);
  36426. // Visit children because we may find more host components below.
  36427. if (node.child !== null) {
  36428. node.child.return = node;
  36429. node = node.child;
  36430. continue;
  36431. }
  36432. }
  36433. if (node === current$$1) {
  36434. return;
  36435. }
  36436. while (node.sibling === null) {
  36437. if (node.return === null || node.return === current$$1) {
  36438. return;
  36439. }
  36440. node = node.return;
  36441. if (node.tag === HostPortal) {
  36442. // When we go out of the portal, we need to restore the parent.
  36443. // Since we don't keep a stack of them, we will search for it.
  36444. currentParentIsValid = false;
  36445. }
  36446. }
  36447. node.sibling.return = node.return;
  36448. node = node.sibling;
  36449. }
  36450. }
  36451. function commitDeletion(current$$1) {
  36452. if (supportsMutation) {
  36453. // Recursively delete all host nodes from the parent.
  36454. // Detach refs and call componentWillUnmount() on the whole subtree.
  36455. unmountHostComponents(current$$1);
  36456. } else {
  36457. // Detach refs and call componentWillUnmount() on the whole subtree.
  36458. commitNestedUnmounts(current$$1);
  36459. }
  36460. detachFiber(current$$1);
  36461. }
  36462. function commitWork(current$$1, finishedWork) {
  36463. if (!supportsMutation) {
  36464. switch (finishedWork.tag) {
  36465. case FunctionComponent:
  36466. case ForwardRef:
  36467. case MemoComponent:
  36468. case SimpleMemoComponent:
  36469. {
  36470. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  36471. return;
  36472. }
  36473. }
  36474. commitContainer(finishedWork);
  36475. return;
  36476. }
  36477. switch (finishedWork.tag) {
  36478. case FunctionComponent:
  36479. case ForwardRef:
  36480. case MemoComponent:
  36481. case SimpleMemoComponent:
  36482. {
  36483. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  36484. return;
  36485. }
  36486. case ClassComponent:
  36487. {
  36488. return;
  36489. }
  36490. case HostComponent:
  36491. {
  36492. var instance = finishedWork.stateNode;
  36493. if (instance != null) {
  36494. // Commit the work prepared earlier.
  36495. var newProps = finishedWork.memoizedProps;
  36496. // For hydration we reuse the update path but we treat the oldProps
  36497. // as the newProps. The updatePayload will contain the real change in
  36498. // this case.
  36499. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  36500. var type = finishedWork.type;
  36501. // TODO: Type the updateQueue to be specific to host components.
  36502. var updatePayload = finishedWork.updateQueue;
  36503. finishedWork.updateQueue = null;
  36504. if (updatePayload !== null) {
  36505. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  36506. }
  36507. }
  36508. return;
  36509. }
  36510. case HostText:
  36511. {
  36512. !(finishedWork.stateNode !== null) ? invariant(false, 'This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  36513. var textInstance = finishedWork.stateNode;
  36514. var newText = finishedWork.memoizedProps;
  36515. // For hydration we reuse the update path but we treat the oldProps
  36516. // as the newProps. The updatePayload will contain the real change in
  36517. // this case.
  36518. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  36519. commitTextUpdate(textInstance, oldText, newText);
  36520. return;
  36521. }
  36522. case HostRoot:
  36523. {
  36524. return;
  36525. }
  36526. case Profiler:
  36527. {
  36528. return;
  36529. }
  36530. case SuspenseComponent:
  36531. {
  36532. var newState = finishedWork.memoizedState;
  36533. var newDidTimeout = void 0;
  36534. var primaryChildParent = finishedWork;
  36535. if (newState === null) {
  36536. newDidTimeout = false;
  36537. } else {
  36538. newDidTimeout = true;
  36539. primaryChildParent = finishedWork.child;
  36540. if (newState.timedOutAt === NoWork) {
  36541. // If the children had not already timed out, record the time.
  36542. // This is used to compute the elapsed time during subsequent
  36543. // attempts to render the children.
  36544. newState.timedOutAt = requestCurrentTime();
  36545. }
  36546. }
  36547. if (primaryChildParent !== null) {
  36548. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  36549. }
  36550. return;
  36551. }
  36552. case IncompleteClassComponent:
  36553. {
  36554. return;
  36555. }
  36556. default:
  36557. {
  36558. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  36559. }
  36560. }
  36561. }
  36562. function commitResetTextContent(current$$1) {
  36563. if (!supportsMutation) {
  36564. return;
  36565. }
  36566. resetTextContent(current$$1.stateNode);
  36567. }
  36568. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  36569. var update = createUpdate(expirationTime);
  36570. // Unmount the root by rendering null.
  36571. update.tag = CaptureUpdate;
  36572. // Caution: React DevTools currently depends on this property
  36573. // being called "element".
  36574. update.payload = { element: null };
  36575. var error = errorInfo.value;
  36576. update.callback = function () {
  36577. onUncaughtError(error);
  36578. logError(fiber, errorInfo);
  36579. };
  36580. return update;
  36581. }
  36582. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  36583. var update = createUpdate(expirationTime);
  36584. update.tag = CaptureUpdate;
  36585. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  36586. if (typeof getDerivedStateFromError === 'function') {
  36587. var error = errorInfo.value;
  36588. update.payload = function () {
  36589. return getDerivedStateFromError(error);
  36590. };
  36591. }
  36592. var inst = fiber.stateNode;
  36593. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  36594. update.callback = function callback() {
  36595. if (typeof getDerivedStateFromError !== 'function') {
  36596. // To preserve the preexisting retry behavior of error boundaries,
  36597. // we keep track of which ones already failed during this batch.
  36598. // This gets reset before we yield back to the browser.
  36599. // TODO: Warn in strict mode if getDerivedStateFromError is
  36600. // not defined.
  36601. markLegacyErrorBoundaryAsFailed(this);
  36602. }
  36603. var error = errorInfo.value;
  36604. var stack = errorInfo.stack;
  36605. logError(fiber, errorInfo);
  36606. this.componentDidCatch(error, {
  36607. componentStack: stack !== null ? stack : ''
  36608. });
  36609. {
  36610. if (typeof getDerivedStateFromError !== 'function') {
  36611. // If componentDidCatch is the only error boundary method defined,
  36612. // then it needs to call setState to recover from errors.
  36613. // If no state update is scheduled then the boundary will swallow the error.
  36614. !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;
  36615. }
  36616. }
  36617. };
  36618. }
  36619. return update;
  36620. }
  36621. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  36622. // The source fiber did not complete.
  36623. sourceFiber.effectTag |= Incomplete;
  36624. // Its effect list is no longer valid.
  36625. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  36626. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  36627. // This is a thenable.
  36628. var thenable = value;
  36629. // Find the earliest timeout threshold of all the placeholders in the
  36630. // ancestor path. We could avoid this traversal by storing the thresholds on
  36631. // the stack, but we choose not to because we only hit this path if we're
  36632. // IO-bound (i.e. if something suspends). Whereas the stack is used even in
  36633. // the non-IO- bound case.
  36634. var _workInProgress = returnFiber;
  36635. var earliestTimeoutMs = -1;
  36636. var startTimeMs = -1;
  36637. do {
  36638. if (_workInProgress.tag === SuspenseComponent) {
  36639. var current$$1 = _workInProgress.alternate;
  36640. if (current$$1 !== null) {
  36641. var currentState = current$$1.memoizedState;
  36642. if (currentState !== null) {
  36643. // Reached a boundary that already timed out. Do not search
  36644. // any further.
  36645. var timedOutAt = currentState.timedOutAt;
  36646. startTimeMs = expirationTimeToMs(timedOutAt);
  36647. // Do not search any further.
  36648. break;
  36649. }
  36650. }
  36651. var timeoutPropMs = _workInProgress.pendingProps.maxDuration;
  36652. if (typeof timeoutPropMs === 'number') {
  36653. if (timeoutPropMs <= 0) {
  36654. earliestTimeoutMs = 0;
  36655. } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {
  36656. earliestTimeoutMs = timeoutPropMs;
  36657. }
  36658. }
  36659. }
  36660. _workInProgress = _workInProgress.return;
  36661. } while (_workInProgress !== null);
  36662. // Schedule the nearest Suspense to re-render the timed out view.
  36663. _workInProgress = returnFiber;
  36664. do {
  36665. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress.alternate, _workInProgress)) {
  36666. // Found the nearest boundary.
  36667. // If the boundary is not in concurrent mode, we should not suspend, and
  36668. // likewise, when the promise resolves, we should ping synchronously.
  36669. var pingTime = (_workInProgress.mode & ConcurrentMode) === NoEffect ? Sync : renderExpirationTime;
  36670. // Attach a listener to the promise to "ping" the root and retry.
  36671. var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, sourceFiber, pingTime);
  36672. if (enableSchedulerTracing) {
  36673. onResolveOrReject = tracing.unstable_wrap(onResolveOrReject);
  36674. }
  36675. thenable.then(onResolveOrReject, onResolveOrReject);
  36676. // If the boundary is outside of concurrent mode, we should *not*
  36677. // suspend the commit. Pretend as if the suspended component rendered
  36678. // null and keep rendering. In the commit phase, we'll schedule a
  36679. // subsequent synchronous update to re-render the Suspense.
  36680. //
  36681. // Note: It doesn't matter whether the component that suspended was
  36682. // inside a concurrent mode tree. If the Suspense is outside of it, we
  36683. // should *not* suspend the commit.
  36684. if ((_workInProgress.mode & ConcurrentMode) === NoEffect) {
  36685. _workInProgress.effectTag |= DidCapture;
  36686. // We're going to commit this fiber even though it didn't complete.
  36687. // But we shouldn't call any lifecycle methods or callbacks. Remove
  36688. // all lifecycle effect tags.
  36689. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  36690. if (sourceFiber.tag === ClassComponent) {
  36691. var _current = sourceFiber.alternate;
  36692. if (_current === null) {
  36693. // This is a new mount. Change the tag so it's not mistaken for a
  36694. // completed class component. For example, we should not call
  36695. // componentWillUnmount if it is deleted.
  36696. sourceFiber.tag = IncompleteClassComponent;
  36697. }
  36698. }
  36699. // The source fiber did not complete. Mark it with the current
  36700. // render priority to indicate that it still has pending work.
  36701. sourceFiber.expirationTime = renderExpirationTime;
  36702. // Exit without suspending.
  36703. return;
  36704. }
  36705. // Confirmed that the boundary is in a concurrent mode tree. Continue
  36706. // with the normal suspend path.
  36707. var absoluteTimeoutMs = void 0;
  36708. if (earliestTimeoutMs === -1) {
  36709. // If no explicit threshold is given, default to an abitrarily large
  36710. // value. The actual size doesn't matter because the threshold for the
  36711. // whole tree will be clamped to the expiration time.
  36712. absoluteTimeoutMs = maxSigned31BitInt;
  36713. } else {
  36714. if (startTimeMs === -1) {
  36715. // This suspend happened outside of any already timed-out
  36716. // placeholders. We don't know exactly when the update was
  36717. // scheduled, but we can infer an approximate start time from the
  36718. // expiration time. First, find the earliest uncommitted expiration
  36719. // time in the tree, including work that is suspended. Then subtract
  36720. // the offset used to compute an async update's expiration time.
  36721. // This will cause high priority (interactive) work to expire
  36722. // earlier than necessary, but we can account for this by adjusting
  36723. // for the Just Noticeable Difference.
  36724. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);
  36725. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  36726. startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  36727. }
  36728. absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;
  36729. }
  36730. // Mark the earliest timeout in the suspended fiber's ancestor path.
  36731. // After completing the root, we'll take the largest of all the
  36732. // suspended fiber's timeouts and use it to compute a timeout for the
  36733. // whole tree.
  36734. renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);
  36735. _workInProgress.effectTag |= ShouldCapture;
  36736. _workInProgress.expirationTime = renderExpirationTime;
  36737. return;
  36738. }
  36739. // This boundary already captured during this render. Continue to the next
  36740. // boundary.
  36741. _workInProgress = _workInProgress.return;
  36742. } while (_workInProgress !== null);
  36743. // No boundary was found. Fallthrough to error mode.
  36744. // TODO: Use invariant so the message is stripped in prod?
  36745. value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));
  36746. }
  36747. // We didn't find a boundary that could handle this type of exception. Start
  36748. // over and traverse parent path again, this time treating the exception
  36749. // as an error.
  36750. renderDidError();
  36751. value = createCapturedValue(value, sourceFiber);
  36752. var workInProgress = returnFiber;
  36753. do {
  36754. switch (workInProgress.tag) {
  36755. case HostRoot:
  36756. {
  36757. var _errorInfo = value;
  36758. workInProgress.effectTag |= ShouldCapture;
  36759. workInProgress.expirationTime = renderExpirationTime;
  36760. var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  36761. enqueueCapturedUpdate(workInProgress, update);
  36762. return;
  36763. }
  36764. case ClassComponent:
  36765. // Capture and retry
  36766. var errorInfo = value;
  36767. var ctor = workInProgress.type;
  36768. var instance = workInProgress.stateNode;
  36769. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  36770. workInProgress.effectTag |= ShouldCapture;
  36771. workInProgress.expirationTime = renderExpirationTime;
  36772. // Schedule the error boundary to re-render using updated state
  36773. var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  36774. enqueueCapturedUpdate(workInProgress, _update);
  36775. return;
  36776. }
  36777. break;
  36778. default:
  36779. break;
  36780. }
  36781. workInProgress = workInProgress.return;
  36782. } while (workInProgress !== null);
  36783. }
  36784. function unwindWork(workInProgress, renderExpirationTime) {
  36785. switch (workInProgress.tag) {
  36786. case ClassComponent:
  36787. {
  36788. var Component = workInProgress.type;
  36789. if (isContextProvider(Component)) {
  36790. popContext(workInProgress);
  36791. }
  36792. var effectTag = workInProgress.effectTag;
  36793. if (effectTag & ShouldCapture) {
  36794. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  36795. return workInProgress;
  36796. }
  36797. return null;
  36798. }
  36799. case HostRoot:
  36800. {
  36801. popHostContainer(workInProgress);
  36802. popTopLevelContextObject(workInProgress);
  36803. var _effectTag = workInProgress.effectTag;
  36804. !((_effectTag & DidCapture) === NoEffect) ? invariant(false, 'The root failed to unmount after an error. This is likely a bug in React. Please file an issue.') : void 0;
  36805. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  36806. return workInProgress;
  36807. }
  36808. case HostComponent:
  36809. {
  36810. popHostContext(workInProgress);
  36811. return null;
  36812. }
  36813. case SuspenseComponent:
  36814. {
  36815. var _effectTag2 = workInProgress.effectTag;
  36816. if (_effectTag2 & ShouldCapture) {
  36817. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  36818. // Captured a suspense effect. Re-render the boundary.
  36819. return workInProgress;
  36820. }
  36821. return null;
  36822. }
  36823. case HostPortal:
  36824. popHostContainer(workInProgress);
  36825. return null;
  36826. case ContextProvider:
  36827. popProvider(workInProgress);
  36828. return null;
  36829. default:
  36830. return null;
  36831. }
  36832. }
  36833. function unwindInterruptedWork(interruptedWork) {
  36834. switch (interruptedWork.tag) {
  36835. case ClassComponent:
  36836. {
  36837. var childContextTypes = interruptedWork.type.childContextTypes;
  36838. if (childContextTypes !== null && childContextTypes !== undefined) {
  36839. popContext(interruptedWork);
  36840. }
  36841. break;
  36842. }
  36843. case HostRoot:
  36844. {
  36845. popHostContainer(interruptedWork);
  36846. popTopLevelContextObject(interruptedWork);
  36847. break;
  36848. }
  36849. case HostComponent:
  36850. {
  36851. popHostContext(interruptedWork);
  36852. break;
  36853. }
  36854. case HostPortal:
  36855. popHostContainer(interruptedWork);
  36856. break;
  36857. case ContextProvider:
  36858. popProvider(interruptedWork);
  36859. break;
  36860. default:
  36861. break;
  36862. }
  36863. }
  36864. var Dispatcher = {
  36865. readContext: readContext,
  36866. useCallback: useCallback,
  36867. useContext: useContext,
  36868. useEffect: useEffect,
  36869. useImperativeMethods: useImperativeMethods,
  36870. useLayoutEffect: useLayoutEffect,
  36871. useMemo: useMemo,
  36872. useMutationEffect: useMutationEffect,
  36873. useReducer: useReducer,
  36874. useRef: useRef,
  36875. useState: useState
  36876. };
  36877. var DispatcherWithoutHooks = {
  36878. readContext: readContext
  36879. };
  36880. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  36881. var didWarnAboutStateTransition = void 0;
  36882. var didWarnSetStateChildContext = void 0;
  36883. var warnAboutUpdateOnUnmounted = void 0;
  36884. var warnAboutInvalidUpdates = void 0;
  36885. if (enableSchedulerTracing) {
  36886. // Provide explicit error message when production+profiling bundle of e.g. react-dom
  36887. // is used with production (non-profiling) bundle of scheduler/tracing
  36888. !(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null) ? invariant(false, 'It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling') : void 0;
  36889. }
  36890. {
  36891. didWarnAboutStateTransition = false;
  36892. didWarnSetStateChildContext = false;
  36893. var didWarnStateUpdateForUnmountedComponent = {};
  36894. warnAboutUpdateOnUnmounted = function (fiber, isClass) {
  36895. // We show the whole stack but dedupe on the top component's name because
  36896. // the problematic code almost always lies inside that component.
  36897. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  36898. if (didWarnStateUpdateForUnmountedComponent[componentName]) {
  36899. return;
  36900. }
  36901. warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', isClass ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  36902. didWarnStateUpdateForUnmountedComponent[componentName] = true;
  36903. };
  36904. warnAboutInvalidUpdates = function (instance) {
  36905. switch (phase) {
  36906. case 'getChildContext':
  36907. if (didWarnSetStateChildContext) {
  36908. return;
  36909. }
  36910. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  36911. didWarnSetStateChildContext = true;
  36912. break;
  36913. case 'render':
  36914. if (didWarnAboutStateTransition) {
  36915. return;
  36916. }
  36917. warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as within ' + '`render`). Render methods should be a pure function of props and state.');
  36918. didWarnAboutStateTransition = true;
  36919. break;
  36920. }
  36921. };
  36922. }
  36923. // Used to ensure computeUniqueAsyncExpiration is monotonically decreasing.
  36924. var lastUniqueAsyncExpiration = Sync - 1;
  36925. // Represents the expiration time that incoming updates should use. (If this
  36926. // is NoWork, use the default strategy: async updates in async mode, sync
  36927. // updates in sync mode.)
  36928. var expirationContext = NoWork;
  36929. var isWorking = false;
  36930. // The next work in progress fiber that we're currently working on.
  36931. var nextUnitOfWork = null;
  36932. var nextRoot = null;
  36933. // The time at which we're currently rendering work.
  36934. var nextRenderExpirationTime = NoWork;
  36935. var nextLatestAbsoluteTimeoutMs = -1;
  36936. var nextRenderDidError = false;
  36937. // The next fiber with an effect that we're currently committing.
  36938. var nextEffect = null;
  36939. var isCommitting$1 = false;
  36940. var rootWithPendingPassiveEffects = null;
  36941. var passiveEffectCallbackHandle = null;
  36942. var passiveEffectCallback = null;
  36943. var legacyErrorBoundariesThatAlreadyFailed = null;
  36944. // Used for performance tracking.
  36945. var interruptedBy = null;
  36946. var stashedWorkInProgressProperties = void 0;
  36947. var replayUnitOfWork = void 0;
  36948. var mayReplayFailedUnitOfWork = void 0;
  36949. var isReplayingFailedUnitOfWork = void 0;
  36950. var originalReplayError = void 0;
  36951. var rethrowOriginalError = void 0;
  36952. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  36953. stashedWorkInProgressProperties = null;
  36954. mayReplayFailedUnitOfWork = true;
  36955. isReplayingFailedUnitOfWork = false;
  36956. originalReplayError = null;
  36957. replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {
  36958. if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
  36959. // Don't replay promises. Treat everything else like an error.
  36960. // TODO: Need to figure out a different strategy if/when we add
  36961. // support for catching other types.
  36962. return;
  36963. }
  36964. // Restore the original state of the work-in-progress
  36965. if (stashedWorkInProgressProperties === null) {
  36966. // This should never happen. Don't throw because this code is DEV-only.
  36967. warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');
  36968. return;
  36969. }
  36970. assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);
  36971. switch (failedUnitOfWork.tag) {
  36972. case HostRoot:
  36973. popHostContainer(failedUnitOfWork);
  36974. popTopLevelContextObject(failedUnitOfWork);
  36975. break;
  36976. case HostComponent:
  36977. popHostContext(failedUnitOfWork);
  36978. break;
  36979. case ClassComponent:
  36980. {
  36981. var Component = failedUnitOfWork.type;
  36982. if (isContextProvider(Component)) {
  36983. popContext(failedUnitOfWork);
  36984. }
  36985. break;
  36986. }
  36987. case HostPortal:
  36988. popHostContainer(failedUnitOfWork);
  36989. break;
  36990. case ContextProvider:
  36991. popProvider(failedUnitOfWork);
  36992. break;
  36993. }
  36994. // Replay the begin phase.
  36995. isReplayingFailedUnitOfWork = true;
  36996. originalReplayError = thrownValue;
  36997. invokeGuardedCallback(null, workLoop, null, isYieldy);
  36998. isReplayingFailedUnitOfWork = false;
  36999. originalReplayError = null;
  37000. if (hasCaughtError()) {
  37001. var replayError = clearCaughtError();
  37002. if (replayError != null && thrownValue != null) {
  37003. try {
  37004. // Reading the expando property is intentionally
  37005. // inside `try` because it might be a getter or Proxy.
  37006. if (replayError._suppressLogging) {
  37007. // Also suppress logging for the original error.
  37008. thrownValue._suppressLogging = true;
  37009. }
  37010. } catch (inner) {
  37011. // Ignore.
  37012. }
  37013. }
  37014. } else {
  37015. // If the begin phase did not fail the second time, set this pointer
  37016. // back to the original value.
  37017. nextUnitOfWork = failedUnitOfWork;
  37018. }
  37019. };
  37020. rethrowOriginalError = function () {
  37021. throw originalReplayError;
  37022. };
  37023. }
  37024. function resetStack() {
  37025. if (nextUnitOfWork !== null) {
  37026. var interruptedWork = nextUnitOfWork.return;
  37027. while (interruptedWork !== null) {
  37028. unwindInterruptedWork(interruptedWork);
  37029. interruptedWork = interruptedWork.return;
  37030. }
  37031. }
  37032. {
  37033. ReactStrictModeWarnings.discardPendingWarnings();
  37034. checkThatStackIsEmpty();
  37035. }
  37036. nextRoot = null;
  37037. nextRenderExpirationTime = NoWork;
  37038. nextLatestAbsoluteTimeoutMs = -1;
  37039. nextRenderDidError = false;
  37040. nextUnitOfWork = null;
  37041. }
  37042. function commitAllHostEffects() {
  37043. while (nextEffect !== null) {
  37044. {
  37045. setCurrentFiber(nextEffect);
  37046. }
  37047. recordEffect();
  37048. var effectTag = nextEffect.effectTag;
  37049. if (effectTag & ContentReset) {
  37050. commitResetTextContent(nextEffect);
  37051. }
  37052. if (effectTag & Ref) {
  37053. var current$$1 = nextEffect.alternate;
  37054. if (current$$1 !== null) {
  37055. commitDetachRef(current$$1);
  37056. }
  37057. }
  37058. // The following switch statement is only concerned about placement,
  37059. // updates, and deletions. To avoid needing to add a case for every
  37060. // possible bitmap value, we remove the secondary effects from the
  37061. // effect tag and switch on that value.
  37062. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  37063. switch (primaryEffectTag) {
  37064. case Placement:
  37065. {
  37066. commitPlacement(nextEffect);
  37067. // Clear the "placement" from effect tag so that we know that this is inserted, before
  37068. // any life-cycles like componentDidMount gets called.
  37069. // TODO: findDOMNode doesn't rely on this any more but isMounted
  37070. // does and isMounted is deprecated anyway so we should be able
  37071. // to kill this.
  37072. nextEffect.effectTag &= ~Placement;
  37073. break;
  37074. }
  37075. case PlacementAndUpdate:
  37076. {
  37077. // Placement
  37078. commitPlacement(nextEffect);
  37079. // Clear the "placement" from effect tag so that we know that this is inserted, before
  37080. // any life-cycles like componentDidMount gets called.
  37081. nextEffect.effectTag &= ~Placement;
  37082. // Update
  37083. var _current = nextEffect.alternate;
  37084. commitWork(_current, nextEffect);
  37085. break;
  37086. }
  37087. case Update:
  37088. {
  37089. var _current2 = nextEffect.alternate;
  37090. commitWork(_current2, nextEffect);
  37091. break;
  37092. }
  37093. case Deletion:
  37094. {
  37095. commitDeletion(nextEffect);
  37096. break;
  37097. }
  37098. }
  37099. nextEffect = nextEffect.nextEffect;
  37100. }
  37101. {
  37102. resetCurrentFiber();
  37103. }
  37104. }
  37105. function commitBeforeMutationLifecycles() {
  37106. while (nextEffect !== null) {
  37107. {
  37108. setCurrentFiber(nextEffect);
  37109. }
  37110. var effectTag = nextEffect.effectTag;
  37111. if (effectTag & Snapshot) {
  37112. recordEffect();
  37113. var current$$1 = nextEffect.alternate;
  37114. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  37115. }
  37116. nextEffect = nextEffect.nextEffect;
  37117. }
  37118. {
  37119. resetCurrentFiber();
  37120. }
  37121. }
  37122. function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
  37123. {
  37124. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  37125. ReactStrictModeWarnings.flushLegacyContextWarning();
  37126. if (warnAboutDeprecatedLifecycles) {
  37127. ReactStrictModeWarnings.flushPendingDeprecationWarnings();
  37128. }
  37129. }
  37130. while (nextEffect !== null) {
  37131. var effectTag = nextEffect.effectTag;
  37132. if (effectTag & (Update | Callback)) {
  37133. recordEffect();
  37134. var current$$1 = nextEffect.alternate;
  37135. commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);
  37136. }
  37137. if (effectTag & Ref) {
  37138. recordEffect();
  37139. commitAttachRef(nextEffect);
  37140. }
  37141. if (enableHooks && effectTag & Passive) {
  37142. rootWithPendingPassiveEffects = finishedRoot;
  37143. }
  37144. nextEffect = nextEffect.nextEffect;
  37145. }
  37146. }
  37147. function commitPassiveEffects(root, firstEffect) {
  37148. rootWithPendingPassiveEffects = null;
  37149. passiveEffectCallbackHandle = null;
  37150. passiveEffectCallback = null;
  37151. // Set this to true to prevent re-entrancy
  37152. var previousIsRendering = isRendering;
  37153. isRendering = true;
  37154. var effect = firstEffect;
  37155. do {
  37156. if (effect.effectTag & Passive) {
  37157. var didError = false;
  37158. var error = void 0;
  37159. {
  37160. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  37161. if (hasCaughtError()) {
  37162. didError = true;
  37163. error = clearCaughtError();
  37164. }
  37165. }
  37166. if (didError) {
  37167. captureCommitPhaseError(effect, error);
  37168. }
  37169. }
  37170. effect = effect.nextEffect;
  37171. } while (effect !== null);
  37172. isRendering = previousIsRendering;
  37173. // Check if work was scheduled by one of the effects
  37174. var rootExpirationTime = root.expirationTime;
  37175. if (rootExpirationTime !== NoWork) {
  37176. requestWork(root, rootExpirationTime);
  37177. }
  37178. }
  37179. function isAlreadyFailedLegacyErrorBoundary(instance) {
  37180. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  37181. }
  37182. function markLegacyErrorBoundaryAsFailed(instance) {
  37183. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  37184. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  37185. } else {
  37186. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  37187. }
  37188. }
  37189. function flushPassiveEffects() {
  37190. if (passiveEffectCallback !== null) {
  37191. scheduler.unstable_cancelCallback(passiveEffectCallbackHandle);
  37192. // We call the scheduled callback instead of commitPassiveEffects directly
  37193. // to ensure tracing works correctly.
  37194. passiveEffectCallback();
  37195. }
  37196. }
  37197. function commitRoot(root, finishedWork) {
  37198. isWorking = true;
  37199. isCommitting$1 = true;
  37200. startCommitTimer();
  37201. !(root.current !== finishedWork) ? invariant(false, 'Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37202. var committedExpirationTime = root.pendingCommitExpirationTime;
  37203. !(committedExpirationTime !== NoWork) ? invariant(false, 'Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37204. root.pendingCommitExpirationTime = NoWork;
  37205. // Update the pending priority levels to account for the work that we are
  37206. // about to commit. This needs to happen before calling the lifecycles, since
  37207. // they may schedule additional updates.
  37208. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  37209. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  37210. var earliestRemainingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  37211. markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);
  37212. var prevInteractions = null;
  37213. if (enableSchedulerTracing) {
  37214. // Restore any pending interactions at this point,
  37215. // So that cascading work triggered during the render phase will be accounted for.
  37216. prevInteractions = tracing.__interactionsRef.current;
  37217. tracing.__interactionsRef.current = root.memoizedInteractions;
  37218. }
  37219. // Reset this to null before calling lifecycles
  37220. ReactCurrentOwner$2.current = null;
  37221. var firstEffect = void 0;
  37222. if (finishedWork.effectTag > PerformedWork) {
  37223. // A fiber's effect list consists only of its children, not itself. So if
  37224. // the root has an effect, we need to add it to the end of the list. The
  37225. // resulting list is the set that would belong to the root's parent, if
  37226. // it had one; that is, all the effects in the tree including the root.
  37227. if (finishedWork.lastEffect !== null) {
  37228. finishedWork.lastEffect.nextEffect = finishedWork;
  37229. firstEffect = finishedWork.firstEffect;
  37230. } else {
  37231. firstEffect = finishedWork;
  37232. }
  37233. } else {
  37234. // There is no effect on the root.
  37235. firstEffect = finishedWork.firstEffect;
  37236. }
  37237. prepareForCommit(root.containerInfo);
  37238. // Invoke instances of getSnapshotBeforeUpdate before mutation.
  37239. nextEffect = firstEffect;
  37240. startCommitSnapshotEffectsTimer();
  37241. while (nextEffect !== null) {
  37242. var didError = false;
  37243. var error = void 0;
  37244. {
  37245. invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);
  37246. if (hasCaughtError()) {
  37247. didError = true;
  37248. error = clearCaughtError();
  37249. }
  37250. }
  37251. if (didError) {
  37252. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37253. captureCommitPhaseError(nextEffect, error);
  37254. // Clean-up
  37255. if (nextEffect !== null) {
  37256. nextEffect = nextEffect.nextEffect;
  37257. }
  37258. }
  37259. }
  37260. stopCommitSnapshotEffectsTimer();
  37261. if (enableProfilerTimer) {
  37262. // Mark the current commit time to be shared by all Profilers in this batch.
  37263. // This enables them to be grouped later.
  37264. recordCommitTime();
  37265. }
  37266. // Commit all the side-effects within a tree. We'll do this in two passes.
  37267. // The first pass performs all the host insertions, updates, deletions and
  37268. // ref unmounts.
  37269. nextEffect = firstEffect;
  37270. startCommitHostEffectsTimer();
  37271. while (nextEffect !== null) {
  37272. var _didError = false;
  37273. var _error = void 0;
  37274. {
  37275. invokeGuardedCallback(null, commitAllHostEffects, null);
  37276. if (hasCaughtError()) {
  37277. _didError = true;
  37278. _error = clearCaughtError();
  37279. }
  37280. }
  37281. if (_didError) {
  37282. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37283. captureCommitPhaseError(nextEffect, _error);
  37284. // Clean-up
  37285. if (nextEffect !== null) {
  37286. nextEffect = nextEffect.nextEffect;
  37287. }
  37288. }
  37289. }
  37290. stopCommitHostEffectsTimer();
  37291. resetAfterCommit(root.containerInfo);
  37292. // The work-in-progress tree is now the current tree. This must come after
  37293. // the first pass of the commit phase, so that the previous tree is still
  37294. // current during componentWillUnmount, but before the second pass, so that
  37295. // the finished work is current during componentDidMount/Update.
  37296. root.current = finishedWork;
  37297. // In the second pass we'll perform all life-cycles and ref callbacks.
  37298. // Life-cycles happen as a separate pass so that all placements, updates,
  37299. // and deletions in the entire tree have already been invoked.
  37300. // This pass also triggers any renderer-specific initial effects.
  37301. nextEffect = firstEffect;
  37302. startCommitLifeCyclesTimer();
  37303. while (nextEffect !== null) {
  37304. var _didError2 = false;
  37305. var _error2 = void 0;
  37306. {
  37307. invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);
  37308. if (hasCaughtError()) {
  37309. _didError2 = true;
  37310. _error2 = clearCaughtError();
  37311. }
  37312. }
  37313. if (_didError2) {
  37314. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37315. captureCommitPhaseError(nextEffect, _error2);
  37316. if (nextEffect !== null) {
  37317. nextEffect = nextEffect.nextEffect;
  37318. }
  37319. }
  37320. }
  37321. if (enableHooks && firstEffect !== null && rootWithPendingPassiveEffects !== null) {
  37322. // This commit included a passive effect. These do not need to fire until
  37323. // after the next paint. Schedule an callback to fire them in an async
  37324. // event. To ensure serial execution, the callback will be flushed early if
  37325. // we enter rootWithPendingPassiveEffects commit phase before then.
  37326. var callback = commitPassiveEffects.bind(null, root, firstEffect);
  37327. if (enableSchedulerTracing) {
  37328. // TODO: Avoid this extra callback by mutating the tracing ref directly,
  37329. // like we do at the beginning of commitRoot. I've opted not to do that
  37330. // here because that code is still in flux.
  37331. callback = tracing.unstable_wrap(callback);
  37332. }
  37333. passiveEffectCallbackHandle = scheduler.unstable_scheduleCallback(callback);
  37334. passiveEffectCallback = callback;
  37335. }
  37336. isCommitting$1 = false;
  37337. isWorking = false;
  37338. stopCommitLifeCyclesTimer();
  37339. stopCommitTimer();
  37340. onCommitRoot(finishedWork.stateNode);
  37341. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37342. ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);
  37343. }
  37344. var updateExpirationTimeAfterCommit = finishedWork.expirationTime;
  37345. var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;
  37346. var earliestRemainingTimeAfterCommit = childExpirationTimeAfterCommit > updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;
  37347. if (earliestRemainingTimeAfterCommit === NoWork) {
  37348. // If there's no remaining work, we can clear the set of already failed
  37349. // error boundaries.
  37350. legacyErrorBoundariesThatAlreadyFailed = null;
  37351. }
  37352. onCommit(root, earliestRemainingTimeAfterCommit);
  37353. if (enableSchedulerTracing) {
  37354. tracing.__interactionsRef.current = prevInteractions;
  37355. var subscriber = void 0;
  37356. try {
  37357. subscriber = tracing.__subscriberRef.current;
  37358. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  37359. var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);
  37360. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  37361. }
  37362. } catch (error) {
  37363. // It's not safe for commitRoot() to throw.
  37364. // Store the error for now and we'll re-throw in finishRendering().
  37365. if (!hasUnhandledError) {
  37366. hasUnhandledError = true;
  37367. unhandledError = error;
  37368. }
  37369. } finally {
  37370. // Clear completed interactions from the pending Map.
  37371. // Unless the render was suspended or cascading work was scheduled,
  37372. // In which case– leave pending interactions until the subsequent render.
  37373. var pendingInteractionMap = root.pendingInteractionMap;
  37374. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  37375. // Only decrement the pending interaction count if we're done.
  37376. // If there's still work at the current priority,
  37377. // That indicates that we are waiting for suspense data.
  37378. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  37379. pendingInteractionMap.delete(scheduledExpirationTime);
  37380. scheduledInteractions.forEach(function (interaction) {
  37381. interaction.__count--;
  37382. if (subscriber !== null && interaction.__count === 0) {
  37383. try {
  37384. subscriber.onInteractionScheduledWorkCompleted(interaction);
  37385. } catch (error) {
  37386. // It's not safe for commitRoot() to throw.
  37387. // Store the error for now and we'll re-throw in finishRendering().
  37388. if (!hasUnhandledError) {
  37389. hasUnhandledError = true;
  37390. unhandledError = error;
  37391. }
  37392. }
  37393. }
  37394. });
  37395. }
  37396. });
  37397. }
  37398. }
  37399. }
  37400. function resetChildExpirationTime(workInProgress, renderTime) {
  37401. if (renderTime !== Never && workInProgress.childExpirationTime === Never) {
  37402. // The children of this component are hidden. Don't bubble their
  37403. // expiration times.
  37404. return;
  37405. }
  37406. var newChildExpirationTime = NoWork;
  37407. // Bubble up the earliest expiration time.
  37408. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  37409. // We're in profiling mode.
  37410. // Let's use this same traversal to update the render durations.
  37411. var actualDuration = workInProgress.actualDuration;
  37412. var treeBaseDuration = workInProgress.selfBaseDuration;
  37413. // When a fiber is cloned, its actualDuration is reset to 0.
  37414. // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).
  37415. // When work is done, it should bubble to the parent's actualDuration.
  37416. // If the fiber has not been cloned though, (meaning no work was done),
  37417. // Then this value will reflect the amount of time spent working on a previous render.
  37418. // In that case it should not bubble.
  37419. // We determine whether it was cloned by comparing the child pointer.
  37420. var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;
  37421. var child = workInProgress.child;
  37422. while (child !== null) {
  37423. var childUpdateExpirationTime = child.expirationTime;
  37424. var childChildExpirationTime = child.childExpirationTime;
  37425. if (childUpdateExpirationTime > newChildExpirationTime) {
  37426. newChildExpirationTime = childUpdateExpirationTime;
  37427. }
  37428. if (childChildExpirationTime > newChildExpirationTime) {
  37429. newChildExpirationTime = childChildExpirationTime;
  37430. }
  37431. if (shouldBubbleActualDurations) {
  37432. actualDuration += child.actualDuration;
  37433. }
  37434. treeBaseDuration += child.treeBaseDuration;
  37435. child = child.sibling;
  37436. }
  37437. workInProgress.actualDuration = actualDuration;
  37438. workInProgress.treeBaseDuration = treeBaseDuration;
  37439. } else {
  37440. var _child = workInProgress.child;
  37441. while (_child !== null) {
  37442. var _childUpdateExpirationTime = _child.expirationTime;
  37443. var _childChildExpirationTime = _child.childExpirationTime;
  37444. if (_childUpdateExpirationTime > newChildExpirationTime) {
  37445. newChildExpirationTime = _childUpdateExpirationTime;
  37446. }
  37447. if (_childChildExpirationTime > newChildExpirationTime) {
  37448. newChildExpirationTime = _childChildExpirationTime;
  37449. }
  37450. _child = _child.sibling;
  37451. }
  37452. }
  37453. workInProgress.childExpirationTime = newChildExpirationTime;
  37454. }
  37455. function completeUnitOfWork(workInProgress) {
  37456. // Attempt to complete the current unit of work, then move to the
  37457. // next sibling. If there are no more siblings, return to the
  37458. // parent fiber.
  37459. while (true) {
  37460. // The current, flushed, state of this fiber is the alternate.
  37461. // Ideally nothing should rely on this, but relying on it here
  37462. // means that we don't need an additional field on the work in
  37463. // progress.
  37464. var current$$1 = workInProgress.alternate;
  37465. {
  37466. setCurrentFiber(workInProgress);
  37467. }
  37468. var returnFiber = workInProgress.return;
  37469. var siblingFiber = workInProgress.sibling;
  37470. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  37471. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37472. // Don't replay if it fails during completion phase.
  37473. mayReplayFailedUnitOfWork = false;
  37474. }
  37475. // This fiber completed.
  37476. // Remember we're completing this unit so we can find a boundary if it fails.
  37477. nextUnitOfWork = workInProgress;
  37478. if (enableProfilerTimer) {
  37479. if (workInProgress.mode & ProfileMode) {
  37480. startProfilerTimer(workInProgress);
  37481. }
  37482. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  37483. if (workInProgress.mode & ProfileMode) {
  37484. // Update render duration assuming we didn't error.
  37485. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  37486. }
  37487. } else {
  37488. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  37489. }
  37490. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37491. // We're out of completion phase so replaying is fine now.
  37492. mayReplayFailedUnitOfWork = true;
  37493. }
  37494. stopWorkTimer(workInProgress);
  37495. resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
  37496. {
  37497. resetCurrentFiber();
  37498. }
  37499. if (nextUnitOfWork !== null) {
  37500. // Completing this fiber spawned new work. Work on that next.
  37501. return nextUnitOfWork;
  37502. }
  37503. if (returnFiber !== null &&
  37504. // Do not append effects to parents if a sibling failed to complete
  37505. (returnFiber.effectTag & Incomplete) === NoEffect) {
  37506. // Append all the effects of the subtree and this fiber onto the effect
  37507. // list of the parent. The completion order of the children affects the
  37508. // side-effect order.
  37509. if (returnFiber.firstEffect === null) {
  37510. returnFiber.firstEffect = workInProgress.firstEffect;
  37511. }
  37512. if (workInProgress.lastEffect !== null) {
  37513. if (returnFiber.lastEffect !== null) {
  37514. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  37515. }
  37516. returnFiber.lastEffect = workInProgress.lastEffect;
  37517. }
  37518. // If this fiber had side-effects, we append it AFTER the children's
  37519. // side-effects. We can perform certain side-effects earlier if
  37520. // needed, by doing multiple passes over the effect list. We don't want
  37521. // to schedule our own side-effect on our own list because if end up
  37522. // reusing children we'll schedule this effect onto itself since we're
  37523. // at the end.
  37524. var effectTag = workInProgress.effectTag;
  37525. // Skip both NoWork and PerformedWork tags when creating the effect list.
  37526. // PerformedWork effect is read by React DevTools but shouldn't be committed.
  37527. if (effectTag > PerformedWork) {
  37528. if (returnFiber.lastEffect !== null) {
  37529. returnFiber.lastEffect.nextEffect = workInProgress;
  37530. } else {
  37531. returnFiber.firstEffect = workInProgress;
  37532. }
  37533. returnFiber.lastEffect = workInProgress;
  37534. }
  37535. }
  37536. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37537. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  37538. }
  37539. if (siblingFiber !== null) {
  37540. // If there is more work to do in this returnFiber, do that next.
  37541. return siblingFiber;
  37542. } else if (returnFiber !== null) {
  37543. // If there's no more work in this returnFiber. Complete the returnFiber.
  37544. workInProgress = returnFiber;
  37545. continue;
  37546. } else {
  37547. // We've reached the root.
  37548. return null;
  37549. }
  37550. } else {
  37551. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  37552. // Record the render duration for the fiber that errored.
  37553. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  37554. // Include the time spent working on failed children before continuing.
  37555. var actualDuration = workInProgress.actualDuration;
  37556. var child = workInProgress.child;
  37557. while (child !== null) {
  37558. actualDuration += child.actualDuration;
  37559. child = child.sibling;
  37560. }
  37561. workInProgress.actualDuration = actualDuration;
  37562. }
  37563. // This fiber did not complete because something threw. Pop values off
  37564. // the stack without entering the complete phase. If this is a boundary,
  37565. // capture values if possible.
  37566. var next = unwindWork(workInProgress, nextRenderExpirationTime);
  37567. // Because this fiber did not complete, don't reset its expiration time.
  37568. if (workInProgress.effectTag & DidCapture) {
  37569. // Restarting an error boundary
  37570. stopFailedWorkTimer(workInProgress);
  37571. } else {
  37572. stopWorkTimer(workInProgress);
  37573. }
  37574. {
  37575. resetCurrentFiber();
  37576. }
  37577. if (next !== null) {
  37578. stopWorkTimer(workInProgress);
  37579. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37580. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  37581. }
  37582. // If completing this work spawned new work, do that next. We'll come
  37583. // back here again.
  37584. // Since we're restarting, remove anything that is not a host effect
  37585. // from the effect tag.
  37586. next.effectTag &= HostEffectMask;
  37587. return next;
  37588. }
  37589. if (returnFiber !== null) {
  37590. // Mark the parent fiber as incomplete and clear its effect list.
  37591. returnFiber.firstEffect = returnFiber.lastEffect = null;
  37592. returnFiber.effectTag |= Incomplete;
  37593. }
  37594. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37595. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  37596. }
  37597. if (siblingFiber !== null) {
  37598. // If there is more work to do in this returnFiber, do that next.
  37599. return siblingFiber;
  37600. } else if (returnFiber !== null) {
  37601. // If there's no more work in this returnFiber. Complete the returnFiber.
  37602. workInProgress = returnFiber;
  37603. continue;
  37604. } else {
  37605. return null;
  37606. }
  37607. }
  37608. }
  37609. // Without this explicit null return Flow complains of invalid return type
  37610. // TODO Remove the above while(true) loop
  37611. // eslint-disable-next-line no-unreachable
  37612. return null;
  37613. }
  37614. function performUnitOfWork(workInProgress) {
  37615. // The current, flushed, state of this fiber is the alternate.
  37616. // Ideally nothing should rely on this, but relying on it here
  37617. // means that we don't need an additional field on the work in
  37618. // progress.
  37619. var current$$1 = workInProgress.alternate;
  37620. // See if beginning this work spawns more work.
  37621. startWorkTimer(workInProgress);
  37622. {
  37623. setCurrentFiber(workInProgress);
  37624. }
  37625. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37626. stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);
  37627. }
  37628. var next = void 0;
  37629. if (enableProfilerTimer) {
  37630. if (workInProgress.mode & ProfileMode) {
  37631. startProfilerTimer(workInProgress);
  37632. }
  37633. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  37634. workInProgress.memoizedProps = workInProgress.pendingProps;
  37635. if (workInProgress.mode & ProfileMode) {
  37636. // Record the render duration assuming we didn't bailout (or error).
  37637. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  37638. }
  37639. } else {
  37640. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  37641. workInProgress.memoizedProps = workInProgress.pendingProps;
  37642. }
  37643. {
  37644. resetCurrentFiber();
  37645. if (isReplayingFailedUnitOfWork) {
  37646. // Currently replaying a failed unit of work. This should be unreachable,
  37647. // because the render phase is meant to be idempotent, and it should
  37648. // have thrown again. Since it didn't, rethrow the original error, so
  37649. // React's internal stack is not misaligned.
  37650. rethrowOriginalError();
  37651. }
  37652. }
  37653. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37654. ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);
  37655. }
  37656. if (next === null) {
  37657. // If this doesn't spawn new work, complete the current work.
  37658. next = completeUnitOfWork(workInProgress);
  37659. }
  37660. ReactCurrentOwner$2.current = null;
  37661. return next;
  37662. }
  37663. function workLoop(isYieldy) {
  37664. if (!isYieldy) {
  37665. // Flush work without yielding
  37666. while (nextUnitOfWork !== null) {
  37667. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  37668. }
  37669. } else {
  37670. // Flush asynchronous work until there's a higher priority event
  37671. while (nextUnitOfWork !== null && !shouldYieldToRenderer()) {
  37672. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  37673. }
  37674. }
  37675. }
  37676. function renderRoot(root, isYieldy) {
  37677. !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37678. flushPassiveEffects();
  37679. isWorking = true;
  37680. if (enableHooks) {
  37681. ReactCurrentOwner$2.currentDispatcher = Dispatcher;
  37682. } else {
  37683. ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;
  37684. }
  37685. var expirationTime = root.nextExpirationTimeToWorkOn;
  37686. // Check if we're starting from a fresh stack, or if we're resuming from
  37687. // previously yielded work.
  37688. if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {
  37689. // Reset the stack and start working from the root.
  37690. resetStack();
  37691. nextRoot = root;
  37692. nextRenderExpirationTime = expirationTime;
  37693. nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);
  37694. root.pendingCommitExpirationTime = NoWork;
  37695. if (enableSchedulerTracing) {
  37696. // Determine which interactions this batch of work currently includes,
  37697. // So that we can accurately attribute time spent working on it,
  37698. var interactions = new Set();
  37699. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  37700. if (scheduledExpirationTime >= expirationTime) {
  37701. scheduledInteractions.forEach(function (interaction) {
  37702. return interactions.add(interaction);
  37703. });
  37704. }
  37705. });
  37706. // Store the current set of interactions on the FiberRoot for a few reasons:
  37707. // We can re-use it in hot functions like renderRoot() without having to recalculate it.
  37708. // We will also use it in commitWork() to pass to any Profiler onRender() hooks.
  37709. // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.
  37710. root.memoizedInteractions = interactions;
  37711. if (interactions.size > 0) {
  37712. var subscriber = tracing.__subscriberRef.current;
  37713. if (subscriber !== null) {
  37714. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  37715. try {
  37716. subscriber.onWorkStarted(interactions, threadID);
  37717. } catch (error) {
  37718. // Work thrown by an interaction tracing subscriber should be rethrown,
  37719. // But only once it's safe (to avoid leaveing the scheduler in an invalid state).
  37720. // Store the error for now and we'll re-throw in finishRendering().
  37721. if (!hasUnhandledError) {
  37722. hasUnhandledError = true;
  37723. unhandledError = error;
  37724. }
  37725. }
  37726. }
  37727. }
  37728. }
  37729. }
  37730. var prevInteractions = null;
  37731. if (enableSchedulerTracing) {
  37732. // We're about to start new traced work.
  37733. // Restore pending interactions so cascading work triggered during the render phase will be accounted for.
  37734. prevInteractions = tracing.__interactionsRef.current;
  37735. tracing.__interactionsRef.current = root.memoizedInteractions;
  37736. }
  37737. var didFatal = false;
  37738. startWorkLoopTimer(nextUnitOfWork);
  37739. do {
  37740. try {
  37741. workLoop(isYieldy);
  37742. } catch (thrownValue) {
  37743. resetContextDependences();
  37744. resetHooks();
  37745. // Reset in case completion throws.
  37746. // This is only used in DEV and when replaying is on.
  37747. var mayReplay = void 0;
  37748. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37749. mayReplay = mayReplayFailedUnitOfWork;
  37750. mayReplayFailedUnitOfWork = true;
  37751. }
  37752. if (nextUnitOfWork === null) {
  37753. // This is a fatal error.
  37754. didFatal = true;
  37755. onUncaughtError(thrownValue);
  37756. } else {
  37757. if (enableProfilerTimer && nextUnitOfWork.mode & ProfileMode) {
  37758. // Record the time spent rendering before an error was thrown.
  37759. // This avoids inaccurate Profiler durations in the case of a suspended render.
  37760. stopProfilerTimerIfRunningAndRecordDelta(nextUnitOfWork, true);
  37761. }
  37762. {
  37763. // Reset global debug state
  37764. // We assume this is defined in DEV
  37765. resetCurrentlyProcessingQueue();
  37766. }
  37767. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37768. if (mayReplay) {
  37769. var failedUnitOfWork = nextUnitOfWork;
  37770. replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);
  37771. }
  37772. }
  37773. // TODO: we already know this isn't true in some cases.
  37774. // At least this shows a nicer error message until we figure out the cause.
  37775. // https://github.com/facebook/react/issues/12449#issuecomment-386727431
  37776. !(nextUnitOfWork !== null) ? invariant(false, 'Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.') : void 0;
  37777. var sourceFiber = nextUnitOfWork;
  37778. var returnFiber = sourceFiber.return;
  37779. if (returnFiber === null) {
  37780. // This is the root. The root could capture its own errors. However,
  37781. // we don't know if it errors before or after we pushed the host
  37782. // context. This information is needed to avoid a stack mismatch.
  37783. // Because we're not sure, treat this as a fatal error. We could track
  37784. // which phase it fails in, but doesn't seem worth it. At least
  37785. // for now.
  37786. didFatal = true;
  37787. onUncaughtError(thrownValue);
  37788. } else {
  37789. throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);
  37790. nextUnitOfWork = completeUnitOfWork(sourceFiber);
  37791. continue;
  37792. }
  37793. }
  37794. }
  37795. break;
  37796. } while (true);
  37797. if (enableSchedulerTracing) {
  37798. // Traced work is done for now; restore the previous interactions.
  37799. tracing.__interactionsRef.current = prevInteractions;
  37800. }
  37801. // We're done performing work. Time to clean up.
  37802. isWorking = false;
  37803. ReactCurrentOwner$2.currentDispatcher = null;
  37804. resetContextDependences();
  37805. resetHooks();
  37806. // Yield back to main thread.
  37807. if (didFatal) {
  37808. var _didCompleteRoot = false;
  37809. stopWorkLoopTimer(interruptedBy, _didCompleteRoot);
  37810. interruptedBy = null;
  37811. // There was a fatal error.
  37812. {
  37813. resetStackAfterFatalErrorInDev();
  37814. }
  37815. // `nextRoot` points to the in-progress root. A non-null value indicates
  37816. // that we're in the middle of an async render. Set it to null to indicate
  37817. // there's no more work to be done in the current batch.
  37818. nextRoot = null;
  37819. onFatal(root);
  37820. return;
  37821. }
  37822. if (nextUnitOfWork !== null) {
  37823. // There's still remaining async work in this tree, but we ran out of time
  37824. // in the current frame. Yield back to the renderer. Unless we're
  37825. // interrupted by a higher priority update, we'll continue later from where
  37826. // we left off.
  37827. var _didCompleteRoot2 = false;
  37828. stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);
  37829. interruptedBy = null;
  37830. onYield(root);
  37831. return;
  37832. }
  37833. // We completed the whole tree.
  37834. var didCompleteRoot = true;
  37835. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  37836. var rootWorkInProgress = root.current.alternate;
  37837. !(rootWorkInProgress !== null) ? invariant(false, 'Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37838. // `nextRoot` points to the in-progress root. A non-null value indicates
  37839. // that we're in the middle of an async render. Set it to null to indicate
  37840. // there's no more work to be done in the current batch.
  37841. nextRoot = null;
  37842. interruptedBy = null;
  37843. if (nextRenderDidError) {
  37844. // There was an error
  37845. if (hasLowerPriorityWork(root, expirationTime)) {
  37846. // There's lower priority work. If so, it may have the effect of fixing
  37847. // the exception that was just thrown. Exit without committing. This is
  37848. // similar to a suspend, but without a timeout because we're not waiting
  37849. // for a promise to resolve. React will restart at the lower
  37850. // priority level.
  37851. markSuspendedPriorityLevel(root, expirationTime);
  37852. var suspendedExpirationTime = expirationTime;
  37853. var rootExpirationTime = root.expirationTime;
  37854. onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout
  37855. );
  37856. return;
  37857. } else if (
  37858. // There's no lower priority work, but we're rendering asynchronously.
  37859. // Synchronsouly attempt to render the same level one more time. This is
  37860. // similar to a suspend, but without a timeout because we're not waiting
  37861. // for a promise to resolve.
  37862. !root.didError && isYieldy) {
  37863. root.didError = true;
  37864. var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;
  37865. var _rootExpirationTime = root.expirationTime = Sync;
  37866. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout
  37867. );
  37868. return;
  37869. }
  37870. }
  37871. if (isYieldy && nextLatestAbsoluteTimeoutMs !== -1) {
  37872. // The tree was suspended.
  37873. var _suspendedExpirationTime2 = expirationTime;
  37874. markSuspendedPriorityLevel(root, _suspendedExpirationTime2);
  37875. // Find the earliest uncommitted expiration time in the tree, including
  37876. // work that is suspended. The timeout threshold cannot be longer than
  37877. // the overall expiration.
  37878. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);
  37879. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  37880. if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {
  37881. nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;
  37882. }
  37883. // Subtract the current time from the absolute timeout to get the number
  37884. // of milliseconds until the timeout. In other words, convert an absolute
  37885. // timestamp to a relative time. This is the value that is passed
  37886. // to `setTimeout`.
  37887. var currentTimeMs = expirationTimeToMs(requestCurrentTime());
  37888. var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
  37889. msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
  37890. // TODO: Account for the Just Noticeable Difference
  37891. var _rootExpirationTime2 = root.expirationTime;
  37892. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);
  37893. return;
  37894. }
  37895. // Ready to commit.
  37896. onComplete(root, rootWorkInProgress, expirationTime);
  37897. }
  37898. function captureCommitPhaseError(sourceFiber, value) {
  37899. var expirationTime = Sync;
  37900. var fiber = sourceFiber.return;
  37901. while (fiber !== null) {
  37902. switch (fiber.tag) {
  37903. case ClassComponent:
  37904. var ctor = fiber.type;
  37905. var instance = fiber.stateNode;
  37906. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  37907. var errorInfo = createCapturedValue(value, sourceFiber);
  37908. var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);
  37909. enqueueUpdate(fiber, update);
  37910. scheduleWork(fiber, expirationTime);
  37911. return;
  37912. }
  37913. break;
  37914. case HostRoot:
  37915. {
  37916. var _errorInfo = createCapturedValue(value, sourceFiber);
  37917. var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);
  37918. enqueueUpdate(fiber, _update);
  37919. scheduleWork(fiber, expirationTime);
  37920. return;
  37921. }
  37922. }
  37923. fiber = fiber.return;
  37924. }
  37925. if (sourceFiber.tag === HostRoot) {
  37926. // Error was thrown at the root. There is no parent, so the root
  37927. // itself should capture it.
  37928. var rootFiber = sourceFiber;
  37929. var _errorInfo2 = createCapturedValue(value, rootFiber);
  37930. var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);
  37931. enqueueUpdate(rootFiber, _update2);
  37932. scheduleWork(rootFiber, expirationTime);
  37933. }
  37934. }
  37935. function computeThreadID(expirationTime, interactionThreadID) {
  37936. // Interaction threads are unique per root and expiration time.
  37937. return expirationTime * 1000 + interactionThreadID;
  37938. }
  37939. // Creates a unique async expiration time.
  37940. function computeUniqueAsyncExpiration() {
  37941. var currentTime = requestCurrentTime();
  37942. var result = computeAsyncExpiration(currentTime);
  37943. if (result >= lastUniqueAsyncExpiration) {
  37944. // Since we assume the current time monotonically increases, we only hit
  37945. // this branch when computeUniqueAsyncExpiration is fired multiple times
  37946. // within a 200ms window (or whatever the async bucket size is).
  37947. result = lastUniqueAsyncExpiration - 1;
  37948. }
  37949. lastUniqueAsyncExpiration = result;
  37950. return lastUniqueAsyncExpiration;
  37951. }
  37952. function computeExpirationForFiber(currentTime, fiber) {
  37953. var expirationTime = void 0;
  37954. if (expirationContext !== NoWork) {
  37955. // An explicit expiration context was set;
  37956. expirationTime = expirationContext;
  37957. } else if (isWorking) {
  37958. if (isCommitting$1) {
  37959. // Updates that occur during the commit phase should have sync priority
  37960. // by default.
  37961. expirationTime = Sync;
  37962. } else {
  37963. // Updates during the render phase should expire at the same time as
  37964. // the work that is being rendered.
  37965. expirationTime = nextRenderExpirationTime;
  37966. }
  37967. } else {
  37968. // No explicit expiration context was set, and we're not currently
  37969. // performing work. Calculate a new expiration time.
  37970. if (fiber.mode & ConcurrentMode) {
  37971. if (isBatchingInteractiveUpdates) {
  37972. // This is an interactive update
  37973. expirationTime = computeInteractiveExpiration(currentTime);
  37974. } else {
  37975. // This is an async update
  37976. expirationTime = computeAsyncExpiration(currentTime);
  37977. }
  37978. // If we're in the middle of rendering a tree, do not update at the same
  37979. // expiration time that is already rendering.
  37980. if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {
  37981. expirationTime -= 1;
  37982. }
  37983. } else {
  37984. // This is a sync update
  37985. expirationTime = Sync;
  37986. }
  37987. }
  37988. if (isBatchingInteractiveUpdates) {
  37989. // This is an interactive update. Keep track of the lowest pending
  37990. // interactive expiration time. This allows us to synchronously flush
  37991. // all interactive updates when needed.
  37992. if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime) {
  37993. lowestPriorityPendingInteractiveExpirationTime = expirationTime;
  37994. }
  37995. }
  37996. return expirationTime;
  37997. }
  37998. function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
  37999. // Schedule the timeout.
  38000. if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {
  38001. nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;
  38002. }
  38003. }
  38004. function renderDidError() {
  38005. nextRenderDidError = true;
  38006. }
  38007. function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {
  38008. var retryTime = void 0;
  38009. if (isPriorityLevelSuspended(root, suspendedTime)) {
  38010. // Ping at the original level
  38011. retryTime = suspendedTime;
  38012. markPingedPriorityLevel(root, retryTime);
  38013. } else {
  38014. // Suspense already timed out. Compute a new expiration time
  38015. var currentTime = requestCurrentTime();
  38016. retryTime = computeExpirationForFiber(currentTime, boundaryFiber);
  38017. markPendingPriorityLevel(root, retryTime);
  38018. }
  38019. // TODO: If the suspense fiber has already rendered the primary children
  38020. // without suspending (that is, all of the promises have already resolved),
  38021. // we should not trigger another update here. One case this happens is when
  38022. // we are in sync mode and a single promise is thrown both on initial render
  38023. // and on update; we attach two .then(retrySuspendedRoot) callbacks and each
  38024. // one performs Sync work, rerendering the Suspense.
  38025. if ((boundaryFiber.mode & ConcurrentMode) !== NoContext) {
  38026. if (root === nextRoot && nextRenderExpirationTime === suspendedTime) {
  38027. // Received a ping at the same priority level at which we're currently
  38028. // rendering. Restart from the root.
  38029. nextRoot = null;
  38030. }
  38031. }
  38032. scheduleWorkToRoot(boundaryFiber, retryTime);
  38033. if ((boundaryFiber.mode & ConcurrentMode) === NoContext) {
  38034. // Outside of concurrent mode, we must schedule an update on the source
  38035. // fiber, too, since it already committed in an inconsistent state and
  38036. // therefore does not have any pending work.
  38037. scheduleWorkToRoot(sourceFiber, retryTime);
  38038. var sourceTag = sourceFiber.tag;
  38039. if (sourceTag === ClassComponent && sourceFiber.stateNode !== null) {
  38040. // When we try rendering again, we should not reuse the current fiber,
  38041. // since it's known to be in an inconsistent state. Use a force updte to
  38042. // prevent a bail out.
  38043. var update = createUpdate(retryTime);
  38044. update.tag = ForceUpdate;
  38045. enqueueUpdate(sourceFiber, update);
  38046. }
  38047. }
  38048. var rootExpirationTime = root.expirationTime;
  38049. if (rootExpirationTime !== NoWork) {
  38050. requestWork(root, rootExpirationTime);
  38051. }
  38052. }
  38053. function scheduleWorkToRoot(fiber, expirationTime) {
  38054. recordScheduleUpdate();
  38055. {
  38056. if (fiber.tag === ClassComponent) {
  38057. var instance = fiber.stateNode;
  38058. warnAboutInvalidUpdates(instance);
  38059. }
  38060. }
  38061. // Update the source fiber's expiration time
  38062. if (fiber.expirationTime < expirationTime) {
  38063. fiber.expirationTime = expirationTime;
  38064. }
  38065. var alternate = fiber.alternate;
  38066. if (alternate !== null && alternate.expirationTime < expirationTime) {
  38067. alternate.expirationTime = expirationTime;
  38068. }
  38069. // Walk the parent path to the root and update the child expiration time.
  38070. var node = fiber.return;
  38071. var root = null;
  38072. if (node === null && fiber.tag === HostRoot) {
  38073. root = fiber.stateNode;
  38074. } else {
  38075. while (node !== null) {
  38076. alternate = node.alternate;
  38077. if (node.childExpirationTime < expirationTime) {
  38078. node.childExpirationTime = expirationTime;
  38079. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  38080. alternate.childExpirationTime = expirationTime;
  38081. }
  38082. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  38083. alternate.childExpirationTime = expirationTime;
  38084. }
  38085. if (node.return === null && node.tag === HostRoot) {
  38086. root = node.stateNode;
  38087. break;
  38088. }
  38089. node = node.return;
  38090. }
  38091. }
  38092. if (enableSchedulerTracing) {
  38093. if (root !== null) {
  38094. var interactions = tracing.__interactionsRef.current;
  38095. if (interactions.size > 0) {
  38096. var pendingInteractionMap = root.pendingInteractionMap;
  38097. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  38098. if (pendingInteractions != null) {
  38099. interactions.forEach(function (interaction) {
  38100. if (!pendingInteractions.has(interaction)) {
  38101. // Update the pending async work count for previously unscheduled interaction.
  38102. interaction.__count++;
  38103. }
  38104. pendingInteractions.add(interaction);
  38105. });
  38106. } else {
  38107. pendingInteractionMap.set(expirationTime, new Set(interactions));
  38108. // Update the pending async work count for the current interactions.
  38109. interactions.forEach(function (interaction) {
  38110. interaction.__count++;
  38111. });
  38112. }
  38113. var subscriber = tracing.__subscriberRef.current;
  38114. if (subscriber !== null) {
  38115. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  38116. subscriber.onWorkScheduled(interactions, threadID);
  38117. }
  38118. }
  38119. }
  38120. }
  38121. return root;
  38122. }
  38123. function scheduleWork(fiber, expirationTime) {
  38124. var root = scheduleWorkToRoot(fiber, expirationTime);
  38125. if (root === null) {
  38126. {
  38127. switch (fiber.tag) {
  38128. case ClassComponent:
  38129. warnAboutUpdateOnUnmounted(fiber, true);
  38130. break;
  38131. case FunctionComponent:
  38132. case ForwardRef:
  38133. case MemoComponent:
  38134. case SimpleMemoComponent:
  38135. warnAboutUpdateOnUnmounted(fiber, false);
  38136. break;
  38137. }
  38138. }
  38139. return;
  38140. }
  38141. if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime > nextRenderExpirationTime) {
  38142. // This is an interruption. (Used for performance tracking.)
  38143. interruptedBy = fiber;
  38144. resetStack();
  38145. }
  38146. markPendingPriorityLevel(root, expirationTime);
  38147. if (
  38148. // If we're in the render phase, we don't need to schedule this root
  38149. // for an update, because we'll do it before we exit...
  38150. !isWorking || isCommitting$1 ||
  38151. // ...unless this is a different root than the one we're rendering.
  38152. nextRoot !== root) {
  38153. var rootExpirationTime = root.expirationTime;
  38154. requestWork(root, rootExpirationTime);
  38155. }
  38156. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  38157. // Reset this back to zero so subsequent updates don't throw.
  38158. nestedUpdateCount = 0;
  38159. invariant(false, 'Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.');
  38160. }
  38161. }
  38162. function syncUpdates(fn, a, b, c, d) {
  38163. var previousExpirationContext = expirationContext;
  38164. expirationContext = Sync;
  38165. try {
  38166. return fn(a, b, c, d);
  38167. } finally {
  38168. expirationContext = previousExpirationContext;
  38169. }
  38170. }
  38171. // TODO: Everything below this is written as if it has been lifted to the
  38172. // renderers. I'll do this in a follow-up.
  38173. // Linked-list of roots
  38174. var firstScheduledRoot = null;
  38175. var lastScheduledRoot = null;
  38176. var callbackExpirationTime = NoWork;
  38177. var callbackID = void 0;
  38178. var isRendering = false;
  38179. var nextFlushedRoot = null;
  38180. var nextFlushedExpirationTime = NoWork;
  38181. var lowestPriorityPendingInteractiveExpirationTime = NoWork;
  38182. var hasUnhandledError = false;
  38183. var unhandledError = null;
  38184. var isBatchingUpdates = false;
  38185. var isUnbatchingUpdates = false;
  38186. var isBatchingInteractiveUpdates = false;
  38187. var completedBatches = null;
  38188. var originalStartTimeMs = scheduler.unstable_now();
  38189. var currentRendererTime = msToExpirationTime(originalStartTimeMs);
  38190. var currentSchedulerTime = currentRendererTime;
  38191. // Use these to prevent an infinite loop of nested updates
  38192. var NESTED_UPDATE_LIMIT = 50;
  38193. var nestedUpdateCount = 0;
  38194. var lastCommittedRootDuringThisBatch = null;
  38195. function recomputeCurrentRendererTime() {
  38196. var currentTimeMs = scheduler.unstable_now() - originalStartTimeMs;
  38197. currentRendererTime = msToExpirationTime(currentTimeMs);
  38198. }
  38199. function scheduleCallbackWithExpirationTime(root, expirationTime) {
  38200. if (callbackExpirationTime !== NoWork) {
  38201. // A callback is already scheduled. Check its expiration time (timeout).
  38202. if (expirationTime < callbackExpirationTime) {
  38203. // Existing callback has sufficient timeout. Exit.
  38204. return;
  38205. } else {
  38206. if (callbackID !== null) {
  38207. // Existing callback has insufficient timeout. Cancel and schedule a
  38208. // new one.
  38209. scheduler.unstable_cancelCallback(callbackID);
  38210. }
  38211. }
  38212. // The request callback timer is already running. Don't start a new one.
  38213. } else {
  38214. startRequestCallbackTimer();
  38215. }
  38216. callbackExpirationTime = expirationTime;
  38217. var currentMs = scheduler.unstable_now() - originalStartTimeMs;
  38218. var expirationTimeMs = expirationTimeToMs(expirationTime);
  38219. var timeout = expirationTimeMs - currentMs;
  38220. callbackID = scheduler.unstable_scheduleCallback(performAsyncWork, { timeout: timeout });
  38221. }
  38222. // For every call to renderRoot, one of onFatal, onComplete, onSuspend, and
  38223. // onYield is called upon exiting. We use these in lieu of returning a tuple.
  38224. // I've also chosen not to inline them into renderRoot because these will
  38225. // eventually be lifted into the renderer.
  38226. function onFatal(root) {
  38227. root.finishedWork = null;
  38228. }
  38229. function onComplete(root, finishedWork, expirationTime) {
  38230. root.pendingCommitExpirationTime = expirationTime;
  38231. root.finishedWork = finishedWork;
  38232. }
  38233. function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {
  38234. root.expirationTime = rootExpirationTime;
  38235. if (msUntilTimeout === 0 && !shouldYieldToRenderer()) {
  38236. // Don't wait an additional tick. Commit the tree immediately.
  38237. root.pendingCommitExpirationTime = suspendedExpirationTime;
  38238. root.finishedWork = finishedWork;
  38239. } else if (msUntilTimeout > 0) {
  38240. // Wait `msUntilTimeout` milliseconds before committing.
  38241. root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);
  38242. }
  38243. }
  38244. function onYield(root) {
  38245. root.finishedWork = null;
  38246. }
  38247. function onTimeout(root, finishedWork, suspendedExpirationTime) {
  38248. // The root timed out. Commit it.
  38249. root.pendingCommitExpirationTime = suspendedExpirationTime;
  38250. root.finishedWork = finishedWork;
  38251. // Read the current time before entering the commit phase. We can be
  38252. // certain this won't cause tearing related to batching of event updates
  38253. // because we're at the top of a timer event.
  38254. recomputeCurrentRendererTime();
  38255. currentSchedulerTime = currentRendererTime;
  38256. flushRoot(root, suspendedExpirationTime);
  38257. }
  38258. function onCommit(root, expirationTime) {
  38259. root.expirationTime = expirationTime;
  38260. root.finishedWork = null;
  38261. }
  38262. function requestCurrentTime() {
  38263. // requestCurrentTime is called by the scheduler to compute an expiration
  38264. // time.
  38265. //
  38266. // Expiration times are computed by adding to the current time (the start
  38267. // time). However, if two updates are scheduled within the same event, we
  38268. // should treat their start times as simultaneous, even if the actual clock
  38269. // time has advanced between the first and second call.
  38270. // In other words, because expiration times determine how updates are batched,
  38271. // we want all updates of like priority that occur within the same event to
  38272. // receive the same expiration time. Otherwise we get tearing.
  38273. //
  38274. // We keep track of two separate times: the current "renderer" time and the
  38275. // current "scheduler" time. The renderer time can be updated whenever; it
  38276. // only exists to minimize the calls performance.now.
  38277. //
  38278. // But the scheduler time can only be updated if there's no pending work, or
  38279. // if we know for certain that we're not in the middle of an event.
  38280. if (isRendering) {
  38281. // We're already rendering. Return the most recently read time.
  38282. return currentSchedulerTime;
  38283. }
  38284. // Check if there's pending work.
  38285. findHighestPriorityRoot();
  38286. if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {
  38287. // If there's no pending work, or if the pending work is offscreen, we can
  38288. // read the current time without risk of tearing.
  38289. recomputeCurrentRendererTime();
  38290. currentSchedulerTime = currentRendererTime;
  38291. return currentSchedulerTime;
  38292. }
  38293. // There's already pending work. We might be in the middle of a browser
  38294. // event. If we were to read the current time, it could cause multiple updates
  38295. // within the same event to receive different expiration times, leading to
  38296. // tearing. Return the last read time. During the next idle callback, the
  38297. // time will be updated.
  38298. return currentSchedulerTime;
  38299. }
  38300. // requestWork is called by the scheduler whenever a root receives an update.
  38301. // It's up to the renderer to call renderRoot at some point in the future.
  38302. function requestWork(root, expirationTime) {
  38303. addRootToSchedule(root, expirationTime);
  38304. if (isRendering) {
  38305. // Prevent reentrancy. Remaining work will be scheduled at the end of
  38306. // the currently rendering batch.
  38307. return;
  38308. }
  38309. if (isBatchingUpdates) {
  38310. // Flush work at the end of the batch.
  38311. if (isUnbatchingUpdates) {
  38312. // ...unless we're inside unbatchedUpdates, in which case we should
  38313. // flush it now.
  38314. nextFlushedRoot = root;
  38315. nextFlushedExpirationTime = Sync;
  38316. performWorkOnRoot(root, Sync, false);
  38317. }
  38318. return;
  38319. }
  38320. // TODO: Get rid of Sync and use current time?
  38321. if (expirationTime === Sync) {
  38322. performSyncWork();
  38323. } else {
  38324. scheduleCallbackWithExpirationTime(root, expirationTime);
  38325. }
  38326. }
  38327. function addRootToSchedule(root, expirationTime) {
  38328. // Add the root to the schedule.
  38329. // Check if this root is already part of the schedule.
  38330. if (root.nextScheduledRoot === null) {
  38331. // This root is not already scheduled. Add it.
  38332. root.expirationTime = expirationTime;
  38333. if (lastScheduledRoot === null) {
  38334. firstScheduledRoot = lastScheduledRoot = root;
  38335. root.nextScheduledRoot = root;
  38336. } else {
  38337. lastScheduledRoot.nextScheduledRoot = root;
  38338. lastScheduledRoot = root;
  38339. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  38340. }
  38341. } else {
  38342. // This root is already scheduled, but its priority may have increased.
  38343. var remainingExpirationTime = root.expirationTime;
  38344. if (expirationTime > remainingExpirationTime) {
  38345. // Update the priority.
  38346. root.expirationTime = expirationTime;
  38347. }
  38348. }
  38349. }
  38350. function findHighestPriorityRoot() {
  38351. var highestPriorityWork = NoWork;
  38352. var highestPriorityRoot = null;
  38353. if (lastScheduledRoot !== null) {
  38354. var previousScheduledRoot = lastScheduledRoot;
  38355. var root = firstScheduledRoot;
  38356. while (root !== null) {
  38357. var remainingExpirationTime = root.expirationTime;
  38358. if (remainingExpirationTime === NoWork) {
  38359. // This root no longer has work. Remove it from the scheduler.
  38360. // TODO: This check is redudant, but Flow is confused by the branch
  38361. // below where we set lastScheduledRoot to null, even though we break
  38362. // from the loop right after.
  38363. !(previousScheduledRoot !== null && lastScheduledRoot !== null) ? invariant(false, 'Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  38364. if (root === root.nextScheduledRoot) {
  38365. // This is the only root in the list.
  38366. root.nextScheduledRoot = null;
  38367. firstScheduledRoot = lastScheduledRoot = null;
  38368. break;
  38369. } else if (root === firstScheduledRoot) {
  38370. // This is the first root in the list.
  38371. var next = root.nextScheduledRoot;
  38372. firstScheduledRoot = next;
  38373. lastScheduledRoot.nextScheduledRoot = next;
  38374. root.nextScheduledRoot = null;
  38375. } else if (root === lastScheduledRoot) {
  38376. // This is the last root in the list.
  38377. lastScheduledRoot = previousScheduledRoot;
  38378. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  38379. root.nextScheduledRoot = null;
  38380. break;
  38381. } else {
  38382. previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;
  38383. root.nextScheduledRoot = null;
  38384. }
  38385. root = previousScheduledRoot.nextScheduledRoot;
  38386. } else {
  38387. if (remainingExpirationTime > highestPriorityWork) {
  38388. // Update the priority, if it's higher
  38389. highestPriorityWork = remainingExpirationTime;
  38390. highestPriorityRoot = root;
  38391. }
  38392. if (root === lastScheduledRoot) {
  38393. break;
  38394. }
  38395. if (highestPriorityWork === Sync) {
  38396. // Sync is highest priority by definition so
  38397. // we can stop searching.
  38398. break;
  38399. }
  38400. previousScheduledRoot = root;
  38401. root = root.nextScheduledRoot;
  38402. }
  38403. }
  38404. }
  38405. nextFlushedRoot = highestPriorityRoot;
  38406. nextFlushedExpirationTime = highestPriorityWork;
  38407. }
  38408. // TODO: This wrapper exists because many of the older tests (the ones that use
  38409. // flushDeferredPri) rely on the number of times `shouldYield` is called. We
  38410. // should get rid of it.
  38411. var didYield = false;
  38412. function shouldYieldToRenderer() {
  38413. if (didYield) {
  38414. return true;
  38415. }
  38416. if (scheduler.unstable_shouldYield()) {
  38417. didYield = true;
  38418. return true;
  38419. }
  38420. return false;
  38421. }
  38422. function performAsyncWork() {
  38423. try {
  38424. if (!shouldYieldToRenderer()) {
  38425. // The callback timed out. That means at least one update has expired.
  38426. // Iterate through the root schedule. If they contain expired work, set
  38427. // the next render expiration time to the current time. This has the effect
  38428. // of flushing all expired work in a single batch, instead of flushing each
  38429. // level one at a time.
  38430. if (firstScheduledRoot !== null) {
  38431. recomputeCurrentRendererTime();
  38432. var root = firstScheduledRoot;
  38433. do {
  38434. didExpireAtExpirationTime(root, currentRendererTime);
  38435. // The root schedule is circular, so this is never null.
  38436. root = root.nextScheduledRoot;
  38437. } while (root !== firstScheduledRoot);
  38438. }
  38439. }
  38440. performWork(NoWork, true);
  38441. } finally {
  38442. didYield = false;
  38443. }
  38444. }
  38445. function performSyncWork() {
  38446. performWork(Sync, false);
  38447. }
  38448. function performWork(minExpirationTime, isYieldy) {
  38449. // Keep working on roots until there's no more work, or until there's a higher
  38450. // priority event.
  38451. findHighestPriorityRoot();
  38452. if (isYieldy) {
  38453. recomputeCurrentRendererTime();
  38454. currentSchedulerTime = currentRendererTime;
  38455. if (enableUserTimingAPI) {
  38456. var didExpire = nextFlushedExpirationTime > currentRendererTime;
  38457. var timeout = expirationTimeToMs(nextFlushedExpirationTime);
  38458. stopRequestCallbackTimer(didExpire, timeout);
  38459. }
  38460. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime && !(didYield && currentRendererTime > nextFlushedExpirationTime)) {
  38461. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime > nextFlushedExpirationTime);
  38462. findHighestPriorityRoot();
  38463. recomputeCurrentRendererTime();
  38464. currentSchedulerTime = currentRendererTime;
  38465. }
  38466. } else {
  38467. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {
  38468. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);
  38469. findHighestPriorityRoot();
  38470. }
  38471. }
  38472. // We're done flushing work. Either we ran out of time in this callback,
  38473. // or there's no more work left with sufficient priority.
  38474. // If we're inside a callback, set this to false since we just completed it.
  38475. if (isYieldy) {
  38476. callbackExpirationTime = NoWork;
  38477. callbackID = null;
  38478. }
  38479. // If there's work left over, schedule a new callback.
  38480. if (nextFlushedExpirationTime !== NoWork) {
  38481. scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);
  38482. }
  38483. // Clean-up.
  38484. finishRendering();
  38485. }
  38486. function flushRoot(root, expirationTime) {
  38487. !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
  38488. // Perform work on root as if the given expiration time is the current time.
  38489. // This has the effect of synchronously flushing all work up to and
  38490. // including the given time.
  38491. nextFlushedRoot = root;
  38492. nextFlushedExpirationTime = expirationTime;
  38493. performWorkOnRoot(root, expirationTime, false);
  38494. // Flush any sync work that was scheduled by lifecycles
  38495. performSyncWork();
  38496. }
  38497. function finishRendering() {
  38498. nestedUpdateCount = 0;
  38499. lastCommittedRootDuringThisBatch = null;
  38500. if (completedBatches !== null) {
  38501. var batches = completedBatches;
  38502. completedBatches = null;
  38503. for (var i = 0; i < batches.length; i++) {
  38504. var batch = batches[i];
  38505. try {
  38506. batch._onComplete();
  38507. } catch (error) {
  38508. if (!hasUnhandledError) {
  38509. hasUnhandledError = true;
  38510. unhandledError = error;
  38511. }
  38512. }
  38513. }
  38514. }
  38515. if (hasUnhandledError) {
  38516. var error = unhandledError;
  38517. unhandledError = null;
  38518. hasUnhandledError = false;
  38519. throw error;
  38520. }
  38521. }
  38522. function performWorkOnRoot(root, expirationTime, isYieldy) {
  38523. !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  38524. isRendering = true;
  38525. // Check if this is async work or sync/expired work.
  38526. if (!isYieldy) {
  38527. // Flush work without yielding.
  38528. // TODO: Non-yieldy work does not necessarily imply expired work. A renderer
  38529. // may want to perform some work without yielding, but also without
  38530. // requiring the root to complete (by triggering placeholders).
  38531. var finishedWork = root.finishedWork;
  38532. if (finishedWork !== null) {
  38533. // This root is already complete. We can commit it.
  38534. completeRoot(root, finishedWork, expirationTime);
  38535. } else {
  38536. root.finishedWork = null;
  38537. // If this root previously suspended, clear its existing timeout, since
  38538. // we're about to try rendering again.
  38539. var timeoutHandle = root.timeoutHandle;
  38540. if (timeoutHandle !== noTimeout) {
  38541. root.timeoutHandle = noTimeout;
  38542. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  38543. cancelTimeout(timeoutHandle);
  38544. }
  38545. renderRoot(root, isYieldy);
  38546. finishedWork = root.finishedWork;
  38547. if (finishedWork !== null) {
  38548. // We've completed the root. Commit it.
  38549. completeRoot(root, finishedWork, expirationTime);
  38550. }
  38551. }
  38552. } else {
  38553. // Flush async work.
  38554. var _finishedWork = root.finishedWork;
  38555. if (_finishedWork !== null) {
  38556. // This root is already complete. We can commit it.
  38557. completeRoot(root, _finishedWork, expirationTime);
  38558. } else {
  38559. root.finishedWork = null;
  38560. // If this root previously suspended, clear its existing timeout, since
  38561. // we're about to try rendering again.
  38562. var _timeoutHandle = root.timeoutHandle;
  38563. if (_timeoutHandle !== noTimeout) {
  38564. root.timeoutHandle = noTimeout;
  38565. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  38566. cancelTimeout(_timeoutHandle);
  38567. }
  38568. renderRoot(root, isYieldy);
  38569. _finishedWork = root.finishedWork;
  38570. if (_finishedWork !== null) {
  38571. // We've completed the root. Check the if we should yield one more time
  38572. // before committing.
  38573. if (!shouldYieldToRenderer()) {
  38574. // Still time left. Commit the root.
  38575. completeRoot(root, _finishedWork, expirationTime);
  38576. } else {
  38577. // There's no time left. Mark this root as complete. We'll come
  38578. // back and commit it later.
  38579. root.finishedWork = _finishedWork;
  38580. }
  38581. }
  38582. }
  38583. }
  38584. isRendering = false;
  38585. }
  38586. function completeRoot(root, finishedWork, expirationTime) {
  38587. // Check if there's a batch that matches this expiration time.
  38588. var firstBatch = root.firstBatch;
  38589. if (firstBatch !== null && firstBatch._expirationTime >= expirationTime) {
  38590. if (completedBatches === null) {
  38591. completedBatches = [firstBatch];
  38592. } else {
  38593. completedBatches.push(firstBatch);
  38594. }
  38595. if (firstBatch._defer) {
  38596. // This root is blocked from committing by a batch. Unschedule it until
  38597. // we receive another update.
  38598. root.finishedWork = finishedWork;
  38599. root.expirationTime = NoWork;
  38600. return;
  38601. }
  38602. }
  38603. // Commit the root.
  38604. root.finishedWork = null;
  38605. // Check if this is a nested update (a sync update scheduled during the
  38606. // commit phase).
  38607. if (root === lastCommittedRootDuringThisBatch) {
  38608. // If the next root is the same as the previous root, this is a nested
  38609. // update. To prevent an infinite loop, increment the nested update count.
  38610. nestedUpdateCount++;
  38611. } else {
  38612. // Reset whenever we switch roots.
  38613. lastCommittedRootDuringThisBatch = root;
  38614. nestedUpdateCount = 0;
  38615. }
  38616. commitRoot(root, finishedWork);
  38617. }
  38618. function onUncaughtError(error) {
  38619. !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  38620. // Unschedule this root so we don't work on it again until there's
  38621. // another update.
  38622. nextFlushedRoot.expirationTime = NoWork;
  38623. if (!hasUnhandledError) {
  38624. hasUnhandledError = true;
  38625. unhandledError = error;
  38626. }
  38627. }
  38628. // TODO: Batching should be implemented at the renderer level, not inside
  38629. // the reconciler.
  38630. function batchedUpdates$1(fn, a) {
  38631. var previousIsBatchingUpdates = isBatchingUpdates;
  38632. isBatchingUpdates = true;
  38633. try {
  38634. return fn(a);
  38635. } finally {
  38636. isBatchingUpdates = previousIsBatchingUpdates;
  38637. if (!isBatchingUpdates && !isRendering) {
  38638. performSyncWork();
  38639. }
  38640. }
  38641. }
  38642. // TODO: Batching should be implemented at the renderer level, not inside
  38643. // the reconciler.
  38644. function unbatchedUpdates(fn, a) {
  38645. if (isBatchingUpdates && !isUnbatchingUpdates) {
  38646. isUnbatchingUpdates = true;
  38647. try {
  38648. return fn(a);
  38649. } finally {
  38650. isUnbatchingUpdates = false;
  38651. }
  38652. }
  38653. return fn(a);
  38654. }
  38655. // TODO: Batching should be implemented at the renderer level, not within
  38656. // the reconciler.
  38657. function flushSync(fn, a) {
  38658. !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;
  38659. var previousIsBatchingUpdates = isBatchingUpdates;
  38660. isBatchingUpdates = true;
  38661. try {
  38662. return syncUpdates(fn, a);
  38663. } finally {
  38664. isBatchingUpdates = previousIsBatchingUpdates;
  38665. performSyncWork();
  38666. }
  38667. }
  38668. function interactiveUpdates$1(fn, a, b) {
  38669. if (isBatchingInteractiveUpdates) {
  38670. return fn(a, b);
  38671. }
  38672. // If there are any pending interactive updates, synchronously flush them.
  38673. // This needs to happen before we read any handlers, because the effect of
  38674. // the previous event may influence which handlers are called during
  38675. // this event.
  38676. if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  38677. // Synchronously flush pending interactive updates.
  38678. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  38679. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  38680. }
  38681. var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates;
  38682. var previousIsBatchingUpdates = isBatchingUpdates;
  38683. isBatchingInteractiveUpdates = true;
  38684. isBatchingUpdates = true;
  38685. try {
  38686. return fn(a, b);
  38687. } finally {
  38688. isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates;
  38689. isBatchingUpdates = previousIsBatchingUpdates;
  38690. if (!isBatchingUpdates && !isRendering) {
  38691. performSyncWork();
  38692. }
  38693. }
  38694. }
  38695. function flushInteractiveUpdates$1() {
  38696. if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  38697. // Synchronously flush pending interactive updates.
  38698. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  38699. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  38700. }
  38701. }
  38702. function flushControlled(fn) {
  38703. var previousIsBatchingUpdates = isBatchingUpdates;
  38704. isBatchingUpdates = true;
  38705. try {
  38706. syncUpdates(fn);
  38707. } finally {
  38708. isBatchingUpdates = previousIsBatchingUpdates;
  38709. if (!isBatchingUpdates && !isRendering) {
  38710. performSyncWork();
  38711. }
  38712. }
  38713. }
  38714. // 0 is PROD, 1 is DEV.
  38715. // Might add PROFILE later.
  38716. var didWarnAboutNestedUpdates = void 0;
  38717. var didWarnAboutFindNodeInStrictMode = void 0;
  38718. {
  38719. didWarnAboutNestedUpdates = false;
  38720. didWarnAboutFindNodeInStrictMode = {};
  38721. }
  38722. function getContextForSubtree(parentComponent) {
  38723. if (!parentComponent) {
  38724. return emptyContextObject;
  38725. }
  38726. var fiber = get(parentComponent);
  38727. var parentContext = findCurrentUnmaskedContext(fiber);
  38728. if (fiber.tag === ClassComponent) {
  38729. var Component = fiber.type;
  38730. if (isContextProvider(Component)) {
  38731. return processChildContext(fiber, Component, parentContext);
  38732. }
  38733. }
  38734. return parentContext;
  38735. }
  38736. function scheduleRootUpdate(current$$1, element, expirationTime, callback) {
  38737. {
  38738. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  38739. didWarnAboutNestedUpdates = true;
  38740. warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
  38741. }
  38742. }
  38743. var update = createUpdate(expirationTime);
  38744. // Caution: React DevTools currently depends on this property
  38745. // being called "element".
  38746. update.payload = { element: element };
  38747. callback = callback === undefined ? null : callback;
  38748. if (callback !== null) {
  38749. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  38750. update.callback = callback;
  38751. }
  38752. flushPassiveEffects();
  38753. enqueueUpdate(current$$1, update);
  38754. scheduleWork(current$$1, expirationTime);
  38755. return expirationTime;
  38756. }
  38757. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
  38758. // TODO: If this is a nested container, this won't be the root.
  38759. var current$$1 = container.current;
  38760. {
  38761. if (ReactFiberInstrumentation_1.debugTool) {
  38762. if (current$$1.alternate === null) {
  38763. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  38764. } else if (element === null) {
  38765. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  38766. } else {
  38767. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  38768. }
  38769. }
  38770. }
  38771. var context = getContextForSubtree(parentComponent);
  38772. if (container.context === null) {
  38773. container.context = context;
  38774. } else {
  38775. container.pendingContext = context;
  38776. }
  38777. return scheduleRootUpdate(current$$1, element, expirationTime, callback);
  38778. }
  38779. function findHostInstance(component) {
  38780. var fiber = get(component);
  38781. if (fiber === undefined) {
  38782. if (typeof component.render === 'function') {
  38783. invariant(false, 'Unable to find node on an unmounted component.');
  38784. } else {
  38785. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  38786. }
  38787. }
  38788. var hostFiber = findCurrentHostFiber(fiber);
  38789. if (hostFiber === null) {
  38790. return null;
  38791. }
  38792. return hostFiber.stateNode;
  38793. }
  38794. function findHostInstanceWithWarning(component, methodName) {
  38795. {
  38796. var fiber = get(component);
  38797. if (fiber === undefined) {
  38798. if (typeof component.render === 'function') {
  38799. invariant(false, 'Unable to find node on an unmounted component.');
  38800. } else {
  38801. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  38802. }
  38803. }
  38804. var hostFiber = findCurrentHostFiber(fiber);
  38805. if (hostFiber === null) {
  38806. return null;
  38807. }
  38808. if (hostFiber.mode & StrictMode) {
  38809. var componentName = getComponentName(fiber.type) || 'Component';
  38810. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  38811. didWarnAboutFindNodeInStrictMode[componentName] = true;
  38812. if (fiber.mode & StrictMode) {
  38813. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  38814. } else {
  38815. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  38816. }
  38817. }
  38818. }
  38819. return hostFiber.stateNode;
  38820. }
  38821. return findHostInstance(component);
  38822. }
  38823. function createContainer(containerInfo, isConcurrent, hydrate) {
  38824. return createFiberRoot(containerInfo, isConcurrent, hydrate);
  38825. }
  38826. function updateContainer(element, container, parentComponent, callback) {
  38827. var current$$1 = container.current;
  38828. var currentTime = requestCurrentTime();
  38829. var expirationTime = computeExpirationForFiber(currentTime, current$$1);
  38830. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
  38831. }
  38832. function getPublicRootInstance(container) {
  38833. var containerFiber = container.current;
  38834. if (!containerFiber.child) {
  38835. return null;
  38836. }
  38837. switch (containerFiber.child.tag) {
  38838. case HostComponent:
  38839. return getPublicInstance(containerFiber.child.stateNode);
  38840. default:
  38841. return containerFiber.child.stateNode;
  38842. }
  38843. }
  38844. function findHostInstanceWithNoPortals(fiber) {
  38845. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  38846. if (hostFiber === null) {
  38847. return null;
  38848. }
  38849. return hostFiber.stateNode;
  38850. }
  38851. function injectIntoDevTools(devToolsConfig) {
  38852. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  38853. return injectInternals(_assign({}, devToolsConfig, {
  38854. findHostInstanceByFiber: function (fiber) {
  38855. var hostFiber = findCurrentHostFiber(fiber);
  38856. if (hostFiber === null) {
  38857. return null;
  38858. }
  38859. return hostFiber.stateNode;
  38860. },
  38861. findFiberByHostInstance: function (instance) {
  38862. if (!findFiberByHostInstance) {
  38863. // Might not be implemented by the renderer.
  38864. return null;
  38865. }
  38866. return findFiberByHostInstance(instance);
  38867. }
  38868. }));
  38869. }
  38870. // This file intentionally does *not* have the Flow annotation.
  38871. // Don't add it. See `./inline-typed.js` for an explanation.
  38872. function createPortal$1(children, containerInfo,
  38873. // TODO: figure out the API for cross-renderer implementation.
  38874. implementation) {
  38875. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  38876. return {
  38877. // This tag allow us to uniquely identify this as a React Portal
  38878. $$typeof: REACT_PORTAL_TYPE,
  38879. key: key == null ? null : '' + key,
  38880. children: children,
  38881. containerInfo: containerInfo,
  38882. implementation: implementation
  38883. };
  38884. }
  38885. // TODO: this is special because it gets imported during build.
  38886. var ReactVersion = '16.6.3';
  38887. // TODO: This type is shared between the reconciler and ReactDOM, but will
  38888. // eventually be lifted out to the renderer.
  38889. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  38890. var topLevelUpdateWarnings = void 0;
  38891. var warnOnInvalidCallback = void 0;
  38892. var didWarnAboutUnstableCreatePortal = false;
  38893. {
  38894. if (typeof Map !== 'function' ||
  38895. // $FlowIssue Flow incorrectly thinks Map has no prototype
  38896. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  38897. // $FlowIssue Flow incorrectly thinks Set has no prototype
  38898. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  38899. warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  38900. }
  38901. topLevelUpdateWarnings = function (container) {
  38902. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  38903. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  38904. if (hostInstance) {
  38905. !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
  38906. }
  38907. }
  38908. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  38909. var rootEl = getReactRootElementInContainer(container);
  38910. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  38911. !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
  38912. !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
  38913. };
  38914. warnOnInvalidCallback = function (callback, callerName) {
  38915. !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
  38916. };
  38917. }
  38918. setRestoreImplementation(restoreControlledState$1);
  38919. function ReactBatch(root) {
  38920. var expirationTime = computeUniqueAsyncExpiration();
  38921. this._expirationTime = expirationTime;
  38922. this._root = root;
  38923. this._next = null;
  38924. this._callbacks = null;
  38925. this._didComplete = false;
  38926. this._hasChildren = false;
  38927. this._children = null;
  38928. this._defer = true;
  38929. }
  38930. ReactBatch.prototype.render = function (children) {
  38931. !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;
  38932. this._hasChildren = true;
  38933. this._children = children;
  38934. var internalRoot = this._root._internalRoot;
  38935. var expirationTime = this._expirationTime;
  38936. var work = new ReactWork();
  38937. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);
  38938. return work;
  38939. };
  38940. ReactBatch.prototype.then = function (onComplete) {
  38941. if (this._didComplete) {
  38942. onComplete();
  38943. return;
  38944. }
  38945. var callbacks = this._callbacks;
  38946. if (callbacks === null) {
  38947. callbacks = this._callbacks = [];
  38948. }
  38949. callbacks.push(onComplete);
  38950. };
  38951. ReactBatch.prototype.commit = function () {
  38952. var internalRoot = this._root._internalRoot;
  38953. var firstBatch = internalRoot.firstBatch;
  38954. !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  38955. if (!this._hasChildren) {
  38956. // This batch is empty. Return.
  38957. this._next = null;
  38958. this._defer = false;
  38959. return;
  38960. }
  38961. var expirationTime = this._expirationTime;
  38962. // Ensure this is the first batch in the list.
  38963. if (firstBatch !== this) {
  38964. // This batch is not the earliest batch. We need to move it to the front.
  38965. // Update its expiration time to be the expiration time of the earliest
  38966. // batch, so that we can flush it without flushing the other batches.
  38967. if (this._hasChildren) {
  38968. expirationTime = this._expirationTime = firstBatch._expirationTime;
  38969. // Rendering this batch again ensures its children will be the final state
  38970. // when we flush (updates are processed in insertion order: last
  38971. // update wins).
  38972. // TODO: This forces a restart. Should we print a warning?
  38973. this.render(this._children);
  38974. }
  38975. // Remove the batch from the list.
  38976. var previous = null;
  38977. var batch = firstBatch;
  38978. while (batch !== this) {
  38979. previous = batch;
  38980. batch = batch._next;
  38981. }
  38982. !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  38983. previous._next = batch._next;
  38984. // Add it to the front.
  38985. this._next = firstBatch;
  38986. firstBatch = internalRoot.firstBatch = this;
  38987. }
  38988. // Synchronously flush all the work up to this batch's expiration time.
  38989. this._defer = false;
  38990. flushRoot(internalRoot, expirationTime);
  38991. // Pop the batch from the list.
  38992. var next = this._next;
  38993. this._next = null;
  38994. firstBatch = internalRoot.firstBatch = next;
  38995. // Append the next earliest batch's children to the update queue.
  38996. if (firstBatch !== null && firstBatch._hasChildren) {
  38997. firstBatch.render(firstBatch._children);
  38998. }
  38999. };
  39000. ReactBatch.prototype._onComplete = function () {
  39001. if (this._didComplete) {
  39002. return;
  39003. }
  39004. this._didComplete = true;
  39005. var callbacks = this._callbacks;
  39006. if (callbacks === null) {
  39007. return;
  39008. }
  39009. // TODO: Error handling.
  39010. for (var i = 0; i < callbacks.length; i++) {
  39011. var _callback = callbacks[i];
  39012. _callback();
  39013. }
  39014. };
  39015. function ReactWork() {
  39016. this._callbacks = null;
  39017. this._didCommit = false;
  39018. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  39019. // list of Work objects.
  39020. this._onCommit = this._onCommit.bind(this);
  39021. }
  39022. ReactWork.prototype.then = function (onCommit) {
  39023. if (this._didCommit) {
  39024. onCommit();
  39025. return;
  39026. }
  39027. var callbacks = this._callbacks;
  39028. if (callbacks === null) {
  39029. callbacks = this._callbacks = [];
  39030. }
  39031. callbacks.push(onCommit);
  39032. };
  39033. ReactWork.prototype._onCommit = function () {
  39034. if (this._didCommit) {
  39035. return;
  39036. }
  39037. this._didCommit = true;
  39038. var callbacks = this._callbacks;
  39039. if (callbacks === null) {
  39040. return;
  39041. }
  39042. // TODO: Error handling.
  39043. for (var i = 0; i < callbacks.length; i++) {
  39044. var _callback2 = callbacks[i];
  39045. !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;
  39046. _callback2();
  39047. }
  39048. };
  39049. function ReactRoot(container, isConcurrent, hydrate) {
  39050. var root = createContainer(container, isConcurrent, hydrate);
  39051. this._internalRoot = root;
  39052. }
  39053. ReactRoot.prototype.render = function (children, callback) {
  39054. var root = this._internalRoot;
  39055. var work = new ReactWork();
  39056. callback = callback === undefined ? null : callback;
  39057. {
  39058. warnOnInvalidCallback(callback, 'render');
  39059. }
  39060. if (callback !== null) {
  39061. work.then(callback);
  39062. }
  39063. updateContainer(children, root, null, work._onCommit);
  39064. return work;
  39065. };
  39066. ReactRoot.prototype.unmount = function (callback) {
  39067. var root = this._internalRoot;
  39068. var work = new ReactWork();
  39069. callback = callback === undefined ? null : callback;
  39070. {
  39071. warnOnInvalidCallback(callback, 'render');
  39072. }
  39073. if (callback !== null) {
  39074. work.then(callback);
  39075. }
  39076. updateContainer(null, root, null, work._onCommit);
  39077. return work;
  39078. };
  39079. ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {
  39080. var root = this._internalRoot;
  39081. var work = new ReactWork();
  39082. callback = callback === undefined ? null : callback;
  39083. {
  39084. warnOnInvalidCallback(callback, 'render');
  39085. }
  39086. if (callback !== null) {
  39087. work.then(callback);
  39088. }
  39089. updateContainer(children, root, parentComponent, work._onCommit);
  39090. return work;
  39091. };
  39092. ReactRoot.prototype.createBatch = function () {
  39093. var batch = new ReactBatch(this);
  39094. var expirationTime = batch._expirationTime;
  39095. var internalRoot = this._internalRoot;
  39096. var firstBatch = internalRoot.firstBatch;
  39097. if (firstBatch === null) {
  39098. internalRoot.firstBatch = batch;
  39099. batch._next = null;
  39100. } else {
  39101. // Insert sorted by expiration time then insertion order
  39102. var insertAfter = null;
  39103. var insertBefore = firstBatch;
  39104. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  39105. insertAfter = insertBefore;
  39106. insertBefore = insertBefore._next;
  39107. }
  39108. batch._next = insertBefore;
  39109. if (insertAfter !== null) {
  39110. insertAfter._next = batch;
  39111. }
  39112. }
  39113. return batch;
  39114. };
  39115. /**
  39116. * True if the supplied DOM node is a valid node element.
  39117. *
  39118. * @param {?DOMElement} node The candidate DOM node.
  39119. * @return {boolean} True if the DOM is a valid DOM node.
  39120. * @internal
  39121. */
  39122. function isValidContainer(node) {
  39123. return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
  39124. }
  39125. function getReactRootElementInContainer(container) {
  39126. if (!container) {
  39127. return null;
  39128. }
  39129. if (container.nodeType === DOCUMENT_NODE) {
  39130. return container.documentElement;
  39131. } else {
  39132. return container.firstChild;
  39133. }
  39134. }
  39135. function shouldHydrateDueToLegacyHeuristic(container) {
  39136. var rootElement = getReactRootElementInContainer(container);
  39137. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  39138. }
  39139. setBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);
  39140. var warnedAboutHydrateAPI = false;
  39141. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  39142. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  39143. // First clear any existing content.
  39144. if (!shouldHydrate) {
  39145. var warned = false;
  39146. var rootSibling = void 0;
  39147. while (rootSibling = container.lastChild) {
  39148. {
  39149. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  39150. warned = true;
  39151. warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
  39152. }
  39153. }
  39154. container.removeChild(rootSibling);
  39155. }
  39156. }
  39157. {
  39158. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  39159. warnedAboutHydrateAPI = true;
  39160. lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
  39161. }
  39162. }
  39163. // Legacy roots are not async by default.
  39164. var isConcurrent = false;
  39165. return new ReactRoot(container, isConcurrent, shouldHydrate);
  39166. }
  39167. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  39168. // TODO: Ensure all entry points contain this check
  39169. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  39170. {
  39171. topLevelUpdateWarnings(container);
  39172. }
  39173. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  39174. // member of intersection type." Whyyyyyy.
  39175. var root = container._reactRootContainer;
  39176. if (!root) {
  39177. // Initial mount
  39178. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  39179. if (typeof callback === 'function') {
  39180. var originalCallback = callback;
  39181. callback = function () {
  39182. var instance = getPublicRootInstance(root._internalRoot);
  39183. originalCallback.call(instance);
  39184. };
  39185. }
  39186. // Initial mount should not be batched.
  39187. unbatchedUpdates(function () {
  39188. if (parentComponent != null) {
  39189. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  39190. } else {
  39191. root.render(children, callback);
  39192. }
  39193. });
  39194. } else {
  39195. if (typeof callback === 'function') {
  39196. var _originalCallback = callback;
  39197. callback = function () {
  39198. var instance = getPublicRootInstance(root._internalRoot);
  39199. _originalCallback.call(instance);
  39200. };
  39201. }
  39202. // Update
  39203. if (parentComponent != null) {
  39204. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  39205. } else {
  39206. root.render(children, callback);
  39207. }
  39208. }
  39209. return getPublicRootInstance(root._internalRoot);
  39210. }
  39211. function createPortal(children, container) {
  39212. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  39213. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  39214. // TODO: pass ReactDOM portal implementation as third argument
  39215. return createPortal$1(children, container, null, key);
  39216. }
  39217. var ReactDOM = {
  39218. createPortal: createPortal,
  39219. findDOMNode: function (componentOrElement) {
  39220. {
  39221. var owner = ReactCurrentOwner.current;
  39222. if (owner !== null && owner.stateNode !== null) {
  39223. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  39224. !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
  39225. owner.stateNode._warnedAboutRefsInRender = true;
  39226. }
  39227. }
  39228. if (componentOrElement == null) {
  39229. return null;
  39230. }
  39231. if (componentOrElement.nodeType === ELEMENT_NODE) {
  39232. return componentOrElement;
  39233. }
  39234. {
  39235. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  39236. }
  39237. return findHostInstance(componentOrElement);
  39238. },
  39239. hydrate: function (element, container, callback) {
  39240. // TODO: throw or warn if we couldn't hydrate?
  39241. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  39242. },
  39243. render: function (element, container, callback) {
  39244. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  39245. },
  39246. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  39247. !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
  39248. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  39249. },
  39250. unmountComponentAtNode: function (container) {
  39251. !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;
  39252. if (container._reactRootContainer) {
  39253. {
  39254. var rootEl = getReactRootElementInContainer(container);
  39255. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  39256. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  39257. }
  39258. // Unmount should not be batched.
  39259. unbatchedUpdates(function () {
  39260. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  39261. container._reactRootContainer = null;
  39262. });
  39263. });
  39264. // If you call unmountComponentAtNode twice in quick succession, you'll
  39265. // get `true` twice. That's probably fine?
  39266. return true;
  39267. } else {
  39268. {
  39269. var _rootEl = getReactRootElementInContainer(container);
  39270. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  39271. // Check if the container itself is a React root node.
  39272. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  39273. !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
  39274. }
  39275. return false;
  39276. }
  39277. },
  39278. // Temporary alias since we already shipped React 16 RC with it.
  39279. // TODO: remove in React 17.
  39280. unstable_createPortal: function () {
  39281. if (!didWarnAboutUnstableCreatePortal) {
  39282. didWarnAboutUnstableCreatePortal = true;
  39283. lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
  39284. }
  39285. return createPortal.apply(undefined, arguments);
  39286. },
  39287. unstable_batchedUpdates: batchedUpdates$1,
  39288. unstable_interactiveUpdates: interactiveUpdates$1,
  39289. flushSync: flushSync,
  39290. unstable_flushControlled: flushControlled,
  39291. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  39292. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  39293. // and ReactTestUtils.js. This is an array for better minification.
  39294. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]
  39295. }
  39296. };
  39297. function createRoot(container, options) {
  39298. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  39299. !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0;
  39300. var hydrate = options != null && options.hydrate === true;
  39301. return new ReactRoot(container, true, hydrate);
  39302. }
  39303. if (enableStableConcurrentModeAPIs) {
  39304. ReactDOM.createRoot = createRoot;
  39305. } else {
  39306. ReactDOM.unstable_createRoot = createRoot;
  39307. }
  39308. var foundDevTools = injectIntoDevTools({
  39309. findFiberByHostInstance: getClosestInstanceFromNode,
  39310. bundleType: 1,
  39311. version: ReactVersion,
  39312. rendererPackageName: 'react-dom'
  39313. });
  39314. {
  39315. if (!foundDevTools && canUseDOM && window.top === window.self) {
  39316. // If we're in Chrome or Firefox, provide a download link if not installed.
  39317. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  39318. var protocol = window.location.protocol;
  39319. // Don't warn in exotic cases like chrome-extension://.
  39320. if (/^(https?|file):$/.test(protocol)) {
  39321. console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');
  39322. }
  39323. }
  39324. }
  39325. }
  39326. var ReactDOM$2 = Object.freeze({
  39327. default: ReactDOM
  39328. });
  39329. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  39330. // TODO: decide on the top-level export form.
  39331. // This is hacky but makes it work with both Rollup and Jest.
  39332. var reactDom = ReactDOM$3.default || ReactDOM$3;
  39333. module.exports = reactDom;
  39334. })();
  39335. }
  39336. /***/ }),
  39337. /***/ "../../node_modules/react-dom/index.js":
  39338. /*!***********************************************************!*\
  39339. !*** D:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  39340. \***********************************************************/
  39341. /*! no static exports found */
  39342. /***/ (function(module, exports, __webpack_require__) {
  39343. "use strict";
  39344. function checkDCE() {
  39345. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  39346. if (
  39347. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  39348. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  39349. ) {
  39350. return;
  39351. }
  39352. if (true) {
  39353. // This branch is unreachable because this function is only called
  39354. // in production, but the condition is true only in development.
  39355. // Therefore if the branch is still here, dead code elimination wasn't
  39356. // properly applied.
  39357. // Don't change the message. React DevTools relies on it. Also make sure
  39358. // this message doesn't occur elsewhere in this function, or it will cause
  39359. // a false positive.
  39360. throw new Error('^_^');
  39361. }
  39362. try {
  39363. // Verify that the code above has been dead code eliminated (DCE'd).
  39364. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  39365. } catch (err) {
  39366. // DevTools shouldn't crash React, no matter what.
  39367. // We should still report in case we break this code.
  39368. console.error(err);
  39369. }
  39370. }
  39371. if (false) {} else {
  39372. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  39373. }
  39374. /***/ }),
  39375. /***/ "../../node_modules/react/cjs/react.development.js":
  39376. /*!***********************************************************************!*\
  39377. !*** D:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  39378. \***********************************************************************/
  39379. /*! no static exports found */
  39380. /***/ (function(module, exports, __webpack_require__) {
  39381. "use strict";
  39382. /** @license React v16.6.1
  39383. * react.development.js
  39384. *
  39385. * Copyright (c) Facebook, Inc. and its affiliates.
  39386. *
  39387. * This source code is licensed under the MIT license found in the
  39388. * LICENSE file in the root directory of this source tree.
  39389. */
  39390. if (true) {
  39391. (function() {
  39392. 'use strict';
  39393. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  39394. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  39395. // TODO: this is special because it gets imported during build.
  39396. var ReactVersion = '16.6.3';
  39397. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  39398. // nor polyfill, then a plain number is used for performance.
  39399. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  39400. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  39401. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  39402. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  39403. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  39404. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  39405. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  39406. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  39407. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  39408. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  39409. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  39410. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  39411. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  39412. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  39413. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  39414. function getIteratorFn(maybeIterable) {
  39415. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  39416. return null;
  39417. }
  39418. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  39419. if (typeof maybeIterator === 'function') {
  39420. return maybeIterator;
  39421. }
  39422. return null;
  39423. }
  39424. var enableHooks = false;
  39425. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  39426. // In some cases, StrictMode should also double-render lifecycles.
  39427. // This can be confusing for tests though,
  39428. // And it can be bad for performance in production.
  39429. // This feature flag can be used to control the behavior:
  39430. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  39431. // replay the begin phase of a failed component inside invokeGuardedCallback.
  39432. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  39433. // Gather advanced timing metrics for Profiler subtrees.
  39434. // Trace which interactions trigger each commit.
  39435. // Only used in www builds.
  39436. // Only used in www builds.
  39437. // React Fire: prevent the value and checked attributes from syncing
  39438. // with their related DOM properties
  39439. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  39440. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  39441. var enableStableConcurrentModeAPIs = false;
  39442. /**
  39443. * Use invariant() to assert state which your program assumes to be true.
  39444. *
  39445. * Provide sprintf-style format (only %s is supported) and arguments
  39446. * to provide information about what broke and what you were
  39447. * expecting.
  39448. *
  39449. * The invariant message will be stripped in production, but the invariant
  39450. * will remain to ensure logic does not differ in production.
  39451. */
  39452. var validateFormat = function () {};
  39453. {
  39454. validateFormat = function (format) {
  39455. if (format === undefined) {
  39456. throw new Error('invariant requires an error message argument');
  39457. }
  39458. };
  39459. }
  39460. function invariant(condition, format, a, b, c, d, e, f) {
  39461. validateFormat(format);
  39462. if (!condition) {
  39463. var error = void 0;
  39464. if (format === undefined) {
  39465. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  39466. } else {
  39467. var args = [a, b, c, d, e, f];
  39468. var argIndex = 0;
  39469. error = new Error(format.replace(/%s/g, function () {
  39470. return args[argIndex++];
  39471. }));
  39472. error.name = 'Invariant Violation';
  39473. }
  39474. error.framesToPop = 1; // we don't care about invariant's own frame
  39475. throw error;
  39476. }
  39477. }
  39478. // Relying on the `invariant()` implementation lets us
  39479. // preserve the format and params in the www builds.
  39480. /**
  39481. * Forked from fbjs/warning:
  39482. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  39483. *
  39484. * Only change is we use console.warn instead of console.error,
  39485. * and do nothing when 'console' is not supported.
  39486. * This really simplifies the code.
  39487. * ---
  39488. * Similar to invariant but only logs a warning if the condition is not met.
  39489. * This can be used to log issues in development environments in critical
  39490. * paths. Removing the logging code for production environments will keep the
  39491. * same logic and follow the same code paths.
  39492. */
  39493. var lowPriorityWarning = function () {};
  39494. {
  39495. var printWarning = function (format) {
  39496. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  39497. args[_key - 1] = arguments[_key];
  39498. }
  39499. var argIndex = 0;
  39500. var message = 'Warning: ' + format.replace(/%s/g, function () {
  39501. return args[argIndex++];
  39502. });
  39503. if (typeof console !== 'undefined') {
  39504. console.warn(message);
  39505. }
  39506. try {
  39507. // --- Welcome to debugging React ---
  39508. // This error was thrown as a convenience so that you can use this stack
  39509. // to find the callsite that caused this warning to fire.
  39510. throw new Error(message);
  39511. } catch (x) {}
  39512. };
  39513. lowPriorityWarning = function (condition, format) {
  39514. if (format === undefined) {
  39515. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  39516. }
  39517. if (!condition) {
  39518. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  39519. args[_key2 - 2] = arguments[_key2];
  39520. }
  39521. printWarning.apply(undefined, [format].concat(args));
  39522. }
  39523. };
  39524. }
  39525. var lowPriorityWarning$1 = lowPriorityWarning;
  39526. /**
  39527. * Similar to invariant but only logs a warning if the condition is not met.
  39528. * This can be used to log issues in development environments in critical
  39529. * paths. Removing the logging code for production environments will keep the
  39530. * same logic and follow the same code paths.
  39531. */
  39532. var warningWithoutStack = function () {};
  39533. {
  39534. warningWithoutStack = function (condition, format) {
  39535. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  39536. args[_key - 2] = arguments[_key];
  39537. }
  39538. if (format === undefined) {
  39539. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  39540. }
  39541. if (args.length > 8) {
  39542. // Check before the condition to catch violations early.
  39543. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  39544. }
  39545. if (condition) {
  39546. return;
  39547. }
  39548. if (typeof console !== 'undefined') {
  39549. var argsWithFormat = args.map(function (item) {
  39550. return '' + item;
  39551. });
  39552. argsWithFormat.unshift('Warning: ' + format);
  39553. // We intentionally don't use spread (or .apply) directly because it
  39554. // breaks IE9: https://github.com/facebook/react/issues/13610
  39555. Function.prototype.apply.call(console.error, console, argsWithFormat);
  39556. }
  39557. try {
  39558. // --- Welcome to debugging React ---
  39559. // This error was thrown as a convenience so that you can use this stack
  39560. // to find the callsite that caused this warning to fire.
  39561. var argIndex = 0;
  39562. var message = 'Warning: ' + format.replace(/%s/g, function () {
  39563. return args[argIndex++];
  39564. });
  39565. throw new Error(message);
  39566. } catch (x) {}
  39567. };
  39568. }
  39569. var warningWithoutStack$1 = warningWithoutStack;
  39570. var didWarnStateUpdateForUnmountedComponent = {};
  39571. function warnNoop(publicInstance, callerName) {
  39572. {
  39573. var _constructor = publicInstance.constructor;
  39574. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  39575. var warningKey = componentName + '.' + callerName;
  39576. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  39577. return;
  39578. }
  39579. warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
  39580. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  39581. }
  39582. }
  39583. /**
  39584. * This is the abstract API for an update queue.
  39585. */
  39586. var ReactNoopUpdateQueue = {
  39587. /**
  39588. * Checks whether or not this composite component is mounted.
  39589. * @param {ReactClass} publicInstance The instance we want to test.
  39590. * @return {boolean} True if mounted, false otherwise.
  39591. * @protected
  39592. * @final
  39593. */
  39594. isMounted: function (publicInstance) {
  39595. return false;
  39596. },
  39597. /**
  39598. * Forces an update. This should only be invoked when it is known with
  39599. * certainty that we are **not** in a DOM transaction.
  39600. *
  39601. * You may want to call this when you know that some deeper aspect of the
  39602. * component's state has changed but `setState` was not called.
  39603. *
  39604. * This will not invoke `shouldComponentUpdate`, but it will invoke
  39605. * `componentWillUpdate` and `componentDidUpdate`.
  39606. *
  39607. * @param {ReactClass} publicInstance The instance that should rerender.
  39608. * @param {?function} callback Called after component is updated.
  39609. * @param {?string} callerName name of the calling function in the public API.
  39610. * @internal
  39611. */
  39612. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  39613. warnNoop(publicInstance, 'forceUpdate');
  39614. },
  39615. /**
  39616. * Replaces all of the state. Always use this or `setState` to mutate state.
  39617. * You should treat `this.state` as immutable.
  39618. *
  39619. * There is no guarantee that `this.state` will be immediately updated, so
  39620. * accessing `this.state` after calling this method may return the old value.
  39621. *
  39622. * @param {ReactClass} publicInstance The instance that should rerender.
  39623. * @param {object} completeState Next state.
  39624. * @param {?function} callback Called after component is updated.
  39625. * @param {?string} callerName name of the calling function in the public API.
  39626. * @internal
  39627. */
  39628. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  39629. warnNoop(publicInstance, 'replaceState');
  39630. },
  39631. /**
  39632. * Sets a subset of the state. This only exists because _pendingState is
  39633. * internal. This provides a merging strategy that is not available to deep
  39634. * properties which is confusing. TODO: Expose pendingState or don't use it
  39635. * during the merge.
  39636. *
  39637. * @param {ReactClass} publicInstance The instance that should rerender.
  39638. * @param {object} partialState Next partial state to be merged with state.
  39639. * @param {?function} callback Called after component is updated.
  39640. * @param {?string} Name of the calling function in the public API.
  39641. * @internal
  39642. */
  39643. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  39644. warnNoop(publicInstance, 'setState');
  39645. }
  39646. };
  39647. var emptyObject = {};
  39648. {
  39649. Object.freeze(emptyObject);
  39650. }
  39651. /**
  39652. * Base class helpers for the updating state of a component.
  39653. */
  39654. function Component(props, context, updater) {
  39655. this.props = props;
  39656. this.context = context;
  39657. // If a component has string refs, we will assign a different object later.
  39658. this.refs = emptyObject;
  39659. // We initialize the default updater but the real one gets injected by the
  39660. // renderer.
  39661. this.updater = updater || ReactNoopUpdateQueue;
  39662. }
  39663. Component.prototype.isReactComponent = {};
  39664. /**
  39665. * Sets a subset of the state. Always use this to mutate
  39666. * state. You should treat `this.state` as immutable.
  39667. *
  39668. * There is no guarantee that `this.state` will be immediately updated, so
  39669. * accessing `this.state` after calling this method may return the old value.
  39670. *
  39671. * There is no guarantee that calls to `setState` will run synchronously,
  39672. * as they may eventually be batched together. You can provide an optional
  39673. * callback that will be executed when the call to setState is actually
  39674. * completed.
  39675. *
  39676. * When a function is provided to setState, it will be called at some point in
  39677. * the future (not synchronously). It will be called with the up to date
  39678. * component arguments (state, props, context). These values can be different
  39679. * from this.* because your function may be called after receiveProps but before
  39680. * shouldComponentUpdate, and this new state, props, and context will not yet be
  39681. * assigned to this.
  39682. *
  39683. * @param {object|function} partialState Next partial state or function to
  39684. * produce next partial state to be merged with current state.
  39685. * @param {?function} callback Called after state is updated.
  39686. * @final
  39687. * @protected
  39688. */
  39689. Component.prototype.setState = function (partialState, callback) {
  39690. !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
  39691. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  39692. };
  39693. /**
  39694. * Forces an update. This should only be invoked when it is known with
  39695. * certainty that we are **not** in a DOM transaction.
  39696. *
  39697. * You may want to call this when you know that some deeper aspect of the
  39698. * component's state has changed but `setState` was not called.
  39699. *
  39700. * This will not invoke `shouldComponentUpdate`, but it will invoke
  39701. * `componentWillUpdate` and `componentDidUpdate`.
  39702. *
  39703. * @param {?function} callback Called after update is complete.
  39704. * @final
  39705. * @protected
  39706. */
  39707. Component.prototype.forceUpdate = function (callback) {
  39708. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  39709. };
  39710. /**
  39711. * Deprecated APIs. These APIs used to exist on classic React classes but since
  39712. * we would like to deprecate them, we're not going to move them over to this
  39713. * modern base class. Instead, we define a getter that warns if it's accessed.
  39714. */
  39715. {
  39716. var deprecatedAPIs = {
  39717. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  39718. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  39719. };
  39720. var defineDeprecationWarning = function (methodName, info) {
  39721. Object.defineProperty(Component.prototype, methodName, {
  39722. get: function () {
  39723. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  39724. return undefined;
  39725. }
  39726. });
  39727. };
  39728. for (var fnName in deprecatedAPIs) {
  39729. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  39730. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  39731. }
  39732. }
  39733. }
  39734. function ComponentDummy() {}
  39735. ComponentDummy.prototype = Component.prototype;
  39736. /**
  39737. * Convenience component with default shallow equality check for sCU.
  39738. */
  39739. function PureComponent(props, context, updater) {
  39740. this.props = props;
  39741. this.context = context;
  39742. // If a component has string refs, we will assign a different object later.
  39743. this.refs = emptyObject;
  39744. this.updater = updater || ReactNoopUpdateQueue;
  39745. }
  39746. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  39747. pureComponentPrototype.constructor = PureComponent;
  39748. // Avoid an extra prototype jump for these methods.
  39749. _assign(pureComponentPrototype, Component.prototype);
  39750. pureComponentPrototype.isPureReactComponent = true;
  39751. // an immutable object with a single mutable value
  39752. function createRef() {
  39753. var refObject = {
  39754. current: null
  39755. };
  39756. {
  39757. Object.seal(refObject);
  39758. }
  39759. return refObject;
  39760. }
  39761. /**
  39762. * Keeps track of the current owner.
  39763. *
  39764. * The current owner is the component who should own any components that are
  39765. * currently being constructed.
  39766. */
  39767. var ReactCurrentOwner = {
  39768. /**
  39769. * @internal
  39770. * @type {ReactComponent}
  39771. */
  39772. current: null,
  39773. currentDispatcher: null
  39774. };
  39775. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  39776. var describeComponentFrame = function (name, source, ownerName) {
  39777. var sourceInfo = '';
  39778. if (source) {
  39779. var path = source.fileName;
  39780. var fileName = path.replace(BEFORE_SLASH_RE, '');
  39781. {
  39782. // In DEV, include code for a common special case:
  39783. // prefer "folder/index.js" instead of just "index.js".
  39784. if (/^index\./.test(fileName)) {
  39785. var match = path.match(BEFORE_SLASH_RE);
  39786. if (match) {
  39787. var pathBeforeSlash = match[1];
  39788. if (pathBeforeSlash) {
  39789. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  39790. fileName = folderName + '/' + fileName;
  39791. }
  39792. }
  39793. }
  39794. }
  39795. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  39796. } else if (ownerName) {
  39797. sourceInfo = ' (created by ' + ownerName + ')';
  39798. }
  39799. return '\n in ' + (name || 'Unknown') + sourceInfo;
  39800. };
  39801. var Resolved = 1;
  39802. function refineResolvedLazyComponent(lazyComponent) {
  39803. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  39804. }
  39805. function getWrappedName(outerType, innerType, wrapperName) {
  39806. var functionName = innerType.displayName || innerType.name || '';
  39807. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  39808. }
  39809. function getComponentName(type) {
  39810. if (type == null) {
  39811. // Host root, text node or just invalid type.
  39812. return null;
  39813. }
  39814. {
  39815. if (typeof type.tag === 'number') {
  39816. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  39817. }
  39818. }
  39819. if (typeof type === 'function') {
  39820. return type.displayName || type.name || null;
  39821. }
  39822. if (typeof type === 'string') {
  39823. return type;
  39824. }
  39825. switch (type) {
  39826. case REACT_CONCURRENT_MODE_TYPE:
  39827. return 'ConcurrentMode';
  39828. case REACT_FRAGMENT_TYPE:
  39829. return 'Fragment';
  39830. case REACT_PORTAL_TYPE:
  39831. return 'Portal';
  39832. case REACT_PROFILER_TYPE:
  39833. return 'Profiler';
  39834. case REACT_STRICT_MODE_TYPE:
  39835. return 'StrictMode';
  39836. case REACT_SUSPENSE_TYPE:
  39837. return 'Suspense';
  39838. }
  39839. if (typeof type === 'object') {
  39840. switch (type.$$typeof) {
  39841. case REACT_CONTEXT_TYPE:
  39842. return 'Context.Consumer';
  39843. case REACT_PROVIDER_TYPE:
  39844. return 'Context.Provider';
  39845. case REACT_FORWARD_REF_TYPE:
  39846. return getWrappedName(type, type.render, 'ForwardRef');
  39847. case REACT_MEMO_TYPE:
  39848. return getComponentName(type.type);
  39849. case REACT_LAZY_TYPE:
  39850. {
  39851. var thenable = type;
  39852. var resolvedThenable = refineResolvedLazyComponent(thenable);
  39853. if (resolvedThenable) {
  39854. return getComponentName(resolvedThenable);
  39855. }
  39856. }
  39857. }
  39858. }
  39859. return null;
  39860. }
  39861. var ReactDebugCurrentFrame = {};
  39862. var currentlyValidatingElement = null;
  39863. function setCurrentlyValidatingElement(element) {
  39864. {
  39865. currentlyValidatingElement = element;
  39866. }
  39867. }
  39868. {
  39869. // Stack implementation injected by the current renderer.
  39870. ReactDebugCurrentFrame.getCurrentStack = null;
  39871. ReactDebugCurrentFrame.getStackAddendum = function () {
  39872. var stack = '';
  39873. // Add an extra top frame while an element is being validated
  39874. if (currentlyValidatingElement) {
  39875. var name = getComponentName(currentlyValidatingElement.type);
  39876. var owner = currentlyValidatingElement._owner;
  39877. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  39878. }
  39879. // Delegate to the injected renderer-specific implementation
  39880. var impl = ReactDebugCurrentFrame.getCurrentStack;
  39881. if (impl) {
  39882. stack += impl() || '';
  39883. }
  39884. return stack;
  39885. };
  39886. }
  39887. var ReactSharedInternals = {
  39888. ReactCurrentOwner: ReactCurrentOwner,
  39889. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  39890. assign: _assign
  39891. };
  39892. {
  39893. _assign(ReactSharedInternals, {
  39894. // These should not be included in production.
  39895. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  39896. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  39897. // TODO: remove in React 17.0.
  39898. ReactComponentTreeHook: {}
  39899. });
  39900. }
  39901. /**
  39902. * Similar to invariant but only logs a warning if the condition is not met.
  39903. * This can be used to log issues in development environments in critical
  39904. * paths. Removing the logging code for production environments will keep the
  39905. * same logic and follow the same code paths.
  39906. */
  39907. var warning = warningWithoutStack$1;
  39908. {
  39909. warning = function (condition, format) {
  39910. if (condition) {
  39911. return;
  39912. }
  39913. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  39914. var stack = ReactDebugCurrentFrame.getStackAddendum();
  39915. // eslint-disable-next-line react-internal/warning-and-invariant-args
  39916. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  39917. args[_key - 2] = arguments[_key];
  39918. }
  39919. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  39920. };
  39921. }
  39922. var warning$1 = warning;
  39923. var hasOwnProperty = Object.prototype.hasOwnProperty;
  39924. var RESERVED_PROPS = {
  39925. key: true,
  39926. ref: true,
  39927. __self: true,
  39928. __source: true
  39929. };
  39930. var specialPropKeyWarningShown = void 0;
  39931. var specialPropRefWarningShown = void 0;
  39932. function hasValidRef(config) {
  39933. {
  39934. if (hasOwnProperty.call(config, 'ref')) {
  39935. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  39936. if (getter && getter.isReactWarning) {
  39937. return false;
  39938. }
  39939. }
  39940. }
  39941. return config.ref !== undefined;
  39942. }
  39943. function hasValidKey(config) {
  39944. {
  39945. if (hasOwnProperty.call(config, 'key')) {
  39946. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  39947. if (getter && getter.isReactWarning) {
  39948. return false;
  39949. }
  39950. }
  39951. }
  39952. return config.key !== undefined;
  39953. }
  39954. function defineKeyPropWarningGetter(props, displayName) {
  39955. var warnAboutAccessingKey = function () {
  39956. if (!specialPropKeyWarningShown) {
  39957. specialPropKeyWarningShown = true;
  39958. warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  39959. }
  39960. };
  39961. warnAboutAccessingKey.isReactWarning = true;
  39962. Object.defineProperty(props, 'key', {
  39963. get: warnAboutAccessingKey,
  39964. configurable: true
  39965. });
  39966. }
  39967. function defineRefPropWarningGetter(props, displayName) {
  39968. var warnAboutAccessingRef = function () {
  39969. if (!specialPropRefWarningShown) {
  39970. specialPropRefWarningShown = true;
  39971. warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  39972. }
  39973. };
  39974. warnAboutAccessingRef.isReactWarning = true;
  39975. Object.defineProperty(props, 'ref', {
  39976. get: warnAboutAccessingRef,
  39977. configurable: true
  39978. });
  39979. }
  39980. /**
  39981. * Factory method to create a new React element. This no longer adheres to
  39982. * the class pattern, so do not use new to call it. Also, no instanceof check
  39983. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  39984. * if something is a React Element.
  39985. *
  39986. * @param {*} type
  39987. * @param {*} key
  39988. * @param {string|object} ref
  39989. * @param {*} self A *temporary* helper to detect places where `this` is
  39990. * different from the `owner` when React.createElement is called, so that we
  39991. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  39992. * functions, and as long as `this` and owner are the same, there will be no
  39993. * change in behavior.
  39994. * @param {*} source An annotation object (added by a transpiler or otherwise)
  39995. * indicating filename, line number, and/or other information.
  39996. * @param {*} owner
  39997. * @param {*} props
  39998. * @internal
  39999. */
  40000. var ReactElement = function (type, key, ref, self, source, owner, props) {
  40001. var element = {
  40002. // This tag allows us to uniquely identify this as a React Element
  40003. $$typeof: REACT_ELEMENT_TYPE,
  40004. // Built-in properties that belong on the element
  40005. type: type,
  40006. key: key,
  40007. ref: ref,
  40008. props: props,
  40009. // Record the component responsible for creating this element.
  40010. _owner: owner
  40011. };
  40012. {
  40013. // The validation flag is currently mutative. We put it on
  40014. // an external backing store so that we can freeze the whole object.
  40015. // This can be replaced with a WeakMap once they are implemented in
  40016. // commonly used development environments.
  40017. element._store = {};
  40018. // To make comparing ReactElements easier for testing purposes, we make
  40019. // the validation flag non-enumerable (where possible, which should
  40020. // include every environment we run tests in), so the test framework
  40021. // ignores it.
  40022. Object.defineProperty(element._store, 'validated', {
  40023. configurable: false,
  40024. enumerable: false,
  40025. writable: true,
  40026. value: false
  40027. });
  40028. // self and source are DEV only properties.
  40029. Object.defineProperty(element, '_self', {
  40030. configurable: false,
  40031. enumerable: false,
  40032. writable: false,
  40033. value: self
  40034. });
  40035. // Two elements created in two different places should be considered
  40036. // equal for testing purposes and therefore we hide it from enumeration.
  40037. Object.defineProperty(element, '_source', {
  40038. configurable: false,
  40039. enumerable: false,
  40040. writable: false,
  40041. value: source
  40042. });
  40043. if (Object.freeze) {
  40044. Object.freeze(element.props);
  40045. Object.freeze(element);
  40046. }
  40047. }
  40048. return element;
  40049. };
  40050. /**
  40051. * Create and return a new ReactElement of the given type.
  40052. * See https://reactjs.org/docs/react-api.html#createelement
  40053. */
  40054. function createElement(type, config, children) {
  40055. var propName = void 0;
  40056. // Reserved names are extracted
  40057. var props = {};
  40058. var key = null;
  40059. var ref = null;
  40060. var self = null;
  40061. var source = null;
  40062. if (config != null) {
  40063. if (hasValidRef(config)) {
  40064. ref = config.ref;
  40065. }
  40066. if (hasValidKey(config)) {
  40067. key = '' + config.key;
  40068. }
  40069. self = config.__self === undefined ? null : config.__self;
  40070. source = config.__source === undefined ? null : config.__source;
  40071. // Remaining properties are added to a new props object
  40072. for (propName in config) {
  40073. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40074. props[propName] = config[propName];
  40075. }
  40076. }
  40077. }
  40078. // Children can be more than one argument, and those are transferred onto
  40079. // the newly allocated props object.
  40080. var childrenLength = arguments.length - 2;
  40081. if (childrenLength === 1) {
  40082. props.children = children;
  40083. } else if (childrenLength > 1) {
  40084. var childArray = Array(childrenLength);
  40085. for (var i = 0; i < childrenLength; i++) {
  40086. childArray[i] = arguments[i + 2];
  40087. }
  40088. {
  40089. if (Object.freeze) {
  40090. Object.freeze(childArray);
  40091. }
  40092. }
  40093. props.children = childArray;
  40094. }
  40095. // Resolve default props
  40096. if (type && type.defaultProps) {
  40097. var defaultProps = type.defaultProps;
  40098. for (propName in defaultProps) {
  40099. if (props[propName] === undefined) {
  40100. props[propName] = defaultProps[propName];
  40101. }
  40102. }
  40103. }
  40104. {
  40105. if (key || ref) {
  40106. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  40107. if (key) {
  40108. defineKeyPropWarningGetter(props, displayName);
  40109. }
  40110. if (ref) {
  40111. defineRefPropWarningGetter(props, displayName);
  40112. }
  40113. }
  40114. }
  40115. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  40116. }
  40117. /**
  40118. * Return a function that produces ReactElements of a given type.
  40119. * See https://reactjs.org/docs/react-api.html#createfactory
  40120. */
  40121. function cloneAndReplaceKey(oldElement, newKey) {
  40122. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  40123. return newElement;
  40124. }
  40125. /**
  40126. * Clone and return a new ReactElement using element as the starting point.
  40127. * See https://reactjs.org/docs/react-api.html#cloneelement
  40128. */
  40129. function cloneElement(element, config, children) {
  40130. !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
  40131. var propName = void 0;
  40132. // Original props are copied
  40133. var props = _assign({}, element.props);
  40134. // Reserved names are extracted
  40135. var key = element.key;
  40136. var ref = element.ref;
  40137. // Self is preserved since the owner is preserved.
  40138. var self = element._self;
  40139. // Source is preserved since cloneElement is unlikely to be targeted by a
  40140. // transpiler, and the original source is probably a better indicator of the
  40141. // true owner.
  40142. var source = element._source;
  40143. // Owner will be preserved, unless ref is overridden
  40144. var owner = element._owner;
  40145. if (config != null) {
  40146. if (hasValidRef(config)) {
  40147. // Silently steal the ref from the parent.
  40148. ref = config.ref;
  40149. owner = ReactCurrentOwner.current;
  40150. }
  40151. if (hasValidKey(config)) {
  40152. key = '' + config.key;
  40153. }
  40154. // Remaining properties override existing props
  40155. var defaultProps = void 0;
  40156. if (element.type && element.type.defaultProps) {
  40157. defaultProps = element.type.defaultProps;
  40158. }
  40159. for (propName in config) {
  40160. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40161. if (config[propName] === undefined && defaultProps !== undefined) {
  40162. // Resolve default props
  40163. props[propName] = defaultProps[propName];
  40164. } else {
  40165. props[propName] = config[propName];
  40166. }
  40167. }
  40168. }
  40169. }
  40170. // Children can be more than one argument, and those are transferred onto
  40171. // the newly allocated props object.
  40172. var childrenLength = arguments.length - 2;
  40173. if (childrenLength === 1) {
  40174. props.children = children;
  40175. } else if (childrenLength > 1) {
  40176. var childArray = Array(childrenLength);
  40177. for (var i = 0; i < childrenLength; i++) {
  40178. childArray[i] = arguments[i + 2];
  40179. }
  40180. props.children = childArray;
  40181. }
  40182. return ReactElement(element.type, key, ref, self, source, owner, props);
  40183. }
  40184. /**
  40185. * Verifies the object is a ReactElement.
  40186. * See https://reactjs.org/docs/react-api.html#isvalidelement
  40187. * @param {?object} object
  40188. * @return {boolean} True if `object` is a ReactElement.
  40189. * @final
  40190. */
  40191. function isValidElement(object) {
  40192. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  40193. }
  40194. var SEPARATOR = '.';
  40195. var SUBSEPARATOR = ':';
  40196. /**
  40197. * Escape and wrap key so it is safe to use as a reactid
  40198. *
  40199. * @param {string} key to be escaped.
  40200. * @return {string} the escaped key.
  40201. */
  40202. function escape(key) {
  40203. var escapeRegex = /[=:]/g;
  40204. var escaperLookup = {
  40205. '=': '=0',
  40206. ':': '=2'
  40207. };
  40208. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  40209. return escaperLookup[match];
  40210. });
  40211. return '$' + escapedString;
  40212. }
  40213. /**
  40214. * TODO: Test that a single child and an array with one item have the same key
  40215. * pattern.
  40216. */
  40217. var didWarnAboutMaps = false;
  40218. var userProvidedKeyEscapeRegex = /\/+/g;
  40219. function escapeUserProvidedKey(text) {
  40220. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  40221. }
  40222. var POOL_SIZE = 10;
  40223. var traverseContextPool = [];
  40224. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  40225. if (traverseContextPool.length) {
  40226. var traverseContext = traverseContextPool.pop();
  40227. traverseContext.result = mapResult;
  40228. traverseContext.keyPrefix = keyPrefix;
  40229. traverseContext.func = mapFunction;
  40230. traverseContext.context = mapContext;
  40231. traverseContext.count = 0;
  40232. return traverseContext;
  40233. } else {
  40234. return {
  40235. result: mapResult,
  40236. keyPrefix: keyPrefix,
  40237. func: mapFunction,
  40238. context: mapContext,
  40239. count: 0
  40240. };
  40241. }
  40242. }
  40243. function releaseTraverseContext(traverseContext) {
  40244. traverseContext.result = null;
  40245. traverseContext.keyPrefix = null;
  40246. traverseContext.func = null;
  40247. traverseContext.context = null;
  40248. traverseContext.count = 0;
  40249. if (traverseContextPool.length < POOL_SIZE) {
  40250. traverseContextPool.push(traverseContext);
  40251. }
  40252. }
  40253. /**
  40254. * @param {?*} children Children tree container.
  40255. * @param {!string} nameSoFar Name of the key path so far.
  40256. * @param {!function} callback Callback to invoke with each child found.
  40257. * @param {?*} traverseContext Used to pass information throughout the traversal
  40258. * process.
  40259. * @return {!number} The number of children in this subtree.
  40260. */
  40261. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  40262. var type = typeof children;
  40263. if (type === 'undefined' || type === 'boolean') {
  40264. // All of the above are perceived as null.
  40265. children = null;
  40266. }
  40267. var invokeCallback = false;
  40268. if (children === null) {
  40269. invokeCallback = true;
  40270. } else {
  40271. switch (type) {
  40272. case 'string':
  40273. case 'number':
  40274. invokeCallback = true;
  40275. break;
  40276. case 'object':
  40277. switch (children.$$typeof) {
  40278. case REACT_ELEMENT_TYPE:
  40279. case REACT_PORTAL_TYPE:
  40280. invokeCallback = true;
  40281. }
  40282. }
  40283. }
  40284. if (invokeCallback) {
  40285. callback(traverseContext, children,
  40286. // If it's the only child, treat the name as if it was wrapped in an array
  40287. // so that it's consistent if the number of children grows.
  40288. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  40289. return 1;
  40290. }
  40291. var child = void 0;
  40292. var nextName = void 0;
  40293. var subtreeCount = 0; // Count of children found in the current subtree.
  40294. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  40295. if (Array.isArray(children)) {
  40296. for (var i = 0; i < children.length; i++) {
  40297. child = children[i];
  40298. nextName = nextNamePrefix + getComponentKey(child, i);
  40299. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  40300. }
  40301. } else {
  40302. var iteratorFn = getIteratorFn(children);
  40303. if (typeof iteratorFn === 'function') {
  40304. {
  40305. // Warn about using Maps as children
  40306. if (iteratorFn === children.entries) {
  40307. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  40308. didWarnAboutMaps = true;
  40309. }
  40310. }
  40311. var iterator = iteratorFn.call(children);
  40312. var step = void 0;
  40313. var ii = 0;
  40314. while (!(step = iterator.next()).done) {
  40315. child = step.value;
  40316. nextName = nextNamePrefix + getComponentKey(child, ii++);
  40317. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  40318. }
  40319. } else if (type === 'object') {
  40320. var addendum = '';
  40321. {
  40322. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  40323. }
  40324. var childrenString = '' + children;
  40325. invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
  40326. }
  40327. }
  40328. return subtreeCount;
  40329. }
  40330. /**
  40331. * Traverses children that are typically specified as `props.children`, but
  40332. * might also be specified through attributes:
  40333. *
  40334. * - `traverseAllChildren(this.props.children, ...)`
  40335. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  40336. *
  40337. * The `traverseContext` is an optional argument that is passed through the
  40338. * entire traversal. It can be used to store accumulations or anything else that
  40339. * the callback might find relevant.
  40340. *
  40341. * @param {?*} children Children tree object.
  40342. * @param {!function} callback To invoke upon traversing each child.
  40343. * @param {?*} traverseContext Context for traversal.
  40344. * @return {!number} The number of children in this subtree.
  40345. */
  40346. function traverseAllChildren(children, callback, traverseContext) {
  40347. if (children == null) {
  40348. return 0;
  40349. }
  40350. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  40351. }
  40352. /**
  40353. * Generate a key string that identifies a component within a set.
  40354. *
  40355. * @param {*} component A component that could contain a manual key.
  40356. * @param {number} index Index that is used if a manual key is not provided.
  40357. * @return {string}
  40358. */
  40359. function getComponentKey(component, index) {
  40360. // Do some typechecking here since we call this blindly. We want to ensure
  40361. // that we don't block potential future ES APIs.
  40362. if (typeof component === 'object' && component !== null && component.key != null) {
  40363. // Explicit key
  40364. return escape(component.key);
  40365. }
  40366. // Implicit key determined by the index in the set
  40367. return index.toString(36);
  40368. }
  40369. function forEachSingleChild(bookKeeping, child, name) {
  40370. var func = bookKeeping.func,
  40371. context = bookKeeping.context;
  40372. func.call(context, child, bookKeeping.count++);
  40373. }
  40374. /**
  40375. * Iterates through children that are typically specified as `props.children`.
  40376. *
  40377. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  40378. *
  40379. * The provided forEachFunc(child, index) will be called for each
  40380. * leaf child.
  40381. *
  40382. * @param {?*} children Children tree container.
  40383. * @param {function(*, int)} forEachFunc
  40384. * @param {*} forEachContext Context for forEachContext.
  40385. */
  40386. function forEachChildren(children, forEachFunc, forEachContext) {
  40387. if (children == null) {
  40388. return children;
  40389. }
  40390. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  40391. traverseAllChildren(children, forEachSingleChild, traverseContext);
  40392. releaseTraverseContext(traverseContext);
  40393. }
  40394. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  40395. var result = bookKeeping.result,
  40396. keyPrefix = bookKeeping.keyPrefix,
  40397. func = bookKeeping.func,
  40398. context = bookKeeping.context;
  40399. var mappedChild = func.call(context, child, bookKeeping.count++);
  40400. if (Array.isArray(mappedChild)) {
  40401. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  40402. return c;
  40403. });
  40404. } else if (mappedChild != null) {
  40405. if (isValidElement(mappedChild)) {
  40406. mappedChild = cloneAndReplaceKey(mappedChild,
  40407. // Keep both the (mapped) and old keys if they differ, just as
  40408. // traverseAllChildren used to do for objects as children
  40409. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  40410. }
  40411. result.push(mappedChild);
  40412. }
  40413. }
  40414. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  40415. var escapedPrefix = '';
  40416. if (prefix != null) {
  40417. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  40418. }
  40419. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  40420. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  40421. releaseTraverseContext(traverseContext);
  40422. }
  40423. /**
  40424. * Maps children that are typically specified as `props.children`.
  40425. *
  40426. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  40427. *
  40428. * The provided mapFunction(child, key, index) will be called for each
  40429. * leaf child.
  40430. *
  40431. * @param {?*} children Children tree container.
  40432. * @param {function(*, int)} func The map function.
  40433. * @param {*} context Context for mapFunction.
  40434. * @return {object} Object containing the ordered map of results.
  40435. */
  40436. function mapChildren(children, func, context) {
  40437. if (children == null) {
  40438. return children;
  40439. }
  40440. var result = [];
  40441. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  40442. return result;
  40443. }
  40444. /**
  40445. * Count the number of children that are typically specified as
  40446. * `props.children`.
  40447. *
  40448. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  40449. *
  40450. * @param {?*} children Children tree container.
  40451. * @return {number} The number of children.
  40452. */
  40453. function countChildren(children) {
  40454. return traverseAllChildren(children, function () {
  40455. return null;
  40456. }, null);
  40457. }
  40458. /**
  40459. * Flatten a children object (typically specified as `props.children`) and
  40460. * return an array with appropriately re-keyed children.
  40461. *
  40462. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  40463. */
  40464. function toArray(children) {
  40465. var result = [];
  40466. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  40467. return child;
  40468. });
  40469. return result;
  40470. }
  40471. /**
  40472. * Returns the first child in a collection of children and verifies that there
  40473. * is only one child in the collection.
  40474. *
  40475. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  40476. *
  40477. * The current implementation of this function assumes that a single child gets
  40478. * passed without a wrapper, but the purpose of this helper function is to
  40479. * abstract away the particular structure of children.
  40480. *
  40481. * @param {?object} children Child collection structure.
  40482. * @return {ReactElement} The first and only `ReactElement` contained in the
  40483. * structure.
  40484. */
  40485. function onlyChild(children) {
  40486. !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
  40487. return children;
  40488. }
  40489. function createContext(defaultValue, calculateChangedBits) {
  40490. if (calculateChangedBits === undefined) {
  40491. calculateChangedBits = null;
  40492. } else {
  40493. {
  40494. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  40495. }
  40496. }
  40497. var context = {
  40498. $$typeof: REACT_CONTEXT_TYPE,
  40499. _calculateChangedBits: calculateChangedBits,
  40500. // As a workaround to support multiple concurrent renderers, we categorize
  40501. // some renderers as primary and others as secondary. We only expect
  40502. // there to be two concurrent renderers at most: React Native (primary) and
  40503. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  40504. // Secondary renderers store their context values on separate fields.
  40505. _currentValue: defaultValue,
  40506. _currentValue2: defaultValue,
  40507. // Used to track how many concurrent renderers this context currently
  40508. // supports within in a single renderer. Such as parallel server rendering.
  40509. _threadCount: 0,
  40510. // These are circular
  40511. Provider: null,
  40512. Consumer: null
  40513. };
  40514. context.Provider = {
  40515. $$typeof: REACT_PROVIDER_TYPE,
  40516. _context: context
  40517. };
  40518. var hasWarnedAboutUsingNestedContextConsumers = false;
  40519. var hasWarnedAboutUsingConsumerProvider = false;
  40520. {
  40521. // A separate object, but proxies back to the original context object for
  40522. // backwards compatibility. It has a different $$typeof, so we can properly
  40523. // warn for the incorrect usage of Context as a Consumer.
  40524. var Consumer = {
  40525. $$typeof: REACT_CONTEXT_TYPE,
  40526. _context: context,
  40527. _calculateChangedBits: context._calculateChangedBits
  40528. };
  40529. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  40530. Object.defineProperties(Consumer, {
  40531. Provider: {
  40532. get: function () {
  40533. if (!hasWarnedAboutUsingConsumerProvider) {
  40534. hasWarnedAboutUsingConsumerProvider = true;
  40535. warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  40536. }
  40537. return context.Provider;
  40538. },
  40539. set: function (_Provider) {
  40540. context.Provider = _Provider;
  40541. }
  40542. },
  40543. _currentValue: {
  40544. get: function () {
  40545. return context._currentValue;
  40546. },
  40547. set: function (_currentValue) {
  40548. context._currentValue = _currentValue;
  40549. }
  40550. },
  40551. _currentValue2: {
  40552. get: function () {
  40553. return context._currentValue2;
  40554. },
  40555. set: function (_currentValue2) {
  40556. context._currentValue2 = _currentValue2;
  40557. }
  40558. },
  40559. _threadCount: {
  40560. get: function () {
  40561. return context._threadCount;
  40562. },
  40563. set: function (_threadCount) {
  40564. context._threadCount = _threadCount;
  40565. }
  40566. },
  40567. Consumer: {
  40568. get: function () {
  40569. if (!hasWarnedAboutUsingNestedContextConsumers) {
  40570. hasWarnedAboutUsingNestedContextConsumers = true;
  40571. warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  40572. }
  40573. return context.Consumer;
  40574. }
  40575. }
  40576. });
  40577. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  40578. context.Consumer = Consumer;
  40579. }
  40580. {
  40581. context._currentRenderer = null;
  40582. context._currentRenderer2 = null;
  40583. }
  40584. return context;
  40585. }
  40586. function lazy(ctor) {
  40587. return {
  40588. $$typeof: REACT_LAZY_TYPE,
  40589. _ctor: ctor,
  40590. // React uses these fields to store the result.
  40591. _status: -1,
  40592. _result: null
  40593. };
  40594. }
  40595. function forwardRef(render) {
  40596. {
  40597. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  40598. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  40599. } else if (typeof render !== 'function') {
  40600. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  40601. } else {
  40602. !(
  40603. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  40604. render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
  40605. }
  40606. if (render != null) {
  40607. !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
  40608. }
  40609. }
  40610. return {
  40611. $$typeof: REACT_FORWARD_REF_TYPE,
  40612. render: render
  40613. };
  40614. }
  40615. function isValidElementType(type) {
  40616. return typeof type === 'string' || typeof type === 'function' ||
  40617. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  40618. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
  40619. }
  40620. function memo(type, compare) {
  40621. {
  40622. if (!isValidElementType(type)) {
  40623. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  40624. }
  40625. }
  40626. return {
  40627. $$typeof: REACT_MEMO_TYPE,
  40628. type: type,
  40629. compare: compare === undefined ? null : compare
  40630. };
  40631. }
  40632. function resolveDispatcher() {
  40633. var dispatcher = ReactCurrentOwner.currentDispatcher;
  40634. !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  40635. return dispatcher;
  40636. }
  40637. function useContext(Context, observedBits) {
  40638. var dispatcher = resolveDispatcher();
  40639. {
  40640. // TODO: add a more generic warning for invalid values.
  40641. if (Context._context !== undefined) {
  40642. var realContext = Context._context;
  40643. // Don't deduplicate because this legitimately causes bugs
  40644. // and nobody should be using this in existing code.
  40645. if (realContext.Consumer === Context) {
  40646. warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
  40647. } else if (realContext.Provider === Context) {
  40648. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  40649. }
  40650. }
  40651. }
  40652. return dispatcher.useContext(Context, observedBits);
  40653. }
  40654. function useState(initialState) {
  40655. var dispatcher = resolveDispatcher();
  40656. return dispatcher.useState(initialState);
  40657. }
  40658. function useReducer(reducer, initialState, initialAction) {
  40659. var dispatcher = resolveDispatcher();
  40660. return dispatcher.useReducer(reducer, initialState, initialAction);
  40661. }
  40662. function useRef(initialValue) {
  40663. var dispatcher = resolveDispatcher();
  40664. return dispatcher.useRef(initialValue);
  40665. }
  40666. function useEffect(create, inputs) {
  40667. var dispatcher = resolveDispatcher();
  40668. return dispatcher.useEffect(create, inputs);
  40669. }
  40670. function useMutationEffect(create, inputs) {
  40671. var dispatcher = resolveDispatcher();
  40672. return dispatcher.useMutationEffect(create, inputs);
  40673. }
  40674. function useLayoutEffect(create, inputs) {
  40675. var dispatcher = resolveDispatcher();
  40676. return dispatcher.useLayoutEffect(create, inputs);
  40677. }
  40678. function useCallback(callback, inputs) {
  40679. var dispatcher = resolveDispatcher();
  40680. return dispatcher.useCallback(callback, inputs);
  40681. }
  40682. function useMemo(create, inputs) {
  40683. var dispatcher = resolveDispatcher();
  40684. return dispatcher.useMemo(create, inputs);
  40685. }
  40686. function useImperativeMethods(ref, create, inputs) {
  40687. var dispatcher = resolveDispatcher();
  40688. return dispatcher.useImperativeMethods(ref, create, inputs);
  40689. }
  40690. /**
  40691. * ReactElementValidator provides a wrapper around a element factory
  40692. * which validates the props passed to the element. This is intended to be
  40693. * used only in DEV and could be replaced by a static type checker for languages
  40694. * that support it.
  40695. */
  40696. var propTypesMisspellWarningShown = void 0;
  40697. {
  40698. propTypesMisspellWarningShown = false;
  40699. }
  40700. function getDeclarationErrorAddendum() {
  40701. if (ReactCurrentOwner.current) {
  40702. var name = getComponentName(ReactCurrentOwner.current.type);
  40703. if (name) {
  40704. return '\n\nCheck the render method of `' + name + '`.';
  40705. }
  40706. }
  40707. return '';
  40708. }
  40709. function getSourceInfoErrorAddendum(elementProps) {
  40710. if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  40711. var source = elementProps.__source;
  40712. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  40713. var lineNumber = source.lineNumber;
  40714. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  40715. }
  40716. return '';
  40717. }
  40718. /**
  40719. * Warn if there's no key explicitly set on dynamic arrays of children or
  40720. * object keys are not valid. This allows us to keep track of children between
  40721. * updates.
  40722. */
  40723. var ownerHasKeyUseWarning = {};
  40724. function getCurrentComponentErrorInfo(parentType) {
  40725. var info = getDeclarationErrorAddendum();
  40726. if (!info) {
  40727. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  40728. if (parentName) {
  40729. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  40730. }
  40731. }
  40732. return info;
  40733. }
  40734. /**
  40735. * Warn if the element doesn't have an explicit key assigned to it.
  40736. * This element is in an array. The array could grow and shrink or be
  40737. * reordered. All children that haven't already been validated are required to
  40738. * have a "key" property assigned to it. Error statuses are cached so a warning
  40739. * will only be shown once.
  40740. *
  40741. * @internal
  40742. * @param {ReactElement} element Element that requires a key.
  40743. * @param {*} parentType element's parent's type.
  40744. */
  40745. function validateExplicitKey(element, parentType) {
  40746. if (!element._store || element._store.validated || element.key != null) {
  40747. return;
  40748. }
  40749. element._store.validated = true;
  40750. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  40751. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  40752. return;
  40753. }
  40754. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  40755. // Usually the current owner is the offender, but if it accepts children as a
  40756. // property, it may be the creator of the child that's responsible for
  40757. // assigning it a key.
  40758. var childOwner = '';
  40759. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  40760. // Give the component that originally created this child.
  40761. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  40762. }
  40763. setCurrentlyValidatingElement(element);
  40764. {
  40765. warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  40766. }
  40767. setCurrentlyValidatingElement(null);
  40768. }
  40769. /**
  40770. * Ensure that every element either is passed in a static location, in an
  40771. * array with an explicit keys property defined, or in an object literal
  40772. * with valid key property.
  40773. *
  40774. * @internal
  40775. * @param {ReactNode} node Statically passed child of any type.
  40776. * @param {*} parentType node's parent's type.
  40777. */
  40778. function validateChildKeys(node, parentType) {
  40779. if (typeof node !== 'object') {
  40780. return;
  40781. }
  40782. if (Array.isArray(node)) {
  40783. for (var i = 0; i < node.length; i++) {
  40784. var child = node[i];
  40785. if (isValidElement(child)) {
  40786. validateExplicitKey(child, parentType);
  40787. }
  40788. }
  40789. } else if (isValidElement(node)) {
  40790. // This element was passed in a valid location.
  40791. if (node._store) {
  40792. node._store.validated = true;
  40793. }
  40794. } else if (node) {
  40795. var iteratorFn = getIteratorFn(node);
  40796. if (typeof iteratorFn === 'function') {
  40797. // Entry iterators used to provide implicit keys,
  40798. // but now we print a separate warning for them later.
  40799. if (iteratorFn !== node.entries) {
  40800. var iterator = iteratorFn.call(node);
  40801. var step = void 0;
  40802. while (!(step = iterator.next()).done) {
  40803. if (isValidElement(step.value)) {
  40804. validateExplicitKey(step.value, parentType);
  40805. }
  40806. }
  40807. }
  40808. }
  40809. }
  40810. }
  40811. /**
  40812. * Given an element, validate that its props follow the propTypes definition,
  40813. * provided by the type.
  40814. *
  40815. * @param {ReactElement} element
  40816. */
  40817. function validatePropTypes(element) {
  40818. var type = element.type;
  40819. var name = void 0,
  40820. propTypes = void 0;
  40821. if (typeof type === 'function') {
  40822. // Class or function component
  40823. name = type.displayName || type.name;
  40824. propTypes = type.propTypes;
  40825. } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
  40826. // ForwardRef
  40827. var functionName = type.render.displayName || type.render.name || '';
  40828. name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
  40829. propTypes = type.propTypes;
  40830. } else {
  40831. return;
  40832. }
  40833. if (propTypes) {
  40834. setCurrentlyValidatingElement(element);
  40835. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  40836. setCurrentlyValidatingElement(null);
  40837. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  40838. propTypesMisspellWarningShown = true;
  40839. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  40840. }
  40841. if (typeof type.getDefaultProps === 'function') {
  40842. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  40843. }
  40844. }
  40845. /**
  40846. * Given a fragment, validate that it can only be provided with fragment props
  40847. * @param {ReactElement} fragment
  40848. */
  40849. function validateFragmentProps(fragment) {
  40850. setCurrentlyValidatingElement(fragment);
  40851. var keys = Object.keys(fragment.props);
  40852. for (var i = 0; i < keys.length; i++) {
  40853. var key = keys[i];
  40854. if (key !== 'children' && key !== 'key') {
  40855. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  40856. break;
  40857. }
  40858. }
  40859. if (fragment.ref !== null) {
  40860. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  40861. }
  40862. setCurrentlyValidatingElement(null);
  40863. }
  40864. function createElementWithValidation(type, props, children) {
  40865. var validType = isValidElementType(type);
  40866. // We warn in this case but don't throw. We expect the element creation to
  40867. // succeed and there will likely be errors in render.
  40868. if (!validType) {
  40869. var info = '';
  40870. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  40871. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
  40872. }
  40873. var sourceInfo = getSourceInfoErrorAddendum(props);
  40874. if (sourceInfo) {
  40875. info += sourceInfo;
  40876. } else {
  40877. info += getDeclarationErrorAddendum();
  40878. }
  40879. var typeString = void 0;
  40880. if (type === null) {
  40881. typeString = 'null';
  40882. } else if (Array.isArray(type)) {
  40883. typeString = 'array';
  40884. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  40885. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  40886. info = ' Did you accidentally export a JSX literal instead of a component?';
  40887. } else {
  40888. typeString = typeof type;
  40889. }
  40890. warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  40891. }
  40892. var element = createElement.apply(this, arguments);
  40893. // The result can be nullish if a mock or a custom function is used.
  40894. // TODO: Drop this when these are no longer allowed as the type argument.
  40895. if (element == null) {
  40896. return element;
  40897. }
  40898. // Skip key warning if the type isn't valid since our key validation logic
  40899. // doesn't expect a non-string/function type and can throw confusing errors.
  40900. // We don't want exception behavior to differ between dev and prod.
  40901. // (Rendering will throw with a helpful message and as soon as the type is
  40902. // fixed, the key warnings will appear.)
  40903. if (validType) {
  40904. for (var i = 2; i < arguments.length; i++) {
  40905. validateChildKeys(arguments[i], type);
  40906. }
  40907. }
  40908. if (type === REACT_FRAGMENT_TYPE) {
  40909. validateFragmentProps(element);
  40910. } else {
  40911. validatePropTypes(element);
  40912. }
  40913. return element;
  40914. }
  40915. function createFactoryWithValidation(type) {
  40916. var validatedFactory = createElementWithValidation.bind(null, type);
  40917. validatedFactory.type = type;
  40918. // Legacy hook: remove it
  40919. {
  40920. Object.defineProperty(validatedFactory, 'type', {
  40921. enumerable: false,
  40922. get: function () {
  40923. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  40924. Object.defineProperty(this, 'type', {
  40925. value: type
  40926. });
  40927. return type;
  40928. }
  40929. });
  40930. }
  40931. return validatedFactory;
  40932. }
  40933. function cloneElementWithValidation(element, props, children) {
  40934. var newElement = cloneElement.apply(this, arguments);
  40935. for (var i = 2; i < arguments.length; i++) {
  40936. validateChildKeys(arguments[i], newElement.type);
  40937. }
  40938. validatePropTypes(newElement);
  40939. return newElement;
  40940. }
  40941. var React = {
  40942. Children: {
  40943. map: mapChildren,
  40944. forEach: forEachChildren,
  40945. count: countChildren,
  40946. toArray: toArray,
  40947. only: onlyChild
  40948. },
  40949. createRef: createRef,
  40950. Component: Component,
  40951. PureComponent: PureComponent,
  40952. createContext: createContext,
  40953. forwardRef: forwardRef,
  40954. lazy: lazy,
  40955. memo: memo,
  40956. Fragment: REACT_FRAGMENT_TYPE,
  40957. StrictMode: REACT_STRICT_MODE_TYPE,
  40958. Suspense: REACT_SUSPENSE_TYPE,
  40959. createElement: createElementWithValidation,
  40960. cloneElement: cloneElementWithValidation,
  40961. createFactory: createFactoryWithValidation,
  40962. isValidElement: isValidElement,
  40963. version: ReactVersion,
  40964. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  40965. };
  40966. if (enableStableConcurrentModeAPIs) {
  40967. React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  40968. React.Profiler = REACT_PROFILER_TYPE;
  40969. } else {
  40970. React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  40971. React.unstable_Profiler = REACT_PROFILER_TYPE;
  40972. }
  40973. if (enableHooks) {
  40974. React.useCallback = useCallback;
  40975. React.useContext = useContext;
  40976. React.useEffect = useEffect;
  40977. React.useImperativeMethods = useImperativeMethods;
  40978. React.useLayoutEffect = useLayoutEffect;
  40979. React.useMemo = useMemo;
  40980. React.useMutationEffect = useMutationEffect;
  40981. React.useReducer = useReducer;
  40982. React.useRef = useRef;
  40983. React.useState = useState;
  40984. }
  40985. var React$2 = Object.freeze({
  40986. default: React
  40987. });
  40988. var React$3 = ( React$2 && React ) || React$2;
  40989. // TODO: decide on the top-level export form.
  40990. // This is hacky but makes it work with both Rollup and Jest.
  40991. var react = React$3.default || React$3;
  40992. module.exports = react;
  40993. })();
  40994. }
  40995. /***/ }),
  40996. /***/ "../../node_modules/react/index.js":
  40997. /*!*******************************************************!*\
  40998. !*** D:/Repos/Babylon.js/node_modules/react/index.js ***!
  40999. \*******************************************************/
  41000. /*! no static exports found */
  41001. /***/ (function(module, exports, __webpack_require__) {
  41002. "use strict";
  41003. if (false) {} else {
  41004. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  41005. }
  41006. /***/ }),
  41007. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  41008. /*!***************************************************************************************!*\
  41009. !*** D:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  41010. \***************************************************************************************/
  41011. /*! no static exports found */
  41012. /***/ (function(module, exports, __webpack_require__) {
  41013. "use strict";
  41014. /** @license React v0.11.3
  41015. * scheduler-tracing.development.js
  41016. *
  41017. * Copyright (c) Facebook, Inc. and its affiliates.
  41018. *
  41019. * This source code is licensed under the MIT license found in the
  41020. * LICENSE file in the root directory of this source tree.
  41021. */
  41022. if (true) {
  41023. (function() {
  41024. 'use strict';
  41025. Object.defineProperty(exports, '__esModule', { value: true });
  41026. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  41027. // In some cases, StrictMode should also double-render lifecycles.
  41028. // This can be confusing for tests though,
  41029. // And it can be bad for performance in production.
  41030. // This feature flag can be used to control the behavior:
  41031. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  41032. // replay the begin phase of a failed component inside invokeGuardedCallback.
  41033. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  41034. // Gather advanced timing metrics for Profiler subtrees.
  41035. // Trace which interactions trigger each commit.
  41036. var enableSchedulerTracing = true;
  41037. // Only used in www builds.
  41038. // Only used in www builds.
  41039. // React Fire: prevent the value and checked attributes from syncing
  41040. // with their related DOM properties
  41041. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  41042. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  41043. var DEFAULT_THREAD_ID = 0;
  41044. // Counters used to generate unique IDs.
  41045. var interactionIDCounter = 0;
  41046. var threadIDCounter = 0;
  41047. // Set of currently traced interactions.
  41048. // Interactions "stack"–
  41049. // Meaning that newly traced interactions are appended to the previously active set.
  41050. // When an interaction goes out of scope, the previous set (if any) is restored.
  41051. exports.__interactionsRef = null;
  41052. // Listener(s) to notify when interactions begin and end.
  41053. exports.__subscriberRef = null;
  41054. if (enableSchedulerTracing) {
  41055. exports.__interactionsRef = {
  41056. current: new Set()
  41057. };
  41058. exports.__subscriberRef = {
  41059. current: null
  41060. };
  41061. }
  41062. function unstable_clear(callback) {
  41063. if (!enableSchedulerTracing) {
  41064. return callback();
  41065. }
  41066. var prevInteractions = exports.__interactionsRef.current;
  41067. exports.__interactionsRef.current = new Set();
  41068. try {
  41069. return callback();
  41070. } finally {
  41071. exports.__interactionsRef.current = prevInteractions;
  41072. }
  41073. }
  41074. function unstable_getCurrent() {
  41075. if (!enableSchedulerTracing) {
  41076. return null;
  41077. } else {
  41078. return exports.__interactionsRef.current;
  41079. }
  41080. }
  41081. function unstable_getThreadID() {
  41082. return ++threadIDCounter;
  41083. }
  41084. function unstable_trace(name, timestamp, callback) {
  41085. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  41086. if (!enableSchedulerTracing) {
  41087. return callback();
  41088. }
  41089. var interaction = {
  41090. __count: 1,
  41091. id: interactionIDCounter++,
  41092. name: name,
  41093. timestamp: timestamp
  41094. };
  41095. var prevInteractions = exports.__interactionsRef.current;
  41096. // Traced interactions should stack/accumulate.
  41097. // To do that, clone the current interactions.
  41098. // The previous set will be restored upon completion.
  41099. var interactions = new Set(prevInteractions);
  41100. interactions.add(interaction);
  41101. exports.__interactionsRef.current = interactions;
  41102. var subscriber = exports.__subscriberRef.current;
  41103. var returnValue = void 0;
  41104. try {
  41105. if (subscriber !== null) {
  41106. subscriber.onInteractionTraced(interaction);
  41107. }
  41108. } finally {
  41109. try {
  41110. if (subscriber !== null) {
  41111. subscriber.onWorkStarted(interactions, threadID);
  41112. }
  41113. } finally {
  41114. try {
  41115. returnValue = callback();
  41116. } finally {
  41117. exports.__interactionsRef.current = prevInteractions;
  41118. try {
  41119. if (subscriber !== null) {
  41120. subscriber.onWorkStopped(interactions, threadID);
  41121. }
  41122. } finally {
  41123. interaction.__count--;
  41124. // If no async work was scheduled for this interaction,
  41125. // Notify subscribers that it's completed.
  41126. if (subscriber !== null && interaction.__count === 0) {
  41127. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41128. }
  41129. }
  41130. }
  41131. }
  41132. }
  41133. return returnValue;
  41134. }
  41135. function unstable_wrap(callback) {
  41136. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  41137. if (!enableSchedulerTracing) {
  41138. return callback;
  41139. }
  41140. var wrappedInteractions = exports.__interactionsRef.current;
  41141. var subscriber = exports.__subscriberRef.current;
  41142. if (subscriber !== null) {
  41143. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  41144. }
  41145. // Update the pending async work count for the current interactions.
  41146. // Update after calling subscribers in case of error.
  41147. wrappedInteractions.forEach(function (interaction) {
  41148. interaction.__count++;
  41149. });
  41150. var hasRun = false;
  41151. function wrapped() {
  41152. var prevInteractions = exports.__interactionsRef.current;
  41153. exports.__interactionsRef.current = wrappedInteractions;
  41154. subscriber = exports.__subscriberRef.current;
  41155. try {
  41156. var returnValue = void 0;
  41157. try {
  41158. if (subscriber !== null) {
  41159. subscriber.onWorkStarted(wrappedInteractions, threadID);
  41160. }
  41161. } finally {
  41162. try {
  41163. returnValue = callback.apply(undefined, arguments);
  41164. } finally {
  41165. exports.__interactionsRef.current = prevInteractions;
  41166. if (subscriber !== null) {
  41167. subscriber.onWorkStopped(wrappedInteractions, threadID);
  41168. }
  41169. }
  41170. }
  41171. return returnValue;
  41172. } finally {
  41173. if (!hasRun) {
  41174. // We only expect a wrapped function to be executed once,
  41175. // But in the event that it's executed more than once–
  41176. // Only decrement the outstanding interaction counts once.
  41177. hasRun = true;
  41178. // Update pending async counts for all wrapped interactions.
  41179. // If this was the last scheduled async work for any of them,
  41180. // Mark them as completed.
  41181. wrappedInteractions.forEach(function (interaction) {
  41182. interaction.__count--;
  41183. if (subscriber !== null && interaction.__count === 0) {
  41184. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41185. }
  41186. });
  41187. }
  41188. }
  41189. }
  41190. wrapped.cancel = function cancel() {
  41191. subscriber = exports.__subscriberRef.current;
  41192. try {
  41193. if (subscriber !== null) {
  41194. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  41195. }
  41196. } finally {
  41197. // Update pending async counts for all wrapped interactions.
  41198. // If this was the last scheduled async work for any of them,
  41199. // Mark them as completed.
  41200. wrappedInteractions.forEach(function (interaction) {
  41201. interaction.__count--;
  41202. if (subscriber && interaction.__count === 0) {
  41203. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41204. }
  41205. });
  41206. }
  41207. };
  41208. return wrapped;
  41209. }
  41210. var subscribers = null;
  41211. if (enableSchedulerTracing) {
  41212. subscribers = new Set();
  41213. }
  41214. function unstable_subscribe(subscriber) {
  41215. if (enableSchedulerTracing) {
  41216. subscribers.add(subscriber);
  41217. if (subscribers.size === 1) {
  41218. exports.__subscriberRef.current = {
  41219. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  41220. onInteractionTraced: onInteractionTraced,
  41221. onWorkCanceled: onWorkCanceled,
  41222. onWorkScheduled: onWorkScheduled,
  41223. onWorkStarted: onWorkStarted,
  41224. onWorkStopped: onWorkStopped
  41225. };
  41226. }
  41227. }
  41228. }
  41229. function unstable_unsubscribe(subscriber) {
  41230. if (enableSchedulerTracing) {
  41231. subscribers.delete(subscriber);
  41232. if (subscribers.size === 0) {
  41233. exports.__subscriberRef.current = null;
  41234. }
  41235. }
  41236. }
  41237. function onInteractionTraced(interaction) {
  41238. var didCatchError = false;
  41239. var caughtError = null;
  41240. subscribers.forEach(function (subscriber) {
  41241. try {
  41242. subscriber.onInteractionTraced(interaction);
  41243. } catch (error) {
  41244. if (!didCatchError) {
  41245. didCatchError = true;
  41246. caughtError = error;
  41247. }
  41248. }
  41249. });
  41250. if (didCatchError) {
  41251. throw caughtError;
  41252. }
  41253. }
  41254. function onInteractionScheduledWorkCompleted(interaction) {
  41255. var didCatchError = false;
  41256. var caughtError = null;
  41257. subscribers.forEach(function (subscriber) {
  41258. try {
  41259. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41260. } catch (error) {
  41261. if (!didCatchError) {
  41262. didCatchError = true;
  41263. caughtError = error;
  41264. }
  41265. }
  41266. });
  41267. if (didCatchError) {
  41268. throw caughtError;
  41269. }
  41270. }
  41271. function onWorkScheduled(interactions, threadID) {
  41272. var didCatchError = false;
  41273. var caughtError = null;
  41274. subscribers.forEach(function (subscriber) {
  41275. try {
  41276. subscriber.onWorkScheduled(interactions, threadID);
  41277. } catch (error) {
  41278. if (!didCatchError) {
  41279. didCatchError = true;
  41280. caughtError = error;
  41281. }
  41282. }
  41283. });
  41284. if (didCatchError) {
  41285. throw caughtError;
  41286. }
  41287. }
  41288. function onWorkStarted(interactions, threadID) {
  41289. var didCatchError = false;
  41290. var caughtError = null;
  41291. subscribers.forEach(function (subscriber) {
  41292. try {
  41293. subscriber.onWorkStarted(interactions, threadID);
  41294. } catch (error) {
  41295. if (!didCatchError) {
  41296. didCatchError = true;
  41297. caughtError = error;
  41298. }
  41299. }
  41300. });
  41301. if (didCatchError) {
  41302. throw caughtError;
  41303. }
  41304. }
  41305. function onWorkStopped(interactions, threadID) {
  41306. var didCatchError = false;
  41307. var caughtError = null;
  41308. subscribers.forEach(function (subscriber) {
  41309. try {
  41310. subscriber.onWorkStopped(interactions, threadID);
  41311. } catch (error) {
  41312. if (!didCatchError) {
  41313. didCatchError = true;
  41314. caughtError = error;
  41315. }
  41316. }
  41317. });
  41318. if (didCatchError) {
  41319. throw caughtError;
  41320. }
  41321. }
  41322. function onWorkCanceled(interactions, threadID) {
  41323. var didCatchError = false;
  41324. var caughtError = null;
  41325. subscribers.forEach(function (subscriber) {
  41326. try {
  41327. subscriber.onWorkCanceled(interactions, threadID);
  41328. } catch (error) {
  41329. if (!didCatchError) {
  41330. didCatchError = true;
  41331. caughtError = error;
  41332. }
  41333. }
  41334. });
  41335. if (didCatchError) {
  41336. throw caughtError;
  41337. }
  41338. }
  41339. exports.unstable_clear = unstable_clear;
  41340. exports.unstable_getCurrent = unstable_getCurrent;
  41341. exports.unstable_getThreadID = unstable_getThreadID;
  41342. exports.unstable_trace = unstable_trace;
  41343. exports.unstable_wrap = unstable_wrap;
  41344. exports.unstable_subscribe = unstable_subscribe;
  41345. exports.unstable_unsubscribe = unstable_unsubscribe;
  41346. })();
  41347. }
  41348. /***/ }),
  41349. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  41350. /*!*******************************************************************************!*\
  41351. !*** D:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  41352. \*******************************************************************************/
  41353. /*! no static exports found */
  41354. /***/ (function(module, exports, __webpack_require__) {
  41355. "use strict";
  41356. /* WEBPACK VAR INJECTION */(function(global) {/** @license React v0.11.3
  41357. * scheduler.development.js
  41358. *
  41359. * Copyright (c) Facebook, Inc. and its affiliates.
  41360. *
  41361. * This source code is licensed under the MIT license found in the
  41362. * LICENSE file in the root directory of this source tree.
  41363. */
  41364. if (true) {
  41365. (function() {
  41366. 'use strict';
  41367. Object.defineProperty(exports, '__esModule', { value: true });
  41368. /* eslint-disable no-var */
  41369. // TODO: Use symbols?
  41370. var ImmediatePriority = 1;
  41371. var UserBlockingPriority = 2;
  41372. var NormalPriority = 3;
  41373. var LowPriority = 4;
  41374. var IdlePriority = 5;
  41375. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  41376. // Math.pow(2, 30) - 1
  41377. // 0b111111111111111111111111111111
  41378. var maxSigned31BitInt = 1073741823;
  41379. // Times out immediately
  41380. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  41381. // Eventually times out
  41382. var USER_BLOCKING_PRIORITY = 250;
  41383. var NORMAL_PRIORITY_TIMEOUT = 5000;
  41384. var LOW_PRIORITY_TIMEOUT = 10000;
  41385. // Never times out
  41386. var IDLE_PRIORITY = maxSigned31BitInt;
  41387. // Callbacks are stored as a circular, doubly linked list.
  41388. var firstCallbackNode = null;
  41389. var currentDidTimeout = false;
  41390. var currentPriorityLevel = NormalPriority;
  41391. var currentEventStartTime = -1;
  41392. var currentExpirationTime = -1;
  41393. // This is set when a callback is being executed, to prevent re-entrancy.
  41394. var isExecutingCallback = false;
  41395. var isHostCallbackScheduled = false;
  41396. var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
  41397. function ensureHostCallbackIsScheduled() {
  41398. if (isExecutingCallback) {
  41399. // Don't schedule work yet; wait until the next time we yield.
  41400. return;
  41401. }
  41402. // Schedule the host callback using the earliest expiration in the list.
  41403. var expirationTime = firstCallbackNode.expirationTime;
  41404. if (!isHostCallbackScheduled) {
  41405. isHostCallbackScheduled = true;
  41406. } else {
  41407. // Cancel the existing host callback.
  41408. cancelHostCallback();
  41409. }
  41410. requestHostCallback(flushWork, expirationTime);
  41411. }
  41412. function flushFirstCallback() {
  41413. var flushedNode = firstCallbackNode;
  41414. // Remove the node from the list before calling the callback. That way the
  41415. // list is in a consistent state even if the callback throws.
  41416. var next = firstCallbackNode.next;
  41417. if (firstCallbackNode === next) {
  41418. // This is the last callback in the list.
  41419. firstCallbackNode = null;
  41420. next = null;
  41421. } else {
  41422. var lastCallbackNode = firstCallbackNode.previous;
  41423. firstCallbackNode = lastCallbackNode.next = next;
  41424. next.previous = lastCallbackNode;
  41425. }
  41426. flushedNode.next = flushedNode.previous = null;
  41427. // Now it's safe to call the callback.
  41428. var callback = flushedNode.callback;
  41429. var expirationTime = flushedNode.expirationTime;
  41430. var priorityLevel = flushedNode.priorityLevel;
  41431. var previousPriorityLevel = currentPriorityLevel;
  41432. var previousExpirationTime = currentExpirationTime;
  41433. currentPriorityLevel = priorityLevel;
  41434. currentExpirationTime = expirationTime;
  41435. var continuationCallback;
  41436. try {
  41437. continuationCallback = callback();
  41438. } finally {
  41439. currentPriorityLevel = previousPriorityLevel;
  41440. currentExpirationTime = previousExpirationTime;
  41441. }
  41442. // A callback may return a continuation. The continuation should be scheduled
  41443. // with the same priority and expiration as the just-finished callback.
  41444. if (typeof continuationCallback === 'function') {
  41445. var continuationNode = {
  41446. callback: continuationCallback,
  41447. priorityLevel: priorityLevel,
  41448. expirationTime: expirationTime,
  41449. next: null,
  41450. previous: null
  41451. };
  41452. // Insert the new callback into the list, sorted by its expiration. This is
  41453. // almost the same as the code in `scheduleCallback`, except the callback
  41454. // is inserted into the list *before* callbacks of equal expiration instead
  41455. // of after.
  41456. if (firstCallbackNode === null) {
  41457. // This is the first callback in the list.
  41458. firstCallbackNode = continuationNode.next = continuationNode.previous = continuationNode;
  41459. } else {
  41460. var nextAfterContinuation = null;
  41461. var node = firstCallbackNode;
  41462. do {
  41463. if (node.expirationTime >= expirationTime) {
  41464. // This callback expires at or after the continuation. We will insert
  41465. // the continuation *before* this callback.
  41466. nextAfterContinuation = node;
  41467. break;
  41468. }
  41469. node = node.next;
  41470. } while (node !== firstCallbackNode);
  41471. if (nextAfterContinuation === null) {
  41472. // No equal or lower priority callback was found, which means the new
  41473. // callback is the lowest priority callback in the list.
  41474. nextAfterContinuation = firstCallbackNode;
  41475. } else if (nextAfterContinuation === firstCallbackNode) {
  41476. // The new callback is the highest priority callback in the list.
  41477. firstCallbackNode = continuationNode;
  41478. ensureHostCallbackIsScheduled();
  41479. }
  41480. var previous = nextAfterContinuation.previous;
  41481. previous.next = nextAfterContinuation.previous = continuationNode;
  41482. continuationNode.next = nextAfterContinuation;
  41483. continuationNode.previous = previous;
  41484. }
  41485. }
  41486. }
  41487. function flushImmediateWork() {
  41488. if (
  41489. // Confirm we've exited the outer most event handler
  41490. currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {
  41491. isExecutingCallback = true;
  41492. try {
  41493. do {
  41494. flushFirstCallback();
  41495. } while (
  41496. // Keep flushing until there are no more immediate callbacks
  41497. firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority);
  41498. } finally {
  41499. isExecutingCallback = false;
  41500. if (firstCallbackNode !== null) {
  41501. // There's still work remaining. Request another callback.
  41502. ensureHostCallbackIsScheduled();
  41503. } else {
  41504. isHostCallbackScheduled = false;
  41505. }
  41506. }
  41507. }
  41508. }
  41509. function flushWork(didTimeout) {
  41510. isExecutingCallback = true;
  41511. var previousDidTimeout = currentDidTimeout;
  41512. currentDidTimeout = didTimeout;
  41513. try {
  41514. if (didTimeout) {
  41515. // Flush all the expired callbacks without yielding.
  41516. while (firstCallbackNode !== null) {
  41517. // Read the current time. Flush all the callbacks that expire at or
  41518. // earlier than that time. Then read the current time again and repeat.
  41519. // This optimizes for as few performance.now calls as possible.
  41520. var currentTime = exports.unstable_now();
  41521. if (firstCallbackNode.expirationTime <= currentTime) {
  41522. do {
  41523. flushFirstCallback();
  41524. } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime);
  41525. continue;
  41526. }
  41527. break;
  41528. }
  41529. } else {
  41530. // Keep flushing callbacks until we run out of time in the frame.
  41531. if (firstCallbackNode !== null) {
  41532. do {
  41533. flushFirstCallback();
  41534. } while (firstCallbackNode !== null && !shouldYieldToHost());
  41535. }
  41536. }
  41537. } finally {
  41538. isExecutingCallback = false;
  41539. currentDidTimeout = previousDidTimeout;
  41540. if (firstCallbackNode !== null) {
  41541. // There's still work remaining. Request another callback.
  41542. ensureHostCallbackIsScheduled();
  41543. } else {
  41544. isHostCallbackScheduled = false;
  41545. }
  41546. // Before exiting, flush all the immediate work that was scheduled.
  41547. flushImmediateWork();
  41548. }
  41549. }
  41550. function unstable_runWithPriority(priorityLevel, eventHandler) {
  41551. switch (priorityLevel) {
  41552. case ImmediatePriority:
  41553. case UserBlockingPriority:
  41554. case NormalPriority:
  41555. case LowPriority:
  41556. case IdlePriority:
  41557. break;
  41558. default:
  41559. priorityLevel = NormalPriority;
  41560. }
  41561. var previousPriorityLevel = currentPriorityLevel;
  41562. var previousEventStartTime = currentEventStartTime;
  41563. currentPriorityLevel = priorityLevel;
  41564. currentEventStartTime = exports.unstable_now();
  41565. try {
  41566. return eventHandler();
  41567. } finally {
  41568. currentPriorityLevel = previousPriorityLevel;
  41569. currentEventStartTime = previousEventStartTime;
  41570. // Before exiting, flush all the immediate work that was scheduled.
  41571. flushImmediateWork();
  41572. }
  41573. }
  41574. function unstable_wrapCallback(callback) {
  41575. var parentPriorityLevel = currentPriorityLevel;
  41576. return function () {
  41577. // This is a fork of runWithPriority, inlined for performance.
  41578. var previousPriorityLevel = currentPriorityLevel;
  41579. var previousEventStartTime = currentEventStartTime;
  41580. currentPriorityLevel = parentPriorityLevel;
  41581. currentEventStartTime = exports.unstable_now();
  41582. try {
  41583. return callback.apply(this, arguments);
  41584. } finally {
  41585. currentPriorityLevel = previousPriorityLevel;
  41586. currentEventStartTime = previousEventStartTime;
  41587. flushImmediateWork();
  41588. }
  41589. };
  41590. }
  41591. function unstable_scheduleCallback(callback, deprecated_options) {
  41592. var startTime = currentEventStartTime !== -1 ? currentEventStartTime : exports.unstable_now();
  41593. var expirationTime;
  41594. if (typeof deprecated_options === 'object' && deprecated_options !== null && typeof deprecated_options.timeout === 'number') {
  41595. // FIXME: Remove this branch once we lift expiration times out of React.
  41596. expirationTime = startTime + deprecated_options.timeout;
  41597. } else {
  41598. switch (currentPriorityLevel) {
  41599. case ImmediatePriority:
  41600. expirationTime = startTime + IMMEDIATE_PRIORITY_TIMEOUT;
  41601. break;
  41602. case UserBlockingPriority:
  41603. expirationTime = startTime + USER_BLOCKING_PRIORITY;
  41604. break;
  41605. case IdlePriority:
  41606. expirationTime = startTime + IDLE_PRIORITY;
  41607. break;
  41608. case LowPriority:
  41609. expirationTime = startTime + LOW_PRIORITY_TIMEOUT;
  41610. break;
  41611. case NormalPriority:
  41612. default:
  41613. expirationTime = startTime + NORMAL_PRIORITY_TIMEOUT;
  41614. }
  41615. }
  41616. var newNode = {
  41617. callback: callback,
  41618. priorityLevel: currentPriorityLevel,
  41619. expirationTime: expirationTime,
  41620. next: null,
  41621. previous: null
  41622. };
  41623. // Insert the new callback into the list, ordered first by expiration, then
  41624. // by insertion. So the new callback is inserted any other callback with
  41625. // equal expiration.
  41626. if (firstCallbackNode === null) {
  41627. // This is the first callback in the list.
  41628. firstCallbackNode = newNode.next = newNode.previous = newNode;
  41629. ensureHostCallbackIsScheduled();
  41630. } else {
  41631. var next = null;
  41632. var node = firstCallbackNode;
  41633. do {
  41634. if (node.expirationTime > expirationTime) {
  41635. // The new callback expires before this one.
  41636. next = node;
  41637. break;
  41638. }
  41639. node = node.next;
  41640. } while (node !== firstCallbackNode);
  41641. if (next === null) {
  41642. // No callback with a later expiration was found, which means the new
  41643. // callback has the latest expiration in the list.
  41644. next = firstCallbackNode;
  41645. } else if (next === firstCallbackNode) {
  41646. // The new callback has the earliest expiration in the entire list.
  41647. firstCallbackNode = newNode;
  41648. ensureHostCallbackIsScheduled();
  41649. }
  41650. var previous = next.previous;
  41651. previous.next = next.previous = newNode;
  41652. newNode.next = next;
  41653. newNode.previous = previous;
  41654. }
  41655. return newNode;
  41656. }
  41657. function unstable_cancelCallback(callbackNode) {
  41658. var next = callbackNode.next;
  41659. if (next === null) {
  41660. // Already cancelled.
  41661. return;
  41662. }
  41663. if (next === callbackNode) {
  41664. // This is the only scheduled callback. Clear the list.
  41665. firstCallbackNode = null;
  41666. } else {
  41667. // Remove the callback from its position in the list.
  41668. if (callbackNode === firstCallbackNode) {
  41669. firstCallbackNode = next;
  41670. }
  41671. var previous = callbackNode.previous;
  41672. previous.next = next;
  41673. next.previous = previous;
  41674. }
  41675. callbackNode.next = callbackNode.previous = null;
  41676. }
  41677. function unstable_getCurrentPriorityLevel() {
  41678. return currentPriorityLevel;
  41679. }
  41680. function unstable_shouldYield() {
  41681. return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());
  41682. }
  41683. // The remaining code is essentially a polyfill for requestIdleCallback. It
  41684. // works by scheduling a requestAnimationFrame, storing the time for the start
  41685. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  41686. // Within the postMessage handler do as much work as possible until time + frame
  41687. // rate. By separating the idle call into a separate event tick we ensure that
  41688. // layout, paint and other browser work is counted against the available time.
  41689. // The frame rate is dynamically adjusted.
  41690. // We capture a local reference to any global, in case it gets polyfilled after
  41691. // this module is initially evaluated. We want to be using a
  41692. // consistent implementation.
  41693. var localDate = Date;
  41694. // This initialization code may run even on server environments if a component
  41695. // just imports ReactDOM (e.g. for findDOMNode). Some environments might not
  41696. // have setTimeout or clearTimeout. However, we always expect them to be defined
  41697. // on the client. https://github.com/facebook/react/pull/13088
  41698. var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  41699. var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  41700. // We don't expect either of these to necessarily be defined, but we will error
  41701. // later if they are missing on the client.
  41702. var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
  41703. var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;
  41704. // requestAnimationFrame does not run when the tab is in the background. If
  41705. // we're backgrounded we prefer for that work to happen so that the page
  41706. // continues to load in the background. So we also schedule a 'setTimeout' as
  41707. // a fallback.
  41708. // TODO: Need a better heuristic for backgrounded work.
  41709. var ANIMATION_FRAME_TIMEOUT = 100;
  41710. var rAFID;
  41711. var rAFTimeoutID;
  41712. var requestAnimationFrameWithTimeout = function (callback) {
  41713. // schedule rAF and also a setTimeout
  41714. rAFID = localRequestAnimationFrame(function (timestamp) {
  41715. // cancel the setTimeout
  41716. localClearTimeout(rAFTimeoutID);
  41717. callback(timestamp);
  41718. });
  41719. rAFTimeoutID = localSetTimeout(function () {
  41720. // cancel the requestAnimationFrame
  41721. localCancelAnimationFrame(rAFID);
  41722. callback(exports.unstable_now());
  41723. }, ANIMATION_FRAME_TIMEOUT);
  41724. };
  41725. if (hasNativePerformanceNow) {
  41726. var Performance = performance;
  41727. exports.unstable_now = function () {
  41728. return Performance.now();
  41729. };
  41730. } else {
  41731. exports.unstable_now = function () {
  41732. return localDate.now();
  41733. };
  41734. }
  41735. var requestHostCallback;
  41736. var cancelHostCallback;
  41737. var shouldYieldToHost;
  41738. var globalValue = null;
  41739. if (typeof window !== 'undefined') {
  41740. globalValue = window;
  41741. } else if (typeof global !== 'undefined') {
  41742. globalValue = global;
  41743. }
  41744. if (globalValue && globalValue._schedMock) {
  41745. // Dynamic injection, only for testing purposes.
  41746. var globalImpl = globalValue._schedMock;
  41747. requestHostCallback = globalImpl[0];
  41748. cancelHostCallback = globalImpl[1];
  41749. shouldYieldToHost = globalImpl[2];
  41750. exports.unstable_now = globalImpl[3];
  41751. } else if (
  41752. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  41753. // implementation using setTimeout.
  41754. typeof window === 'undefined' ||
  41755. // Check if MessageChannel is supported, too.
  41756. typeof MessageChannel !== 'function') {
  41757. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  41758. // fallback to a naive implementation.
  41759. var _callback = null;
  41760. var _flushCallback = function (didTimeout) {
  41761. if (_callback !== null) {
  41762. try {
  41763. _callback(didTimeout);
  41764. } finally {
  41765. _callback = null;
  41766. }
  41767. }
  41768. };
  41769. requestHostCallback = function (cb, ms) {
  41770. if (_callback !== null) {
  41771. // Protect against re-entrancy.
  41772. setTimeout(requestHostCallback, 0, cb);
  41773. } else {
  41774. _callback = cb;
  41775. setTimeout(_flushCallback, 0, false);
  41776. }
  41777. };
  41778. cancelHostCallback = function () {
  41779. _callback = null;
  41780. };
  41781. shouldYieldToHost = function () {
  41782. return false;
  41783. };
  41784. } else {
  41785. if (typeof console !== 'undefined') {
  41786. // TODO: Remove fb.me link
  41787. if (typeof localRequestAnimationFrame !== 'function') {
  41788. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  41789. }
  41790. if (typeof localCancelAnimationFrame !== 'function') {
  41791. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  41792. }
  41793. }
  41794. var scheduledHostCallback = null;
  41795. var isMessageEventScheduled = false;
  41796. var timeoutTime = -1;
  41797. var isAnimationFrameScheduled = false;
  41798. var isFlushingHostCallback = false;
  41799. var frameDeadline = 0;
  41800. // We start out assuming that we run at 30fps but then the heuristic tracking
  41801. // will adjust this value to a faster fps if we get more frequent animation
  41802. // frames.
  41803. var previousFrameTime = 33;
  41804. var activeFrameTime = 33;
  41805. shouldYieldToHost = function () {
  41806. return frameDeadline <= exports.unstable_now();
  41807. };
  41808. // We use the postMessage trick to defer idle work until after the repaint.
  41809. var channel = new MessageChannel();
  41810. var port = channel.port2;
  41811. channel.port1.onmessage = function (event) {
  41812. isMessageEventScheduled = false;
  41813. var prevScheduledCallback = scheduledHostCallback;
  41814. var prevTimeoutTime = timeoutTime;
  41815. scheduledHostCallback = null;
  41816. timeoutTime = -1;
  41817. var currentTime = exports.unstable_now();
  41818. var didTimeout = false;
  41819. if (frameDeadline - currentTime <= 0) {
  41820. // There's no time left in this idle period. Check if the callback has
  41821. // a timeout and whether it's been exceeded.
  41822. if (prevTimeoutTime !== -1 && prevTimeoutTime <= currentTime) {
  41823. // Exceeded the timeout. Invoke the callback even though there's no
  41824. // time left.
  41825. didTimeout = true;
  41826. } else {
  41827. // No timeout.
  41828. if (!isAnimationFrameScheduled) {
  41829. // Schedule another animation callback so we retry later.
  41830. isAnimationFrameScheduled = true;
  41831. requestAnimationFrameWithTimeout(animationTick);
  41832. }
  41833. // Exit without invoking the callback.
  41834. scheduledHostCallback = prevScheduledCallback;
  41835. timeoutTime = prevTimeoutTime;
  41836. return;
  41837. }
  41838. }
  41839. if (prevScheduledCallback !== null) {
  41840. isFlushingHostCallback = true;
  41841. try {
  41842. prevScheduledCallback(didTimeout);
  41843. } finally {
  41844. isFlushingHostCallback = false;
  41845. }
  41846. }
  41847. };
  41848. var animationTick = function (rafTime) {
  41849. if (scheduledHostCallback !== null) {
  41850. // Eagerly schedule the next animation callback at the beginning of the
  41851. // frame. If the scheduler queue is not empty at the end of the frame, it
  41852. // will continue flushing inside that callback. If the queue *is* empty,
  41853. // then it will exit immediately. Posting the callback at the start of the
  41854. // frame ensures it's fired within the earliest possible frame. If we
  41855. // waited until the end of the frame to post the callback, we risk the
  41856. // browser skipping a frame and not firing the callback until the frame
  41857. // after that.
  41858. requestAnimationFrameWithTimeout(animationTick);
  41859. } else {
  41860. // No pending work. Exit.
  41861. isAnimationFrameScheduled = false;
  41862. return;
  41863. }
  41864. var nextFrameTime = rafTime - frameDeadline + activeFrameTime;
  41865. if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {
  41866. if (nextFrameTime < 8) {
  41867. // Defensive coding. We don't support higher frame rates than 120hz.
  41868. // If the calculated frame time gets lower than 8, it is probably a bug.
  41869. nextFrameTime = 8;
  41870. }
  41871. // If one frame goes long, then the next one can be short to catch up.
  41872. // If two frames are short in a row, then that's an indication that we
  41873. // actually have a higher frame rate than what we're currently optimizing.
  41874. // We adjust our heuristic dynamically accordingly. For example, if we're
  41875. // running on 120hz display or 90hz VR display.
  41876. // Take the max of the two in case one of them was an anomaly due to
  41877. // missed frame deadlines.
  41878. activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;
  41879. } else {
  41880. previousFrameTime = nextFrameTime;
  41881. }
  41882. frameDeadline = rafTime + activeFrameTime;
  41883. if (!isMessageEventScheduled) {
  41884. isMessageEventScheduled = true;
  41885. port.postMessage(undefined);
  41886. }
  41887. };
  41888. requestHostCallback = function (callback, absoluteTimeout) {
  41889. scheduledHostCallback = callback;
  41890. timeoutTime = absoluteTimeout;
  41891. if (isFlushingHostCallback || absoluteTimeout < 0) {
  41892. // Don't wait for the next frame. Continue working ASAP, in a new event.
  41893. port.postMessage(undefined);
  41894. } else if (!isAnimationFrameScheduled) {
  41895. // If rAF didn't already schedule one, we need to schedule a frame.
  41896. // TODO: If this rAF doesn't materialize because the browser throttles, we
  41897. // might want to still have setTimeout trigger rIC as a backup to ensure
  41898. // that we keep performing work.
  41899. isAnimationFrameScheduled = true;
  41900. requestAnimationFrameWithTimeout(animationTick);
  41901. }
  41902. };
  41903. cancelHostCallback = function () {
  41904. scheduledHostCallback = null;
  41905. isMessageEventScheduled = false;
  41906. timeoutTime = -1;
  41907. };
  41908. }
  41909. exports.unstable_ImmediatePriority = ImmediatePriority;
  41910. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  41911. exports.unstable_NormalPriority = NormalPriority;
  41912. exports.unstable_IdlePriority = IdlePriority;
  41913. exports.unstable_LowPriority = LowPriority;
  41914. exports.unstable_runWithPriority = unstable_runWithPriority;
  41915. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  41916. exports.unstable_cancelCallback = unstable_cancelCallback;
  41917. exports.unstable_wrapCallback = unstable_wrapCallback;
  41918. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  41919. exports.unstable_shouldYield = unstable_shouldYield;
  41920. })();
  41921. }
  41922. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  41923. /***/ }),
  41924. /***/ "../../node_modules/scheduler/index.js":
  41925. /*!***********************************************************!*\
  41926. !*** D:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  41927. \***********************************************************/
  41928. /*! no static exports found */
  41929. /***/ (function(module, exports, __webpack_require__) {
  41930. "use strict";
  41931. if (false) {} else {
  41932. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  41933. }
  41934. /***/ }),
  41935. /***/ "../../node_modules/scheduler/tracing.js":
  41936. /*!*************************************************************!*\
  41937. !*** D:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  41938. \*************************************************************/
  41939. /*! no static exports found */
  41940. /***/ (function(module, exports, __webpack_require__) {
  41941. "use strict";
  41942. if (false) {} else {
  41943. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  41944. }
  41945. /***/ }),
  41946. /***/ "../../node_modules/storm-react-diagrams/dist/main.js":
  41947. /*!**************************************************************************!*\
  41948. !*** D:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/main.js ***!
  41949. \**************************************************************************/
  41950. /*! no static exports found */
  41951. /***/ (function(module, exports, __webpack_require__) {
  41952. (function webpackUniversalModuleDefinition(root,factory){if(true)module.exports=factory(__webpack_require__(/*! lodash */ "../../node_modules/lodash/lodash.js"),__webpack_require__(/*! react */ "../../node_modules/react/index.js"));else {}})(window,function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.r=function(exports){Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=45)}([function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(module,exports){var DiagonalMovement={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4};module.exports=DiagonalMovement},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget=function(_super){__extends(BaseWidget,_super);function BaseWidget(name,props){var _this=_super.call(this,props)||this;_this.className=name;return _this}BaseWidget.prototype.bem=function(selector){return(this.props.baseClass||this.className)+selector+" "};BaseWidget.prototype.getClassName=function(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")};BaseWidget.prototype.getProps=function(){return __assign({},this.props.extraProps||{},{className:this.getClassName()})};return BaseWidget}(React.Component);exports.BaseWidget=BaseWidget},function(module,exports){function backtrace(node){var path=[[node.x,node.y]];while(node.parent){node=node.parent;path.push([node.x,node.y])}return path.reverse()}exports.backtrace=backtrace;function biBacktrace(nodeA,nodeB){var pathA=backtrace(nodeA),pathB=backtrace(nodeB);return pathA.concat(pathB.reverse())}exports.biBacktrace=biBacktrace;function pathLength(path){var i,sum=0,a,b,dx,dy;for(i=1;i<path.length;++i){a=path[i-1];b=path[i];dx=a[0]-b[0];dy=a[1]-b[1];sum+=Math.sqrt(dx*dx+dy*dy)}return sum}exports.pathLength=pathLength;function interpolate(x0,y0,x1,y1){var abs=Math.abs,line=[],sx,sy,dx,dy,err,e2;dx=abs(x1-x0);dy=abs(y1-y0);sx=x0<x1?1:-1;sy=y0<y1?1:-1;err=dx-dy;while(true){line.push([x0,y0]);if(x0===x1&&y0===y1){break}e2=2*err;if(e2>-dy){err=err-dy;x0=x0+sx}if(e2<dx){err=err+dx;y0=y0+sy}}return line}exports.interpolate=interpolate;function expandPath(path){var expanded=[],len=path.length,coord0,coord1,interpolated,interpolatedLen,i,j;if(len<2){return expanded}for(i=0;i<len-1;++i){coord0=path[i];coord1=path[i+1];interpolated=interpolate(coord0[0],coord0[1],coord1[0],coord1[1]);interpolatedLen=interpolated.length;for(j=0;j<interpolatedLen-1;++j){expanded.push(interpolated[j])}}expanded.push(path[len-1]);return expanded}exports.expandPath=expandPath;function smoothenPath(grid,path){var len=path.length,x0=path[0][0],y0=path[0][1],x1=path[len-1][0],y1=path[len-1][1],sx,sy,ex,ey,newPath,i,j,coord,line,testCoord,blocked;sx=x0;sy=y0;newPath=[[sx,sy]];for(i=2;i<len;++i){coord=path[i];ex=coord[0];ey=coord[1];line=interpolate(sx,sy,ex,ey);blocked=false;for(j=1;j<line.length;++j){testCoord=line[j];if(!grid.isWalkableAt(testCoord[0],testCoord[1])){blocked=true;break}}if(blocked){lastValidCoord=path[i-1];newPath.push(lastValidCoord);sx=lastValidCoord[0];sy=lastValidCoord[1]}}newPath.push([x1,y1]);return newPath}exports.smoothenPath=smoothenPath;function compressPath(path){if(path.length<3){return path}var compressed=[],sx=path[0][0],sy=path[0][1],px=path[1][0],py=path[1][1],dx=px-sx,dy=py-sy,lx,ly,ldx,ldy,sq,i;sq=Math.sqrt(dx*dx+dy*dy);dx/=sq;dy/=sq;compressed.push([sx,sy]);for(i=2;i<path.length;i++){lx=px;ly=py;ldx=dx;ldy=dy;px=path[i][0];py=path[i][1];dx=px-lx;dy=py-ly;sq=Math.sqrt(dx*dx+dy*dy);dx/=sq;dy/=sq;if(dx!==ldx||dy!==ldy){compressed.push([lx,ly])}}compressed.push([px,py]);return compressed}exports.compressPath=compressPath},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var PointModel=function(_super){__extends(PointModel,_super);function PointModel(link,points){var _this=_super.call(this)||this;_this.x=points.x;_this.y=points.y;_this.parent=link;return _this}PointModel.prototype.getSelectedEntities=function(){if(_super.prototype.isSelected.call(this)&&!this.isConnectedToPort()){return[this]}return[]};PointModel.prototype.isConnectedToPort=function(){return this.parent.getPortForPoint(this)!==null};PointModel.prototype.getLink=function(){return this.getParent()};PointModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.x=ob.x;this.y=ob.y};PointModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{x:this.x,y:this.y})};PointModel.prototype.remove=function(){if(this.parent){this.parent.removePoint(this)}_super.prototype.remove.call(this)};PointModel.prototype.updateLocation=function(points){this.x=points.x;this.y=points.y};PointModel.prototype.getX=function(){return this.x};PointModel.prototype.getY=function(){return this.y};PointModel.prototype.isLocked=function(){return _super.prototype.isLocked.call(this)||this.getParent().isLocked()};return PointModel}(BaseModel_1.BaseModel);exports.PointModel=PointModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var BaseEntity_1=__webpack_require__(13);var _=__webpack_require__(0);var BaseModel=function(_super){__extends(BaseModel,_super);function BaseModel(type,id){var _this=_super.call(this,id)||this;_this.type=type;_this.selected=false;return _this}BaseModel.prototype.getParent=function(){return this.parent};BaseModel.prototype.setParent=function(parent){this.parent=parent};BaseModel.prototype.getSelectedEntities=function(){if(this.isSelected()){return[this]}return[]};BaseModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.type=ob.type;this.selected=ob.selected};BaseModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{type:this.type,selected:this.selected})};BaseModel.prototype.getType=function(){return this.type};BaseModel.prototype.getID=function(){return this.id};BaseModel.prototype.isSelected=function(){return this.selected};BaseModel.prototype.setSelected=function(selected){if(selected===void 0){selected=true}this.selected=selected;this.iterateListeners(function(listener,event){if(listener.selectionChanged){listener.selectionChanged(__assign({},event,{isSelected:selected}))}})};BaseModel.prototype.remove=function(){this.iterateListeners(function(listener,event){if(listener.entityRemoved){listener.entityRemoved(event)}})};return BaseModel}(BaseEntity_1.BaseEntity);exports.BaseModel=BaseModel},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var closest=__webpack_require__(70);var PathFinding_1=__webpack_require__(16);var Path=__webpack_require__(51);var Toolkit=function(){function Toolkit(){}Toolkit.UID=function(){if(Toolkit.TESTING){Toolkit.TESTING_UID++;return""+Toolkit.TESTING_UID}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=Math.random()*16|0;var v=c==="x"?r:r&3|8;return v.toString(16)})};Toolkit.closest=function(element,selector){if(document.body.closest){return element.closest(selector)}return closest(element,selector)};Toolkit.generateLinePath=function(firstPoint,lastPoint){return"M"+firstPoint.x+","+firstPoint.y+" L "+lastPoint.x+","+lastPoint.y};Toolkit.generateCurvePath=function(firstPoint,lastPoint,curvy){if(curvy===void 0){curvy=0}var isHorizontal=Math.abs(firstPoint.x-lastPoint.x)>Math.abs(firstPoint.y-lastPoint.y);var curvyX=isHorizontal?curvy:0;var curvyY=isHorizontal?0:curvy;return"M"+firstPoint.x+","+firstPoint.y+" C "+(firstPoint.x+curvyX)+","+(firstPoint.y+curvyY)+"\n "+(lastPoint.x-curvyX)+","+(lastPoint.y-curvyY)+" "+lastPoint.x+","+lastPoint.y};Toolkit.generateDynamicPath=function(pathCoords){var path=Path();path=path.moveto(pathCoords[0][0]*PathFinding_1.ROUTING_SCALING_FACTOR,pathCoords[0][1]*PathFinding_1.ROUTING_SCALING_FACTOR);pathCoords.slice(1).forEach(function(coords){path=path.lineto(coords[0]*PathFinding_1.ROUTING_SCALING_FACTOR,coords[1]*PathFinding_1.ROUTING_SCALING_FACTOR)});return path.print()};Toolkit.TESTING=false;Toolkit.TESTING_UID=0;return Toolkit}();exports.Toolkit=Toolkit},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory=function(){function AbstractFactory(name){this.type=name}AbstractFactory.prototype.getType=function(){return this.type};return AbstractFactory}();exports.AbstractFactory=AbstractFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var NodeModel=function(_super){__extends(NodeModel,_super);function NodeModel(nodeType,id){if(nodeType===void 0){nodeType="default"}var _this=_super.call(this,nodeType,id)||this;_this.x=0;_this.y=0;_this.extras={};_this.ports={};return _this}NodeModel.prototype.setPosition=function(x,y){var oldX=this.x;var oldY=this.y;_.forEach(this.ports,function(port){_.forEach(port.getLinks(),function(link){var point=link.getPointForPort(port);point.x=point.x+x-oldX;point.y=point.y+y-oldY})});this.x=x;this.y=y};NodeModel.prototype.getSelectedEntities=function(){var entities=_super.prototype.getSelectedEntities.call(this);if(this.isSelected()){_.forEach(this.ports,function(port){entities=entities.concat(_.map(port.getLinks(),function(link){return link.getPointForPort(port)}))})}return entities};NodeModel.prototype.deSerialize=function(ob,engine){var _this=this;_super.prototype.deSerialize.call(this,ob,engine);this.x=ob.x;this.y=ob.y;this.extras=ob.extras;_.forEach(ob.ports,function(port){var portOb=engine.getPortFactory(port.type).getNewInstance();portOb.deSerialize(port,engine);_this.addPort(portOb)})};NodeModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{x:this.x,y:this.y,extras:this.extras,ports:_.map(this.ports,function(port){return port.serialize()})})};NodeModel.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}clone.ports={};_.forEach(this.ports,function(port){clone.addPort(port.clone(lookupTable))})};NodeModel.prototype.remove=function(){_super.prototype.remove.call(this);_.forEach(this.ports,function(port){_.forEach(port.getLinks(),function(link){link.remove()})})};NodeModel.prototype.getPortFromID=function(id){for(var i in this.ports){if(this.ports[i].id===id){return this.ports[i]}}return null};NodeModel.prototype.getPort=function(name){return this.ports[name]};NodeModel.prototype.getPorts=function(){return this.ports};NodeModel.prototype.removePort=function(port){if(this.ports[port.name]){this.ports[port.name].setParent(null);delete this.ports[port.name]}};NodeModel.prototype.addPort=function(port){port.setParent(this);this.ports[port.name]=port;return port};NodeModel.prototype.updateDimensions=function(_a){var width=_a.width,height=_a.height;this.width=width;this.height=height};return NodeModel}(BaseModel_1.BaseModel);exports.NodeModel=NodeModel},function(module,exports){module.exports={manhattan:function(dx,dy){return dx+dy},euclidean:function(dx,dy){return Math.sqrt(dx*dx+dy*dy)},octile:function(dx,dy){var F=Math.SQRT2-1;return dx<dy?F*dx+dy:F*dy+dx},chebyshev:function(dx,dy){return Math.max(dx,dy)}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var BaseAction=function(){function BaseAction(mouseX,mouseY){this.mouseX=mouseX;this.mouseY=mouseY;this.ms=(new Date).getTime()}return BaseAction}();exports.BaseAction=BaseAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var PortModel=function(_super){__extends(PortModel,_super);function PortModel(name,type,id,maximumLinks){var _this=_super.call(this,type,id)||this;_this.name=name;_this.links={};_this.maximumLinks=maximumLinks;return _this}PortModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.name=ob.name;this.maximumLinks=ob.maximumLinks};PortModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{name:this.name,parentNode:this.parent.id,links:_.map(this.links,function(link){return link.id}),maximumLinks:this.maximumLinks})};PortModel.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}clone.links={};clone.parentNode=this.getParent().clone(lookupTable)};PortModel.prototype.getNode=function(){return this.getParent()};PortModel.prototype.getName=function(){return this.name};PortModel.prototype.getMaximumLinks=function(){return this.maximumLinks};PortModel.prototype.setMaximumLinks=function(maximumLinks){this.maximumLinks=maximumLinks};PortModel.prototype.removeLink=function(link){delete this.links[link.getID()]};PortModel.prototype.addLink=function(link){this.links[link.getID()]=link};PortModel.prototype.getLinks=function(){return this.links};PortModel.prototype.createLinkModel=function(){if(_.isFinite(this.maximumLinks)){var numberOfLinks=_.size(this.links);if(this.maximumLinks===1&&numberOfLinks>=1){return _.values(this.links)[0]}else if(numberOfLinks>=this.maximumLinks){return null}}return null};PortModel.prototype.updateCoords=function(_a){var x=_a.x,y=_a.y,width=_a.width,height=_a.height;this.x=x;this.y=y;this.width=width;this.height=height};PortModel.prototype.canLinkToPort=function(port){return true};PortModel.prototype.isLocked=function(){return _super.prototype.isLocked.call(this)||this.getParent().isLocked()};return PortModel}(BaseModel_1.BaseModel);exports.PortModel=PortModel},function(module,exports,__webpack_require__){"use strict";var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var Toolkit_1=__webpack_require__(7);var _=__webpack_require__(0);var BaseEntity=function(){function BaseEntity(id){this.listeners={};this.id=id||Toolkit_1.Toolkit.UID();this.locked=false}BaseEntity.prototype.getID=function(){return this.id};BaseEntity.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}};BaseEntity.prototype.clone=function(lookupTable){if(lookupTable===void 0){lookupTable={}}if(lookupTable[this.id]){return lookupTable[this.id]}var clone=_.clone(this);clone.id=Toolkit_1.Toolkit.UID();clone.clearListeners();lookupTable[this.id]=clone;this.doClone(lookupTable,clone);return clone};BaseEntity.prototype.clearListeners=function(){this.listeners={}};BaseEntity.prototype.deSerialize=function(data,engine){this.id=data.id};BaseEntity.prototype.serialize=function(){return{id:this.id}};BaseEntity.prototype.iterateListeners=function(cb){var event={id:Toolkit_1.Toolkit.UID(),firing:true,entity:this,stopPropagation:function(){event.firing=false}};for(var i in this.listeners){if(this.listeners.hasOwnProperty(i)){if(!event.firing){return}cb(this.listeners[i],event)}}};BaseEntity.prototype.removeListener=function(listener){if(this.listeners[listener]){delete this.listeners[listener];return true}return false};BaseEntity.prototype.addListener=function(listener){var uid=Toolkit_1.Toolkit.UID();this.listeners[uid]=listener;return uid};BaseEntity.prototype.isLocked=function(){return this.locked};BaseEntity.prototype.setLocked=function(locked){if(locked===void 0){locked=true}this.locked=locked;this.iterateListeners(function(listener,event){if(listener.lockChanged){listener.lockChanged(__assign({},event,{locked:locked}))}})};return BaseEntity}();exports.BaseEntity=BaseEntity},function(module,exports,__webpack_require__){var Heap=__webpack_require__(15);var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var DiagonalMovement=__webpack_require__(2);function JumpPointFinderBase(opt){opt=opt||{};this.heuristic=opt.heuristic||Heuristic.manhattan;this.trackJumpRecursion=opt.trackJumpRecursion||false}JumpPointFinderBase.prototype.findPath=function(startX,startY,endX,endY,grid){var openList=this.openList=new Heap(function(nodeA,nodeB){return nodeA.f-nodeB.f}),startNode=this.startNode=grid.getNodeAt(startX,startY),endNode=this.endNode=grid.getNodeAt(endX,endY),node;this.grid=grid;startNode.g=0;startNode.f=0;openList.push(startNode);startNode.opened=true;while(!openList.empty()){node=openList.pop();node.closed=true;if(node===endNode){return Util.expandPath(Util.backtrace(endNode))}this._identifySuccessors(node)}return[]};JumpPointFinderBase.prototype._identifySuccessors=function(node){var grid=this.grid,heuristic=this.heuristic,openList=this.openList,endX=this.endNode.x,endY=this.endNode.y,neighbors,neighbor,jumpPoint,i,l,x=node.x,y=node.y,jx,jy,dx,dy,d,ng,jumpNode,abs=Math.abs,max=Math.max;neighbors=this._findNeighbors(node);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];jumpPoint=this._jump(neighbor[0],neighbor[1],x,y);if(jumpPoint){jx=jumpPoint[0];jy=jumpPoint[1];jumpNode=grid.getNodeAt(jx,jy);if(jumpNode.closed){continue}d=Heuristic.octile(abs(jx-x),abs(jy-y));ng=node.g+d;if(!jumpNode.opened||ng<jumpNode.g){jumpNode.g=ng;jumpNode.h=jumpNode.h||heuristic(abs(jx-endX),abs(jy-endY));jumpNode.f=jumpNode.g+jumpNode.h;jumpNode.parent=node;if(!jumpNode.opened){openList.push(jumpNode);jumpNode.opened=true}else{openList.updateItem(jumpNode)}}}}};module.exports=JumpPointFinderBase},function(module,exports,__webpack_require__){module.exports=__webpack_require__(66)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var PF=__webpack_require__(68);exports.ROUTING_SCALING_FACTOR=5;var pathFinderInstance=new PF.JumpPointFinder({heuristic:PF.Heuristic.manhattan,diagonalMovement:PF.DiagonalMovement.Never});var PathFinding=function(){function PathFinding(diagramEngine){this.instance=pathFinderInstance;this.diagramEngine=diagramEngine}PathFinding.prototype.calculateDirectPath=function(from,to){var matrix=this.diagramEngine.getCanvasMatrix();var grid=new PF.Grid(matrix);return pathFinderInstance.findPath(this.diagramEngine.translateRoutingX(Math.floor(from.x/exports.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(from.y/exports.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(to.x/exports.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(to.y/exports.ROUTING_SCALING_FACTOR)),grid)};PathFinding.prototype.calculateLinkStartEndCoords=function(matrix,path){var startIndex=path.findIndex(function(point){return matrix[point[1]][point[0]]===0});var endIndex=path.length-1-path.slice().reverse().findIndex(function(point){return matrix[point[1]][point[0]]===0});if(startIndex===-1||endIndex===-1){return undefined}var pathToStart=path.slice(0,startIndex);var pathToEnd=path.slice(endIndex);return{start:{x:path[startIndex][0],y:path[startIndex][1]},end:{x:path[endIndex][0],y:path[endIndex][1]},pathToStart:pathToStart,pathToEnd:pathToEnd}};PathFinding.prototype.calculateDynamicPath=function(routingMatrix,start,end,pathToStart,pathToEnd){var _this=this;var grid=new PF.Grid(routingMatrix);var dynamicPath=pathFinderInstance.findPath(start.x,start.y,end.x,end.y,grid);var pathCoords=pathToStart.concat(dynamicPath,pathToEnd).map(function(coords){return[_this.diagramEngine.translateRoutingX(coords[0],true),_this.diagramEngine.translateRoutingY(coords[1],true)]});return PF.Util.compressPath(pathCoords)};return PathFinding}();exports.default=PathFinding},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var LabelModel=function(_super){__extends(LabelModel,_super);function LabelModel(type,id){var _this=_super.call(this,type,id)||this;_this.offsetX=0;_this.offsetY=0;return _this}LabelModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.offsetX=ob.offsetX;this.offsetY=ob.offsetY};LabelModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{offsetX:this.offsetX,offsetY:this.offsetY})};return LabelModel}(BaseModel_1.BaseModel);exports.LabelModel=LabelModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var LabelModel_1=__webpack_require__(17);var _=__webpack_require__(0);var DefaultLabelModel=function(_super){__extends(DefaultLabelModel,_super);function DefaultLabelModel(){var _this=_super.call(this,"default")||this;_this.offsetY=-23;return _this}DefaultLabelModel.prototype.setLabel=function(label){this.label=label};DefaultLabelModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.label=ob.label};DefaultLabelModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{label:this.label})};return DefaultLabelModel}(LabelModel_1.LabelModel);exports.DefaultLabelModel=DefaultLabelModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var LinkModel_1=__webpack_require__(21);var _=__webpack_require__(0);var DefaultLabelModel_1=__webpack_require__(18);var LabelModel_1=__webpack_require__(17);var DefaultLinkModel=function(_super){__extends(DefaultLinkModel,_super);function DefaultLinkModel(type){if(type===void 0){type="default"}var _this=_super.call(this,type)||this;_this.color="rgba(255,255,255,0.5)";_this.width=3;_this.curvyness=50;return _this}DefaultLinkModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{width:this.width,color:this.color,curvyness:this.curvyness})};DefaultLinkModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.color=ob.color;this.width=ob.width;this.curvyness=ob.curvyness};DefaultLinkModel.prototype.addLabel=function(label){if(label instanceof LabelModel_1.LabelModel){return _super.prototype.addLabel.call(this,label)}var labelOb=new DefaultLabelModel_1.DefaultLabelModel;labelOb.setLabel(label);return _super.prototype.addLabel.call(this,labelOb)};DefaultLinkModel.prototype.setWidth=function(width){this.width=width;this.iterateListeners(function(listener,event){if(listener.widthChanged){listener.widthChanged(__assign({},event,{width:width}))}})};DefaultLinkModel.prototype.setColor=function(color){this.color=color;this.iterateListeners(function(listener,event){if(listener.colorChanged){listener.colorChanged(__assign({},event,{color:color}))}})};return DefaultLinkModel}(LinkModel_1.LinkModel);exports.DefaultLinkModel=DefaultLinkModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var _=__webpack_require__(0);var PortModel_1=__webpack_require__(12);var DefaultLinkModel_1=__webpack_require__(19);var DefaultPortModel=function(_super){__extends(DefaultPortModel,_super);function DefaultPortModel(isInput,name,label,id){if(label===void 0){label=null}var _this=_super.call(this,name,"default",id)||this;_this.in=isInput;_this.label=label||name;return _this}DefaultPortModel.prototype.deSerialize=function(object,engine){_super.prototype.deSerialize.call(this,object,engine);this.in=object.in;this.label=object.label};DefaultPortModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{in:this.in,label:this.label})};DefaultPortModel.prototype.link=function(port){var link=this.createLinkModel();link.setSourcePort(this);link.setTargetPort(port);return link};DefaultPortModel.prototype.canLinkToPort=function(port){if(port instanceof DefaultPortModel){return this.in!==port.in}return true};DefaultPortModel.prototype.createLinkModel=function(){var link=_super.prototype.createLinkModel.call(this);return link||new DefaultLinkModel_1.DefaultLinkModel};return DefaultPortModel}(PortModel_1.PortModel);exports.DefaultPortModel=DefaultPortModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var PointModel_1=__webpack_require__(5);var _=__webpack_require__(0);var LinkModel=function(_super){__extends(LinkModel,_super);function LinkModel(linkType,id){if(linkType===void 0){linkType="default"}var _this=_super.call(this,linkType,id)||this;_this.points=[new PointModel_1.PointModel(_this,{x:0,y:0}),new PointModel_1.PointModel(_this,{x:0,y:0})];_this.extras={};_this.sourcePort=null;_this.targetPort=null;_this.labels=[];return _this}LinkModel.prototype.deSerialize=function(ob,engine){var _this=this;_super.prototype.deSerialize.call(this,ob,engine);this.extras=ob.extras;this.points=_.map(ob.points||[],function(point){var p=new PointModel_1.PointModel(_this,{x:point.x,y:point.y});p.deSerialize(point,engine);return p});_.forEach(ob.labels||[],function(label){var labelOb=engine.getLabelFactory(label.type).getNewInstance();labelOb.deSerialize(label,engine);_this.addLabel(labelOb)});if(ob.target){this.setTargetPort(this.getParent().getNode(ob.target).getPortFromID(ob.targetPort))}if(ob.source){this.setSourcePort(this.getParent().getNode(ob.source).getPortFromID(ob.sourcePort))}};LinkModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{source:this.sourcePort?this.sourcePort.getParent().id:null,sourcePort:this.sourcePort?this.sourcePort.id:null,target:this.targetPort?this.targetPort.getParent().id:null,targetPort:this.targetPort?this.targetPort.id:null,points:_.map(this.points,function(point){return point.serialize()}),extras:this.extras,labels:_.map(this.labels,function(label){return label.serialize()})})};LinkModel.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}clone.setPoints(_.map(this.getPoints(),function(point){return point.clone(lookupTable)}));if(this.sourcePort){clone.setSourcePort(this.sourcePort.clone(lookupTable))}if(this.targetPort){clone.setTargetPort(this.targetPort.clone(lookupTable))}};LinkModel.prototype.remove=function(){if(this.sourcePort){this.sourcePort.removeLink(this)}if(this.targetPort){this.targetPort.removeLink(this)}_super.prototype.remove.call(this)};LinkModel.prototype.isLastPoint=function(point){var index=this.getPointIndex(point);return index===this.points.length-1};LinkModel.prototype.getPointIndex=function(point){return this.points.indexOf(point)};LinkModel.prototype.getPointModel=function(id){for(var i=0;i<this.points.length;i++){if(this.points[i].id===id){return this.points[i]}}return null};LinkModel.prototype.getPortForPoint=function(point){if(this.sourcePort!==null&&this.getFirstPoint().getID()===point.getID()){return this.sourcePort}if(this.targetPort!==null&&this.getLastPoint().getID()===point.getID()){return this.targetPort}return null};LinkModel.prototype.getPointForPort=function(port){if(this.sourcePort!==null&&this.sourcePort.getID()===port.getID()){return this.getFirstPoint()}if(this.targetPort!==null&&this.targetPort.getID()===port.getID()){return this.getLastPoint()}return null};LinkModel.prototype.getFirstPoint=function(){return this.points[0]};LinkModel.prototype.getLastPoint=function(){return this.points[this.points.length-1]};LinkModel.prototype.setSourcePort=function(port){if(port!==null){port.addLink(this)}if(this.sourcePort!==null){this.sourcePort.removeLink(this)}this.sourcePort=port;this.iterateListeners(function(listener,event){if(listener.sourcePortChanged){listener.sourcePortChanged(__assign({},event,{port:port}))}})};LinkModel.prototype.getSourcePort=function(){return this.sourcePort};LinkModel.prototype.getTargetPort=function(){return this.targetPort};LinkModel.prototype.setTargetPort=function(port){if(port!==null){port.addLink(this)}if(this.targetPort!==null){this.targetPort.removeLink(this)}this.targetPort=port;this.iterateListeners(function(listener,event){if(listener.targetPortChanged){listener.targetPortChanged(__assign({},event,{port:port}))}})};LinkModel.prototype.point=function(x,y){return this.addPoint(this.generatePoint(x,y))};LinkModel.prototype.addLabel=function(label){label.setParent(this);this.labels.push(label)};LinkModel.prototype.getPoints=function(){return this.points};LinkModel.prototype.setPoints=function(points){var _this=this;_.forEach(points,function(point){point.setParent(_this)});this.points=points};LinkModel.prototype.removePoint=function(pointModel){this.points.splice(this.getPointIndex(pointModel),1)};LinkModel.prototype.removePointsBefore=function(pointModel){this.points.splice(0,this.getPointIndex(pointModel))};LinkModel.prototype.removePointsAfter=function(pointModel){this.points.splice(this.getPointIndex(pointModel)+1)};LinkModel.prototype.removeMiddlePoints=function(){if(this.points.length>2){this.points.splice(0,this.points.length-2)}};LinkModel.prototype.addPoint=function(pointModel,index){if(index===void 0){index=1}pointModel.setParent(this);this.points.splice(index,0,pointModel);return pointModel};LinkModel.prototype.generatePoint=function(x,y){if(x===void 0){x=0}if(y===void 0){y=0}return new PointModel_1.PointModel(this,{x:x,y:y})};return LinkModel}(BaseModel_1.BaseModel);exports.LinkModel=LinkModel},function(module,exports,__webpack_require__){var Heap=__webpack_require__(15);var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var DiagonalMovement=__webpack_require__(2);function BiAStarFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;this.heuristic=opt.heuristic||Heuristic.manhattan;this.weight=opt.weight||1;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}if(this.diagonalMovement===DiagonalMovement.Never){this.heuristic=opt.heuristic||Heuristic.manhattan}else{this.heuristic=opt.heuristic||Heuristic.octile}}BiAStarFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var cmp=function(nodeA,nodeB){return nodeA.f-nodeB.f},startOpenList=new Heap(cmp),endOpenList=new Heap(cmp),startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),heuristic=this.heuristic,diagonalMovement=this.diagonalMovement,weight=this.weight,abs=Math.abs,SQRT2=Math.SQRT2,node,neighbors,neighbor,i,l,x,y,ng,BY_START=1,BY_END=2;startNode.g=0;startNode.f=0;startOpenList.push(startNode);startNode.opened=BY_START;endNode.g=0;endNode.f=0;endOpenList.push(endNode);endNode.opened=BY_END;while(!startOpenList.empty()&&!endOpenList.empty()){node=startOpenList.pop();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened===BY_END){return Util.biBacktrace(node,neighbor)}x=neighbor.x;y=neighbor.y;ng=node.g+(x-node.x===0||y-node.y===0?1:SQRT2);if(!neighbor.opened||ng<neighbor.g){neighbor.g=ng;neighbor.h=neighbor.h||weight*heuristic(abs(x-endX),abs(y-endY));neighbor.f=neighbor.g+neighbor.h;neighbor.parent=node;if(!neighbor.opened){startOpenList.push(neighbor);neighbor.opened=BY_START}else{startOpenList.updateItem(neighbor)}}}node=endOpenList.pop();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened===BY_START){return Util.biBacktrace(neighbor,node)}x=neighbor.x;y=neighbor.y;ng=node.g+(x-node.x===0||y-node.y===0?1:SQRT2);if(!neighbor.opened||ng<neighbor.g){neighbor.g=ng;neighbor.h=neighbor.h||weight*heuristic(abs(x-startX),abs(y-startY));neighbor.f=neighbor.g+neighbor.h;neighbor.parent=node;if(!neighbor.opened){endOpenList.push(neighbor);neighbor.opened=BY_END}else{endOpenList.updateItem(neighbor)}}}}return[]};module.exports=BiAStarFinder},function(module,exports,__webpack_require__){var Heap=__webpack_require__(15);var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var DiagonalMovement=__webpack_require__(2);function AStarFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.heuristic=opt.heuristic||Heuristic.manhattan;this.weight=opt.weight||1;this.diagonalMovement=opt.diagonalMovement;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}if(this.diagonalMovement===DiagonalMovement.Never){this.heuristic=opt.heuristic||Heuristic.manhattan}else{this.heuristic=opt.heuristic||Heuristic.octile}}AStarFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var openList=new Heap(function(nodeA,nodeB){return nodeA.f-nodeB.f}),startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),heuristic=this.heuristic,diagonalMovement=this.diagonalMovement,weight=this.weight,abs=Math.abs,SQRT2=Math.SQRT2,node,neighbors,neighbor,i,l,x,y,ng;startNode.g=0;startNode.f=0;openList.push(startNode);startNode.opened=true;while(!openList.empty()){node=openList.pop();node.closed=true;if(node===endNode){return Util.backtrace(endNode)}neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}x=neighbor.x;y=neighbor.y;ng=node.g+(x-node.x===0||y-node.y===0?1:SQRT2);if(!neighbor.opened||ng<neighbor.g){neighbor.g=ng;neighbor.h=neighbor.h||weight*heuristic(abs(x-endX),abs(y-endY));neighbor.f=neighbor.g+neighbor.h;neighbor.parent=node;if(!neighbor.opened){openList.push(neighbor);neighbor.opened=true}else{openList.updateItem(neighbor)}}}}return[]};module.exports=AStarFinder},function(module,exports){function Node(x,y,walkable){this.x=x;this.y=y;this.walkable=walkable===undefined?true:walkable}module.exports=Node},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget_1=__webpack_require__(3);var NodeWidget=function(_super){__extends(NodeWidget,_super);function NodeWidget(props){var _this=_super.call(this,"srd-node",props)||this;_this.state={};return _this}NodeWidget.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.node)};NodeWidget.prototype.getClassName=function(){return"node "+_super.prototype.getClassName.call(this)+(this.props.node.isSelected()?this.bem("--selected"):"")};NodeWidget.prototype.render=function(){return React.createElement("div",__assign({},this.getProps(),{"data-nodeid":this.props.node.id,style:{top:this.props.node.y,left:this.props.node.x}}),this.props.children)};return NodeWidget}(BaseWidget_1.BaseWidget);exports.NodeWidget=NodeWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var _=__webpack_require__(0);var NodeWidget_1=__webpack_require__(25);var BaseWidget_1=__webpack_require__(3);var NodeLayerWidget=function(_super){__extends(NodeLayerWidget,_super);function NodeLayerWidget(props){var _this=_super.call(this,"srd-node-layer",props)||this;_this.updateNodeDimensions=function(){if(!_this.props.diagramEngine.nodesRendered){var diagramModel=_this.props.diagramEngine.getDiagramModel();_.map(diagramModel.getNodes(),function(node){node.updateDimensions(_this.props.diagramEngine.getNodeDimensions(node))})}};_this.state={};return _this}NodeLayerWidget.prototype.componentDidUpdate=function(){this.updateNodeDimensions();this.props.diagramEngine.nodesRendered=true};NodeLayerWidget.prototype.render=function(){var _this=this;var diagramModel=this.props.diagramEngine.getDiagramModel();return React.createElement("div",__assign({},this.getProps(),{style:{transform:"translate("+diagramModel.getOffsetX()+"px,"+diagramModel.getOffsetY()+"px) scale("+diagramModel.getZoomLevel()/100+")"}}),_.map(diagramModel.getNodes(),function(node){return React.createElement(NodeWidget_1.NodeWidget,{diagramEngine:_this.props.diagramEngine,key:node.id,node:node},_this.props.diagramEngine.generateWidgetForNode(node))}))};return NodeLayerWidget}(BaseWidget_1.BaseWidget);exports.NodeLayerWidget=NodeLayerWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseWidget_1=__webpack_require__(3);var LinkWidget=function(_super){__extends(LinkWidget,_super);function LinkWidget(props){var _this=_super.call(this,"srd-link",props)||this;_this.state={};return _this}LinkWidget.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.link)};LinkWidget.prototype.render=function(){return this.props.children};return LinkWidget}(BaseWidget_1.BaseWidget);exports.LinkWidget=LinkWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var LinkWidget_1=__webpack_require__(27);var _=__webpack_require__(0);var BaseWidget_1=__webpack_require__(3);var LinkLayerWidget=function(_super){__extends(LinkLayerWidget,_super);function LinkLayerWidget(props){var _this=_super.call(this,"srd-link-layer",props)||this;_this.state={};return _this}LinkLayerWidget.prototype.render=function(){var _this=this;var diagramModel=this.props.diagramEngine.getDiagramModel();return React.createElement("svg",__assign({},this.getProps(),{style:{transform:"translate("+diagramModel.getOffsetX()+"px,"+diagramModel.getOffsetY()+"px) scale("+diagramModel.getZoomLevel()/100+")"}}),this.props.diagramEngine.canvas&&_.map(diagramModel.getLinks(),function(link){if(_this.props.diagramEngine.nodesRendered&&!_this.props.diagramEngine.linksThatHaveInitiallyRendered[link.id]){if(link.sourcePort!==null){try{var portCenter=_this.props.diagramEngine.getPortCenter(link.sourcePort);link.points[0].updateLocation(portCenter);var portCoords=_this.props.diagramEngine.getPortCoords(link.sourcePort);link.sourcePort.updateCoords(portCoords);_this.props.diagramEngine.linksThatHaveInitiallyRendered[link.id]=true}catch(ignore){}}if(link.targetPort!==null){try{var portCenter=_this.props.diagramEngine.getPortCenter(link.targetPort);_.last(link.points).updateLocation(portCenter);var portCoords=_this.props.diagramEngine.getPortCoords(link.targetPort);link.targetPort.updateCoords(portCoords);_this.props.diagramEngine.linksThatHaveInitiallyRendered[link.id]=true}catch(ignore){}}}var generatedLink=_this.props.diagramEngine.generateWidgetForLink(link);if(!generatedLink){throw new Error("no link generated for type: "+link.getType())}return React.createElement(LinkWidget_1.LinkWidget,{key:link.getID(),link:link,diagramEngine:_this.props.diagramEngine},React.cloneElement(generatedLink,{pointAdded:_this.props.pointAdded}))}))};return LinkLayerWidget}(BaseWidget_1.BaseWidget);exports.LinkLayerWidget=LinkLayerWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseAction_1=__webpack_require__(11);var SelectingAction=function(_super){__extends(SelectingAction,_super);function SelectingAction(mouseX,mouseY){var _this=_super.call(this,mouseX,mouseY)||this;_this.mouseX2=mouseX;_this.mouseY2=mouseY;return _this}SelectingAction.prototype.getBoxDimensions=function(){return{left:this.mouseX2>this.mouseX?this.mouseX:this.mouseX2,top:this.mouseY2>this.mouseY?this.mouseY:this.mouseY2,width:Math.abs(this.mouseX2-this.mouseX),height:Math.abs(this.mouseY2-this.mouseY),right:this.mouseX2<this.mouseX?this.mouseX:this.mouseX2,bottom:this.mouseY2<this.mouseY?this.mouseY:this.mouseY2}};SelectingAction.prototype.containsElement=function(x,y,diagramModel){var z=diagramModel.getZoomLevel()/100;var dimensions=this.getBoxDimensions();return x*z+diagramModel.getOffsetX()>dimensions.left&&x*z+diagramModel.getOffsetX()<dimensions.right&&y*z+diagramModel.getOffsetY()>dimensions.top&&y*z+diagramModel.getOffsetY()<dimensions.bottom};return SelectingAction}(BaseAction_1.BaseAction);exports.SelectingAction=SelectingAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseAction_1=__webpack_require__(11);var MoveItemsAction=function(_super){__extends(MoveItemsAction,_super);function MoveItemsAction(mouseX,mouseY,diagramEngine){var _this=_super.call(this,mouseX,mouseY)||this;_this.moved=false;diagramEngine.enableRepaintEntities(diagramEngine.getDiagramModel().getSelectedItems());var selectedItems=diagramEngine.getDiagramModel().getSelectedItems();selectedItems=selectedItems.filter(function(item){return!diagramEngine.isModelLocked(item)});_this.selectionModels=selectedItems.map(function(item){return{model:item,initialX:item.x,initialY:item.y}});return _this}return MoveItemsAction}(BaseAction_1.BaseAction);exports.MoveItemsAction=MoveItemsAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseAction_1=__webpack_require__(11);var MoveCanvasAction=function(_super){__extends(MoveCanvasAction,_super);function MoveCanvasAction(mouseX,mouseY,diagramModel){var _this=_super.call(this,mouseX,mouseY)||this;_this.initialOffsetX=diagramModel.getOffsetX();_this.initialOffsetY=diagramModel.getOffsetY();return _this}return MoveCanvasAction}(BaseAction_1.BaseAction);exports.MoveCanvasAction=MoveCanvasAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractNodeFactory=function(_super){__extends(AbstractNodeFactory,_super);function AbstractNodeFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractNodeFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractNodeFactory=AbstractNodeFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget_1=__webpack_require__(3);var PortWidget=function(_super){__extends(PortWidget,_super);function PortWidget(props){var _this=_super.call(this,"srd-port",props)||this;_this.state={selected:false};return _this}PortWidget.prototype.getClassName=function(){return"port "+_super.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")};PortWidget.prototype.render=function(){var _this=this;return React.createElement("div",__assign({},this.getProps(),{onMouseEnter:function(){_this.setState({selected:true})},onMouseLeave:function(){_this.setState({selected:false})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))};return PortWidget}(BaseWidget_1.BaseWidget);exports.PortWidget=PortWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var PortWidget_1=__webpack_require__(33);var BaseWidget_1=__webpack_require__(3);var DefaultPortLabel=function(_super){__extends(DefaultPortLabel,_super);function DefaultPortLabel(props){return _super.call(this,"srd-default-port",props)||this}DefaultPortLabel.prototype.getClassName=function(){return _super.prototype.getClassName.call(this)+(this.props.model.in?this.bem("--in"):this.bem("--out"))};DefaultPortLabel.prototype.render=function(){var port=React.createElement(PortWidget_1.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name});var label=React.createElement("div",{className:"name"},this.props.model.label);return React.createElement("div",__assign({},this.getProps()),this.props.model.in?port:label,this.props.model.in?label:port)};return DefaultPortLabel}(BaseWidget_1.BaseWidget);exports.DefaultPortLabel=DefaultPortLabel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var _=__webpack_require__(0);var DefaultPortLabelWidget_1=__webpack_require__(34);var BaseWidget_1=__webpack_require__(3);var DefaultNodeWidget=function(_super){__extends(DefaultNodeWidget,_super);function DefaultNodeWidget(props){var _this=_super.call(this,"srd-default-node",props)||this;_this.state={};return _this}DefaultNodeWidget.prototype.generatePort=function(port){return React.createElement(DefaultPortLabelWidget_1.DefaultPortLabel,{model:port,key:port.id})};DefaultNodeWidget.prototype.render=function(){return React.createElement("div",__assign({},this.getProps(),{style:{background:this.props.node.color}}),React.createElement("div",{className:this.bem("__title")},React.createElement("div",{className:this.bem("__name")},this.props.node.name)),React.createElement("div",{className:this.bem("__ports")},React.createElement("div",{className:this.bem("__in")},_.map(this.props.node.getInPorts(),this.generatePort.bind(this))),React.createElement("div",{className:this.bem("__out")},_.map(this.props.node.getOutPorts(),this.generatePort.bind(this)))))};return DefaultNodeWidget}(BaseWidget_1.BaseWidget);exports.DefaultNodeWidget=DefaultNodeWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractLinkFactory=function(_super){__extends(AbstractLinkFactory,_super);function AbstractLinkFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractLinkFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractLinkFactory=AbstractLinkFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var PointModel_1=__webpack_require__(5);var Toolkit_1=__webpack_require__(7);var PathFinding_1=__webpack_require__(16);var _=__webpack_require__(0);var BaseWidget_1=__webpack_require__(3);var DefaultLinkWidget=function(_super){__extends(DefaultLinkWidget,_super);function DefaultLinkWidget(props){var _this=_super.call(this,"srd-default-link",props)||this;_this.addPointToLink=function(event,index){if(!event.shiftKey&&!_this.props.diagramEngine.isModelLocked(_this.props.link)&&_this.props.link.points.length-1<=_this.props.diagramEngine.getMaxNumberPointsPerLink()){var point=new PointModel_1.PointModel(_this.props.link,_this.props.diagramEngine.getRelativeMousePoint(event));point.setSelected(true);_this.forceUpdate();_this.props.link.addPoint(point,index);_this.props.pointAdded(point,event)}};_this.findPathAndRelativePositionToRenderLabel=function(index){var lengths=_this.refPaths.map(function(path){return path.getTotalLength()});var labelPosition=lengths.reduce(function(previousValue,currentValue){return previousValue+currentValue},0)*(index/(_this.props.link.labels.length+1));var pathIndex=0;while(pathIndex<_this.refPaths.length){if(labelPosition-lengths[pathIndex]<0){return{path:_this.refPaths[pathIndex],position:labelPosition}}labelPosition-=lengths[pathIndex];pathIndex++}};_this.calculateLabelPosition=function(label,index){if(!_this.refLabels[label.id]){return}var _a=_this.findPathAndRelativePositionToRenderLabel(index),path=_a.path,position=_a.position;var labelDimensions={width:_this.refLabels[label.id].offsetWidth,height:_this.refLabels[label.id].offsetHeight};var pathCentre=path.getPointAtLength(position);var labelCoordinates={x:pathCentre.x-labelDimensions.width/2+label.offsetX,y:pathCentre.y-labelDimensions.height/2+label.offsetY};_this.refLabels[label.id].setAttribute("style","transform: translate("+labelCoordinates.x+"px, "+labelCoordinates.y+"px);")};_this.refLabels={};_this.refPaths=[];_this.state={selected:false};if(props.diagramEngine.isSmartRoutingEnabled()){_this.pathFinding=new PathFinding_1.default(_this.props.diagramEngine)}return _this}DefaultLinkWidget.prototype.calculateAllLabelPosition=function(){var _this=this;_.forEach(this.props.link.labels,function(label,index){_this.calculateLabelPosition(label,index+1)})};DefaultLinkWidget.prototype.componentDidUpdate=function(){if(this.props.link.labels.length>0){window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))}};DefaultLinkWidget.prototype.componentDidMount=function(){if(this.props.link.labels.length>0){window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))}};DefaultLinkWidget.prototype.generatePoint=function(pointIndex){var _this=this;var x=this.props.link.points[pointIndex].x;var y=this.props.link.points[pointIndex].y;return React.createElement("g",{key:"point-"+this.props.link.points[pointIndex].id},React.createElement("circle",{cx:x,cy:y,r:5,className:"point "+this.bem("__point")+(this.props.link.points[pointIndex].isSelected()?this.bem("--point-selected"):"")}),React.createElement("circle",{onMouseLeave:function(){_this.setState({selected:false})},onMouseEnter:function(){_this.setState({selected:true})},"data-id":this.props.link.points[pointIndex].id,"data-linkid":this.props.link.id,cx:x,cy:y,r:15,opacity:0,className:"point "+this.bem("__point")}))};DefaultLinkWidget.prototype.generateLabel=function(label){var _this=this;var canvas=this.props.diagramEngine.canvas;return React.createElement("foreignObject",{key:label.id,className:this.bem("__label"),width:canvas.offsetWidth,height:canvas.offsetHeight},React.createElement("div",{ref:function(ref){return _this.refLabels[label.id]=ref}},this.props.diagramEngine.getFactoryForLabel(label).generateReactWidget(this.props.diagramEngine,label)))};DefaultLinkWidget.prototype.generateLink=function(path,extraProps,id){var _this=this;var props=this.props;var Bottom=React.cloneElement(props.diagramEngine.getFactoryForLink(this.props.link).generateLinkSegment(this.props.link,this,this.state.selected||this.props.link.isSelected(),path),{ref:function(ref){return ref&&_this.refPaths.push(ref)}});var Top=React.cloneElement(Bottom,__assign({},extraProps,{strokeLinecap:"round",onMouseLeave:function(){_this.setState({selected:false})},onMouseEnter:function(){_this.setState({selected:true})},ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.state.selected?.1:0,strokeWidth:20,onContextMenu:function(){if(!_this.props.diagramEngine.isModelLocked(_this.props.link)){event.preventDefault();_this.props.link.remove()}}}));return React.createElement("g",{key:"link-"+id},Bottom,Top)};DefaultLinkWidget.prototype.isSmartRoutingApplicable=function(){var _a=this.props,diagramEngine=_a.diagramEngine,link=_a.link;if(!diagramEngine.isSmartRoutingEnabled()){return false}if(link.points.length!==2){return false}if(link.sourcePort===null||link.targetPort===null){return false}return true};DefaultLinkWidget.prototype.render=function(){var _this=this;var diagramEngine=this.props.diagramEngine;if(!diagramEngine.nodesRendered){return null}var points=this.props.link.points;var paths=[];if(this.isSmartRoutingApplicable()){var directPathCoords=this.pathFinding.calculateDirectPath(_.first(points),_.last(points));var routingMatrix=diagramEngine.getRoutingMatrix();var smartLink=this.pathFinding.calculateLinkStartEndCoords(routingMatrix,directPathCoords);if(smartLink){var start=smartLink.start,end=smartLink.end,pathToStart=smartLink.pathToStart,pathToEnd=smartLink.pathToEnd;var simplifiedPath=this.pathFinding.calculateDynamicPath(routingMatrix,start,end,pathToStart,pathToEnd);paths.push(this.generateLink(Toolkit_1.Toolkit.generateDynamicPath(simplifiedPath),{onMouseDown:function(event){_this.addPointToLink(event,1)}},"0"))}}if(paths.length===0){if(points.length===2){var isHorizontal=Math.abs(points[0].x-points[1].x)>Math.abs(points[0].y-points[1].y);var xOrY=isHorizontal?"x":"y";var margin=50;if(Math.abs(points[0][xOrY]-points[1][xOrY])<50){margin=5}var pointLeft=points[0];var pointRight=points[1];if(pointLeft[xOrY]>pointRight[xOrY]){pointLeft=points[1];pointRight=points[0]}paths.push(this.generateLink(Toolkit_1.Toolkit.generateCurvePath(pointLeft,pointRight,this.props.link.curvyness),{onMouseDown:function(event){_this.addPointToLink(event,1)}},"0"));if(this.props.link.targetPort===null){paths.push(this.generatePoint(1))}}else{var _loop_1=function(j){paths.push(this_1.generateLink(Toolkit_1.Toolkit.generateLinePath(points[j],points[j+1]),{"data-linkid":this_1.props.link.id,"data-point":j,onMouseDown:function(event){_this.addPointToLink(event,j+1)}},j))};var this_1=this;for(var j=0;j<points.length-1;j++){_loop_1(j)}for(var i=1;i<points.length-1;i++){paths.push(this.generatePoint(i))}if(this.props.link.targetPort===null){paths.push(this.generatePoint(points.length-1))}}}this.refPaths=[];return React.createElement("g",__assign({},this.getProps()),paths,_.map(this.props.link.labels,function(labelModel){return _this.generateLabel(labelModel)}))};DefaultLinkWidget.defaultProps={color:"black",width:3,link:null,engine:null,smooth:false,diagramEngine:null};return DefaultLinkWidget}(BaseWidget_1.BaseWidget);exports.DefaultLinkWidget=DefaultLinkWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var DefaultPortModel_1=__webpack_require__(20);var _=__webpack_require__(0);var NodeModel_1=__webpack_require__(9);var Toolkit_1=__webpack_require__(7);var DefaultNodeModel=function(_super){__extends(DefaultNodeModel,_super);function DefaultNodeModel(name,color){if(name===void 0){name="Untitled"}if(color===void 0){color="rgb(0,192,255)"}var _this=_super.call(this,"default")||this;_this.name=name;_this.color=color;return _this}DefaultNodeModel.prototype.addInPort=function(label){return this.addPort(new DefaultPortModel_1.DefaultPortModel(true,Toolkit_1.Toolkit.UID(),label))};DefaultNodeModel.prototype.addOutPort=function(label){return this.addPort(new DefaultPortModel_1.DefaultPortModel(false,Toolkit_1.Toolkit.UID(),label))};DefaultNodeModel.prototype.deSerialize=function(object,engine){_super.prototype.deSerialize.call(this,object,engine);this.name=object.name;this.color=object.color};DefaultNodeModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{name:this.name,color:this.color})};DefaultNodeModel.prototype.getInPorts=function(){return _.filter(this.ports,function(portModel){return portModel.in})};DefaultNodeModel.prototype.getOutPorts=function(){return _.filter(this.ports,function(portModel){return!portModel.in})};return DefaultNodeModel}(NodeModel_1.NodeModel);exports.DefaultNodeModel=DefaultNodeModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget_1=__webpack_require__(3);var DefaultLabelWidget=function(_super){__extends(DefaultLabelWidget,_super);function DefaultLabelWidget(props){return _super.call(this,"srd-default-label",props)||this}DefaultLabelWidget.prototype.render=function(){return React.createElement("div",__assign({},this.getProps()),this.props.model.label)};return DefaultLabelWidget}(BaseWidget_1.BaseWidget);exports.DefaultLabelWidget=DefaultLabelWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractLabelFactory=function(_super){__extends(AbstractLabelFactory,_super);function AbstractLabelFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractLabelFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractLabelFactory=AbstractLabelFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var AbstractLabelFactory_1=__webpack_require__(40);var DefaultLabelModel_1=__webpack_require__(18);var DefaultLabelWidget_1=__webpack_require__(39);var DefaultLabelFactory=function(_super){__extends(DefaultLabelFactory,_super);function DefaultLabelFactory(){return _super.call(this,"default")||this}DefaultLabelFactory.prototype.generateReactWidget=function(diagramEngine,label){return React.createElement(DefaultLabelWidget_1.DefaultLabelWidget,{model:label})};DefaultLabelFactory.prototype.getNewInstance=function(initialConfig){return new DefaultLabelModel_1.DefaultLabelModel};return DefaultLabelFactory}(AbstractLabelFactory_1.AbstractLabelFactory);exports.DefaultLabelFactory=DefaultLabelFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractPortFactory=function(_super){__extends(AbstractPortFactory,_super);function AbstractPortFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractPortFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractPortFactory=AbstractPortFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var DefaultPortModel_1=__webpack_require__(20);var AbstractPortFactory_1=__webpack_require__(42);var DefaultPortFactory=function(_super){__extends(DefaultPortFactory,_super);function DefaultPortFactory(){return _super.call(this,"default")||this}DefaultPortFactory.prototype.getNewInstance=function(initialConfig){return new DefaultPortModel_1.DefaultPortModel(true,"unknown")};return DefaultPortFactory}(AbstractPortFactory_1.AbstractPortFactory);exports.DefaultPortFactory=DefaultPortFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var BaseEntity_1=__webpack_require__(13);var _=__webpack_require__(0);var LinkModel_1=__webpack_require__(21);var NodeModel_1=__webpack_require__(9);var PortModel_1=__webpack_require__(12);var PointModel_1=__webpack_require__(5);var DiagramModel=function(_super){__extends(DiagramModel,_super);function DiagramModel(){var _this=_super.call(this)||this;_this.links={};_this.nodes={};_this.offsetX=0;_this.offsetY=0;_this.zoom=100;_this.rendered=false;_this.gridSize=0;return _this}DiagramModel.prototype.setGridSize=function(size){if(size===void 0){size=0}this.gridSize=size;this.iterateListeners(function(listener,event){if(listener.gridUpdated){listener.gridUpdated(__assign({},event,{size:size}))}})};DiagramModel.prototype.getGridPosition=function(pos){if(this.gridSize===0){return pos}return this.gridSize*Math.floor((pos+this.gridSize/2)/this.gridSize)};DiagramModel.prototype.deSerializeDiagram=function(object,diagramEngine){var _this=this;this.deSerialize(object,diagramEngine);this.offsetX=object.offsetX;this.offsetY=object.offsetY;this.zoom=object.zoom;this.gridSize=object.gridSize;_.forEach(object.nodes,function(node){var nodeOb=diagramEngine.getNodeFactory(node.type).getNewInstance(node);nodeOb.setParent(_this);nodeOb.deSerialize(node,diagramEngine);_this.addNode(nodeOb)});_.forEach(object.links,function(link){var linkOb=diagramEngine.getLinkFactory(link.type).getNewInstance();linkOb.setParent(_this);linkOb.deSerialize(link,diagramEngine);_this.addLink(linkOb)})};DiagramModel.prototype.serializeDiagram=function(){return _.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:_.map(this.links,function(link){return link.serialize()}),nodes:_.map(this.nodes,function(node){return node.serialize()})})};DiagramModel.prototype.clearSelection=function(ignore){if(ignore===void 0){ignore=null}_.forEach(this.getSelectedItems(),function(element){if(ignore&&ignore.getID()===element.getID()){return}element.setSelected(false)})};DiagramModel.prototype.getSelectedItems=function(){var filters=[];for(var _i=0;_i<arguments.length;_i++){filters[_i]=arguments[_i]}if(!Array.isArray(filters)){filters=[filters]}var items=[];items=items.concat(_.flatMap(this.nodes,function(node){return node.getSelectedEntities()}));items=items.concat(_.flatMap(this.links,function(link){return link.getSelectedEntities()}));items=items.concat(_.flatMap(this.links,function(link){return _.flatMap(link.points,function(point){return point.getSelectedEntities()})}));items=_.uniq(items);if(filters.length>0){items=_.filter(_.uniq(items),function(item){if(_.includes(filters,"node")&&item instanceof NodeModel_1.NodeModel){return true}if(_.includes(filters,"link")&&item instanceof LinkModel_1.LinkModel){return true}if(_.includes(filters,"port")&&item instanceof PortModel_1.PortModel){return true}if(_.includes(filters,"point")&&item instanceof PointModel_1.PointModel){return true}return false})}return items};DiagramModel.prototype.setZoomLevel=function(zoom){this.zoom=zoom;this.iterateListeners(function(listener,event){if(listener.zoomUpdated){listener.zoomUpdated(__assign({},event,{zoom:zoom}))}})};DiagramModel.prototype.setOffset=function(offsetX,offsetY){this.offsetX=offsetX;this.offsetY=offsetY;this.iterateListeners(function(listener,event){if(listener.offsetUpdated){listener.offsetUpdated(__assign({},event,{offsetX:offsetX,offsetY:offsetY}))}})};DiagramModel.prototype.setOffsetX=function(offsetX){var _this=this;this.offsetX=offsetX;this.iterateListeners(function(listener,event){if(listener.offsetUpdated){listener.offsetUpdated(__assign({},event,{offsetX:offsetX,offsetY:_this.offsetY}))}})};DiagramModel.prototype.setOffsetY=function(offsetY){var _this=this;this.offsetY=offsetY;this.iterateListeners(function(listener,event){if(listener.offsetUpdated){listener.offsetUpdated(__assign({},event,{offsetX:_this.offsetX,offsetY:_this.offsetY}))}})};DiagramModel.prototype.getOffsetY=function(){return this.offsetY};DiagramModel.prototype.getOffsetX=function(){return this.offsetX};DiagramModel.prototype.getZoomLevel=function(){return this.zoom};DiagramModel.prototype.getNode=function(node){if(node instanceof NodeModel_1.NodeModel){return node}if(!this.nodes[node]){return null}return this.nodes[node]};DiagramModel.prototype.getLink=function(link){if(link instanceof LinkModel_1.LinkModel){return link}if(!this.links[link]){return null}return this.links[link]};DiagramModel.prototype.addAll=function(){var _this=this;var models=[];for(var _i=0;_i<arguments.length;_i++){models[_i]=arguments[_i]}_.forEach(models,function(model){if(model instanceof LinkModel_1.LinkModel){_this.addLink(model)}else if(model instanceof NodeModel_1.NodeModel){_this.addNode(model)}});return models};DiagramModel.prototype.addLink=function(link){var _this=this;link.addListener({entityRemoved:function(){_this.removeLink(link)}});this.links[link.getID()]=link;this.iterateListeners(function(listener,event){if(listener.linksUpdated){listener.linksUpdated(__assign({},event,{link:link,isCreated:true}))}});return link};DiagramModel.prototype.addNode=function(node){var _this=this;node.addListener({entityRemoved:function(){_this.removeNode(node)}});this.nodes[node.getID()]=node;this.iterateListeners(function(listener,event){if(listener.nodesUpdated){listener.nodesUpdated(__assign({},event,{node:node,isCreated:true}))}});return node};DiagramModel.prototype.removeLink=function(link){link=this.getLink(link);delete this.links[link.getID()];this.iterateListeners(function(listener,event){if(listener.linksUpdated){listener.linksUpdated(__assign({},event,{link:link,isCreated:false}))}})};DiagramModel.prototype.removeNode=function(node){node=this.getNode(node);delete this.nodes[node.getID()];this.iterateListeners(function(listener,event){if(listener.nodesUpdated){listener.nodesUpdated(__assign({},event,{node:node,isCreated:false}))}})};DiagramModel.prototype.getLinks=function(){return this.links};DiagramModel.prototype.getNodes=function(){return this.nodes};return DiagramModel}(BaseEntity_1.BaseEntity);exports.DiagramModel=DiagramModel},function(module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)if(!exports.hasOwnProperty(p))exports[p]=m[p]}Object.defineProperty(exports,"__esModule",{value:true});__export(__webpack_require__(7));__export(__webpack_require__(13));__export(__webpack_require__(49));__export(__webpack_require__(38));__export(__webpack_require__(20));__export(__webpack_require__(19));__export(__webpack_require__(18));__export(__webpack_require__(48));__export(__webpack_require__(47));__export(__webpack_require__(43));__export(__webpack_require__(41));__export(__webpack_require__(37));__export(__webpack_require__(39));__export(__webpack_require__(35));__export(__webpack_require__(34));__export(__webpack_require__(8));__export(__webpack_require__(40));__export(__webpack_require__(36));__export(__webpack_require__(32));__export(__webpack_require__(42));__export(__webpack_require__(16));__export(__webpack_require__(11));__export(__webpack_require__(31));__export(__webpack_require__(30));__export(__webpack_require__(29));__export(__webpack_require__(6));__export(__webpack_require__(44));__export(__webpack_require__(21));__export(__webpack_require__(9));__export(__webpack_require__(5));__export(__webpack_require__(12));__export(__webpack_require__(17));__export(__webpack_require__(46));__export(__webpack_require__(27));__export(__webpack_require__(25));__export(__webpack_require__(33));__export(__webpack_require__(3));__export(__webpack_require__(28));__export(__webpack_require__(26))},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var _=__webpack_require__(0);var LinkLayerWidget_1=__webpack_require__(28);var NodeLayerWidget_1=__webpack_require__(26);var Toolkit_1=__webpack_require__(7);var MoveCanvasAction_1=__webpack_require__(31);var MoveItemsAction_1=__webpack_require__(30);var SelectingAction_1=__webpack_require__(29);var NodeModel_1=__webpack_require__(9);var PointModel_1=__webpack_require__(5);var PortModel_1=__webpack_require__(12);var BaseWidget_1=__webpack_require__(3);var DiagramWidget=function(_super){__extends(DiagramWidget,_super);function DiagramWidget(props){var _this=_super.call(this,"srd-diagram",props)||this;_this.onKeyUpPointer=null;_this.onMouseMove=_this.onMouseMove.bind(_this);_this.onMouseUp=_this.onMouseUp.bind(_this);_this.state={action:null,wasMoved:false,renderedNodes:false,windowListener:null,diagramEngineListener:null,document:null};return _this}DiagramWidget.prototype.componentWillUnmount=function(){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);this.props.diagramEngine.setCanvas(null);window.removeEventListener("keyup",this.onKeyUpPointer);window.removeEventListener("mouseUp",this.onMouseUp);window.removeEventListener("mouseMove",this.onMouseMove)};DiagramWidget.prototype.componentWillReceiveProps=function(nextProps){var _this=this;if(this.props.diagramEngine!==nextProps.diagramEngine){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);var diagramEngineListener=nextProps.diagramEngine.addListener({repaintCanvas:function(){return _this.forceUpdate()}});this.setState({diagramEngineListener:diagramEngineListener})}};DiagramWidget.prototype.componentWillUpdate=function(nextProps){if(this.props.diagramEngine.diagramModel.id!==nextProps.diagramEngine.diagramModel.id){this.setState({renderedNodes:false});nextProps.diagramEngine.diagramModel.rendered=true}if(!nextProps.diagramEngine.diagramModel.rendered){this.setState({renderedNodes:false});nextProps.diagramEngine.diagramModel.rendered=true}};DiagramWidget.prototype.componentDidUpdate=function(){if(!this.state.renderedNodes){this.setState({renderedNodes:true})}};DiagramWidget.prototype.componentDidMount=function(){var _this=this;this.onKeyUpPointer=this.onKeyUp.bind(this);this.setState({document:document,renderedNodes:true,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:function(){_this.forceUpdate()}})});window.addEventListener("keyup",this.onKeyUpPointer,false);if(true){window.focus()}};DiagramWidget.prototype.getMouseElement=function(event){var target=event.target;var diagramModel=this.props.diagramEngine.diagramModel;var element=Toolkit_1.Toolkit.closest(target,".port[data-name]");if(element){var nodeElement=Toolkit_1.Toolkit.closest(target,".node[data-nodeid]");return{model:diagramModel.getNode(nodeElement.getAttribute("data-nodeid")).getPort(element.getAttribute("data-name")),element:element}}element=Toolkit_1.Toolkit.closest(target,".point[data-id]");if(element){return{model:diagramModel.getLink(element.getAttribute("data-linkid")).getPointModel(element.getAttribute("data-id")),element:element}}element=Toolkit_1.Toolkit.closest(target,"[data-linkid]");if(element){return{model:diagramModel.getLink(element.getAttribute("data-linkid")),element:element}}element=Toolkit_1.Toolkit.closest(target,".node[data-nodeid]");if(element){return{model:diagramModel.getNode(element.getAttribute("data-nodeid")),element:element}}return null};DiagramWidget.prototype.fireAction=function(){if(this.state.action&&this.props.actionStillFiring){this.props.actionStillFiring(this.state.action)}};DiagramWidget.prototype.stopFiringAction=function(shouldSkipEvent){if(this.props.actionStoppedFiring&&!shouldSkipEvent){this.props.actionStoppedFiring(this.state.action)}this.setState({action:null})};DiagramWidget.prototype.startFiringAction=function(action){var setState=true;if(this.props.actionStartedFiring){setState=this.props.actionStartedFiring(action)}if(setState){this.setState({action:action})}};DiagramWidget.prototype.onMouseMove=function(event){var _this=this;var diagramEngine=this.props.diagramEngine;var diagramModel=diagramEngine.getDiagramModel();if(this.state.action instanceof SelectingAction_1.SelectingAction){var relative=diagramEngine.getRelativePoint(event.clientX,event.clientY);_.forEach(diagramModel.getNodes(),function(node){if(_this.state.action.containsElement(node.x,node.y,diagramModel)){node.setSelected(true)}});_.forEach(diagramModel.getLinks(),function(link){var allSelected=true;_.forEach(link.points,function(point){if(_this.state.action.containsElement(point.x,point.y,diagramModel)){point.setSelected(true)}else{allSelected=false}});if(allSelected){link.setSelected(true)}});this.state.action.mouseX2=relative.x;this.state.action.mouseY2=relative.y;this.fireAction();this.setState({action:this.state.action});return}else if(this.state.action instanceof MoveItemsAction_1.MoveItemsAction){var amountX_1=event.clientX-this.state.action.mouseX;var amountY_1=event.clientY-this.state.action.mouseY;var amountZoom_1=diagramModel.getZoomLevel()/100;_.forEach(this.state.action.selectionModels,function(model){if(model.model instanceof NodeModel_1.NodeModel||model.model instanceof PointModel_1.PointModel&&!model.model.isConnectedToPort()){model.model.x=diagramModel.getGridPosition(model.initialX+amountX_1/amountZoom_1);model.model.y=diagramModel.getGridPosition(model.initialY+amountY_1/amountZoom_1);if(model.model instanceof NodeModel_1.NodeModel){_.forEach(model.model.getPorts(),function(port){var portCoords=_this.props.diagramEngine.getPortCoords(port);port.updateCoords(portCoords)})}if(diagramEngine.isSmartRoutingEnabled()){diagramEngine.calculateRoutingMatrix()}}else if(model.model instanceof PointModel_1.PointModel){model.model.x=model.initialX+diagramModel.getGridPosition(amountX_1/amountZoom_1);model.model.y=model.initialY+diagramModel.getGridPosition(amountY_1/amountZoom_1)}});if(diagramEngine.isSmartRoutingEnabled()){diagramEngine.calculateCanvasMatrix()}this.fireAction();if(!this.state.wasMoved){this.setState({wasMoved:true})}else{this.forceUpdate()}}else if(this.state.action instanceof MoveCanvasAction_1.MoveCanvasAction){if(this.props.allowCanvasTranslation){diagramModel.setOffset(this.state.action.initialOffsetX+(event.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(event.clientY-this.state.action.mouseY));this.fireAction();this.forceUpdate()}}};DiagramWidget.prototype.onKeyUp=function(event){var _this=this;if(this.props.deleteKeys.indexOf(event.keyCode)!==-1){_.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),function(element){if(!_this.props.diagramEngine.isModelLocked(element)){element.remove()}});this.forceUpdate()}};DiagramWidget.prototype.onMouseUp=function(event){var _this=this;var diagramEngine=this.props.diagramEngine;if(this.state.action instanceof MoveItemsAction_1.MoveItemsAction){var element=this.getMouseElement(event);_.forEach(this.state.action.selectionModels,function(model){if(!(model.model instanceof PointModel_1.PointModel)){return}if(element&&element.model instanceof PortModel_1.PortModel&&!diagramEngine.isModelLocked(element.model)){var link=model.model.getLink();if(link.getTargetPort()!==null){if(link.getTargetPort()!==element.model&&link.getSourcePort()!==element.model){var targetPort=link.getTargetPort();var newLink=link.clone({});newLink.setSourcePort(element.model);newLink.setTargetPort(targetPort);link.setTargetPort(element.model);targetPort.removeLink(link);newLink.removePointsBefore(newLink.getPoints()[link.getPointIndex(model.model)]);link.removePointsAfter(model.model);diagramEngine.getDiagramModel().addLink(newLink)}else if(link.getTargetPort()===element.model){link.removePointsAfter(model.model)}else if(link.getSourcePort()===element.model){link.removePointsBefore(model.model)}}else{link.setTargetPort(element.model)}delete _this.props.diagramEngine.linksThatHaveInitiallyRendered[link.getID()]}});if(!this.props.allowLooseLinks&&this.state.wasMoved){_.forEach(this.state.action.selectionModels,function(model){if(!(model.model instanceof PointModel_1.PointModel)){return}var selectedPoint=model.model;var link=selectedPoint.getLink();if(link.getSourcePort()===null||link.getTargetPort()===null){link.remove()}})}_.forEach(this.state.action.selectionModels,function(model){if(!(model.model instanceof PointModel_1.PointModel)){return}var link=model.model.getLink();var sourcePort=link.getSourcePort();var targetPort=link.getTargetPort();if(sourcePort!==null&&targetPort!==null){if(!sourcePort.canLinkToPort(targetPort)){link.remove()}else if(_.some(_.values(targetPort.getLinks()),function(l){return l!==link&&(l.getSourcePort()===sourcePort||l.getTargetPort()===sourcePort)})){link.remove()}}});diagramEngine.clearRepaintEntities();this.stopFiringAction(!this.state.wasMoved)}else{diagramEngine.clearRepaintEntities();this.stopFiringAction()}this.state.document.removeEventListener("mousemove",this.onMouseMove);this.state.document.removeEventListener("mouseup",this.onMouseUp)};DiagramWidget.prototype.drawSelectionBox=function(){var dimensions=this.state.action.getBoxDimensions();return React.createElement("div",{className:this.bem("__selector"),style:{top:dimensions.top,left:dimensions.left,width:dimensions.width,height:dimensions.height}})};DiagramWidget.prototype.render=function(){var _this=this;var diagramEngine=this.props.diagramEngine;diagramEngine.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink);diagramEngine.setSmartRoutingStatus(this.props.smartRouting);var diagramModel=diagramEngine.getDiagramModel();return React.createElement("div",__assign({},this.getProps(),{ref:function(ref){if(ref){_this.props.diagramEngine.setCanvas(ref)}},onWheel:function(event){if(_this.props.allowCanvasZoom){event.preventDefault();event.stopPropagation();var oldZoomFactor=diagramModel.getZoomLevel()/100;var scrollDelta=_this.props.inverseZoom?-event.deltaY:event.deltaY;if(event.ctrlKey&&scrollDelta%1!==0){scrollDelta/=3}else{scrollDelta/=60}if(diagramModel.getZoomLevel()+scrollDelta>10){diagramModel.setZoomLevel(diagramModel.getZoomLevel()+scrollDelta)}var zoomFactor=diagramModel.getZoomLevel()/100;var boundingRect=event.currentTarget.getBoundingClientRect();var clientWidth=boundingRect.width;var clientHeight=boundingRect.height;var widthDiff=clientWidth*zoomFactor-clientWidth*oldZoomFactor;var heightDiff=clientHeight*zoomFactor-clientHeight*oldZoomFactor;var clientX=event.clientX-boundingRect.left;var clientY=event.clientY-boundingRect.top;var xFactor=(clientX-diagramModel.getOffsetX())/oldZoomFactor/clientWidth;var yFactor=(clientY-diagramModel.getOffsetY())/oldZoomFactor/clientHeight;diagramModel.setOffset(diagramModel.getOffsetX()-widthDiff*xFactor,diagramModel.getOffsetY()-heightDiff*yFactor);diagramEngine.enableRepaintEntities([]);_this.forceUpdate()}},onMouseDown:function(event){_this.setState(__assign({},_this.state,{wasMoved:false}));diagramEngine.clearRepaintEntities();var model=_this.getMouseElement(event);if(model===null){if(event.shiftKey){var relative=diagramEngine.getRelativePoint(event.clientX,event.clientY);_this.startFiringAction(new SelectingAction_1.SelectingAction(relative.x,relative.y))}else{diagramModel.clearSelection();_this.startFiringAction(new MoveCanvasAction_1.MoveCanvasAction(event.clientX,event.clientY,diagramModel))}}else if(model.model instanceof PortModel_1.PortModel){if(!_this.props.diagramEngine.isModelLocked(model.model)){var relative=diagramEngine.getRelativeMousePoint(event);var sourcePort=model.model;var link=sourcePort.createLinkModel();link.setSourcePort(sourcePort);if(link){link.removeMiddlePoints();if(link.getSourcePort()!==sourcePort){link.setSourcePort(sourcePort)}link.setTargetPort(null);link.getFirstPoint().updateLocation(relative);link.getLastPoint().updateLocation(relative);diagramModel.clearSelection();link.getLastPoint().setSelected(true);diagramModel.addLink(link);_this.startFiringAction(new MoveItemsAction_1.MoveItemsAction(event.clientX,event.clientY,diagramEngine))}}else{diagramModel.clearSelection()}}else{if(!event.shiftKey&&!model.model.isSelected()){diagramModel.clearSelection()}model.model.setSelected(true);_this.startFiringAction(new MoveItemsAction_1.MoveItemsAction(event.clientX,event.clientY,diagramEngine))}_this.state.document.addEventListener("mousemove",_this.onMouseMove);_this.state.document.addEventListener("mouseup",_this.onMouseUp)}}),this.state.renderedNodes&&React.createElement(LinkLayerWidget_1.LinkLayerWidget,{diagramEngine:diagramEngine,pointAdded:function(point,event){_this.state.document.addEventListener("mousemove",_this.onMouseMove);_this.state.document.addEventListener("mouseup",_this.onMouseUp);event.stopPropagation();diagramModel.clearSelection(point);_this.setState({action:new MoveItemsAction_1.MoveItemsAction(event.clientX,event.clientY,diagramEngine)})}}),React.createElement(NodeLayerWidget_1.NodeLayerWidget,{diagramEngine:diagramEngine}),this.state.action instanceof SelectingAction_1.SelectingAction&&this.drawSelectionBox())};DiagramWidget.defaultProps={diagramEngine:null,allowLooseLinks:true,allowCanvasTranslation:true,allowCanvasZoom:true,inverseZoom:false,maxNumberPointsPerLink:Infinity,smartRouting:false,deleteKeys:[46,8]};return DiagramWidget}(BaseWidget_1.BaseWidget);exports.DiagramWidget=DiagramWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var DefaultNodeModel_1=__webpack_require__(38);var React=__webpack_require__(1);var DefaultNodeWidget_1=__webpack_require__(35);var AbstractNodeFactory_1=__webpack_require__(32);var DefaultNodeFactory=function(_super){__extends(DefaultNodeFactory,_super);function DefaultNodeFactory(){return _super.call(this,"default")||this}DefaultNodeFactory.prototype.generateReactWidget=function(diagramEngine,node){return React.createElement(DefaultNodeWidget_1.DefaultNodeWidget,{node:node,diagramEngine:diagramEngine})};DefaultNodeFactory.prototype.getNewInstance=function(initialConfig){return new DefaultNodeModel_1.DefaultNodeModel};return DefaultNodeFactory}(AbstractNodeFactory_1.AbstractNodeFactory);exports.DefaultNodeFactory=DefaultNodeFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var DefaultLinkWidget_1=__webpack_require__(37);var AbstractLinkFactory_1=__webpack_require__(36);var DefaultLinkModel_1=__webpack_require__(19);var DefaultLinkFactory=function(_super){__extends(DefaultLinkFactory,_super);function DefaultLinkFactory(){return _super.call(this,"default")||this}DefaultLinkFactory.prototype.generateReactWidget=function(diagramEngine,link){return React.createElement(DefaultLinkWidget_1.DefaultLinkWidget,{link:link,diagramEngine:diagramEngine})};DefaultLinkFactory.prototype.getNewInstance=function(initialConfig){return new DefaultLinkModel_1.DefaultLinkModel};DefaultLinkFactory.prototype.generateLinkSegment=function(model,widget,selected,path){return React.createElement("path",{className:selected?widget.bem("--path-selected"):"",strokeWidth:model.width,stroke:model.color,d:path})};return DefaultLinkFactory}(AbstractLinkFactory_1.AbstractLinkFactory);exports.DefaultLinkFactory=DefaultLinkFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseEntity_1=__webpack_require__(13);var DiagramModel_1=__webpack_require__(44);var _=__webpack_require__(0);var NodeModel_1=__webpack_require__(9);var PointModel_1=__webpack_require__(5);var main_1=__webpack_require__(45);var PathFinding_1=__webpack_require__(16);var DefaultPortFactory_1=__webpack_require__(43);var DefaultLabelFactory_1=__webpack_require__(41);var Toolkit_1=__webpack_require__(7);var DiagramEngine=function(_super){__extends(DiagramEngine,_super);function DiagramEngine(){var _this=_super.call(this)||this;_this.canvasMatrix=[];_this.routingMatrix=[];_this.hAdjustmentFactor=0;_this.vAdjustmentFactor=0;_this.calculateMatrixDimensions=function(){var allNodesCoords=_.values(_this.diagramModel.nodes).map(function(item){return{x:item.x,width:item.width,y:item.y,height:item.height}});var allLinks=_.values(_this.diagramModel.links);var allPortsCoords=_.flatMap(allLinks.map(function(link){return[link.sourcePort,link.targetPort]})).filter(function(port){return port!==null}).map(function(item){return{x:item.x,width:item.width,y:item.y,height:item.height}});var allPointsCoords=_.flatMap(allLinks.map(function(link){return link.points})).map(function(item){return{x:item.x,width:0,y:item.y,height:0}});var canvas=_this.canvas;var minX=Math.floor(Math.min(_.minBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.x}).x,0)/PathFinding_1.ROUTING_SCALING_FACTOR)*PathFinding_1.ROUTING_SCALING_FACTOR;var maxXElement=_.maxBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.x+item.width});var maxX=Math.max(maxXElement.x+maxXElement.width,canvas.offsetWidth);var minY=Math.floor(Math.min(_.minBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.y}).y,0)/PathFinding_1.ROUTING_SCALING_FACTOR)*PathFinding_1.ROUTING_SCALING_FACTOR;var maxYElement=_.maxBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.y+item.height});var maxY=Math.max(maxYElement.y+maxYElement.height,canvas.offsetHeight);return{width:Math.ceil(Math.abs(minX)+maxX),hAdjustmentFactor:Math.abs(minX)/PathFinding_1.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(minY)+maxY),vAdjustmentFactor:Math.abs(minY)/PathFinding_1.ROUTING_SCALING_FACTOR+1}};_this.markNodes=function(matrix){_.values(_this.diagramModel.nodes).forEach(function(node){var startX=Math.floor(node.x/PathFinding_1.ROUTING_SCALING_FACTOR);var endX=Math.ceil((node.x+node.width)/PathFinding_1.ROUTING_SCALING_FACTOR);var startY=Math.floor(node.y/PathFinding_1.ROUTING_SCALING_FACTOR);var endY=Math.ceil((node.y+node.height)/PathFinding_1.ROUTING_SCALING_FACTOR);for(var x=startX-1;x<=endX+1;x++){for(var y=startY-1;y<endY+1;y++){_this.markMatrixPoint(matrix,_this.translateRoutingX(x),_this.translateRoutingY(y))}}})};_this.markPorts=function(matrix){var allElements=_.flatMap(_.values(_this.diagramModel.links).map(function(link){return[].concat(link.sourcePort,link.targetPort)}));allElements.filter(function(port){return port!==null}).forEach(function(port){var startX=Math.floor(port.x/PathFinding_1.ROUTING_SCALING_FACTOR);var endX=Math.ceil((port.x+port.width)/PathFinding_1.ROUTING_SCALING_FACTOR);var startY=Math.floor(port.y/PathFinding_1.ROUTING_SCALING_FACTOR);var endY=Math.ceil((port.y+port.height)/PathFinding_1.ROUTING_SCALING_FACTOR);for(var x=startX-1;x<=endX+1;x++){for(var y=startY-1;y<endY+1;y++){_this.markMatrixPoint(matrix,_this.translateRoutingX(x),_this.translateRoutingY(y))}}})};_this.markMatrixPoint=function(matrix,x,y){if(matrix[y]!==undefined&&matrix[y][x]!==undefined){matrix[y][x]=1}};_this.diagramModel=new DiagramModel_1.DiagramModel;_this.nodeFactories={};_this.linkFactories={};_this.portFactories={};_this.labelFactories={};_this.canvas=null;_this.paintableWidgets=null;_this.linksThatHaveInitiallyRendered={};if(Toolkit_1.Toolkit.TESTING){Toolkit_1.Toolkit.TESTING_UID=0;if(window){window["diagram_instance"]=_this}}return _this}DiagramEngine.prototype.installDefaultFactories=function(){this.registerNodeFactory(new main_1.DefaultNodeFactory);this.registerLinkFactory(new main_1.DefaultLinkFactory);this.registerPortFactory(new DefaultPortFactory_1.DefaultPortFactory);this.registerLabelFactory(new DefaultLabelFactory_1.DefaultLabelFactory)};DiagramEngine.prototype.repaintCanvas=function(){this.iterateListeners(function(listener){if(listener.repaintCanvas){listener.repaintCanvas()}})};DiagramEngine.prototype.clearRepaintEntities=function(){this.paintableWidgets=null};DiagramEngine.prototype.enableRepaintEntities=function(entities){var _this=this;this.paintableWidgets={};entities.forEach(function(entity){if(entity instanceof NodeModel_1.NodeModel){_.forEach(entity.getPorts(),function(port){_.forEach(port.getLinks(),function(link){_this.paintableWidgets[link.getID()]=true})})}if(entity instanceof PointModel_1.PointModel){_this.paintableWidgets[entity.getLink().getID()]=true}_this.paintableWidgets[entity.getID()]=true})};DiagramEngine.prototype.isModelLocked=function(model){if(this.diagramModel.isLocked()){return true}return model.isLocked()};DiagramEngine.prototype.recalculatePortsVisually=function(){this.nodesRendered=false;this.linksThatHaveInitiallyRendered={}};DiagramEngine.prototype.canEntityRepaint=function(baseModel){if(this.paintableWidgets===null){return true}return this.paintableWidgets[baseModel.getID()]!==undefined};DiagramEngine.prototype.setCanvas=function(canvas){this.canvas=canvas};DiagramEngine.prototype.setDiagramModel=function(model){this.diagramModel=model;this.recalculatePortsVisually()};DiagramEngine.prototype.getDiagramModel=function(){return this.diagramModel};
  41953. //!-------------- FACTORIES ------------
  41954. DiagramEngine.prototype.getNodeFactories=function(){return this.nodeFactories};DiagramEngine.prototype.getLinkFactories=function(){return this.linkFactories};DiagramEngine.prototype.getLabelFactories=function(){return this.labelFactories};DiagramEngine.prototype.registerLabelFactory=function(factory){this.labelFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.labelFactoriesUpdated){listener.labelFactoriesUpdated()}})};DiagramEngine.prototype.registerPortFactory=function(factory){this.portFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.portFactoriesUpdated){listener.portFactoriesUpdated()}})};DiagramEngine.prototype.registerNodeFactory=function(factory){this.nodeFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.nodeFactoriesUpdated){listener.nodeFactoriesUpdated()}})};DiagramEngine.prototype.registerLinkFactory=function(factory){this.linkFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.linkFactoriesUpdated){listener.linkFactoriesUpdated()}})};DiagramEngine.prototype.getPortFactory=function(type){if(this.portFactories[type]){return this.portFactories[type]}throw new Error("cannot find factory for port of type: ["+type+"]")};DiagramEngine.prototype.getNodeFactory=function(type){if(this.nodeFactories[type]){return this.nodeFactories[type]}throw new Error("cannot find factory for node of type: ["+type+"]")};DiagramEngine.prototype.getLinkFactory=function(type){if(this.linkFactories[type]){return this.linkFactories[type]}throw new Error("cannot find factory for link of type: ["+type+"]")};DiagramEngine.prototype.getLabelFactory=function(type){if(this.labelFactories[type]){return this.labelFactories[type]}throw new Error("cannot find factory for label of type: ["+type+"]")};DiagramEngine.prototype.getFactoryForNode=function(node){return this.getNodeFactory(node.getType())};DiagramEngine.prototype.getFactoryForLink=function(link){return this.getLinkFactory(link.getType())};DiagramEngine.prototype.getFactoryForLabel=function(label){return this.getLabelFactory(label.getType())};DiagramEngine.prototype.generateWidgetForLink=function(link){var linkFactory=this.getFactoryForLink(link);if(!linkFactory){throw new Error("Cannot find link factory for link: "+link.getType())}return linkFactory.generateReactWidget(this,link)};DiagramEngine.prototype.generateWidgetForNode=function(node){var nodeFactory=this.getFactoryForNode(node);if(!nodeFactory){throw new Error("Cannot find widget factory for node: "+node.getType())}return nodeFactory.generateReactWidget(this,node)};DiagramEngine.prototype.getRelativeMousePoint=function(event){var point=this.getRelativePoint(event.clientX,event.clientY);return{x:(point.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(point.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}};DiagramEngine.prototype.getRelativePoint=function(x,y){var canvasRect=this.canvas.getBoundingClientRect();return{x:x-canvasRect.left,y:y-canvasRect.top}};DiagramEngine.prototype.getNodeElement=function(node){var selector=this.canvas.querySelector('.node[data-nodeid="'+node.getID()+'"]');if(selector===null){throw new Error("Cannot find Node element with nodeID: ["+node.getID()+"]")}return selector};DiagramEngine.prototype.getNodePortElement=function(port){var selector=this.canvas.querySelector('.port[data-name="'+port.getName()+'"][data-nodeid="'+port.getParent().getID()+'"]');if(selector===null){throw new Error("Cannot find Node Port element with nodeID: ["+port.getParent().getID()+"] and name: ["+port.getName()+"]")}return selector};DiagramEngine.prototype.getPortCenter=function(port){var sourceElement=this.getNodePortElement(port);var sourceRect=sourceElement.getBoundingClientRect();var rel=this.getRelativePoint(sourceRect.left,sourceRect.top);return{x:sourceElement.offsetWidth/2+(rel.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:sourceElement.offsetHeight/2+(rel.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}};DiagramEngine.prototype.getPortCoords=function(port){var sourceElement=this.getNodePortElement(port);var sourceRect=sourceElement.getBoundingClientRect();var canvasRect=this.canvas.getBoundingClientRect();return{x:(sourceRect.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-canvasRect.left,y:(sourceRect.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-canvasRect.top,width:sourceRect.width,height:sourceRect.height}};DiagramEngine.prototype.getNodeDimensions=function(node){if(!this.canvas){return{width:0,height:0}}var nodeElement=this.getNodeElement(node);var nodeRect=nodeElement.getBoundingClientRect();return{width:nodeRect.width,height:nodeRect.height}};DiagramEngine.prototype.getMaxNumberPointsPerLink=function(){return this.maxNumberPointsPerLink};DiagramEngine.prototype.setMaxNumberPointsPerLink=function(max){this.maxNumberPointsPerLink=max};DiagramEngine.prototype.isSmartRoutingEnabled=function(){return!!this.smartRouting};DiagramEngine.prototype.setSmartRoutingStatus=function(status){this.smartRouting=status};DiagramEngine.prototype.getCanvasMatrix=function(){if(this.canvasMatrix.length===0){this.calculateCanvasMatrix()}return this.canvasMatrix};DiagramEngine.prototype.calculateCanvasMatrix=function(){var _a=this.calculateMatrixDimensions(),canvasWidth=_a.width,hAdjustmentFactor=_a.hAdjustmentFactor,canvasHeight=_a.height,vAdjustmentFactor=_a.vAdjustmentFactor;this.hAdjustmentFactor=hAdjustmentFactor;this.vAdjustmentFactor=vAdjustmentFactor;var matrixWidth=Math.ceil(canvasWidth/PathFinding_1.ROUTING_SCALING_FACTOR);var matrixHeight=Math.ceil(canvasHeight/PathFinding_1.ROUTING_SCALING_FACTOR);this.canvasMatrix=_.range(0,matrixHeight).map(function(){return new Array(matrixWidth).fill(0)})};DiagramEngine.prototype.getRoutingMatrix=function(){if(this.routingMatrix.length===0){this.calculateRoutingMatrix()}return this.routingMatrix};DiagramEngine.prototype.calculateRoutingMatrix=function(){var matrix=_.cloneDeep(this.getCanvasMatrix());this.markNodes(matrix);this.markPorts(matrix);this.routingMatrix=matrix};DiagramEngine.prototype.translateRoutingX=function(x,reverse){if(reverse===void 0){reverse=false}return x+this.hAdjustmentFactor*(reverse?-1:1)};DiagramEngine.prototype.translateRoutingY=function(y,reverse){if(reverse===void 0){reverse=false}return y+this.vAdjustmentFactor*(reverse?-1:1)};DiagramEngine.prototype.zoomToFit=function(){var xFactor=this.canvas.clientWidth/this.canvas.scrollWidth;var yFactor=this.canvas.clientHeight/this.canvas.scrollHeight;var zoomFactor=xFactor<yFactor?xFactor:yFactor;this.diagramModel.setZoomLevel(this.diagramModel.getZoomLevel()*zoomFactor);this.diagramModel.setOffset(0,0);this.repaintCanvas()};return DiagramEngine}(BaseEntity_1.BaseEntity);exports.DiagramEngine=DiagramEngine},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var sq=function sq(x){return x*x};var distPointToPoint=function distPointToPoint(_ref,_ref3){var _ref2=_slicedToArray(_ref,2);var ax=_ref2[0];var ay=_ref2[1];var _ref32=_slicedToArray(_ref3,2);var bx=_ref32[0];var by=_ref32[1];return Math.sqrt(sq(ax-bx)+sq(ay-by))};var distPointToParabol=function distPointToParabol(a,f){var p=distPointToPoint(a,f);return p==0?Infinity:sq(p)/(2*Math.abs(a[1]-f[1]))};var circumCenter=function circumCenter(a,b,c){var d=(a[0]-c[0])*(b[1]-c[1])-(b[0]-c[0])*(a[1]-c[1]);if(d==0)return[Infinity,Infinity];var xc=(((a[0]-c[0])*(a[0]+c[0])+(a[1]-c[1])*(a[1]+c[1]))/2*(b[1]-c[1])-((b[0]-c[0])*(b[0]+c[0])+(b[1]-c[1])*(b[1]+c[1]))/2*(a[1]-c[1]))/d;var yc=(((b[0]-c[0])*(b[0]+c[0])+(b[1]-c[1])*(b[1]+c[1]))/2*(a[0]-c[0])-((a[0]-c[0])*(a[0]+c[0])+(a[1]-c[1])*(a[1]+c[1]))/2*(b[0]-c[0]))/d;return[xc,yc]};var parabolsCrossX=function parabolsCrossX(fa,fb,q){if(fa[1]===fb[1])return[(fa[0]+fb[0])/2,(fa[0]+fb[0])/2];var s1=(fa[1]*fb[0]-fa[0]*fb[1]+fa[0]*q-fb[0]*q+Math.sqrt((fa[0]*fa[0]+fa[1]*fa[1]-2*fa[0]*fb[0]+fb[0]*fb[0]-2*fa[1]*fb[1]+fb[1]*fb[1])*(fa[1]*fb[1]-fa[1]*q-fb[1]*q+q*q)))/(fa[1]-fb[1]);var s2=(fa[1]*fb[0]-fa[0]*fb[1]+fa[0]*q-fb[0]*q-Math.sqrt((fa[0]*fa[0]+fa[1]*fa[1]-2*fa[0]*fb[0]+fb[0]*fb[0]-2*fa[1]*fb[1]+fb[1]*fb[1])*(fa[1]*fb[1]-fa[1]*q-fb[1]*q+q*q)))/(fa[1]-fb[1]);return s1<s2?[s1,s2]:[s2,s1]};var doHalflinesCross=function doHalflinesCross(sa,sb){var approx=arguments.length<=2||arguments[2]===undefined?1e-10:arguments[2];var dx=sb.ps[0]-sa.ps[0];var dy=sb.ps[1]-sa.ps[1];if(sa.m==Infinity)return sa.hp*(sb.m*dx-dy)<=approx&&sb.vec[0]*dx<=approx;if(sb.m==Infinity)return sb.hp*(sa.m*dx-dy)>=-approx&&sa.vec[0]*dx>=-approx;var det=sb.vec[0]*sa.vec[1]-sb.vec[1]*sa.vec[0];if(det===0)return false;var u=(dy*sb.vec[0]-dx*sb.vec[1])/det;var v=(dy*sa.vec[0]-dx*sa.vec[1])/det;return u>=-approx&&v>=approx||u>=approx&&v>=-approx};var matrixTransform=function matrixTransform(points,matrix){return points.map(function(point){return{x:point.x*matrix[0]+point.y*matrix[2]+matrix[4],y:point.x*matrix[1]+point.y*matrix[3]+matrix[5]}})};var transformEllipse=function transformEllipse(rx,ry,ax,m){var torad=Math.PI/180;var epsilon=1e-10;var c=Math.cos(ax*torad),s=Math.sin(ax*torad);var ma=[rx*(m[0]*c+m[2]*s),rx*(m[1]*c+m[3]*s),ry*(-m[0]*s+m[2]*c),ry*(-m[1]*s+m[3]*c)];var J=ma[0]*ma[0]+ma[2]*ma[2],K=ma[1]*ma[1]+ma[3]*ma[3];var D=((ma[0]-ma[3])*(ma[0]-ma[3])+(ma[2]+ma[1])*(ma[2]+ma[1]))*((ma[0]+ma[3])*(ma[0]+ma[3])+(ma[2]-ma[1])*(ma[2]-ma[1]));var JK=(J+K)/2;if(D<epsilon*JK){return{rx:Math.sqrt(JK),ry:Math.sqrt(JK),ax:0,isDegenerate:false}}var L=ma[0]*ma[1]+ma[2]*ma[3];D=Math.sqrt(D);var l1=JK+D/2,l2=JK-D/2;var newAx=undefined,newRx=undefined,newRy=undefined;newAx=Math.abs(L)<epsilon&&Math.abs(l1-K)<epsilon?90:Math.atan(Math.abs(L)>Math.abs(l1-K)?(l1-J)/L:L/(l1-K))*180/Math.PI;if(newAx>=0){newRx=Math.sqrt(l1);newRy=Math.sqrt(l2)}else{newAx+=90;newRx=Math.sqrt(l2);newRy=Math.sqrt(l1)}return{rx:newRx,ry:newRy,ax:newAx,isDegenerate:newRx<epsilon*newRy||newRy<epsilon*newRx}};exports["default"]={distPointToPoint:distPointToPoint,distPointToParabol:distPointToParabol,circumCenter:circumCenter,parabolsCrossX:parabolsCrossX,doHalflinesCross:doHalflinesCross,matrixTransform:matrixTransform,transformEllipse:transformEllipse};module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _geom=__webpack_require__(50);var Path=function Path(init){var _instructions=init||[];var push=function push(arr,el){var copy=arr.slice(0,arr.length);copy.push(el);return copy};var areEqualPoints=function areEqualPoints(_ref,_ref3){var _ref2=_slicedToArray(_ref,2);var a1=_ref2[0];var b1=_ref2[1];var _ref32=_slicedToArray(_ref3,2);var a2=_ref32[0];var b2=_ref32[1];return a1===a2&&b1===b2};var trimZeros=function trimZeros(string,char){var l=string.length;while(string.charAt(l-1)==="0"){l=l-1}if(string.charAt(l-1)==="."){l=l-1}return string.substr(0,l)};var round=function round(number,digits){var str=number.toFixed(digits);return trimZeros(str)};var printInstrunction=function printInstrunction(_ref4){var command=_ref4.command;var params=_ref4.params;var numbers=params.map(function(param){return round(param,6)});return command+" "+numbers.join(" ")};var point=function point(_ref5,prev){var command=_ref5.command;var params=_ref5.params;switch(command){case"M":return[params[0],params[1]];case"L":return[params[0],params[1]];case"H":return[params[0],prev[1]];case"V":return[prev[0],params[0]];case"Z":return null;case"C":return[params[4],params[5]];case"S":return[params[2],params[3]];case"Q":return[params[2],params[3]];case"T":return[params[0],params[1]];case"A":return[params[5],params[6]]}};var transformParams=function transformParams(instruction,matrix,prev){var p=instruction.params;var transformer={V:function V(instruction,matrix,prev){var pts=[{x:prev[0],y:p[1]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);if(newPts[0].x===(0,_geom.matrixTransform)([{x:prev[0],y:prev[1]}])[0].x){return{command:"V",params:[newPts[0].y]}}else{return{command:"L",params:[newPts[0].x,newPts[0].y]}}},H:function H(instruction,matrix,prev){var pts=[{x:p[0],y:prev[1]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);if(newPts[0].y===(0,_geom.matrixTransform)([{x:prev[0],y:prev[1]}])[0].y){return{command:"H",params:[newPts[0].x]}}else{return{command:"L",params:[newPts[0].x,newPts[0].y]}}},A:function A(instruction,matrix,prev){var r=(0,_geom.transformEllipse)(p[0],p[1],p[2],matrix);var sweepFlag=p[4];if(matrix[0]*matrix[3]-matrix[1]*matrix[2]<0){sweepFlag=sweepFlag?"0":"1"}var pts=[{x:p[5],y:p[6]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);if(r.isDegenerate){return{command:"L",params:[newPts[0].x,newPts[0].y]}}else{return{command:"A",params:[r.rx,r.ry,r.ax,p[3],sweepFlag,newPts[0].x,newPts[0].y]}}},C:function C(instruction,matrix,prev){var pts=[{x:p[0],y:p[1]},{x:p[2],y:p[3]},{x:p[4],y:p[5]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);return{command:"C",params:[newPts[0].x,newPts[0].y,newPts[1].x,newPts[1].y,newPts[2].x,newPts[2].y]}},Z:function Z(instruction,matrix,prev){return{command:"Z",params:[]}},default:function _default(instruction,matrix,prev){var pts=[{x:p[0],y:p[1]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);var newParams=instruction.params.slice(0,instruction.params.length);newParams.splice(0,2,newPts[0].x,newPts[0].y);return{command:instruction.command,params:newParams}}};if(transformer[instruction.command]){return transformer[instruction.command](instruction,matrix,prev)}else{return transformer["default"](instruction,matrix,prev)}};var verbosify=function verbosify(keys,f){return function(a){var args=typeof a==="object"?keys.map(function(k){return a[k]}):arguments;return f.apply(null,args)}};var plus=function plus(instruction){return Path(push(_instructions,instruction))};return{moveto:verbosify(["x","y"],function(x,y){return plus({command:"M",params:[x,y]})}),lineto:verbosify(["x","y"],function(x,y){return plus({command:"L",params:[x,y]})}),hlineto:verbosify(["x"],function(x){return plus({command:"H",params:[x]})}),vlineto:verbosify(["y"],function(y){return plus({command:"V",params:[y]})}),closepath:function closepath(){return plus({command:"Z",params:[]})},curveto:verbosify(["x1","y1","x2","y2","x","y"],function(x1,y1,x2,y2,x,y){return plus({command:"C",params:[x1,y1,x2,y2,x,y]})}),smoothcurveto:verbosify(["x2","y2","x","y"],function(x2,y2,x,y){return plus({command:"S",params:[x2,y2,x,y]})}),qcurveto:verbosify(["x1","y1","x","y"],function(x1,y1,x,y){return plus({command:"Q",params:[x1,y1,x,y]})}),smoothqcurveto:verbosify(["x","y"],function(x,y){return plus({command:"T",params:[x,y]})}),arc:verbosify(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],function(rx,ry,xrot,largeArcFlag,sweepFlag,x,y){return plus({command:"A",params:[rx,ry,xrot,largeArcFlag,sweepFlag,x,y]})}),translate:verbosify(["dx","dy"],function(){var dx=arguments.length<=0||arguments[0]===undefined?0:arguments[0];var dy=arguments.length<=1||arguments[1]===undefined?0:arguments[1];if(dx!==0||dx!==0){var _ret=function(){var prev=[0,0];var matrix=[1,0,0,1,dx,dy];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret==="object")return _ret.v}else{return Path(_instructions)}}),rotate:verbosify(["angle","rx","ry"],function(angle){var rx=arguments.length<=1||arguments[1]===undefined?0:arguments[1];var ry=arguments.length<=2||arguments[2]===undefined?0:arguments[2];if(angle!==0){var _ret2=function(){var prev=undefined;var matrix=undefined;var newInstructions=_instructions;if(rx!==0&&ry!==0){prev=[0,0];matrix=[1,0,0,1,-rx,-ry];newInstructions=newInstructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p})}var rad=angle*Math.PI/180;var cos=Math.cos(rad);var sin=Math.sin(rad);prev=[0,0];matrix=[cos,sin,-sin,cos,0,0];newInstructions=newInstructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});if(rx!==0&&ry!==0){prev=[0,0];matrix=[1,0,0,1,rx,ry];newInstructions=newInstructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p})}return{v:Path(newInstructions)}}();if(typeof _ret2==="object")return _ret2.v}else{return Path(_instructions)}}),scale:verbosify(["sx","sy"],function(){var sx=arguments.length<=0||arguments[0]===undefined?1:arguments[0];var sy=arguments.length<=1||arguments[1]===undefined?sx:arguments[1];return function(){if(sx!==1||sy!==1){var _ret3=function(){var prev=[0,0];var matrix=[sx,0,0,sy,0,0];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret3==="object")return _ret3.v}else{return Path(_instructions)}}()}),shearX:verbosify(["angle"],function(){var angle=arguments.length<=0||arguments[0]===undefined?0:arguments[0];if(angle!==0){var _ret4=function(){var prev=[0,0];var matrix=[1,0,Math.tan(angle*Math.PI/180),1,0,0];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret4==="object")return _ret4.v}else{return Path(_instructions)}}),shearY:verbosify(["angle"],function(){var angle=arguments.length<=0||arguments[0]===undefined?0:arguments[0];if(angle!==0){var _ret5=function(){var prev=[0,0];var matrix=[1,Math.tan(angle*Math.PI/180),0,1,0,0];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret5==="object")return _ret5.v}else{return Path(_instructions)}}),print:function print(){return _instructions.map(printInstrunction).join(" ")},toString:function toString(){return undefined.print()},points:function points(){var ps=[];var prev=[0,0];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=_instructions[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var instruction=_step.value;var p=point(instruction,prev);prev=p;if(p){ps.push(p)}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}return ps},instructions:function instructions(){return _instructions.slice(0,_instructions.length)},connect:function connect(path){var ps=this.points();var last=ps[ps.length-1];var first=path.points()[0];var newInstructions=undefined;if(_instructions[_instructions.length-1].command!=="Z"){newInstructions=path.instructions().slice(1);if(!areEqualPoints(last,first)){newInstructions.unshift({command:"L",params:first})}}else{newInstructions=path.instructions()}return Path(this.instructions().concat(newInstructions))}}};exports["default"]=function(){return Path()};module.exports=exports["default"]},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFMoveDiagonallyIfAtMostOneObstacle(opt){JumpPointFinderBase.call(this,opt)}JPFMoveDiagonallyIfAtMostOneObstacle.prototype=new JumpPointFinderBase;JPFMoveDiagonallyIfAtMostOneObstacle.prototype.constructor=JPFMoveDiagonallyIfAtMostOneObstacle;JPFMoveDiagonallyIfAtMostOneObstacle.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0&&dy!==0){if(grid.isWalkableAt(x-dx,y+dy)&&!grid.isWalkableAt(x-dx,y)||grid.isWalkableAt(x+dx,y-dy)&&!grid.isWalkableAt(x,y-dy)){return[x,y]}if(this._jump(x+dx,y,x,y)||this._jump(x,y+dy,x,y)){return[x,y]}}else{if(dx!==0){if(grid.isWalkableAt(x+dx,y+1)&&!grid.isWalkableAt(x,y+1)||grid.isWalkableAt(x+dx,y-1)&&!grid.isWalkableAt(x,y-1)){return[x,y]}}else{if(grid.isWalkableAt(x+1,y+dy)&&!grid.isWalkableAt(x+1,y)||grid.isWalkableAt(x-1,y+dy)&&!grid.isWalkableAt(x-1,y)){return[x,y]}}}if(grid.isWalkableAt(x+dx,y)||grid.isWalkableAt(x,y+dy)){return this._jump(x+dx,y+dy,x,y)}else{return null}};JPFMoveDiagonallyIfAtMostOneObstacle.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0&&dy!==0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(grid.isWalkableAt(x,y+dy)||grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y+dy])}if(!grid.isWalkableAt(x-dx,y)&&grid.isWalkableAt(x,y+dy)){neighbors.push([x-dx,y+dy])}if(!grid.isWalkableAt(x,y-dy)&&grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y-dy])}}else{if(dx===0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy]);if(!grid.isWalkableAt(x+1,y)){neighbors.push([x+1,y+dy])}if(!grid.isWalkableAt(x-1,y)){neighbors.push([x-1,y+dy])}}}else{if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y]);if(!grid.isWalkableAt(x,y+1)){neighbors.push([x+dx,y+1])}if(!grid.isWalkableAt(x,y-1)){neighbors.push([x+dx,y-1])}}}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.IfAtMostOneObstacle);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFMoveDiagonallyIfAtMostOneObstacle},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFMoveDiagonallyIfNoObstacles(opt){JumpPointFinderBase.call(this,opt)}JPFMoveDiagonallyIfNoObstacles.prototype=new JumpPointFinderBase;JPFMoveDiagonallyIfNoObstacles.prototype.constructor=JPFMoveDiagonallyIfNoObstacles;JPFMoveDiagonallyIfNoObstacles.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0&&dy!==0){if(this._jump(x+dx,y,x,y)||this._jump(x,y+dy,x,y)){return[x,y]}}else{if(dx!==0){if(grid.isWalkableAt(x,y-1)&&!grid.isWalkableAt(x-dx,y-1)||grid.isWalkableAt(x,y+1)&&!grid.isWalkableAt(x-dx,y+1)){return[x,y]}}else if(dy!==0){if(grid.isWalkableAt(x-1,y)&&!grid.isWalkableAt(x-1,y-dy)||grid.isWalkableAt(x+1,y)&&!grid.isWalkableAt(x+1,y-dy)){return[x,y]}}}if(grid.isWalkableAt(x+dx,y)&&grid.isWalkableAt(x,y+dy)){return this._jump(x+dx,y+dy,x,y)}else{return null}};JPFMoveDiagonallyIfNoObstacles.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0&&dy!==0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(grid.isWalkableAt(x,y+dy)&&grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y+dy])}}else{var isNextWalkable;if(dx!==0){isNextWalkable=grid.isWalkableAt(x+dx,y);var isTopWalkable=grid.isWalkableAt(x,y+1);var isBottomWalkable=grid.isWalkableAt(x,y-1);if(isNextWalkable){neighbors.push([x+dx,y]);if(isTopWalkable){neighbors.push([x+dx,y+1])}if(isBottomWalkable){neighbors.push([x+dx,y-1])}}if(isTopWalkable){neighbors.push([x,y+1])}if(isBottomWalkable){neighbors.push([x,y-1])}}else if(dy!==0){isNextWalkable=grid.isWalkableAt(x,y+dy);var isRightWalkable=grid.isWalkableAt(x+1,y);var isLeftWalkable=grid.isWalkableAt(x-1,y);if(isNextWalkable){neighbors.push([x,y+dy]);if(isRightWalkable){neighbors.push([x+1,y+dy])}if(isLeftWalkable){neighbors.push([x-1,y+dy])}}if(isRightWalkable){neighbors.push([x+1,y])}if(isLeftWalkable){neighbors.push([x-1,y])}}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.OnlyWhenNoObstacles);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFMoveDiagonallyIfNoObstacles},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFAlwaysMoveDiagonally(opt){JumpPointFinderBase.call(this,opt)}JPFAlwaysMoveDiagonally.prototype=new JumpPointFinderBase;JPFAlwaysMoveDiagonally.prototype.constructor=JPFAlwaysMoveDiagonally;JPFAlwaysMoveDiagonally.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0&&dy!==0){if(grid.isWalkableAt(x-dx,y+dy)&&!grid.isWalkableAt(x-dx,y)||grid.isWalkableAt(x+dx,y-dy)&&!grid.isWalkableAt(x,y-dy)){return[x,y]}if(this._jump(x+dx,y,x,y)||this._jump(x,y+dy,x,y)){return[x,y]}}else{if(dx!==0){if(grid.isWalkableAt(x+dx,y+1)&&!grid.isWalkableAt(x,y+1)||grid.isWalkableAt(x+dx,y-1)&&!grid.isWalkableAt(x,y-1)){return[x,y]}}else{if(grid.isWalkableAt(x+1,y+dy)&&!grid.isWalkableAt(x+1,y)||grid.isWalkableAt(x-1,y+dy)&&!grid.isWalkableAt(x-1,y)){return[x,y]}}}return this._jump(x+dx,y+dy,x,y)};JPFAlwaysMoveDiagonally.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0&&dy!==0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(grid.isWalkableAt(x+dx,y+dy)){neighbors.push([x+dx,y+dy])}if(!grid.isWalkableAt(x-dx,y)){neighbors.push([x-dx,y+dy])}if(!grid.isWalkableAt(x,y-dy)){neighbors.push([x+dx,y-dy])}}else{if(dx===0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(!grid.isWalkableAt(x+1,y)){neighbors.push([x+1,y+dy])}if(!grid.isWalkableAt(x-1,y)){neighbors.push([x-1,y+dy])}}else{if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(!grid.isWalkableAt(x,y+1)){neighbors.push([x+dx,y+1])}if(!grid.isWalkableAt(x,y-1)){neighbors.push([x+dx,y-1])}}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.Always);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFAlwaysMoveDiagonally},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFNeverMoveDiagonally(opt){JumpPointFinderBase.call(this,opt)}JPFNeverMoveDiagonally.prototype=new JumpPointFinderBase;JPFNeverMoveDiagonally.prototype.constructor=JPFNeverMoveDiagonally;JPFNeverMoveDiagonally.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0){if(grid.isWalkableAt(x,y-1)&&!grid.isWalkableAt(x-dx,y-1)||grid.isWalkableAt(x,y+1)&&!grid.isWalkableAt(x-dx,y+1)){return[x,y]}}else if(dy!==0){if(grid.isWalkableAt(x-1,y)&&!grid.isWalkableAt(x-1,y-dy)||grid.isWalkableAt(x+1,y)&&!grid.isWalkableAt(x+1,y-dy)){return[x,y]}if(this._jump(x+1,y,x,y)||this._jump(x-1,y,x,y)){return[x,y]}}else{throw new Error("Only horizontal and vertical movements are allowed")}return this._jump(x+dx,y+dy,x,y)};JPFNeverMoveDiagonally.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0){if(grid.isWalkableAt(x,y-1)){neighbors.push([x,y-1])}if(grid.isWalkableAt(x,y+1)){neighbors.push([x,y+1])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}}else if(dy!==0){if(grid.isWalkableAt(x-1,y)){neighbors.push([x-1,y])}if(grid.isWalkableAt(x+1,y)){neighbors.push([x+1,y])}if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.Never);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFNeverMoveDiagonally},function(module,exports,__webpack_require__){var DiagonalMovement=__webpack_require__(2);var JPFNeverMoveDiagonally=__webpack_require__(55);var JPFAlwaysMoveDiagonally=__webpack_require__(54);var JPFMoveDiagonallyIfNoObstacles=__webpack_require__(53);var JPFMoveDiagonallyIfAtMostOneObstacle=__webpack_require__(52);function JumpPointFinder(opt){opt=opt||{};if(opt.diagonalMovement===DiagonalMovement.Never){return new JPFNeverMoveDiagonally(opt)}else if(opt.diagonalMovement===DiagonalMovement.Always){return new JPFAlwaysMoveDiagonally(opt)}else if(opt.diagonalMovement===DiagonalMovement.OnlyWhenNoObstacles){return new JPFMoveDiagonallyIfNoObstacles(opt)}else{return new JPFMoveDiagonallyIfAtMostOneObstacle(opt)}}module.exports=JumpPointFinder},function(module,exports,__webpack_require__){var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var Node=__webpack_require__(24);var DiagonalMovement=__webpack_require__(2);function IDAStarFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;this.heuristic=opt.heuristic||Heuristic.manhattan;this.weight=opt.weight||1;this.trackRecursion=opt.trackRecursion||false;this.timeLimit=opt.timeLimit||Infinity;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}if(this.diagonalMovement===DiagonalMovement.Never){this.heuristic=opt.heuristic||Heuristic.manhattan}else{this.heuristic=opt.heuristic||Heuristic.octile}}IDAStarFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var nodesVisited=0;var startTime=(new Date).getTime();var h=function(a,b){return this.heuristic(Math.abs(b.x-a.x),Math.abs(b.y-a.y))}.bind(this);var cost=function(a,b){return a.x===b.x||a.y===b.y?1:Math.SQRT2};var search=function(node,g,cutoff,route,depth){nodesVisited++;if(this.timeLimit>0&&(new Date).getTime()-startTime>this.timeLimit*1e3){return Infinity}var f=g+h(node,end)*this.weight;if(f>cutoff){return f}if(node==end){route[depth]=[node.x,node.y];return node}var min,t,k,neighbour;var neighbours=grid.getNeighbors(node,this.diagonalMovement);for(k=0,min=Infinity;neighbour=neighbours[k];++k){if(this.trackRecursion){neighbour.retainCount=neighbour.retainCount+1||1;if(neighbour.tested!==true){neighbour.tested=true}}t=search(neighbour,g+cost(node,neighbour),cutoff,route,depth+1);if(t instanceof Node){route[depth]=[node.x,node.y];return t}if(this.trackRecursion&&--neighbour.retainCount===0){neighbour.tested=false}if(t<min){min=t}}return min}.bind(this);var start=grid.getNodeAt(startX,startY);var end=grid.getNodeAt(endX,endY);var cutOff=h(start,end);var j,route,t;for(j=0;true;++j){route=[];t=search(start,0,cutOff,route,0);if(t===Infinity){return[]}if(t instanceof Node){return route}cutOff=t}return[]};module.exports=IDAStarFinder},function(module,exports,__webpack_require__){var BiAStarFinder=__webpack_require__(22);function BiDijkstraFinder(opt){BiAStarFinder.call(this,opt);this.heuristic=function(dx,dy){return 0}}BiDijkstraFinder.prototype=new BiAStarFinder;BiDijkstraFinder.prototype.constructor=BiDijkstraFinder;module.exports=BiDijkstraFinder},function(module,exports,__webpack_require__){var Util=__webpack_require__(4);var DiagonalMovement=__webpack_require__(2);function BiBreadthFirstFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}}BiBreadthFirstFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),startOpenList=[],endOpenList=[],neighbors,neighbor,node,diagonalMovement=this.diagonalMovement,BY_START=0,BY_END=1,i,l;startOpenList.push(startNode);startNode.opened=true;startNode.by=BY_START;endOpenList.push(endNode);endNode.opened=true;endNode.by=BY_END;while(startOpenList.length&&endOpenList.length){node=startOpenList.shift();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened){if(neighbor.by===BY_END){return Util.biBacktrace(node,neighbor)}continue}startOpenList.push(neighbor);neighbor.parent=node;neighbor.opened=true;neighbor.by=BY_START}node=endOpenList.shift();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened){if(neighbor.by===BY_START){return Util.biBacktrace(neighbor,node)}continue}endOpenList.push(neighbor);neighbor.parent=node;neighbor.opened=true;neighbor.by=BY_END}}return[]};module.exports=BiBreadthFirstFinder},function(module,exports,__webpack_require__){var BiAStarFinder=__webpack_require__(22);function BiBestFirstFinder(opt){BiAStarFinder.call(this,opt);var orig=this.heuristic;this.heuristic=function(dx,dy){return orig(dx,dy)*1e6}}BiBestFirstFinder.prototype=new BiAStarFinder;BiBestFirstFinder.prototype.constructor=BiBestFirstFinder;module.exports=BiBestFirstFinder},function(module,exports,__webpack_require__){var AStarFinder=__webpack_require__(23);function DijkstraFinder(opt){AStarFinder.call(this,opt);this.heuristic=function(dx,dy){return 0}}DijkstraFinder.prototype=new AStarFinder;DijkstraFinder.prototype.constructor=DijkstraFinder;module.exports=DijkstraFinder},function(module,exports,__webpack_require__){var Util=__webpack_require__(4);var DiagonalMovement=__webpack_require__(2);function BreadthFirstFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}}BreadthFirstFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var openList=[],diagonalMovement=this.diagonalMovement,startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),neighbors,neighbor,node,i,l;openList.push(startNode);startNode.opened=true;while(openList.length){node=openList.shift();node.closed=true;if(node===endNode){return Util.backtrace(endNode)}neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed||neighbor.opened){continue}openList.push(neighbor);neighbor.opened=true;neighbor.parent=node}}return[]};module.exports=BreadthFirstFinder},function(module,exports,__webpack_require__){var AStarFinder=__webpack_require__(23);function BestFirstFinder(opt){AStarFinder.call(this,opt);var orig=this.heuristic;this.heuristic=function(dx,dy){return orig(dx,dy)*1e6}}BestFirstFinder.prototype=new AStarFinder;BestFirstFinder.prototype.constructor=BestFirstFinder;module.exports=BestFirstFinder},function(module,exports,__webpack_require__){var Node=__webpack_require__(24);var DiagonalMovement=__webpack_require__(2);function Grid(width_or_matrix,height,matrix){var width;if(typeof width_or_matrix!=="object"){width=width_or_matrix}else{height=width_or_matrix.length;width=width_or_matrix[0].length;matrix=width_or_matrix}this.width=width;this.height=height;this.nodes=this._buildNodes(width,height,matrix)}Grid.prototype._buildNodes=function(width,height,matrix){var i,j,nodes=new Array(height);for(i=0;i<height;++i){nodes[i]=new Array(width);for(j=0;j<width;++j){nodes[i][j]=new Node(j,i)}}if(matrix===undefined){return nodes}if(matrix.length!==height||matrix[0].length!==width){throw new Error("Matrix size does not fit")}for(i=0;i<height;++i){for(j=0;j<width;++j){if(matrix[i][j]){nodes[i][j].walkable=false}}}return nodes};Grid.prototype.getNodeAt=function(x,y){return this.nodes[y][x]};Grid.prototype.isWalkableAt=function(x,y){return this.isInside(x,y)&&this.nodes[y][x].walkable};Grid.prototype.isInside=function(x,y){return x>=0&&x<this.width&&(y>=0&&y<this.height)};Grid.prototype.setWalkableAt=function(x,y,walkable){this.nodes[y][x].walkable=walkable};Grid.prototype.getNeighbors=function(node,diagonalMovement){var x=node.x,y=node.y,neighbors=[],s0=false,d0=false,s1=false,d1=false,s2=false,d2=false,s3=false,d3=false,nodes=this.nodes;if(this.isWalkableAt(x,y-1)){neighbors.push(nodes[y-1][x]);s0=true}if(this.isWalkableAt(x+1,y)){neighbors.push(nodes[y][x+1]);s1=true}if(this.isWalkableAt(x,y+1)){neighbors.push(nodes[y+1][x]);s2=true}if(this.isWalkableAt(x-1,y)){neighbors.push(nodes[y][x-1]);s3=true}if(diagonalMovement===DiagonalMovement.Never){return neighbors}if(diagonalMovement===DiagonalMovement.OnlyWhenNoObstacles){d0=s3&&s0;d1=s0&&s1;d2=s1&&s2;d3=s2&&s3}else if(diagonalMovement===DiagonalMovement.IfAtMostOneObstacle){d0=s3||s0;d1=s0||s1;d2=s1||s2;d3=s2||s3}else if(diagonalMovement===DiagonalMovement.Always){d0=true;d1=true;d2=true;d3=true}else{throw new Error("Incorrect value of diagonalMovement")}if(d0&&this.isWalkableAt(x-1,y-1)){neighbors.push(nodes[y-1][x-1])}if(d1&&this.isWalkableAt(x+1,y-1)){neighbors.push(nodes[y-1][x+1])}if(d2&&this.isWalkableAt(x+1,y+1)){neighbors.push(nodes[y+1][x+1])}if(d3&&this.isWalkableAt(x-1,y+1)){neighbors.push(nodes[y+1][x-1])}return neighbors};Grid.prototype.clone=function(){var i,j,width=this.width,height=this.height,thisNodes=this.nodes,newGrid=new Grid(width,height),newNodes=new Array(height);for(i=0;i<height;++i){newNodes[i]=new Array(width);for(j=0;j<width;++j){newNodes[i][j]=new Node(j,i,thisNodes[i][j].walkable)}}newGrid.nodes=newNodes;return newGrid};module.exports=Grid},function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,"loaded",{enumerable:true,get:function(){return module.l}});Object.defineProperty(module,"id",{enumerable:true,get:function(){return module.i}});module.webpackPolyfill=1}return module}},function(module,exports,__webpack_require__){(function(module){(function(){var Heap,defaultCmp,floor,heapify,heappop,heappush,heappushpop,heapreplace,insort,min,nlargest,nsmallest,updateItem,_siftdown,_siftup;floor=Math.floor,min=Math.min;defaultCmp=function(x,y){if(x<y){return-1}if(x>y){return 1}return 0};insort=function(a,x,lo,hi,cmp){var mid;if(lo==null){lo=0}if(cmp==null){cmp=defaultCmp}if(lo<0){throw new Error("lo must be non-negative")}if(hi==null){hi=a.length}while(lo<hi){mid=floor((lo+hi)/2);if(cmp(x,a[mid])<0){hi=mid}else{lo=mid+1}}return[].splice.apply(a,[lo,lo-lo].concat(x)),x};heappush=function(array,item,cmp){if(cmp==null){cmp=defaultCmp}array.push(item);return _siftdown(array,0,array.length-1,cmp)};heappop=function(array,cmp){var lastelt,returnitem;if(cmp==null){cmp=defaultCmp}lastelt=array.pop();if(array.length){returnitem=array[0];array[0]=lastelt;_siftup(array,0,cmp)}else{returnitem=lastelt}return returnitem};heapreplace=function(array,item,cmp){var returnitem;if(cmp==null){cmp=defaultCmp}returnitem=array[0];array[0]=item;_siftup(array,0,cmp);return returnitem};heappushpop=function(array,item,cmp){var _ref;if(cmp==null){cmp=defaultCmp}if(array.length&&cmp(array[0],item)<0){_ref=[array[0],item],item=_ref[0],array[0]=_ref[1];_siftup(array,0,cmp)}return item};heapify=function(array,cmp){var i,_i,_j,_len,_ref,_ref1,_results,_results1;if(cmp==null){cmp=defaultCmp}_ref1=function(){_results1=[];for(var _j=0,_ref=floor(array.length/2);0<=_ref?_j<_ref:_j>_ref;0<=_ref?_j++:_j--){_results1.push(_j)}return _results1}.apply(this).reverse();_results=[];for(_i=0,_len=_ref1.length;_i<_len;_i++){i=_ref1[_i];_results.push(_siftup(array,i,cmp))}return _results};updateItem=function(array,item,cmp){var pos;if(cmp==null){cmp=defaultCmp}pos=array.indexOf(item);if(pos===-1){return}_siftdown(array,0,pos,cmp);return _siftup(array,pos,cmp)};nlargest=function(array,n,cmp){var elem,result,_i,_len,_ref;if(cmp==null){cmp=defaultCmp}result=array.slice(0,n);if(!result.length){return result}heapify(result,cmp);_ref=array.slice(n);for(_i=0,_len=_ref.length;_i<_len;_i++){elem=_ref[_i];heappushpop(result,elem,cmp)}return result.sort(cmp).reverse()};nsmallest=function(array,n,cmp){var elem,i,los,result,_i,_j,_len,_ref,_ref1,_results;if(cmp==null){cmp=defaultCmp}if(n*10<=array.length){result=array.slice(0,n).sort(cmp);if(!result.length){return result}los=result[result.length-1];_ref=array.slice(n);for(_i=0,_len=_ref.length;_i<_len;_i++){elem=_ref[_i];if(cmp(elem,los)<0){insort(result,elem,0,null,cmp);result.pop();los=result[result.length-1]}}return result}heapify(array,cmp);_results=[];for(i=_j=0,_ref1=min(n,array.length);0<=_ref1?_j<_ref1:_j>_ref1;i=0<=_ref1?++_j:--_j){_results.push(heappop(array,cmp))}return _results};_siftdown=function(array,startpos,pos,cmp){var newitem,parent,parentpos;if(cmp==null){cmp=defaultCmp}newitem=array[pos];while(pos>startpos){parentpos=pos-1>>1;parent=array[parentpos];if(cmp(newitem,parent)<0){array[pos]=parent;pos=parentpos;continue}break}return array[pos]=newitem};_siftup=function(array,pos,cmp){var childpos,endpos,newitem,rightpos,startpos;if(cmp==null){cmp=defaultCmp}endpos=array.length;startpos=pos;newitem=array[pos];childpos=2*pos+1;while(childpos<endpos){rightpos=childpos+1;if(rightpos<endpos&&!(cmp(array[childpos],array[rightpos])<0)){childpos=rightpos}array[pos]=array[childpos];pos=childpos;childpos=2*pos+1}array[pos]=newitem;return _siftdown(array,startpos,pos,cmp)};Heap=function(){Heap.push=heappush;Heap.pop=heappop;Heap.replace=heapreplace;Heap.pushpop=heappushpop;Heap.heapify=heapify;Heap.updateItem=updateItem;Heap.nlargest=nlargest;Heap.nsmallest=nsmallest;function Heap(cmp){this.cmp=cmp!=null?cmp:defaultCmp;this.nodes=[]}Heap.prototype.push=function(x){return heappush(this.nodes,x,this.cmp)};Heap.prototype.pop=function(){return heappop(this.nodes,this.cmp)};Heap.prototype.peek=function(){return this.nodes[0]};Heap.prototype.contains=function(x){return this.nodes.indexOf(x)!==-1};Heap.prototype.replace=function(x){return heapreplace(this.nodes,x,this.cmp)};Heap.prototype.pushpop=function(x){return heappushpop(this.nodes,x,this.cmp)};Heap.prototype.heapify=function(){return heapify(this.nodes,this.cmp)};Heap.prototype.updateItem=function(x){return updateItem(this.nodes,x,this.cmp)};Heap.prototype.clear=function(){return this.nodes=[]};Heap.prototype.empty=function(){return this.nodes.length===0};Heap.prototype.size=function(){return this.nodes.length};Heap.prototype.clone=function(){var heap;heap=new Heap;heap.nodes=this.nodes.slice(0);return heap};Heap.prototype.toArray=function(){return this.nodes.slice(0)};Heap.prototype.insert=Heap.prototype.push;Heap.prototype.top=Heap.prototype.peek;Heap.prototype.front=Heap.prototype.peek;Heap.prototype.has=Heap.prototype.contains;Heap.prototype.copy=Heap.prototype.clone;return Heap}();if(typeof module!=="undefined"&&module!==null?module.exports:void 0){module.exports=Heap}else{window.Heap=Heap}}).call(this)}).call(this,__webpack_require__(65)(module))},function(module,exports,__webpack_require__){module.exports={Heap:__webpack_require__(15),Node:__webpack_require__(24),Grid:__webpack_require__(64),Util:__webpack_require__(4),DiagonalMovement:__webpack_require__(2),Heuristic:__webpack_require__(10),AStarFinder:__webpack_require__(23),BestFirstFinder:__webpack_require__(63),BreadthFirstFinder:__webpack_require__(62),DijkstraFinder:__webpack_require__(61),BiAStarFinder:__webpack_require__(22),BiBestFirstFinder:__webpack_require__(60),BiBreadthFirstFinder:__webpack_require__(59),BiDijkstraFinder:__webpack_require__(58),IDAStarFinder:__webpack_require__(57),JumpPointFinder:__webpack_require__(56)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(67)},function(module,exports){var proto=Element.prototype;var vendor=proto.matchesSelector||proto.webkitMatchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector;module.exports=match;function match(el,selector){if(vendor)return vendor.call(el,selector);var nodes=el.parentNode.querySelectorAll(selector);for(var i=0;i<nodes.length;++i){if(nodes[i]==el)return true}return false}},function(module,exports,__webpack_require__){var matches=__webpack_require__(69);module.exports=function(element,selector,checkYoSelf){var parent=checkYoSelf?element:element.parentNode;while(parent&&parent!==document){if(matches(parent,selector))return parent;parent=parent.parentNode}}}])});
  41955. //# sourceMappingURL=main.js.map
  41956. /***/ }),
  41957. /***/ "../../node_modules/storm-react-diagrams/dist/style.min.css":
  41958. /*!********************************************************************************!*\
  41959. !*** D:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  41960. \********************************************************************************/
  41961. /*! no static exports found */
  41962. /***/ (function(module, exports, __webpack_require__) {
  41963. var content = __webpack_require__(/*! !../../css-loader!./style.min.css */ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css");
  41964. if(typeof content === 'string') content = [[module.i, content, '']];
  41965. var transform;
  41966. var insertInto;
  41967. var options = {"hmr":true}
  41968. options.transform = transform
  41969. options.insertInto = undefined;
  41970. var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  41971. if(content.locals) module.exports = content.locals;
  41972. if(false) {}
  41973. /***/ }),
  41974. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  41975. /*!**********************************************************************!*\
  41976. !*** D:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  41977. \**********************************************************************/
  41978. /*! no static exports found */
  41979. /***/ (function(module, exports, __webpack_require__) {
  41980. /*
  41981. MIT License http://www.opensource.org/licenses/mit-license.php
  41982. Author Tobias Koppers @sokra
  41983. */
  41984. var stylesInDom = {};
  41985. var memoize = function (fn) {
  41986. var memo;
  41987. return function () {
  41988. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  41989. return memo;
  41990. };
  41991. };
  41992. var isOldIE = memoize(function () {
  41993. // Test for IE <= 9 as proposed by Browserhacks
  41994. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  41995. // Tests for existence of standard globals is to allow style-loader
  41996. // to operate correctly into non-standard environments
  41997. // @see https://github.com/webpack-contrib/style-loader/issues/177
  41998. return window && document && document.all && !window.atob;
  41999. });
  42000. var getTarget = function (target) {
  42001. return document.querySelector(target);
  42002. };
  42003. var getElement = (function (fn) {
  42004. var memo = {};
  42005. return function(target) {
  42006. // If passing function in options, then use it for resolve "head" element.
  42007. // Useful for Shadow Root style i.e
  42008. // {
  42009. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  42010. // }
  42011. if (typeof target === 'function') {
  42012. return target();
  42013. }
  42014. if (typeof memo[target] === "undefined") {
  42015. var styleTarget = getTarget.call(this, target);
  42016. // Special case to return head of iframe instead of iframe itself
  42017. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  42018. try {
  42019. // This will throw an exception if access to iframe is blocked
  42020. // due to cross-origin restrictions
  42021. styleTarget = styleTarget.contentDocument.head;
  42022. } catch(e) {
  42023. styleTarget = null;
  42024. }
  42025. }
  42026. memo[target] = styleTarget;
  42027. }
  42028. return memo[target]
  42029. };
  42030. })();
  42031. var singleton = null;
  42032. var singletonCounter = 0;
  42033. var stylesInsertedAtTop = [];
  42034. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  42035. module.exports = function(list, options) {
  42036. if (typeof DEBUG !== "undefined" && DEBUG) {
  42037. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  42038. }
  42039. options = options || {};
  42040. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  42041. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  42042. // tags it will allow on a page
  42043. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  42044. // By default, add <style> tags to the <head> element
  42045. if (!options.insertInto) options.insertInto = "head";
  42046. // By default, add <style> tags to the bottom of the target
  42047. if (!options.insertAt) options.insertAt = "bottom";
  42048. var styles = listToStyles(list, options);
  42049. addStylesToDom(styles, options);
  42050. return function update (newList) {
  42051. var mayRemove = [];
  42052. for (var i = 0; i < styles.length; i++) {
  42053. var item = styles[i];
  42054. var domStyle = stylesInDom[item.id];
  42055. domStyle.refs--;
  42056. mayRemove.push(domStyle);
  42057. }
  42058. if(newList) {
  42059. var newStyles = listToStyles(newList, options);
  42060. addStylesToDom(newStyles, options);
  42061. }
  42062. for (var i = 0; i < mayRemove.length; i++) {
  42063. var domStyle = mayRemove[i];
  42064. if(domStyle.refs === 0) {
  42065. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  42066. delete stylesInDom[domStyle.id];
  42067. }
  42068. }
  42069. };
  42070. };
  42071. function addStylesToDom (styles, options) {
  42072. for (var i = 0; i < styles.length; i++) {
  42073. var item = styles[i];
  42074. var domStyle = stylesInDom[item.id];
  42075. if(domStyle) {
  42076. domStyle.refs++;
  42077. for(var j = 0; j < domStyle.parts.length; j++) {
  42078. domStyle.parts[j](item.parts[j]);
  42079. }
  42080. for(; j < item.parts.length; j++) {
  42081. domStyle.parts.push(addStyle(item.parts[j], options));
  42082. }
  42083. } else {
  42084. var parts = [];
  42085. for(var j = 0; j < item.parts.length; j++) {
  42086. parts.push(addStyle(item.parts[j], options));
  42087. }
  42088. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  42089. }
  42090. }
  42091. }
  42092. function listToStyles (list, options) {
  42093. var styles = [];
  42094. var newStyles = {};
  42095. for (var i = 0; i < list.length; i++) {
  42096. var item = list[i];
  42097. var id = options.base ? item[0] + options.base : item[0];
  42098. var css = item[1];
  42099. var media = item[2];
  42100. var sourceMap = item[3];
  42101. var part = {css: css, media: media, sourceMap: sourceMap};
  42102. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  42103. else newStyles[id].parts.push(part);
  42104. }
  42105. return styles;
  42106. }
  42107. function insertStyleElement (options, style) {
  42108. var target = getElement(options.insertInto)
  42109. if (!target) {
  42110. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  42111. }
  42112. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  42113. if (options.insertAt === "top") {
  42114. if (!lastStyleElementInsertedAtTop) {
  42115. target.insertBefore(style, target.firstChild);
  42116. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  42117. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  42118. } else {
  42119. target.appendChild(style);
  42120. }
  42121. stylesInsertedAtTop.push(style);
  42122. } else if (options.insertAt === "bottom") {
  42123. target.appendChild(style);
  42124. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  42125. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  42126. target.insertBefore(style, nextSibling);
  42127. } else {
  42128. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  42129. }
  42130. }
  42131. function removeStyleElement (style) {
  42132. if (style.parentNode === null) return false;
  42133. style.parentNode.removeChild(style);
  42134. var idx = stylesInsertedAtTop.indexOf(style);
  42135. if(idx >= 0) {
  42136. stylesInsertedAtTop.splice(idx, 1);
  42137. }
  42138. }
  42139. function createStyleElement (options) {
  42140. var style = document.createElement("style");
  42141. if(options.attrs.type === undefined) {
  42142. options.attrs.type = "text/css";
  42143. }
  42144. addAttrs(style, options.attrs);
  42145. insertStyleElement(options, style);
  42146. return style;
  42147. }
  42148. function createLinkElement (options) {
  42149. var link = document.createElement("link");
  42150. if(options.attrs.type === undefined) {
  42151. options.attrs.type = "text/css";
  42152. }
  42153. options.attrs.rel = "stylesheet";
  42154. addAttrs(link, options.attrs);
  42155. insertStyleElement(options, link);
  42156. return link;
  42157. }
  42158. function addAttrs (el, attrs) {
  42159. Object.keys(attrs).forEach(function (key) {
  42160. el.setAttribute(key, attrs[key]);
  42161. });
  42162. }
  42163. function addStyle (obj, options) {
  42164. var style, update, remove, result;
  42165. // If a transform function was defined, run it on the css
  42166. if (options.transform && obj.css) {
  42167. result = options.transform(obj.css);
  42168. if (result) {
  42169. // If transform returns a value, use that instead of the original css.
  42170. // This allows running runtime transformations on the css.
  42171. obj.css = result;
  42172. } else {
  42173. // If the transform function returns a falsy value, don't add this css.
  42174. // This allows conditional loading of css
  42175. return function() {
  42176. // noop
  42177. };
  42178. }
  42179. }
  42180. if (options.singleton) {
  42181. var styleIndex = singletonCounter++;
  42182. style = singleton || (singleton = createStyleElement(options));
  42183. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  42184. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  42185. } else if (
  42186. obj.sourceMap &&
  42187. typeof URL === "function" &&
  42188. typeof URL.createObjectURL === "function" &&
  42189. typeof URL.revokeObjectURL === "function" &&
  42190. typeof Blob === "function" &&
  42191. typeof btoa === "function"
  42192. ) {
  42193. style = createLinkElement(options);
  42194. update = updateLink.bind(null, style, options);
  42195. remove = function () {
  42196. removeStyleElement(style);
  42197. if(style.href) URL.revokeObjectURL(style.href);
  42198. };
  42199. } else {
  42200. style = createStyleElement(options);
  42201. update = applyToTag.bind(null, style);
  42202. remove = function () {
  42203. removeStyleElement(style);
  42204. };
  42205. }
  42206. update(obj);
  42207. return function updateStyle (newObj) {
  42208. if (newObj) {
  42209. if (
  42210. newObj.css === obj.css &&
  42211. newObj.media === obj.media &&
  42212. newObj.sourceMap === obj.sourceMap
  42213. ) {
  42214. return;
  42215. }
  42216. update(obj = newObj);
  42217. } else {
  42218. remove();
  42219. }
  42220. };
  42221. }
  42222. var replaceText = (function () {
  42223. var textStore = [];
  42224. return function (index, replacement) {
  42225. textStore[index] = replacement;
  42226. return textStore.filter(Boolean).join('\n');
  42227. };
  42228. })();
  42229. function applyToSingletonTag (style, index, remove, obj) {
  42230. var css = remove ? "" : obj.css;
  42231. if (style.styleSheet) {
  42232. style.styleSheet.cssText = replaceText(index, css);
  42233. } else {
  42234. var cssNode = document.createTextNode(css);
  42235. var childNodes = style.childNodes;
  42236. if (childNodes[index]) style.removeChild(childNodes[index]);
  42237. if (childNodes.length) {
  42238. style.insertBefore(cssNode, childNodes[index]);
  42239. } else {
  42240. style.appendChild(cssNode);
  42241. }
  42242. }
  42243. }
  42244. function applyToTag (style, obj) {
  42245. var css = obj.css;
  42246. var media = obj.media;
  42247. if(media) {
  42248. style.setAttribute("media", media)
  42249. }
  42250. if(style.styleSheet) {
  42251. style.styleSheet.cssText = css;
  42252. } else {
  42253. while(style.firstChild) {
  42254. style.removeChild(style.firstChild);
  42255. }
  42256. style.appendChild(document.createTextNode(css));
  42257. }
  42258. }
  42259. function updateLink (link, options, obj) {
  42260. var css = obj.css;
  42261. var sourceMap = obj.sourceMap;
  42262. /*
  42263. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  42264. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  42265. on by default. Otherwise default to the convertToAbsoluteUrls option
  42266. directly
  42267. */
  42268. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  42269. if (options.convertToAbsoluteUrls || autoFixUrls) {
  42270. css = fixUrls(css);
  42271. }
  42272. if (sourceMap) {
  42273. // http://stackoverflow.com/a/26603875
  42274. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  42275. }
  42276. var blob = new Blob([css], { type: "text/css" });
  42277. var oldSrc = link.href;
  42278. link.href = URL.createObjectURL(blob);
  42279. if(oldSrc) URL.revokeObjectURL(oldSrc);
  42280. }
  42281. /***/ }),
  42282. /***/ "../../node_modules/style-loader/lib/urls.js":
  42283. /*!*****************************************************************!*\
  42284. !*** D:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  42285. \*****************************************************************/
  42286. /*! no static exports found */
  42287. /***/ (function(module, exports) {
  42288. /**
  42289. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  42290. * embed the css on the page. This breaks all relative urls because now they are relative to a
  42291. * bundle instead of the current page.
  42292. *
  42293. * One solution is to only use full urls, but that may be impossible.
  42294. *
  42295. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  42296. *
  42297. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  42298. *
  42299. */
  42300. module.exports = function (css) {
  42301. // get current location
  42302. var location = typeof window !== "undefined" && window.location;
  42303. if (!location) {
  42304. throw new Error("fixUrls requires window.location");
  42305. }
  42306. // blank or null?
  42307. if (!css || typeof css !== "string") {
  42308. return css;
  42309. }
  42310. var baseUrl = location.protocol + "//" + location.host;
  42311. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  42312. // convert each url(...)
  42313. /*
  42314. This regular expression is just a way to recursively match brackets within
  42315. a string.
  42316. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  42317. ( = Start a capturing group
  42318. (?: = Start a non-capturing group
  42319. [^)(] = Match anything that isn't a parentheses
  42320. | = OR
  42321. \( = Match a start parentheses
  42322. (?: = Start another non-capturing groups
  42323. [^)(]+ = Match anything that isn't a parentheses
  42324. | = OR
  42325. \( = Match a start parentheses
  42326. [^)(]* = Match anything that isn't a parentheses
  42327. \) = Match a end parentheses
  42328. ) = End Group
  42329. *\) = Match anything and then a close parens
  42330. ) = Close non-capturing group
  42331. * = Match anything
  42332. ) = Close capturing group
  42333. \) = Match a close parens
  42334. /gi = Get all matches, not the first. Be case insensitive.
  42335. */
  42336. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  42337. // strip quotes (if they exist)
  42338. var unquotedOrigUrl = origUrl
  42339. .trim()
  42340. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  42341. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  42342. // already a full url? no change
  42343. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  42344. return fullMatch;
  42345. }
  42346. // convert the url to a full url
  42347. var newUrl;
  42348. if (unquotedOrigUrl.indexOf("//") === 0) {
  42349. //TODO: should we add protocol?
  42350. newUrl = unquotedOrigUrl;
  42351. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  42352. // path should be relative to the base url
  42353. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  42354. } else {
  42355. // path should be relative to current directory
  42356. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  42357. }
  42358. // send back the fixed url(...)
  42359. return "url(" + JSON.stringify(newUrl) + ")";
  42360. });
  42361. // send back the fixed css
  42362. return fixedCss;
  42363. };
  42364. /***/ }),
  42365. /***/ "../../node_modules/tslib/tslib.es6.js":
  42366. /*!***********************************************************!*\
  42367. !*** D:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  42368. \***********************************************************/
  42369. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  42370. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42371. "use strict";
  42372. __webpack_require__.r(__webpack_exports__);
  42373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  42374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  42375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  42376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  42377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  42378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  42379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  42380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  42381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  42382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  42383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  42384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  42385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  42386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  42387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  42388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  42389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  42390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  42391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  42392. /*! *****************************************************************************
  42393. Copyright (c) Microsoft Corporation. All rights reserved.
  42394. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  42395. this file except in compliance with the License. You may obtain a copy of the
  42396. License at http://www.apache.org/licenses/LICENSE-2.0
  42397. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  42398. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  42399. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  42400. MERCHANTABLITY OR NON-INFRINGEMENT.
  42401. See the Apache Version 2.0 License for specific language governing permissions
  42402. and limitations under the License.
  42403. ***************************************************************************** */
  42404. /* global Reflect, Promise */
  42405. var extendStatics = function(d, b) {
  42406. extendStatics = Object.setPrototypeOf ||
  42407. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  42408. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  42409. return extendStatics(d, b);
  42410. };
  42411. function __extends(d, b) {
  42412. extendStatics(d, b);
  42413. function __() { this.constructor = d; }
  42414. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  42415. }
  42416. var __assign = function() {
  42417. __assign = Object.assign || function __assign(t) {
  42418. for (var s, i = 1, n = arguments.length; i < n; i++) {
  42419. s = arguments[i];
  42420. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  42421. }
  42422. return t;
  42423. }
  42424. return __assign.apply(this, arguments);
  42425. }
  42426. function __rest(s, e) {
  42427. var t = {};
  42428. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  42429. t[p] = s[p];
  42430. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  42431. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
  42432. t[p[i]] = s[p[i]];
  42433. return t;
  42434. }
  42435. function __decorate(decorators, target, key, desc) {
  42436. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  42437. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  42438. 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;
  42439. return c > 3 && r && Object.defineProperty(target, key, r), r;
  42440. }
  42441. function __param(paramIndex, decorator) {
  42442. return function (target, key) { decorator(target, key, paramIndex); }
  42443. }
  42444. function __metadata(metadataKey, metadataValue) {
  42445. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  42446. }
  42447. function __awaiter(thisArg, _arguments, P, generator) {
  42448. return new (P || (P = Promise))(function (resolve, reject) {
  42449. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  42450. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  42451. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  42452. step((generator = generator.apply(thisArg, _arguments || [])).next());
  42453. });
  42454. }
  42455. function __generator(thisArg, body) {
  42456. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  42457. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  42458. function verb(n) { return function (v) { return step([n, v]); }; }
  42459. function step(op) {
  42460. if (f) throw new TypeError("Generator is already executing.");
  42461. while (_) try {
  42462. 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;
  42463. if (y = 0, t) op = [op[0] & 2, t.value];
  42464. switch (op[0]) {
  42465. case 0: case 1: t = op; break;
  42466. case 4: _.label++; return { value: op[1], done: false };
  42467. case 5: _.label++; y = op[1]; op = [0]; continue;
  42468. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  42469. default:
  42470. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  42471. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  42472. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  42473. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  42474. if (t[2]) _.ops.pop();
  42475. _.trys.pop(); continue;
  42476. }
  42477. op = body.call(thisArg, _);
  42478. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  42479. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  42480. }
  42481. }
  42482. function __exportStar(m, exports) {
  42483. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  42484. }
  42485. function __values(o) {
  42486. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  42487. if (m) return m.call(o);
  42488. return {
  42489. next: function () {
  42490. if (o && i >= o.length) o = void 0;
  42491. return { value: o && o[i++], done: !o };
  42492. }
  42493. };
  42494. }
  42495. function __read(o, n) {
  42496. var m = typeof Symbol === "function" && o[Symbol.iterator];
  42497. if (!m) return o;
  42498. var i = m.call(o), r, ar = [], e;
  42499. try {
  42500. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  42501. }
  42502. catch (error) { e = { error: error }; }
  42503. finally {
  42504. try {
  42505. if (r && !r.done && (m = i["return"])) m.call(i);
  42506. }
  42507. finally { if (e) throw e.error; }
  42508. }
  42509. return ar;
  42510. }
  42511. function __spread() {
  42512. for (var ar = [], i = 0; i < arguments.length; i++)
  42513. ar = ar.concat(__read(arguments[i]));
  42514. return ar;
  42515. }
  42516. function __await(v) {
  42517. return this instanceof __await ? (this.v = v, this) : new __await(v);
  42518. }
  42519. function __asyncGenerator(thisArg, _arguments, generator) {
  42520. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  42521. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  42522. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  42523. 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); }); }; }
  42524. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  42525. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  42526. function fulfill(value) { resume("next", value); }
  42527. function reject(value) { resume("throw", value); }
  42528. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  42529. }
  42530. function __asyncDelegator(o) {
  42531. var i, p;
  42532. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  42533. 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; }
  42534. }
  42535. function __asyncValues(o) {
  42536. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  42537. var m = o[Symbol.asyncIterator], i;
  42538. 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);
  42539. 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); }); }; }
  42540. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  42541. }
  42542. function __makeTemplateObject(cooked, raw) {
  42543. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  42544. return cooked;
  42545. };
  42546. function __importStar(mod) {
  42547. if (mod && mod.__esModule) return mod;
  42548. var result = {};
  42549. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  42550. result.default = mod;
  42551. return result;
  42552. }
  42553. function __importDefault(mod) {
  42554. return (mod && mod.__esModule) ? mod : { default: mod };
  42555. }
  42556. /***/ }),
  42557. /***/ "../../node_modules/webpack/buildin/global.js":
  42558. /*!***********************************!*\
  42559. !*** (webpack)/buildin/global.js ***!
  42560. \***********************************/
  42561. /*! no static exports found */
  42562. /***/ (function(module, exports) {
  42563. var g;
  42564. // This works in non-strict mode
  42565. g = (function() {
  42566. return this;
  42567. })();
  42568. try {
  42569. // This works if eval is allowed (see CSP)
  42570. g = g || new Function("return this")();
  42571. } catch (e) {
  42572. // This works if the window reference is available
  42573. if (typeof window === "object") g = window;
  42574. }
  42575. // g can still be undefined, but nothing to do about it...
  42576. // We return undefined, instead of nothing here, so it's
  42577. // easier to handle this case. if(!global) { ...}
  42578. module.exports = g;
  42579. /***/ }),
  42580. /***/ "../../node_modules/webpack/buildin/module.js":
  42581. /*!***********************************!*\
  42582. !*** (webpack)/buildin/module.js ***!
  42583. \***********************************/
  42584. /*! no static exports found */
  42585. /***/ (function(module, exports) {
  42586. module.exports = function(module) {
  42587. if (!module.webpackPolyfill) {
  42588. module.deprecate = function() {};
  42589. module.paths = [];
  42590. // module.parent = undefined by default
  42591. if (!module.children) module.children = [];
  42592. Object.defineProperty(module, "loaded", {
  42593. enumerable: true,
  42594. get: function() {
  42595. return module.l;
  42596. }
  42597. });
  42598. Object.defineProperty(module, "id", {
  42599. enumerable: true,
  42600. get: function() {
  42601. return module.i;
  42602. }
  42603. });
  42604. module.webpackPolyfill = 1;
  42605. }
  42606. return module;
  42607. };
  42608. /***/ }),
  42609. /***/ "./components/diagram/defaultNodeModel.ts":
  42610. /*!************************************************!*\
  42611. !*** ./components/diagram/defaultNodeModel.ts ***!
  42612. \************************************************/
  42613. /*! exports provided: DefaultNodeModel */
  42614. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42615. "use strict";
  42616. __webpack_require__.r(__webpack_exports__);
  42617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultNodeModel", function() { return DefaultNodeModel; });
  42618. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42619. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42620. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42621. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  42622. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__);
  42623. /* harmony import */ var _defaultPortModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultPortModel */ "./components/diagram/defaultPortModel.ts");
  42624. /**
  42625. * Generic node model which stores information about a node editor block
  42626. */
  42627. var DefaultNodeModel = /** @class */ (function (_super) {
  42628. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultNodeModel, _super);
  42629. /**
  42630. * Constructs the node model
  42631. */
  42632. function DefaultNodeModel(key) {
  42633. var _this = _super.call(this, key) || this;
  42634. /**
  42635. * The babylon block this node represents
  42636. */
  42637. _this.block = null;
  42638. return _this;
  42639. }
  42640. DefaultNodeModel.prototype.prepare = function (options, nodes, model, graphEditor, filterInputs) {
  42641. var _this = this;
  42642. this.block = options.nodeMaterialBlock || null;
  42643. if (!options.nodeMaterialBlock) {
  42644. return;
  42645. }
  42646. // Create output ports
  42647. options.nodeMaterialBlock._outputs.forEach(function (connection) {
  42648. var outputPort = new _defaultPortModel__WEBPACK_IMPORTED_MODULE_3__["DefaultPortModel"](connection.name, "output");
  42649. outputPort.syncWithNodeMaterialConnectionPoint(connection);
  42650. _this.addPort(outputPort);
  42651. });
  42652. // Create input ports and nodes if they exist
  42653. options.nodeMaterialBlock._inputs.forEach(function (connection) {
  42654. if (filterInputs.length > 0 && filterInputs.indexOf(connection.name) === -1) {
  42655. return;
  42656. }
  42657. var inputPort = new _defaultPortModel__WEBPACK_IMPORTED_MODULE_3__["DefaultPortModel"](connection.name, "input");
  42658. inputPort.connection = connection;
  42659. _this.addPort(inputPort);
  42660. console.log(connection.name + " for " + options.nodeMaterialBlock.name);
  42661. if (connection.connectedPoint) {
  42662. // Block is not a leaf node, create node for the given block type
  42663. var connectedNode;
  42664. var existingNodes = nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  42665. if (existingNodes.length == 0) {
  42666. connectedNode = graphEditor.createNodeFromObject({ column: options.column + 1, nodeMaterialBlock: connection.connectedPoint._ownerBlock });
  42667. }
  42668. else {
  42669. connectedNode = existingNodes[0];
  42670. }
  42671. var link = connectedNode.ports[connection.connectedPoint.name].link(inputPort);
  42672. model.addAll(link);
  42673. }
  42674. else {
  42675. // Create value node for the connection
  42676. var type = "";
  42677. if (connection.type == babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Texture) {
  42678. type = "Texture";
  42679. }
  42680. else if (connection.type == babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Matrix) {
  42681. type = "Matrix";
  42682. }
  42683. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3) {
  42684. type = "Vector3";
  42685. }
  42686. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2) {
  42687. type = "Vector2";
  42688. }
  42689. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3OrVector4OrColor4) {
  42690. type = "Vector4";
  42691. }
  42692. // Create links
  42693. var localNode = graphEditor.addValueNode(type, options.column + 1, connection);
  42694. if (localNode) {
  42695. var ports = localNode.getPorts();
  42696. for (var key in ports) {
  42697. var link = ports[key].link(inputPort);
  42698. model.addAll(link);
  42699. }
  42700. }
  42701. }
  42702. });
  42703. };
  42704. DefaultNodeModel.prototype.renderProperties = function (globalState) {
  42705. return null;
  42706. };
  42707. return DefaultNodeModel;
  42708. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["NodeModel"]));
  42709. /***/ }),
  42710. /***/ "./components/diagram/defaultPortModel.ts":
  42711. /*!************************************************!*\
  42712. !*** ./components/diagram/defaultPortModel.ts ***!
  42713. \************************************************/
  42714. /*! exports provided: DefaultPortModel */
  42715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42716. "use strict";
  42717. __webpack_require__.r(__webpack_exports__);
  42718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortModel", function() { return DefaultPortModel; });
  42719. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42720. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42721. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42722. /**
  42723. * Port model
  42724. */
  42725. var DefaultPortModel = /** @class */ (function (_super) {
  42726. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortModel, _super);
  42727. function DefaultPortModel(name, type) {
  42728. if (type === void 0) { type = "input"; }
  42729. var _this = _super.call(this, name, "generic") || this;
  42730. /**
  42731. * What the port is connected to
  42732. */
  42733. _this.connection = null;
  42734. _this.getValue = function () {
  42735. return null;
  42736. };
  42737. _this.position = type;
  42738. DefaultPortModel.idCounter++;
  42739. return _this;
  42740. }
  42741. DefaultPortModel.prototype.syncWithNodeMaterialConnectionPoint = function (connection) {
  42742. this.connection = connection;
  42743. this.name = connection.name;
  42744. };
  42745. DefaultPortModel.prototype.getNodeModel = function () {
  42746. return this.parent;
  42747. };
  42748. DefaultPortModel.prototype.link = function (outPort) {
  42749. var link = this.createLinkModel();
  42750. link.setSourcePort(this);
  42751. link.setTargetPort(outPort);
  42752. return link;
  42753. };
  42754. DefaultPortModel.prototype.getInputFromBlock = function () {
  42755. };
  42756. DefaultPortModel.prototype.createLinkModel = function () {
  42757. return new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkModel"]();
  42758. };
  42759. DefaultPortModel.SortInputOutput = function (a, b) {
  42760. if (!a || !b) {
  42761. return null;
  42762. }
  42763. else if (a.position == "output" && b.position == "input") {
  42764. return {
  42765. input: b,
  42766. output: a
  42767. };
  42768. }
  42769. else if (b.position == "output" && a.position == "input") {
  42770. return {
  42771. input: a,
  42772. output: b
  42773. };
  42774. }
  42775. else {
  42776. return null;
  42777. }
  42778. };
  42779. DefaultPortModel.idCounter = 0;
  42780. return DefaultPortModel;
  42781. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["PortModel"]));
  42782. /***/ }),
  42783. /***/ "./components/diagram/diagram.scss":
  42784. /*!*****************************************!*\
  42785. !*** ./components/diagram/diagram.scss ***!
  42786. \*****************************************/
  42787. /*! no static exports found */
  42788. /***/ (function(module, exports, __webpack_require__) {
  42789. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./diagram.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss");
  42790. if(typeof content === 'string') content = [[module.i, content, '']];
  42791. var transform;
  42792. var insertInto;
  42793. var options = {"hmr":true}
  42794. options.transform = transform
  42795. options.insertInto = undefined;
  42796. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  42797. if(content.locals) module.exports = content.locals;
  42798. if(false) {}
  42799. /***/ }),
  42800. /***/ "./components/diagram/generic/genericNodeFactory.tsx":
  42801. /*!***********************************************************!*\
  42802. !*** ./components/diagram/generic/genericNodeFactory.tsx ***!
  42803. \***********************************************************/
  42804. /*! exports provided: GenericNodeFactory */
  42805. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42806. "use strict";
  42807. __webpack_require__.r(__webpack_exports__);
  42808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeFactory", function() { return GenericNodeFactory; });
  42809. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42810. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42811. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42812. /* harmony import */ var _genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./genericNodeWidget */ "./components/diagram/generic/genericNodeWidget.tsx");
  42813. /* harmony import */ var _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  42814. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42815. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  42816. /**
  42817. * Node factory which creates editor nodes
  42818. */
  42819. var GenericNodeFactory = /** @class */ (function (_super) {
  42820. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeFactory, _super);
  42821. /**
  42822. * Constructs a GenericNodeFactory
  42823. */
  42824. function GenericNodeFactory(globalState) {
  42825. var _this = _super.call(this, "generic") || this;
  42826. _this._globalState = globalState;
  42827. return _this;
  42828. }
  42829. /**
  42830. * Generates a node widget
  42831. * @param diagramEngine diagram engine
  42832. * @param node node to generate
  42833. * @returns node widget jsx
  42834. */
  42835. GenericNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  42836. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__["GenericNodeWidget"], { node: node, globalState: this._globalState });
  42837. };
  42838. /**
  42839. * Gets a new instance of a node model
  42840. * @returns generic node model
  42841. */
  42842. GenericNodeFactory.prototype.getNewInstance = function () {
  42843. return new _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__["GenericNodeModel"]();
  42844. };
  42845. return GenericNodeFactory;
  42846. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  42847. /***/ }),
  42848. /***/ "./components/diagram/generic/genericNodeModel.tsx":
  42849. /*!*********************************************************!*\
  42850. !*** ./components/diagram/generic/genericNodeModel.tsx ***!
  42851. \*********************************************************/
  42852. /*! exports provided: GenericNodeModel */
  42853. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42854. "use strict";
  42855. __webpack_require__.r(__webpack_exports__);
  42856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeModel", function() { return GenericNodeModel; });
  42857. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42858. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42859. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42860. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  42861. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  42862. /**
  42863. * Generic node model which stores information about a node editor block
  42864. */
  42865. var GenericNodeModel = /** @class */ (function (_super) {
  42866. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeModel, _super);
  42867. /**
  42868. * Constructs the node model
  42869. */
  42870. function GenericNodeModel() {
  42871. var _this = _super.call(this, "generic") || this;
  42872. /**
  42873. * Labels for the block
  42874. */
  42875. _this.header = "";
  42876. /**
  42877. * Vector2 for the node if it exists
  42878. */
  42879. _this.vector2 = null;
  42880. /**
  42881. * Vector3 for the node if it exists
  42882. */
  42883. _this.vector3 = null;
  42884. /**
  42885. * Vector4 for the node if it exists
  42886. */
  42887. _this.vector4 = null;
  42888. /**
  42889. * Matrix for the node if it exists
  42890. */
  42891. _this.matrix = null;
  42892. return _this;
  42893. }
  42894. GenericNodeModel.prototype.prepare = function (options, nodes, model, graphEditor, filterInputs) {
  42895. if (options.nodeMaterialBlock) {
  42896. this.header = options.nodeMaterialBlock.name;
  42897. }
  42898. _super.prototype.prepare.call(this, options, nodes, model, graphEditor, filterInputs);
  42899. };
  42900. GenericNodeModel.prototype.renderProperties = function (globalState) {
  42901. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  42902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Type", value: this.block.getClassName() })));
  42903. };
  42904. return GenericNodeModel;
  42905. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  42906. /***/ }),
  42907. /***/ "./components/diagram/generic/genericNodeWidget.tsx":
  42908. /*!**********************************************************!*\
  42909. !*** ./components/diagram/generic/genericNodeWidget.tsx ***!
  42910. \**********************************************************/
  42911. /*! exports provided: GenericNodeWidget */
  42912. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42913. "use strict";
  42914. __webpack_require__.r(__webpack_exports__);
  42915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeWidget", function() { return GenericNodeWidget; });
  42916. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42917. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42918. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42919. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42920. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__);
  42921. /**
  42922. * Used to display a node block for the node editor
  42923. */
  42924. var GenericNodeWidget = /** @class */ (function (_super) {
  42925. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeWidget, _super);
  42926. /**
  42927. * Creates a GenericNodeWidget
  42928. * @param props
  42929. */
  42930. function GenericNodeWidget(props) {
  42931. var _this = _super.call(this, props) || this;
  42932. _this.state = {};
  42933. if (_this.props.node) {
  42934. _this.props.node.addListener({
  42935. selectionChanged: function () {
  42936. var selected = _this.props.node.selected;
  42937. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  42938. }
  42939. });
  42940. }
  42941. return _this;
  42942. }
  42943. GenericNodeWidget.prototype.render = function () {
  42944. var header = "";
  42945. var inputPorts = new Array();
  42946. var outputPorts = new Array();
  42947. if (this.props.node) {
  42948. // Header label
  42949. if (this.props.node.header) {
  42950. header = this.props.node.header;
  42951. }
  42952. // Input/Output ports
  42953. for (var key in this.props.node.ports) {
  42954. var port = this.props.node.ports[key];
  42955. if (port.position === "input") {
  42956. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "input-port" },
  42957. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-plug" },
  42958. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node })),
  42959. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-label" }, port.name)));
  42960. }
  42961. else {
  42962. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "output-port" },
  42963. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-label" }, port.name),
  42964. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-plug" },
  42965. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node }))));
  42966. }
  42967. }
  42968. }
  42969. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" + (outputPorts.length === 0 ? " output" : "") },
  42970. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, header),
  42971. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  42972. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  42973. };
  42974. return GenericNodeWidget;
  42975. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  42976. /***/ }),
  42977. /***/ "./components/diagram/input/inputNodeFactory.tsx":
  42978. /*!*******************************************************!*\
  42979. !*** ./components/diagram/input/inputNodeFactory.tsx ***!
  42980. \*******************************************************/
  42981. /*! exports provided: InputNodeFactory */
  42982. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42983. "use strict";
  42984. __webpack_require__.r(__webpack_exports__);
  42985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeFactory", function() { return InputNodeFactory; });
  42986. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42987. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42988. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42989. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42990. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  42991. /* harmony import */ var _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  42992. /* harmony import */ var _inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputNodeWidget */ "./components/diagram/input/inputNodeWidget.tsx");
  42993. /**
  42994. * Node factory which creates editor nodes
  42995. */
  42996. var InputNodeFactory = /** @class */ (function (_super) {
  42997. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeFactory, _super);
  42998. /**
  42999. * Constructs a GenericNodeFactory
  43000. */
  43001. function InputNodeFactory(globalState) {
  43002. var _this = _super.call(this, "input") || this;
  43003. _this._globalState = globalState;
  43004. return _this;
  43005. }
  43006. /**
  43007. * Generates a node widget
  43008. * @param diagramEngine diagram engine
  43009. * @param node node to generate
  43010. * @returns node widget jsx
  43011. */
  43012. InputNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  43013. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__["InputNodeWidget"], { node: node, globalState: this._globalState });
  43014. };
  43015. /**
  43016. * Gets a new instance of a node model
  43017. * @returns input node model
  43018. */
  43019. InputNodeFactory.prototype.getNewInstance = function () {
  43020. return new _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__["InputNodeModel"]();
  43021. };
  43022. return InputNodeFactory;
  43023. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  43024. /***/ }),
  43025. /***/ "./components/diagram/input/inputNodeModel.tsx":
  43026. /*!*****************************************************!*\
  43027. !*** ./components/diagram/input/inputNodeModel.tsx ***!
  43028. \*****************************************************/
  43029. /*! exports provided: InputNodeModel */
  43030. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43031. "use strict";
  43032. __webpack_require__.r(__webpack_exports__);
  43033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeModel", function() { return InputNodeModel; });
  43034. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43035. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43036. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43037. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  43038. /* harmony import */ var _inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodePropertyComponent */ "./components/diagram/input/inputNodePropertyComponent.tsx");
  43039. /**
  43040. * Generic node model which stores information about a node editor block
  43041. */
  43042. var InputNodeModel = /** @class */ (function (_super) {
  43043. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeModel, _super);
  43044. /**
  43045. * Constructs the node model
  43046. */
  43047. function InputNodeModel() {
  43048. return _super.call(this, "input") || this;
  43049. }
  43050. InputNodeModel.prototype.renderProperties = function (globalState) {
  43051. if (!this.connection) {
  43052. return null;
  43053. }
  43054. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["InputPropertyTabComponentProps"], { globalState: globalState, inputNode: this }));
  43055. };
  43056. return InputNodeModel;
  43057. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  43058. /***/ }),
  43059. /***/ "./components/diagram/input/inputNodePropertyComponent.tsx":
  43060. /*!*****************************************************************!*\
  43061. !*** ./components/diagram/input/inputNodePropertyComponent.tsx ***!
  43062. \*****************************************************************/
  43063. /*! exports provided: InputPropertyTabComponentProps */
  43064. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43065. "use strict";
  43066. __webpack_require__.r(__webpack_exports__);
  43067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponentProps", function() { return InputPropertyTabComponentProps; });
  43068. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43069. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43070. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43071. /* harmony import */ var _propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  43072. /* harmony import */ var _propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  43073. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  43074. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  43075. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__);
  43076. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  43077. var InputPropertyTabComponentProps = /** @class */ (function (_super) {
  43078. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputPropertyTabComponentProps, _super);
  43079. function InputPropertyTabComponentProps(props) {
  43080. return _super.call(this, props) || this;
  43081. }
  43082. InputPropertyTabComponentProps.prototype.renderValue = function (globalState) {
  43083. var connection = this.props.inputNode.connection;
  43084. switch (connection.type) {
  43085. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  43086. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2PropertyTabComponent"], { globalState: globalState, connection: connection }));
  43087. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  43088. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  43089. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3:
  43090. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["Vector3PropertyTabComponent"], { globalState: globalState, connection: connection }));
  43091. }
  43092. return null;
  43093. };
  43094. InputPropertyTabComponentProps.prototype.setDefaultValue = function () {
  43095. var connection = this.props.inputNode.connection;
  43096. switch (connection.type) {
  43097. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  43098. connection.value = babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["Vector2"].Zero();
  43099. break;
  43100. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  43101. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  43102. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3:
  43103. connection.value = babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["Vector3"].Zero();
  43104. break;
  43105. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  43106. connection.value = babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["Matrix"].Identity();
  43107. break;
  43108. }
  43109. };
  43110. InputPropertyTabComponentProps.prototype.render = function () {
  43111. var _this = this;
  43112. var connection = this.props.inputNode.connection;
  43113. var wellKnownOptions = [
  43114. { label: "World", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].World },
  43115. { label: "WorldxView", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].WorldView },
  43116. { label: "WorldxViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].WorldViewProjection },
  43117. { label: "View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].View },
  43118. { label: "ViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].ViewProjection },
  43119. { label: "Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].Projection },
  43120. { label: "Automatic", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].Automatic },
  43121. ];
  43122. /**
  43123. * Gets the base math type of node material block connection point.
  43124. * @param type Type to parse.
  43125. */
  43126. function getBaseType(type) {
  43127. switch (type) {
  43128. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3:
  43129. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3: {
  43130. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"][babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3];
  43131. }
  43132. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector4OrColor4:
  43133. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrVector4:
  43134. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3OrColor4:
  43135. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3OrVector4OrColor4:
  43136. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  43137. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"][babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector4];
  43138. }
  43139. default: {
  43140. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"][type];
  43141. }
  43142. }
  43143. }
  43144. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  43145. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("h1", null, getBaseType(connection.type)),
  43146. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Is mesh attribute", onSelect: function (value) {
  43147. connection.isAttribute = value;
  43148. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43149. _this.forceUpdate();
  43150. }, isSelected: function () { return connection.isAttribute; } }),
  43151. connection.isUniform &&
  43152. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Is well known value", onSelect: function (value) {
  43153. if (value) {
  43154. connection.setAsWellKnownValue(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].World);
  43155. }
  43156. else {
  43157. connection.setAsWellKnownValue(null);
  43158. _this.setDefaultValue();
  43159. }
  43160. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43161. _this.forceUpdate();
  43162. }, isSelected: function () { return connection.isWellKnownValue; } }),
  43163. connection.isUniform && !connection.isWellKnownValue &&
  43164. this.renderValue(this.props.globalState),
  43165. connection.isUniform && connection.isWellKnownValue &&
  43166. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Well known value", options: wellKnownOptions, target: connection, propertyName: "wellKnownValue", onSelect: function (value) {
  43167. connection.setAsWellKnownValue(value);
  43168. _this.forceUpdate();
  43169. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43170. } })));
  43171. };
  43172. return InputPropertyTabComponentProps;
  43173. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43174. /***/ }),
  43175. /***/ "./components/diagram/input/inputNodeWidget.tsx":
  43176. /*!******************************************************!*\
  43177. !*** ./components/diagram/input/inputNodeWidget.tsx ***!
  43178. \******************************************************/
  43179. /*! exports provided: InputNodeWidget */
  43180. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43181. "use strict";
  43182. __webpack_require__.r(__webpack_exports__);
  43183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeWidget", function() { return InputNodeWidget; });
  43184. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43185. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43186. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43187. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43188. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__);
  43189. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialWellKnownValues */ "babylonjs/Misc/observable");
  43190. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__);
  43191. /**
  43192. * Used to display a node block for the node editor
  43193. */
  43194. var InputNodeWidget = /** @class */ (function (_super) {
  43195. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeWidget, _super);
  43196. /**
  43197. * Creates a GenericNodeWidget
  43198. * @param props
  43199. */
  43200. function InputNodeWidget(props) {
  43201. var _this = _super.call(this, props) || this;
  43202. _this.state = {};
  43203. if (_this.props.node) {
  43204. _this.props.node.addListener({
  43205. selectionChanged: function () {
  43206. var selected = _this.props.node.selected;
  43207. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  43208. }
  43209. });
  43210. }
  43211. return _this;
  43212. }
  43213. InputNodeWidget.prototype.render = function () {
  43214. var outputPorts = new Array();
  43215. var port;
  43216. if (this.props.node) {
  43217. for (var key in this.props.node.ports) {
  43218. port = this.props.node.ports[key];
  43219. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "output-port" },
  43220. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-label" }),
  43221. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-plug" },
  43222. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node }))));
  43223. break;
  43224. }
  43225. }
  43226. var connection = this.props.node.connection;
  43227. var value = "";
  43228. if (connection.isAttribute) {
  43229. value = "mesh." + connection.name;
  43230. }
  43231. else if (connection.isWellKnownValue) {
  43232. switch (connection.wellKnownValue) {
  43233. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].World:
  43234. value = "World";
  43235. break;
  43236. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].WorldView:
  43237. value = "World x View";
  43238. break;
  43239. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].WorldViewProjection:
  43240. value = "World x View x Projection";
  43241. break;
  43242. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].View:
  43243. value = "View";
  43244. break;
  43245. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].ViewProjection:
  43246. value = "View x Projection";
  43247. break;
  43248. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].Projection:
  43249. value = "Projection";
  43250. break;
  43251. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].Automatic:
  43252. value = "Automatic";
  43253. break;
  43254. }
  43255. }
  43256. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock input" + (connection.isAttribute ? " attribute" : "") },
  43257. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, port.name),
  43258. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  43259. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, value)));
  43260. };
  43261. return InputNodeWidget;
  43262. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43263. /***/ }),
  43264. /***/ "./components/diagram/texture/textureNodeFactory.tsx":
  43265. /*!***********************************************************!*\
  43266. !*** ./components/diagram/texture/textureNodeFactory.tsx ***!
  43267. \***********************************************************/
  43268. /*! exports provided: TextureNodeFactory */
  43269. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43270. "use strict";
  43271. __webpack_require__.r(__webpack_exports__);
  43272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeFactory", function() { return TextureNodeFactory; });
  43273. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43274. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43275. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  43276. /* harmony import */ var _textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureNodeWidget */ "./components/diagram/texture/textureNodeWidget.tsx");
  43277. /* harmony import */ var _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  43278. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43279. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43280. /**
  43281. * Node factory which creates editor nodes
  43282. */
  43283. var TextureNodeFactory = /** @class */ (function (_super) {
  43284. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeFactory, _super);
  43285. /**
  43286. * Constructs a TextureNodeFactory
  43287. */
  43288. function TextureNodeFactory(globalState) {
  43289. var _this = _super.call(this, "texture") || this;
  43290. _this._globalState = globalState;
  43291. return _this;
  43292. }
  43293. /**
  43294. * Generates a node widget
  43295. * @param diagramEngine diagram engine
  43296. * @param node node to generate
  43297. * @returns node widget jsx
  43298. */
  43299. TextureNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  43300. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__["TextureNodeWidget"], { node: node, globalState: this._globalState });
  43301. };
  43302. /**
  43303. * Gets a new instance of a node model
  43304. * @returns texture node model
  43305. */
  43306. TextureNodeFactory.prototype.getNewInstance = function () {
  43307. return new _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__["TextureNodeModel"]();
  43308. };
  43309. return TextureNodeFactory;
  43310. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  43311. /***/ }),
  43312. /***/ "./components/diagram/texture/textureNodeModel.tsx":
  43313. /*!*********************************************************!*\
  43314. !*** ./components/diagram/texture/textureNodeModel.tsx ***!
  43315. \*********************************************************/
  43316. /*! exports provided: TextureNodeModel */
  43317. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43318. "use strict";
  43319. __webpack_require__.r(__webpack_exports__);
  43320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeModel", function() { return TextureNodeModel; });
  43321. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43322. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43323. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43324. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  43325. /* harmony import */ var _components_propertyTab_properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../components/propertyTab/properties/texturePropertyTabComponent */ "./components/propertyTab/properties/texturePropertyTabComponent.tsx");
  43326. /**
  43327. * Texture node model which stores information about a node editor block
  43328. */
  43329. var TextureNodeModel = /** @class */ (function (_super) {
  43330. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeModel, _super);
  43331. /**
  43332. * Constructs the node model
  43333. */
  43334. function TextureNodeModel() {
  43335. var _this = _super.call(this, "texture") || this;
  43336. /**
  43337. * Texture for the node if it exists
  43338. */
  43339. _this.texture = null;
  43340. return _this;
  43341. }
  43342. TextureNodeModel.prototype.renderProperties = function (globalState) {
  43343. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["TexturePropertyTabComponent"], { globalState: globalState, node: this }));
  43344. };
  43345. TextureNodeModel.prototype.prepare = function (options, nodes, model, graphEditor, filterInputs) {
  43346. var textureBlock = options.nodeMaterialBlock;
  43347. this.texture = textureBlock.texture.value;
  43348. _super.prototype.prepare.call(this, options, nodes, model, graphEditor, filterInputs);
  43349. };
  43350. return TextureNodeModel;
  43351. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  43352. /***/ }),
  43353. /***/ "./components/diagram/texture/textureNodeWidget.tsx":
  43354. /*!**********************************************************!*\
  43355. !*** ./components/diagram/texture/textureNodeWidget.tsx ***!
  43356. \**********************************************************/
  43357. /*! exports provided: TextureNodeWidget */
  43358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43359. "use strict";
  43360. __webpack_require__.r(__webpack_exports__);
  43361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeWidget", function() { return TextureNodeWidget; });
  43362. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43363. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43364. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43365. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43366. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__);
  43367. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  43368. /**
  43369. * Used to display a node block for the node editor
  43370. */
  43371. var TextureNodeWidget = /** @class */ (function (_super) {
  43372. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeWidget, _super);
  43373. /**
  43374. * Creates a GenericNodeWidget
  43375. * @param props
  43376. */
  43377. function TextureNodeWidget(props) {
  43378. var _this = _super.call(this, props) || this;
  43379. _this.state = {};
  43380. if (_this.props.node) {
  43381. _this.props.node.addListener({
  43382. selectionChanged: function () {
  43383. var selected = _this.props.node.selected;
  43384. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  43385. }
  43386. });
  43387. }
  43388. return _this;
  43389. }
  43390. TextureNodeWidget.prototype.render = function () {
  43391. var inputPorts = new Array();
  43392. var outputPorts = new Array();
  43393. if (this.props.node) {
  43394. // Input/Output ports
  43395. for (var key in this.props.node.ports) {
  43396. var port = this.props.node.ports[key];
  43397. if (port.position === "output") {
  43398. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "output-port" },
  43399. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-label" }, port.name),
  43400. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-plug" },
  43401. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node }))));
  43402. }
  43403. else if (port.name === "uv") {
  43404. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "input-port" },
  43405. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-plug" },
  43406. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node })),
  43407. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-label" }, port.name)));
  43408. }
  43409. }
  43410. }
  43411. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  43412. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, "Texture (" + (this.props.node && this.props.node.texture ? this.props.node.texture.name : "not set") + ")"),
  43413. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  43414. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  43415. this.props.node && this.props.node.texture &&
  43416. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextureLineComponent"], { ref: "textureView", width: 200, height: 180, texture: this.props.node.texture, hideChannelSelect: true })));
  43417. };
  43418. return TextureNodeWidget;
  43419. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43420. /***/ }),
  43421. /***/ "./components/nodeList/nodeList.scss":
  43422. /*!*******************************************!*\
  43423. !*** ./components/nodeList/nodeList.scss ***!
  43424. \*******************************************/
  43425. /*! no static exports found */
  43426. /***/ (function(module, exports, __webpack_require__) {
  43427. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./nodeList.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss");
  43428. if(typeof content === 'string') content = [[module.i, content, '']];
  43429. var transform;
  43430. var insertInto;
  43431. var options = {"hmr":true}
  43432. options.transform = transform
  43433. options.insertInto = undefined;
  43434. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43435. if(content.locals) module.exports = content.locals;
  43436. if(false) {}
  43437. /***/ }),
  43438. /***/ "./components/nodeList/nodeListComponent.tsx":
  43439. /*!***************************************************!*\
  43440. !*** ./components/nodeList/nodeListComponent.tsx ***!
  43441. \***************************************************/
  43442. /*! exports provided: NodeListComponent */
  43443. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43444. "use strict";
  43445. __webpack_require__.r(__webpack_exports__);
  43446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  43447. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43448. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43449. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43450. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  43451. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  43452. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock */ "babylonjs/Misc/observable");
  43453. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__);
  43454. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  43455. var NodeListComponent = /** @class */ (function (_super) {
  43456. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NodeListComponent, _super);
  43457. function NodeListComponent() {
  43458. return _super !== null && _super.apply(this, arguments) || this;
  43459. }
  43460. NodeListComponent.prototype.render = function () {
  43461. var _this = this;
  43462. // Block types used to create the menu from
  43463. var allBlocks = {
  43464. Vertex: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["BonesBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["InstancesBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["MorphTargetsBlock"]],
  43465. Fragment: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["AlphaTestBlock"], , babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["ImageProcessingBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["RGBAMergerBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["RGBASplitterBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["TextureBlock"]],
  43466. Outputs: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["VertexOutputBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["FragmentOutputBlock"]],
  43467. Dual: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["FogBlock"]],
  43468. Math: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["AddBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["ClampBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["MatrixMultiplicationBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["MultiplyBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["Vector2TransformBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["Vector3TransformBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["Vector4TransformBlock"]],
  43469. Inputs: ["Texture", "Vector2", "Vector3", "Matrix"],
  43470. };
  43471. // Create node menu
  43472. var blockMenu = [];
  43473. for (var key in allBlocks) {
  43474. var blockList = allBlocks[key].map(function (b) {
  43475. var label = typeof b === "string" ? b : b.prototype.getClassName().replace("Block", "");
  43476. var onClick = typeof b === "string" ? function () { _this.props.onAddValueNode(b); } : function () { _this.props.onAddNodeFromClass(b); };
  43477. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__["ButtonLineComponent"], { label: label, onClick: onClick });
  43478. });
  43479. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: key + " blocks", closed: false }, blockList));
  43480. }
  43481. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList", style: { borderRightStyle: "solid", borderColor: "grey", borderWidth: "1px" } },
  43482. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  43483. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" }, blockMenu))));
  43484. };
  43485. return NodeListComponent;
  43486. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43487. /***/ }),
  43488. /***/ "./components/propertyTab/properties/texturePropertyTabComponent.tsx":
  43489. /*!***************************************************************************!*\
  43490. !*** ./components/propertyTab/properties/texturePropertyTabComponent.tsx ***!
  43491. \***************************************************************************/
  43492. /*! exports provided: TexturePropertyTabComponent */
  43493. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43494. "use strict";
  43495. __webpack_require__.r(__webpack_exports__);
  43496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  43497. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43498. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43499. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43500. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/observable");
  43501. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__);
  43502. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  43503. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  43504. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TexturePropertyTabComponent, _super);
  43505. function TexturePropertyTabComponent() {
  43506. return _super !== null && _super.apply(this, arguments) || this;
  43507. }
  43508. /**
  43509. * Replaces the texture of the node
  43510. * @param file the file of the texture to use
  43511. */
  43512. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  43513. var _this = this;
  43514. if (!this.props.node) {
  43515. return;
  43516. }
  43517. var texture = this.props.node.texture;
  43518. if (!texture) {
  43519. this.props.node.texture = new babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__["Texture"](null, babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__["Engine"].LastCreatedScene);
  43520. texture = this.props.node.texture;
  43521. }
  43522. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  43523. var blob = new Blob([data], { type: "octet/stream" });
  43524. var url = URL.createObjectURL(blob);
  43525. if (texture.isCube) {
  43526. var extension = undefined;
  43527. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  43528. extension = ".dds";
  43529. }
  43530. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  43531. extension = ".env";
  43532. }
  43533. texture.updateURL(url, extension, function () { return _this.forceUpdate(); });
  43534. }
  43535. else {
  43536. texture.updateURL(url, null, function () { return _this.forceUpdate(); });
  43537. }
  43538. }, undefined, true);
  43539. };
  43540. TexturePropertyTabComponent.prototype.render = function () {
  43541. var _this = this;
  43542. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  43543. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("h1", null, "Texture"),
  43544. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__["FileButtonLineComponent"], { label: "Replace texture", onClick: function (file) { return _this.replaceTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" })));
  43545. };
  43546. return TexturePropertyTabComponent;
  43547. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43548. /***/ }),
  43549. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  43550. /*!***************************************************************************!*\
  43551. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  43552. \***************************************************************************/
  43553. /*! exports provided: Vector2PropertyTabComponent */
  43554. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43555. "use strict";
  43556. __webpack_require__.r(__webpack_exports__);
  43557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  43558. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43559. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43560. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43561. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  43562. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  43563. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2PropertyTabComponent, _super);
  43564. function Vector2PropertyTabComponent() {
  43565. return _super !== null && _super.apply(this, arguments) || this;
  43566. }
  43567. Vector2PropertyTabComponent.prototype.render = function () {
  43568. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.connection, propertyName: "value" }));
  43569. };
  43570. return Vector2PropertyTabComponent;
  43571. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43572. /***/ }),
  43573. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  43574. /*!***************************************************************************!*\
  43575. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  43576. \***************************************************************************/
  43577. /*! exports provided: Vector3PropertyTabComponent */
  43578. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43579. "use strict";
  43580. __webpack_require__.r(__webpack_exports__);
  43581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  43582. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43583. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43584. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43585. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  43586. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  43587. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3PropertyTabComponent, _super);
  43588. function Vector3PropertyTabComponent() {
  43589. return _super !== null && _super.apply(this, arguments) || this;
  43590. }
  43591. Vector3PropertyTabComponent.prototype.render = function () {
  43592. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.connection, propertyName: "value" }));
  43593. };
  43594. return Vector3PropertyTabComponent;
  43595. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43596. /***/ }),
  43597. /***/ "./components/propertyTab/propertyTab.scss":
  43598. /*!*************************************************!*\
  43599. !*** ./components/propertyTab/propertyTab.scss ***!
  43600. \*************************************************/
  43601. /*! no static exports found */
  43602. /***/ (function(module, exports, __webpack_require__) {
  43603. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./propertyTab.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss");
  43604. if(typeof content === 'string') content = [[module.i, content, '']];
  43605. var transform;
  43606. var insertInto;
  43607. var options = {"hmr":true}
  43608. options.transform = transform
  43609. options.insertInto = undefined;
  43610. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43611. if(content.locals) module.exports = content.locals;
  43612. if(false) {}
  43613. /***/ }),
  43614. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  43615. /*!*********************************************************!*\
  43616. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  43617. \*********************************************************/
  43618. /*! exports provided: PropertyTabComponent */
  43619. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43620. "use strict";
  43621. __webpack_require__.r(__webpack_exports__);
  43622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  43623. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43624. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43625. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43626. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  43627. var PropertyTabComponent = /** @class */ (function (_super) {
  43628. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PropertyTabComponent, _super);
  43629. function PropertyTabComponent(props) {
  43630. var _this = _super.call(this, props) || this;
  43631. _this.state = { currentNode: null };
  43632. return _this;
  43633. }
  43634. PropertyTabComponent.prototype.componentWillMount = function () {
  43635. var _this = this;
  43636. this.props.globalState.onSelectionChangedObservable.add(function (block) {
  43637. _this.setState({ currentNode: block });
  43638. });
  43639. };
  43640. PropertyTabComponent.prototype.render = function () {
  43641. if (this.state.currentNode) {
  43642. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" }, this.state.currentNode.renderProperties(this.props.globalState)));
  43643. }
  43644. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" }));
  43645. };
  43646. return PropertyTabComponent;
  43647. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43648. /***/ }),
  43649. /***/ "./globalState.ts":
  43650. /*!************************!*\
  43651. !*** ./globalState.ts ***!
  43652. \************************/
  43653. /*! exports provided: GlobalState */
  43654. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43655. "use strict";
  43656. __webpack_require__.r(__webpack_exports__);
  43657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  43658. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  43659. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  43660. var GlobalState = /** @class */ (function () {
  43661. function GlobalState() {
  43662. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43663. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43664. }
  43665. return GlobalState;
  43666. }());
  43667. /***/ }),
  43668. /***/ "./graphEditor.tsx":
  43669. /*!*************************!*\
  43670. !*** ./graphEditor.tsx ***!
  43671. \*************************/
  43672. /*! exports provided: NodeCreationOptions, GraphEditor */
  43673. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43674. "use strict";
  43675. __webpack_require__.r(__webpack_exports__);
  43676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeCreationOptions", function() { return NodeCreationOptions; });
  43677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  43678. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43679. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43680. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  43681. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43682. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  43683. /* harmony import */ var _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeFactory */ "./components/diagram/generic/genericNodeFactory.tsx");
  43684. /* harmony import */ var _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  43685. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  43686. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  43687. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  43688. /* harmony import */ var _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeFactory */ "./components/diagram/texture/textureNodeFactory.tsx");
  43689. /* harmony import */ var _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  43690. /* harmony import */ var _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/diagram/defaultPortModel */ "./components/diagram/defaultPortModel.ts");
  43691. /* harmony import */ var _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/diagram/input/inputNodeFactory */ "./components/diagram/input/inputNodeFactory.tsx");
  43692. /* harmony import */ var _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/diagram/input/inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  43693. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/textureBlock */ "babylonjs/Misc/observable");
  43694. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__);
  43695. __webpack_require__(/*! storm-react-diagrams/dist/style.min.css */ "../../node_modules/storm-react-diagrams/dist/style.min.css");
  43696. __webpack_require__(/*! ./main.scss */ "./main.scss");
  43697. __webpack_require__(/*! ./components/diagram/diagram.scss */ "./components/diagram/diagram.scss");
  43698. var NodeCreationOptions = /** @class */ (function () {
  43699. function NodeCreationOptions() {
  43700. }
  43701. return NodeCreationOptions;
  43702. }());
  43703. var GraphEditor = /** @class */ (function (_super) {
  43704. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GraphEditor, _super);
  43705. function GraphEditor(props) {
  43706. var _this = _super.call(this, props) || this;
  43707. _this._nodes = new Array();
  43708. /**
  43709. * Current row/column position used when adding new nodes
  43710. */
  43711. _this._rowPos = new Array();
  43712. // setup the diagram engine
  43713. _this._engine = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramEngine"]();
  43714. _this._engine.installDefaultFactories();
  43715. _this._engine.registerNodeFactory(new _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__["GenericNodeFactory"](_this.props.globalState));
  43716. _this._engine.registerNodeFactory(new _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__["TextureNodeFactory"](_this.props.globalState));
  43717. _this._engine.registerNodeFactory(new _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__["InputNodeFactory"](_this.props.globalState));
  43718. // setup the diagram model
  43719. _this._model = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramModel"]();
  43720. // Listen to events to connect/disconnect blocks or
  43721. _this._model.addListener({
  43722. linksUpdated: function (e) {
  43723. if (!e.isCreated) {
  43724. // Link is deleted
  43725. console.log("link deleted");
  43726. var link = _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  43727. console.log(link);
  43728. if (link) {
  43729. if (link.output.connection && link.input.connection) {
  43730. // Disconnect standard nodes
  43731. console.log("disconnected " + link.output.connection.name + " from " + link.input.connection.name);
  43732. link.output.connection.disconnectFrom(link.input.connection);
  43733. link.input.syncWithNodeMaterialConnectionPoint(link.input.connection);
  43734. link.output.syncWithNodeMaterialConnectionPoint(link.output.connection);
  43735. }
  43736. else if (link.input.connection && link.input.connection.value) {
  43737. console.log("value link removed");
  43738. link.input.connection.value = null;
  43739. }
  43740. else {
  43741. console.log("invalid link error");
  43742. }
  43743. }
  43744. }
  43745. else {
  43746. console.log("link created");
  43747. console.log(e.link.sourcePort);
  43748. }
  43749. e.link.addListener({
  43750. sourcePortChanged: function () {
  43751. console.log("port change");
  43752. },
  43753. targetPortChanged: function () {
  43754. // Link is created with a target port
  43755. console.log("Link set to target");
  43756. var link = _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  43757. if (link) {
  43758. if (link.output.connection && link.input.connection) {
  43759. console.log("link standard blocks");
  43760. link.output.connection.connectTo(link.input.connection);
  43761. }
  43762. else if (link.input.connection) {
  43763. console.log("link value to standard block");
  43764. link.input.connection.value = link.output.getValue();
  43765. }
  43766. if (_this.props.globalState.nodeMaterial) {
  43767. _this.props.globalState.nodeMaterial.build();
  43768. }
  43769. }
  43770. }
  43771. });
  43772. },
  43773. nodesUpdated: function (e) {
  43774. if (e.isCreated) {
  43775. console.log("new node");
  43776. }
  43777. else {
  43778. console.log("node deleted");
  43779. }
  43780. }
  43781. });
  43782. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  43783. if (_this.props.globalState.nodeMaterial) {
  43784. _this.props.globalState.nodeMaterial.build();
  43785. }
  43786. });
  43787. // Load graph of nodes from the material
  43788. if (_this.props.globalState.nodeMaterial) {
  43789. var material = _this.props.globalState.nodeMaterial;
  43790. material._vertexOutputNodes.forEach(function (n) {
  43791. _this.createNodeFromObject({ column: 0, nodeMaterialBlock: n });
  43792. });
  43793. material._fragmentOutputNodes.forEach(function (n) {
  43794. _this.createNodeFromObject({ column: 0, nodeMaterialBlock: n });
  43795. });
  43796. }
  43797. // Zoom out a bit at the start
  43798. _this._model.setZoomLevel(80);
  43799. // load model into engine
  43800. _this._engine.setDiagramModel(_this._model);
  43801. return _this;
  43802. }
  43803. /**
  43804. * Creates a node and recursivly creates its parent nodes from it's input
  43805. * @param nodeMaterialBlock
  43806. */
  43807. GraphEditor.prototype.createNodeFromObject = function (options) {
  43808. // Update rows/columns
  43809. if (this._rowPos[options.column] == undefined) {
  43810. this._rowPos[options.column] = 0;
  43811. }
  43812. else {
  43813. this._rowPos[options.column]++;
  43814. }
  43815. // Create new node in the graph
  43816. var outputNode;
  43817. var filterInputs = [];
  43818. if (options.nodeMaterialBlock) {
  43819. if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TextureBlock"]) {
  43820. outputNode = new _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__["TextureNodeModel"]();
  43821. filterInputs.push("uv");
  43822. }
  43823. else {
  43824. outputNode = new _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__["GenericNodeModel"]();
  43825. }
  43826. }
  43827. else {
  43828. outputNode = new _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__["InputNodeModel"]();
  43829. outputNode.connection = options.connection;
  43830. }
  43831. this._nodes.push(outputNode);
  43832. outputNode.setPosition(1600 - (300 * options.column), 210 * this._rowPos[options.column]);
  43833. this._model.addAll(outputNode);
  43834. if (options.nodeMaterialBlock) {
  43835. outputNode.prepare(options, this._nodes, this._model, this, filterInputs);
  43836. }
  43837. return outputNode;
  43838. };
  43839. GraphEditor.prototype.componentDidMount = function () {
  43840. if (this.props.globalState.hostDocument) {
  43841. var widget = this.refs["test"];
  43842. widget.setState({ document: this.props.globalState.hostDocument });
  43843. this.props.globalState.hostDocument.addEventListener("keyup", widget.onKeyUpPointer, false);
  43844. }
  43845. };
  43846. GraphEditor.prototype.componentWillUnmount = function () {
  43847. if (this.props.globalState.hostDocument) {
  43848. var widget = this.refs["test"];
  43849. this.props.globalState.hostDocument.removeEventListener("keyup", widget.onKeyUpPointer, false);
  43850. }
  43851. };
  43852. GraphEditor.prototype.addNodeFromClass = function (ObjectClass) {
  43853. var _this = this;
  43854. var block = new ObjectClass(ObjectClass.prototype.getClassName() + "sdfsdf");
  43855. var localNode = this.createNodeFromObject({ column: 0, nodeMaterialBlock: block });
  43856. var widget = this.refs["test"];
  43857. this.forceUpdate();
  43858. // This is needed to fix link offsets when created, (eg. create a fog block)
  43859. // Todo figure out how to correct this without this
  43860. setTimeout(function () {
  43861. widget.startFiringAction(new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["MoveCanvasAction"](1, 0, _this._model));
  43862. }, 500);
  43863. return localNode;
  43864. };
  43865. GraphEditor.prototype.addValueNode = function (type, column, connection) {
  43866. if (column === void 0) { column = 0; }
  43867. var localNode = this.createNodeFromObject({ column: column, type: type, connection: connection });
  43868. var outPort = new _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"](type, "output");
  43869. localNode.addPort(outPort);
  43870. this.forceUpdate();
  43871. return localNode;
  43872. };
  43873. GraphEditor.prototype.render = function () {
  43874. var _this = this;
  43875. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_7__["Portal"], { globalState: this.props.globalState },
  43876. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "node-editor-graph-root" },
  43877. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__["NodeListComponent"], { globalState: this.props.globalState, onAddValueNode: function (b) { return _this.addValueNode(b); }, onAddNodeFromClass: function (b) { return _this.addNodeFromClass(b); } }),
  43878. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramWidget"], { deleteKeys: [46], ref: "test", inverseZoom: true, className: "diagram-container", diagramEngine: this._engine, maxNumberPointsPerLink: 0 }),
  43879. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["PropertyTabComponent"], { globalState: this.props.globalState }))));
  43880. };
  43881. return GraphEditor;
  43882. }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]));
  43883. /***/ }),
  43884. /***/ "./index.ts":
  43885. /*!******************!*\
  43886. !*** ./index.ts ***!
  43887. \******************/
  43888. /*! exports provided: NodeEditor */
  43889. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43890. "use strict";
  43891. __webpack_require__.r(__webpack_exports__);
  43892. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  43893. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  43894. /***/ }),
  43895. /***/ "./legacy/legacy.ts":
  43896. /*!**************************!*\
  43897. !*** ./legacy/legacy.ts ***!
  43898. \**************************/
  43899. /*! exports provided: NodeEditor */
  43900. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43901. "use strict";
  43902. __webpack_require__.r(__webpack_exports__);
  43903. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  43904. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  43905. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  43906. if (typeof globalObject !== "undefined") {
  43907. globalObject.BABYLON = globalObject.BABYLON || {};
  43908. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  43909. }
  43910. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  43911. /***/ }),
  43912. /***/ "./main.scss":
  43913. /*!*******************!*\
  43914. !*** ./main.scss ***!
  43915. \*******************/
  43916. /*! no static exports found */
  43917. /***/ (function(module, exports, __webpack_require__) {
  43918. var content = __webpack_require__(/*! !../../node_modules/css-loader!../../node_modules/sass-loader/lib/loader.js!./main.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss");
  43919. if(typeof content === 'string') content = [[module.i, content, '']];
  43920. var transform;
  43921. var insertInto;
  43922. var options = {"hmr":true}
  43923. options.transform = transform
  43924. options.insertInto = undefined;
  43925. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43926. if(content.locals) module.exports = content.locals;
  43927. if(false) {}
  43928. /***/ }),
  43929. /***/ "./nodeEditor.ts":
  43930. /*!***********************!*\
  43931. !*** ./nodeEditor.ts ***!
  43932. \***********************/
  43933. /*! exports provided: NodeEditor */
  43934. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43935. "use strict";
  43936. __webpack_require__.r(__webpack_exports__);
  43937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  43938. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43939. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  43940. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  43941. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  43942. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  43943. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  43944. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  43945. /**
  43946. * Class used to create a node editor
  43947. */
  43948. var NodeEditor = /** @class */ (function () {
  43949. function NodeEditor() {
  43950. }
  43951. /**
  43952. * Show the node editor
  43953. * @param options defines the options to use to configure the node editor
  43954. */
  43955. NodeEditor.Show = function (options) {
  43956. var hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  43957. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  43958. globalState.nodeMaterial = options.nodeMaterial;
  43959. globalState.hostElement = hostElement;
  43960. globalState.hostDocument = hostElement.ownerDocument;
  43961. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  43962. globalState: globalState
  43963. });
  43964. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  43965. // Close the popup window when the page is refreshed or scene is disposed
  43966. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  43967. if (globalState.nodeMaterial && popupWindow) {
  43968. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  43969. if (popupWindow) {
  43970. popupWindow.close();
  43971. }
  43972. });
  43973. window.onbeforeunload = function (event) {
  43974. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  43975. if (popupWindow) {
  43976. popupWindow.close();
  43977. }
  43978. };
  43979. }
  43980. };
  43981. return NodeEditor;
  43982. }());
  43983. /***/ }),
  43984. /***/ "./portal.tsx":
  43985. /*!********************!*\
  43986. !*** ./portal.tsx ***!
  43987. \********************/
  43988. /*! exports provided: Portal */
  43989. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43990. "use strict";
  43991. __webpack_require__.r(__webpack_exports__);
  43992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  43993. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43994. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43995. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43996. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  43997. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  43998. var Portal = /** @class */ (function (_super) {
  43999. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Portal, _super);
  44000. function Portal() {
  44001. return _super !== null && _super.apply(this, arguments) || this;
  44002. }
  44003. Portal.prototype.render = function () {
  44004. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  44005. };
  44006. return Portal;
  44007. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44008. /***/ }),
  44009. /***/ "./sharedComponents/buttonLineComponent.tsx":
  44010. /*!**************************************************!*\
  44011. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  44012. \**************************************************/
  44013. /*! exports provided: ButtonLineComponent */
  44014. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44015. "use strict";
  44016. __webpack_require__.r(__webpack_exports__);
  44017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  44018. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44019. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44020. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44021. var ButtonLineComponent = /** @class */ (function (_super) {
  44022. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ButtonLineComponent, _super);
  44023. function ButtonLineComponent(props) {
  44024. return _super.call(this, props) || this;
  44025. }
  44026. ButtonLineComponent.prototype.render = function () {
  44027. var _this = this;
  44028. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  44029. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  44030. };
  44031. return ButtonLineComponent;
  44032. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44033. /***/ }),
  44034. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  44035. /*!****************************************************!*\
  44036. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  44037. \****************************************************/
  44038. /*! exports provided: CheckBoxLineComponent */
  44039. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44040. "use strict";
  44041. __webpack_require__.r(__webpack_exports__);
  44042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  44043. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44044. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44045. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44046. var CheckBoxLineComponent = /** @class */ (function (_super) {
  44047. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CheckBoxLineComponent, _super);
  44048. function CheckBoxLineComponent(props) {
  44049. var _this = _super.call(this, props) || this;
  44050. _this._localChange = false;
  44051. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  44052. if (_this.props.isSelected) {
  44053. _this.state = { isSelected: _this.props.isSelected() };
  44054. }
  44055. else {
  44056. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  44057. }
  44058. return _this;
  44059. }
  44060. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44061. var currentState;
  44062. if (this.props.isSelected) {
  44063. currentState = nextProps.isSelected();
  44064. }
  44065. else {
  44066. currentState = nextProps.target[nextProps.propertyName] === true;
  44067. }
  44068. if (currentState !== nextState.isSelected || this._localChange) {
  44069. nextState.isSelected = currentState;
  44070. this._localChange = false;
  44071. return true;
  44072. }
  44073. return false;
  44074. };
  44075. CheckBoxLineComponent.prototype.onChange = function () {
  44076. this._localChange = true;
  44077. if (this.props.onSelect) {
  44078. this.props.onSelect(!this.state.isSelected);
  44079. }
  44080. else {
  44081. if (this.props.onPropertyChangedObservable) {
  44082. this.props.onPropertyChangedObservable.notifyObservers({
  44083. object: this.props.target,
  44084. property: this.props.propertyName,
  44085. value: !this.state.isSelected,
  44086. initialValue: this.state.isSelected
  44087. });
  44088. }
  44089. this.props.target[this.props.propertyName] = !this.state.isSelected;
  44090. }
  44091. if (this.props.onValueChanged) {
  44092. this.props.onValueChanged();
  44093. }
  44094. this.setState({ isSelected: !this.state.isSelected });
  44095. };
  44096. CheckBoxLineComponent.prototype.render = function () {
  44097. var _this = this;
  44098. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  44099. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44100. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  44101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "checkbox", id: "checkbox" + this._uniqueId, className: "cbx hidden", checked: this.state.isSelected, onChange: function () { return _this.onChange(); } }),
  44102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  44103. };
  44104. CheckBoxLineComponent._UniqueIdSeed = 0;
  44105. return CheckBoxLineComponent;
  44106. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44107. /***/ }),
  44108. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  44109. /*!******************************************************!*\
  44110. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  44111. \******************************************************/
  44112. /*! exports provided: FileButtonLineComponent */
  44113. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44114. "use strict";
  44115. __webpack_require__.r(__webpack_exports__);
  44116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  44117. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44118. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44119. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44120. var FileButtonLineComponent = /** @class */ (function (_super) {
  44121. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FileButtonLineComponent, _super);
  44122. function FileButtonLineComponent(props) {
  44123. return _super.call(this, props) || this;
  44124. }
  44125. FileButtonLineComponent.prototype.onChange = function (evt) {
  44126. var files = evt.target.files;
  44127. if (files && files.length) {
  44128. this.props.onClick(files[0]);
  44129. }
  44130. evt.target.value = "";
  44131. };
  44132. FileButtonLineComponent.prototype.render = function () {
  44133. var _this = this;
  44134. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  44135. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  44136. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "upload", id: "file-upload", type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } })));
  44137. };
  44138. return FileButtonLineComponent;
  44139. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44140. /***/ }),
  44141. /***/ "./sharedComponents/lineContainerComponent.tsx":
  44142. /*!*****************************************************!*\
  44143. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  44144. \*****************************************************/
  44145. /*! exports provided: LineContainerComponent */
  44146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44147. "use strict";
  44148. __webpack_require__.r(__webpack_exports__);
  44149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  44150. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44151. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44152. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44153. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44154. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44155. var LineContainerComponent = /** @class */ (function (_super) {
  44156. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineContainerComponent, _super);
  44157. function LineContainerComponent(props) {
  44158. var _this = _super.call(this, props) || this;
  44159. var initialState;
  44160. try {
  44161. if (LineContainerComponent._InMemoryStorage && LineContainerComponent._InMemoryStorage[_this.props.title] !== undefined) {
  44162. initialState = LineContainerComponent._InMemoryStorage[_this.props.title];
  44163. }
  44164. else if (typeof (Storage) !== "undefined" && localStorage.getItem(_this.props.title) !== null) {
  44165. initialState = localStorage.getItem(_this.props.title) === "true";
  44166. }
  44167. else {
  44168. initialState = !_this.props.closed;
  44169. }
  44170. }
  44171. catch (e) {
  44172. LineContainerComponent._InMemoryStorage = {};
  44173. LineContainerComponent._InMemoryStorage[_this.props.title] = !_this.props.closed;
  44174. initialState = !_this.props.closed;
  44175. }
  44176. _this.state = { isExpanded: initialState };
  44177. return _this;
  44178. }
  44179. LineContainerComponent.prototype.switchExpandedState = function () {
  44180. var newState = !this.state.isExpanded;
  44181. try {
  44182. if (LineContainerComponent._InMemoryStorage) {
  44183. LineContainerComponent._InMemoryStorage[this.props.title] = newState;
  44184. }
  44185. else if (typeof (Storage) !== "undefined") {
  44186. localStorage.setItem(this.props.title, newState ? "true" : "false");
  44187. }
  44188. }
  44189. catch (e) {
  44190. LineContainerComponent._InMemoryStorage = {};
  44191. LineContainerComponent._InMemoryStorage[this.props.title] = newState;
  44192. }
  44193. this.setState({ isExpanded: newState });
  44194. };
  44195. LineContainerComponent.prototype.renderHeader = function () {
  44196. var _this = this;
  44197. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  44198. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  44199. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  44200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  44201. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faChevronDown"] }))));
  44202. };
  44203. LineContainerComponent.prototype.render = function () {
  44204. if (!this.state.isExpanded) {
  44205. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  44206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  44207. }
  44208. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  44209. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  44210. this.renderHeader(),
  44211. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  44212. };
  44213. return LineContainerComponent;
  44214. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44215. /***/ }),
  44216. /***/ "./sharedComponents/numericInputComponent.tsx":
  44217. /*!****************************************************!*\
  44218. !*** ./sharedComponents/numericInputComponent.tsx ***!
  44219. \****************************************************/
  44220. /*! exports provided: NumericInputComponent */
  44221. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44222. "use strict";
  44223. __webpack_require__.r(__webpack_exports__);
  44224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  44225. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44226. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44227. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44228. var NumericInputComponent = /** @class */ (function (_super) {
  44229. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumericInputComponent, _super);
  44230. function NumericInputComponent(props) {
  44231. var _this = _super.call(this, props) || this;
  44232. _this._localChange = false;
  44233. _this.state = { value: _this.props.value.toFixed(3) };
  44234. return _this;
  44235. }
  44236. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44237. if (this._localChange) {
  44238. this._localChange = false;
  44239. return true;
  44240. }
  44241. if (nextProps.value.toString() !== nextState.value) {
  44242. nextState.value = nextProps.value.toFixed(3);
  44243. return true;
  44244. }
  44245. return false;
  44246. };
  44247. NumericInputComponent.prototype.updateValue = function (evt) {
  44248. var value = evt.target.value;
  44249. if (/[^0-9\.\-]/g.test(value)) {
  44250. return;
  44251. }
  44252. var valueAsNumber = parseFloat(value);
  44253. this._localChange = true;
  44254. this.setState({ value: value });
  44255. if (isNaN(valueAsNumber)) {
  44256. return;
  44257. }
  44258. this.props.onChange(valueAsNumber);
  44259. };
  44260. NumericInputComponent.prototype.render = function () {
  44261. var _this = this;
  44262. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  44263. this.props.label &&
  44264. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  44265. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step, className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt); } })));
  44266. };
  44267. NumericInputComponent.defaultProps = {
  44268. step: 1,
  44269. };
  44270. return NumericInputComponent;
  44271. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44272. /***/ }),
  44273. /***/ "./sharedComponents/optionsLineComponent.tsx":
  44274. /*!***************************************************!*\
  44275. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  44276. \***************************************************/
  44277. /*! exports provided: OptionsLineComponent */
  44278. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44279. "use strict";
  44280. __webpack_require__.r(__webpack_exports__);
  44281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  44282. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44283. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44284. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44285. var ListLineOption = /** @class */ (function () {
  44286. function ListLineOption() {
  44287. }
  44288. return ListLineOption;
  44289. }());
  44290. var OptionsLineComponent = /** @class */ (function (_super) {
  44291. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OptionsLineComponent, _super);
  44292. function OptionsLineComponent(props) {
  44293. var _this = _super.call(this, props) || this;
  44294. _this._localChange = false;
  44295. _this.state = { value: props.target[props.propertyName] };
  44296. return _this;
  44297. }
  44298. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44299. if (this._localChange) {
  44300. this._localChange = false;
  44301. return true;
  44302. }
  44303. var newValue = nextProps.target[nextProps.propertyName];
  44304. if (newValue != null && newValue !== nextState.value) {
  44305. nextState.value = newValue;
  44306. return true;
  44307. }
  44308. return false;
  44309. };
  44310. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  44311. if (!this.props.onPropertyChangedObservable) {
  44312. return;
  44313. }
  44314. this.props.onPropertyChangedObservable.notifyObservers({
  44315. object: this.props.target,
  44316. property: this.props.propertyName,
  44317. value: newValue,
  44318. initialValue: previousValue
  44319. });
  44320. };
  44321. OptionsLineComponent.prototype.updateValue = function (valueString) {
  44322. var value = parseInt(valueString);
  44323. this._localChange = true;
  44324. var store = this.state.value;
  44325. if (!this.props.noDirectUpdate) {
  44326. this.props.target[this.props.propertyName] = value;
  44327. }
  44328. this.setState({ value: value });
  44329. this.raiseOnPropertyChanged(value, store);
  44330. if (this.props.onSelect) {
  44331. this.props.onSelect(value);
  44332. }
  44333. };
  44334. OptionsLineComponent.prototype.render = function () {
  44335. var _this = this;
  44336. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  44337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" },
  44339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (evt) { return _this.updateValue(evt.target.value); }, value: this.state.value }, this.props.options.map(function (option) {
  44340. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  44341. })))));
  44342. };
  44343. return OptionsLineComponent;
  44344. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44345. /***/ }),
  44346. /***/ "./sharedComponents/popup.ts":
  44347. /*!***********************************!*\
  44348. !*** ./sharedComponents/popup.ts ***!
  44349. \***********************************/
  44350. /*! exports provided: Popup */
  44351. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44352. "use strict";
  44353. __webpack_require__.r(__webpack_exports__);
  44354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  44355. var Popup = /** @class */ (function () {
  44356. function Popup() {
  44357. }
  44358. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  44359. var _this = this;
  44360. if (width === void 0) { width = 300; }
  44361. if (height === void 0) { height = 800; }
  44362. var windowCreationOptionsList = {
  44363. width: width,
  44364. height: height,
  44365. top: (window.innerHeight - width) / 2 + window.screenY,
  44366. left: (window.innerWidth - height) / 2 + window.screenX
  44367. };
  44368. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  44369. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  44370. .join(',');
  44371. var popupWindow = window.open("", title, windowCreationOptions);
  44372. if (!popupWindow) {
  44373. return null;
  44374. }
  44375. var parentDocument = popupWindow.document;
  44376. // Font
  44377. var newLinkEl = parentDocument.createElement('link');
  44378. newLinkEl.rel = 'stylesheet';
  44379. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  44380. parentDocument.head.appendChild(newLinkEl);
  44381. parentDocument.title = title;
  44382. parentDocument.body.style.width = "100%";
  44383. parentDocument.body.style.height = "100%";
  44384. parentDocument.body.style.margin = "0";
  44385. parentDocument.body.style.padding = "0";
  44386. var parentControl = parentDocument.createElement("div");
  44387. parentControl.style.width = "100%";
  44388. parentControl.style.height = "100%";
  44389. parentControl.style.margin = "0";
  44390. parentControl.style.padding = "0";
  44391. popupWindow.document.body.appendChild(parentControl);
  44392. this._CopyStyles(window.document, parentDocument);
  44393. setTimeout(function () {
  44394. _this._CopyStyles(window.document, parentDocument);
  44395. }, 0);
  44396. this[windowVariableName] = popupWindow;
  44397. return parentControl;
  44398. };
  44399. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  44400. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  44401. var styleSheet = sourceDoc.styleSheets[index];
  44402. try {
  44403. if (styleSheet.cssRules) { // for <style> elements
  44404. var newStyleEl = sourceDoc.createElement('style');
  44405. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  44406. var cssRule = _a[_i];
  44407. // write the text of each rule into the body of the style element
  44408. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  44409. }
  44410. targetDoc.head.appendChild(newStyleEl);
  44411. }
  44412. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  44413. var newLinkEl = sourceDoc.createElement('link');
  44414. newLinkEl.rel = 'stylesheet';
  44415. newLinkEl.href = styleSheet.href;
  44416. targetDoc.head.appendChild(newLinkEl);
  44417. }
  44418. }
  44419. catch (e) {
  44420. console.log(e);
  44421. }
  44422. }
  44423. };
  44424. return Popup;
  44425. }());
  44426. /***/ }),
  44427. /***/ "./sharedComponents/textLineComponent.tsx":
  44428. /*!************************************************!*\
  44429. !*** ./sharedComponents/textLineComponent.tsx ***!
  44430. \************************************************/
  44431. /*! exports provided: TextLineComponent */
  44432. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44433. "use strict";
  44434. __webpack_require__.r(__webpack_exports__);
  44435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  44436. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44437. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44438. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44439. var TextLineComponent = /** @class */ (function (_super) {
  44440. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLineComponent, _super);
  44441. function TextLineComponent(props) {
  44442. return _super.call(this, props) || this;
  44443. }
  44444. TextLineComponent.prototype.onLink = function () {
  44445. if (!this.props.onLink) {
  44446. return;
  44447. }
  44448. this.props.onLink();
  44449. };
  44450. TextLineComponent.prototype.renderContent = function () {
  44451. var _this = this;
  44452. if (this.props.onLink) {
  44453. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-value", title: this.props.value, onClick: function () { return _this.onLink(); } }, this.props.value || "no name"));
  44454. }
  44455. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.value, style: { color: this.props.color ? this.props.color : "" } }, this.props.value || "no name"));
  44456. };
  44457. TextLineComponent.prototype.render = function () {
  44458. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  44459. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44460. this.renderContent()));
  44461. };
  44462. return TextLineComponent;
  44463. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44464. /***/ }),
  44465. /***/ "./sharedComponents/textureLineComponent.tsx":
  44466. /*!***************************************************!*\
  44467. !*** ./sharedComponents/textureLineComponent.tsx ***!
  44468. \***************************************************/
  44469. /*! exports provided: TextureLineComponent */
  44470. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44471. "use strict";
  44472. __webpack_require__.r(__webpack_exports__);
  44473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  44474. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44475. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44476. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44477. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  44478. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  44479. var TextureLineComponent = /** @class */ (function (_super) {
  44480. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureLineComponent, _super);
  44481. function TextureLineComponent(props) {
  44482. var _this = _super.call(this, props) || this;
  44483. _this.state = {
  44484. displayRed: true,
  44485. displayGreen: true,
  44486. displayBlue: true,
  44487. displayAlpha: true,
  44488. face: 0
  44489. };
  44490. return _this;
  44491. }
  44492. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44493. return (nextProps.texture !== this.props.texture || nextState.displayRed !== this.state.displayRed || nextState.displayGreen !== this.state.displayGreen || nextState.displayBlue !== this.state.displayBlue || nextState.displayAlpha !== this.state.displayAlpha || nextState.face !== this.state.face);
  44494. };
  44495. TextureLineComponent.prototype.componentDidMount = function () {
  44496. this.updatePreview();
  44497. };
  44498. TextureLineComponent.prototype.componentDidUpdate = function () {
  44499. this.updatePreview();
  44500. };
  44501. TextureLineComponent.prototype.updatePreview = function () {
  44502. var _this = this;
  44503. var texture = this.props.texture;
  44504. if (!texture.isReady() && texture._texture) {
  44505. texture._texture.onLoadedObservable.addOnce(function () {
  44506. _this.updatePreview();
  44507. });
  44508. }
  44509. var scene = texture.getScene();
  44510. var engine = scene.getEngine();
  44511. var size = texture.getSize();
  44512. var ratio = size.width / size.height;
  44513. var width = this.props.width;
  44514. var height = (width / ratio) | 1;
  44515. var passPostProcess;
  44516. if (!texture.isCube) {
  44517. passPostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassPostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  44518. }
  44519. else {
  44520. var passCubePostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassCubePostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  44521. passCubePostProcess.face = this.state.face;
  44522. passPostProcess = passCubePostProcess;
  44523. }
  44524. if (!passPostProcess.getEffect().isReady()) {
  44525. // Try again later
  44526. passPostProcess.dispose();
  44527. setTimeout(function () { return _this.updatePreview(); }, 250);
  44528. return;
  44529. }
  44530. var previewCanvas = this.refs.canvas;
  44531. if (this.props.globalState) {
  44532. this.props.globalState.blockMutationUpdates = true;
  44533. }
  44534. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  44535. passPostProcess.onApply = function (effect) {
  44536. effect.setTexture("textureSampler", texture);
  44537. };
  44538. var internalTexture = rtt.getInternalTexture();
  44539. if (internalTexture) {
  44540. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  44541. // Read the contents of the framebuffer
  44542. var numberOfChannelsByLine = width * 4;
  44543. var halfHeight = height / 2;
  44544. //Reading datas from WebGL
  44545. var data = engine.readPixels(0, 0, width, height);
  44546. if (!texture.isCube) {
  44547. if (!this.state.displayRed || !this.state.displayGreen || !this.state.displayBlue) {
  44548. for (var i = 0; i < width * height * 4; i += 4) {
  44549. if (!this.state.displayRed) {
  44550. data[i] = 0;
  44551. }
  44552. if (!this.state.displayGreen) {
  44553. data[i + 1] = 0;
  44554. }
  44555. if (!this.state.displayBlue) {
  44556. data[i + 2] = 0;
  44557. }
  44558. if (this.state.displayAlpha) {
  44559. var alpha = data[i + 2];
  44560. data[i] = alpha;
  44561. data[i + 1] = alpha;
  44562. data[i + 2] = alpha;
  44563. data[i + 2] = 0;
  44564. }
  44565. }
  44566. }
  44567. }
  44568. //To flip image on Y axis.
  44569. if (texture.invertY || texture.isCube) {
  44570. for (var i = 0; i < halfHeight; i++) {
  44571. for (var j = 0; j < numberOfChannelsByLine; j++) {
  44572. var currentCell = j + i * numberOfChannelsByLine;
  44573. var targetLine = height - i - 1;
  44574. var targetCell = j + targetLine * numberOfChannelsByLine;
  44575. var temp = data[currentCell];
  44576. data[currentCell] = data[targetCell];
  44577. data[targetCell] = temp;
  44578. }
  44579. }
  44580. }
  44581. previewCanvas.width = width;
  44582. previewCanvas.height = height;
  44583. var context = previewCanvas.getContext('2d');
  44584. if (context) {
  44585. // Copy the pixels to the preview canvas
  44586. var imageData = context.createImageData(width, height);
  44587. var castData = imageData.data;
  44588. castData.set(data);
  44589. context.putImageData(imageData, 0, 0);
  44590. }
  44591. // Unbind
  44592. engine.unBindFramebuffer(internalTexture);
  44593. }
  44594. rtt.dispose();
  44595. passPostProcess.dispose();
  44596. previewCanvas.style.height = height + "px";
  44597. if (this.props.globalState) {
  44598. this.props.globalState.blockMutationUpdates = false;
  44599. }
  44600. };
  44601. TextureLineComponent.prototype.render = function () {
  44602. var _this = this;
  44603. var texture = this.props.texture;
  44604. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  44605. !this.props.hideChannelSelect && texture.isCube &&
  44606. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  44607. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 0 ? "px command selected" : "px command", onClick: function () { return _this.setState({ face: 0 }); } }, "PX"),
  44608. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 1 ? "nx command selected" : "nx command", onClick: function () { return _this.setState({ face: 1 }); } }, "NX"),
  44609. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 2 ? "py command selected" : "py command", onClick: function () { return _this.setState({ face: 2 }); } }, "PY"),
  44610. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 3 ? "ny command selected" : "ny command", onClick: function () { return _this.setState({ face: 3 }); } }, "NY"),
  44611. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 4 ? "pz command selected" : "pz command", onClick: function () { return _this.setState({ face: 4 }); } }, "PZ"),
  44612. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 5 ? "nz command selected" : "nz command", onClick: function () { return _this.setState({ face: 5 }); } }, "NZ")),
  44613. !this.props.hideChannelSelect && !texture.isCube &&
  44614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  44615. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayRed && !this.state.displayGreen ? "red command selected" : "red command", onClick: function () { return _this.setState({ displayRed: true, displayGreen: false, displayBlue: false, displayAlpha: false }); } }, "R"),
  44616. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayGreen && !this.state.displayBlue ? "green command selected" : "green command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: true, displayBlue: false, displayAlpha: false }); } }, "G"),
  44617. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayBlue && !this.state.displayAlpha ? "blue command selected" : "blue command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: false, displayBlue: true, displayAlpha: false }); } }, "B"),
  44618. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayAlpha && !this.state.displayRed ? "alpha command selected" : "alpha command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: false, displayBlue: false, displayAlpha: true }); } }, "A"),
  44619. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayRed && this.state.displayGreen ? "all command selected" : "all command", onClick: function () { return _this.setState({ displayRed: true, displayGreen: true, displayBlue: true, displayAlpha: true }); } }, "ALL")),
  44620. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  44621. };
  44622. return TextureLineComponent;
  44623. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44624. /***/ }),
  44625. /***/ "./sharedComponents/vector2LineComponent.tsx":
  44626. /*!***************************************************!*\
  44627. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  44628. \***************************************************/
  44629. /*! exports provided: Vector2LineComponent */
  44630. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44631. "use strict";
  44632. __webpack_require__.r(__webpack_exports__);
  44633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  44634. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44635. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44636. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44637. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  44638. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44639. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44640. var Vector2LineComponent = /** @class */ (function (_super) {
  44641. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2LineComponent, _super);
  44642. function Vector2LineComponent(props) {
  44643. var _this = _super.call(this, props) || this;
  44644. _this._localChange = false;
  44645. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  44646. return _this;
  44647. }
  44648. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44649. var nextPropsValue = nextProps.target[nextProps.propertyName];
  44650. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  44651. nextState.value = nextPropsValue.clone();
  44652. this._localChange = false;
  44653. return true;
  44654. }
  44655. return false;
  44656. };
  44657. Vector2LineComponent.prototype.switchExpandState = function () {
  44658. this._localChange = true;
  44659. this.setState({ isExpanded: !this.state.isExpanded });
  44660. };
  44661. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  44662. if (this.props.onChange) {
  44663. this.props.onChange(this.state.value);
  44664. }
  44665. if (!this.props.onPropertyChangedObservable) {
  44666. return;
  44667. }
  44668. this.props.onPropertyChangedObservable.notifyObservers({
  44669. object: this.props.target,
  44670. property: this.props.propertyName,
  44671. value: this.state.value,
  44672. initialValue: previousValue
  44673. });
  44674. };
  44675. Vector2LineComponent.prototype.updateStateX = function (value) {
  44676. this._localChange = true;
  44677. var store = this.state.value.clone();
  44678. this.props.target[this.props.propertyName].x = value;
  44679. this.state.value.x = value;
  44680. this.setState({ value: this.state.value });
  44681. this.raiseOnPropertyChanged(store);
  44682. };
  44683. Vector2LineComponent.prototype.updateStateY = function (value) {
  44684. this._localChange = true;
  44685. var store = this.state.value.clone();
  44686. this.props.target[this.props.propertyName].y = value;
  44687. this.state.value.y = value;
  44688. this.setState({ value: this.state.value });
  44689. this.raiseOnPropertyChanged(store);
  44690. };
  44691. Vector2LineComponent.prototype.render = function () {
  44692. var _this = this;
  44693. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  44694. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  44695. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  44696. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  44698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  44699. this.state.isExpanded &&
  44700. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  44701. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  44702. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }))));
  44703. };
  44704. Vector2LineComponent.defaultProps = {
  44705. step: 0.001,
  44706. };
  44707. return Vector2LineComponent;
  44708. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44709. /***/ }),
  44710. /***/ "./sharedComponents/vector3LineComponent.tsx":
  44711. /*!***************************************************!*\
  44712. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  44713. \***************************************************/
  44714. /*! exports provided: Vector3LineComponent */
  44715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44716. "use strict";
  44717. __webpack_require__.r(__webpack_exports__);
  44718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  44719. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44720. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44721. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44722. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  44723. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44724. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44725. var Vector3LineComponent = /** @class */ (function (_super) {
  44726. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3LineComponent, _super);
  44727. function Vector3LineComponent(props) {
  44728. var _this = _super.call(this, props) || this;
  44729. _this._localChange = false;
  44730. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  44731. return _this;
  44732. }
  44733. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44734. var nextPropsValue = nextProps.target[nextProps.propertyName];
  44735. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  44736. nextState.value = nextPropsValue.clone();
  44737. this._localChange = false;
  44738. return true;
  44739. }
  44740. return false;
  44741. };
  44742. Vector3LineComponent.prototype.switchExpandState = function () {
  44743. this._localChange = true;
  44744. this.setState({ isExpanded: !this.state.isExpanded });
  44745. };
  44746. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  44747. if (this.props.onChange) {
  44748. this.props.onChange(this.state.value);
  44749. }
  44750. if (!this.props.onPropertyChangedObservable) {
  44751. return;
  44752. }
  44753. this.props.onPropertyChangedObservable.notifyObservers({
  44754. object: this.props.target,
  44755. property: this.props.propertyName,
  44756. value: this.state.value,
  44757. initialValue: previousValue
  44758. });
  44759. };
  44760. Vector3LineComponent.prototype.updateVector3 = function () {
  44761. var store = this.props.target[this.props.propertyName].clone();
  44762. this.props.target[this.props.propertyName] = this.state.value;
  44763. this.setState({ value: store });
  44764. this.raiseOnPropertyChanged(store);
  44765. };
  44766. Vector3LineComponent.prototype.updateStateX = function (value) {
  44767. this._localChange = true;
  44768. this.state.value.x = value;
  44769. this.updateVector3();
  44770. };
  44771. Vector3LineComponent.prototype.updateStateY = function (value) {
  44772. this._localChange = true;
  44773. this.state.value.y = value;
  44774. this.updateVector3();
  44775. };
  44776. Vector3LineComponent.prototype.updateStateZ = function (value) {
  44777. this._localChange = true;
  44778. this.state.value.z = value;
  44779. this.updateVector3();
  44780. };
  44781. Vector3LineComponent.prototype.render = function () {
  44782. var _this = this;
  44783. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  44784. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  44785. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  44786. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44787. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2) + ", Z: " + this.state.value.z.toFixed(2)),
  44788. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  44789. this.state.isExpanded &&
  44790. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  44791. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  44792. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  44793. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } }))));
  44794. };
  44795. Vector3LineComponent.defaultProps = {
  44796. step: 0.001,
  44797. };
  44798. return Vector3LineComponent;
  44799. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44800. /***/ }),
  44801. /***/ "babylonjs/Misc/observable":
  44802. /*!****************************************************************************************************!*\
  44803. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  44804. \****************************************************************************************************/
  44805. /*! no static exports found */
  44806. /***/ (function(module, exports) {
  44807. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  44808. /***/ })
  44809. /******/ });
  44810. });
  44811. //# sourceMappingURL=babylon.nodeEditor.max.js.map