babylon.nodeEditor.max.js 3.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512
  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. !*** C:/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. /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/* 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 _typeof(obj) {
  118. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  119. _typeof = function (obj) {
  120. return typeof obj;
  121. };
  122. } else {
  123. _typeof = function (obj) {
  124. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  125. };
  126. }
  127. return _typeof(obj);
  128. }
  129. function _classCallCheck(instance, Constructor) {
  130. if (!(instance instanceof Constructor)) {
  131. throw new TypeError("Cannot call a class as a function");
  132. }
  133. }
  134. function _defineProperties(target, props) {
  135. for (var i = 0; i < props.length; i++) {
  136. var descriptor = props[i];
  137. descriptor.enumerable = descriptor.enumerable || false;
  138. descriptor.configurable = true;
  139. if ("value" in descriptor) descriptor.writable = true;
  140. Object.defineProperty(target, descriptor.key, descriptor);
  141. }
  142. }
  143. function _createClass(Constructor, protoProps, staticProps) {
  144. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  145. if (staticProps) _defineProperties(Constructor, staticProps);
  146. return Constructor;
  147. }
  148. function _defineProperty(obj, key, value) {
  149. if (key in obj) {
  150. Object.defineProperty(obj, key, {
  151. value: value,
  152. enumerable: true,
  153. configurable: true,
  154. writable: true
  155. });
  156. } else {
  157. obj[key] = value;
  158. }
  159. return obj;
  160. }
  161. function _objectSpread(target) {
  162. for (var i = 1; i < arguments.length; i++) {
  163. var source = arguments[i] != null ? arguments[i] : {};
  164. var ownKeys = Object.keys(source);
  165. if (typeof Object.getOwnPropertySymbols === 'function') {
  166. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  167. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  168. }));
  169. }
  170. ownKeys.forEach(function (key) {
  171. _defineProperty(target, key, source[key]);
  172. });
  173. }
  174. return target;
  175. }
  176. function _slicedToArray(arr, i) {
  177. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  178. }
  179. function _toConsumableArray(arr) {
  180. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  181. }
  182. function _arrayWithoutHoles(arr) {
  183. if (Array.isArray(arr)) {
  184. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  185. return arr2;
  186. }
  187. }
  188. function _arrayWithHoles(arr) {
  189. if (Array.isArray(arr)) return arr;
  190. }
  191. function _iterableToArray(iter) {
  192. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  193. }
  194. function _iterableToArrayLimit(arr, i) {
  195. var _arr = [];
  196. var _n = true;
  197. var _d = false;
  198. var _e = undefined;
  199. try {
  200. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  201. _arr.push(_s.value);
  202. if (i && _arr.length === i) break;
  203. }
  204. } catch (err) {
  205. _d = true;
  206. _e = err;
  207. } finally {
  208. try {
  209. if (!_n && _i["return"] != null) _i["return"]();
  210. } finally {
  211. if (_d) throw _e;
  212. }
  213. }
  214. return _arr;
  215. }
  216. function _nonIterableSpread() {
  217. throw new TypeError("Invalid attempt to spread non-iterable instance");
  218. }
  219. function _nonIterableRest() {
  220. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  221. }
  222. var noop = function noop() {};
  223. var _WINDOW = {};
  224. var _DOCUMENT = {};
  225. var _MUTATION_OBSERVER = null;
  226. var _PERFORMANCE = {
  227. mark: noop,
  228. measure: noop
  229. };
  230. try {
  231. if (typeof window !== 'undefined') _WINDOW = window;
  232. if (typeof document !== 'undefined') _DOCUMENT = document;
  233. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  234. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  235. } catch (e) {}
  236. var _ref = _WINDOW.navigator || {},
  237. _ref$userAgent = _ref.userAgent,
  238. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  239. var WINDOW = _WINDOW;
  240. var DOCUMENT = _DOCUMENT;
  241. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  242. var PERFORMANCE = _PERFORMANCE;
  243. var IS_BROWSER = !!WINDOW.document;
  244. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  245. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  246. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  247. var UNITS_IN_GRID = 16;
  248. var DEFAULT_FAMILY_PREFIX = 'fa';
  249. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  250. var DATA_FA_I2SVG = 'data-fa-i2svg';
  251. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  252. var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
  253. var DATA_PREFIX = 'data-prefix';
  254. var DATA_ICON = 'data-icon';
  255. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  256. var MUTATION_APPROACH_ASYNC = 'async';
  257. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  258. var PRODUCTION = function () {
  259. try {
  260. return "development" === 'production';
  261. } catch (e) {
  262. return false;
  263. }
  264. }();
  265. var PREFIX_TO_STYLE = {
  266. 'fas': 'solid',
  267. 'far': 'regular',
  268. 'fal': 'light',
  269. 'fab': 'brands',
  270. 'fa': 'solid'
  271. };
  272. var STYLE_TO_PREFIX = {
  273. 'solid': 'fas',
  274. 'regular': 'far',
  275. 'light': 'fal',
  276. 'brands': 'fab'
  277. };
  278. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  279. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  280. var FONT_WEIGHT_TO_PREFIX = {
  281. '900': 'fas',
  282. '400': 'far',
  283. 'normal': 'far',
  284. '300': 'fal'
  285. };
  286. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  287. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  288. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  289. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  290. return "".concat(n, "x");
  291. })).concat(oneToTwenty.map(function (n) {
  292. return "w-".concat(n);
  293. }));
  294. var initial = WINDOW.FontAwesomeConfig || {};
  295. function getAttrConfig(attr) {
  296. var element = DOCUMENT.querySelector('script[' + attr + ']');
  297. if (element) {
  298. return element.getAttribute(attr);
  299. }
  300. }
  301. function coerce(val) {
  302. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  303. // We'll assume that this is an indication that it should be toggled to true
  304. // For example <script data-search-pseudo-elements src="..."></script>
  305. if (val === '') return true;
  306. if (val === 'false') return false;
  307. if (val === 'true') return true;
  308. return val;
  309. }
  310. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  311. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  312. attrs.forEach(function (_ref) {
  313. var _ref2 = _slicedToArray(_ref, 2),
  314. attr = _ref2[0],
  315. key = _ref2[1];
  316. var val = coerce(getAttrConfig(attr));
  317. if (val !== undefined && val !== null) {
  318. initial[key] = val;
  319. }
  320. });
  321. }
  322. var _default = {
  323. familyPrefix: DEFAULT_FAMILY_PREFIX,
  324. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  325. autoReplaceSvg: true,
  326. autoAddCss: true,
  327. autoA11y: true,
  328. searchPseudoElements: false,
  329. observeMutations: true,
  330. mutateApproach: 'async',
  331. keepOriginalSource: true,
  332. measurePerformance: false,
  333. showMissingIcons: true
  334. };
  335. var _config = _objectSpread({}, _default, initial);
  336. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  337. var config = _objectSpread({}, _config);
  338. WINDOW.FontAwesomeConfig = config;
  339. var w = WINDOW || {};
  340. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  341. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  342. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  343. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  344. var namespace = w[NAMESPACE_IDENTIFIER];
  345. var functions = [];
  346. var listener = function listener() {
  347. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  348. loaded = 1;
  349. functions.map(function (fn) {
  350. return fn();
  351. });
  352. };
  353. var loaded = false;
  354. if (IS_DOM) {
  355. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  356. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  357. }
  358. function domready (fn) {
  359. if (!IS_DOM) return;
  360. loaded ? setTimeout(fn, 0) : functions.push(fn);
  361. }
  362. var PENDING = 'pending';
  363. var SETTLED = 'settled';
  364. var FULFILLED = 'fulfilled';
  365. var REJECTED = 'rejected';
  366. var NOOP = function NOOP() {};
  367. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  368. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  369. var asyncQueue = [];
  370. var asyncTimer;
  371. function asyncFlush() {
  372. // run promise callbacks
  373. for (var i = 0; i < asyncQueue.length; i++) {
  374. asyncQueue[i][0](asyncQueue[i][1]);
  375. } // reset async asyncQueue
  376. asyncQueue = [];
  377. asyncTimer = false;
  378. }
  379. function asyncCall(callback, arg) {
  380. asyncQueue.push([callback, arg]);
  381. if (!asyncTimer) {
  382. asyncTimer = true;
  383. asyncSetTimer(asyncFlush, 0);
  384. }
  385. }
  386. function invokeResolver(resolver, promise) {
  387. function resolvePromise(value) {
  388. resolve(promise, value);
  389. }
  390. function rejectPromise(reason) {
  391. reject(promise, reason);
  392. }
  393. try {
  394. resolver(resolvePromise, rejectPromise);
  395. } catch (e) {
  396. rejectPromise(e);
  397. }
  398. }
  399. function invokeCallback(subscriber) {
  400. var owner = subscriber.owner;
  401. var settled = owner._state;
  402. var value = owner._data;
  403. var callback = subscriber[settled];
  404. var promise = subscriber.then;
  405. if (typeof callback === 'function') {
  406. settled = FULFILLED;
  407. try {
  408. value = callback(value);
  409. } catch (e) {
  410. reject(promise, e);
  411. }
  412. }
  413. if (!handleThenable(promise, value)) {
  414. if (settled === FULFILLED) {
  415. resolve(promise, value);
  416. }
  417. if (settled === REJECTED) {
  418. reject(promise, value);
  419. }
  420. }
  421. }
  422. function handleThenable(promise, value) {
  423. var resolved;
  424. try {
  425. if (promise === value) {
  426. throw new TypeError('A promises callback cannot return that same promise.');
  427. }
  428. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  429. // then should be retrieved only once
  430. var then = value.then;
  431. if (typeof then === 'function') {
  432. then.call(value, function (val) {
  433. if (!resolved) {
  434. resolved = true;
  435. if (value === val) {
  436. fulfill(promise, val);
  437. } else {
  438. resolve(promise, val);
  439. }
  440. }
  441. }, function (reason) {
  442. if (!resolved) {
  443. resolved = true;
  444. reject(promise, reason);
  445. }
  446. });
  447. return true;
  448. }
  449. }
  450. } catch (e) {
  451. if (!resolved) {
  452. reject(promise, e);
  453. }
  454. return true;
  455. }
  456. return false;
  457. }
  458. function resolve(promise, value) {
  459. if (promise === value || !handleThenable(promise, value)) {
  460. fulfill(promise, value);
  461. }
  462. }
  463. function fulfill(promise, value) {
  464. if (promise._state === PENDING) {
  465. promise._state = SETTLED;
  466. promise._data = value;
  467. asyncCall(publishFulfillment, promise);
  468. }
  469. }
  470. function reject(promise, reason) {
  471. if (promise._state === PENDING) {
  472. promise._state = SETTLED;
  473. promise._data = reason;
  474. asyncCall(publishRejection, promise);
  475. }
  476. }
  477. function publish(promise) {
  478. promise._then = promise._then.forEach(invokeCallback);
  479. }
  480. function publishFulfillment(promise) {
  481. promise._state = FULFILLED;
  482. publish(promise);
  483. }
  484. function publishRejection(promise) {
  485. promise._state = REJECTED;
  486. publish(promise);
  487. if (!promise._handled && isNode) {
  488. global.process.emit('unhandledRejection', promise._data, promise);
  489. }
  490. }
  491. function notifyRejectionHandled(promise) {
  492. global.process.emit('rejectionHandled', promise);
  493. }
  494. /**
  495. * @class
  496. */
  497. function P(resolver) {
  498. if (typeof resolver !== 'function') {
  499. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  500. }
  501. if (this instanceof P === false) {
  502. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  503. }
  504. this._then = [];
  505. invokeResolver(resolver, this);
  506. }
  507. P.prototype = {
  508. constructor: P,
  509. _state: PENDING,
  510. _then: null,
  511. _data: undefined,
  512. _handled: false,
  513. then: function then(onFulfillment, onRejection) {
  514. var subscriber = {
  515. owner: this,
  516. then: new this.constructor(NOOP),
  517. fulfilled: onFulfillment,
  518. rejected: onRejection
  519. };
  520. if ((onRejection || onFulfillment) && !this._handled) {
  521. this._handled = true;
  522. if (this._state === REJECTED && isNode) {
  523. asyncCall(notifyRejectionHandled, this);
  524. }
  525. }
  526. if (this._state === FULFILLED || this._state === REJECTED) {
  527. // already resolved, call callback async
  528. asyncCall(invokeCallback, subscriber);
  529. } else {
  530. // subscribe
  531. this._then.push(subscriber);
  532. }
  533. return subscriber.then;
  534. },
  535. catch: function _catch(onRejection) {
  536. return this.then(null, onRejection);
  537. }
  538. };
  539. P.all = function (promises) {
  540. if (!Array.isArray(promises)) {
  541. throw new TypeError('You must pass an array to Promise.all().');
  542. }
  543. return new P(function (resolve, reject) {
  544. var results = [];
  545. var remaining = 0;
  546. function resolver(index) {
  547. remaining++;
  548. return function (value) {
  549. results[index] = value;
  550. if (! --remaining) {
  551. resolve(results);
  552. }
  553. };
  554. }
  555. for (var i = 0, promise; i < promises.length; i++) {
  556. promise = promises[i];
  557. if (promise && typeof promise.then === 'function') {
  558. promise.then(resolver(i), reject);
  559. } else {
  560. results[i] = promise;
  561. }
  562. }
  563. if (!remaining) {
  564. resolve(results);
  565. }
  566. });
  567. };
  568. P.race = function (promises) {
  569. if (!Array.isArray(promises)) {
  570. throw new TypeError('You must pass an array to Promise.race().');
  571. }
  572. return new P(function (resolve, reject) {
  573. for (var i = 0, promise; i < promises.length; i++) {
  574. promise = promises[i];
  575. if (promise && typeof promise.then === 'function') {
  576. promise.then(resolve, reject);
  577. } else {
  578. resolve(promise);
  579. }
  580. }
  581. });
  582. };
  583. P.resolve = function (value) {
  584. if (value && _typeof(value) === 'object' && value.constructor === P) {
  585. return value;
  586. }
  587. return new P(function (resolve) {
  588. resolve(value);
  589. });
  590. };
  591. P.reject = function (reason) {
  592. return new P(function (resolve, reject) {
  593. reject(reason);
  594. });
  595. };
  596. var picked = typeof Promise === 'function' ? Promise : P;
  597. var d = UNITS_IN_GRID;
  598. var meaninglessTransform = {
  599. size: 16,
  600. x: 0,
  601. y: 0,
  602. rotate: 0,
  603. flipX: false,
  604. flipY: false
  605. };
  606. function isReserved(name) {
  607. return ~RESERVED_CLASSES.indexOf(name);
  608. }
  609. function insertCss(css) {
  610. if (!css || !IS_DOM) {
  611. return;
  612. }
  613. var style = DOCUMENT.createElement('style');
  614. style.setAttribute('type', 'text/css');
  615. style.innerHTML = css;
  616. var headChildren = DOCUMENT.head.childNodes;
  617. var beforeChild = null;
  618. for (var i = headChildren.length - 1; i > -1; i--) {
  619. var child = headChildren[i];
  620. var tagName = (child.tagName || '').toUpperCase();
  621. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  622. beforeChild = child;
  623. }
  624. }
  625. DOCUMENT.head.insertBefore(style, beforeChild);
  626. return css;
  627. }
  628. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  629. function nextUniqueId() {
  630. var size = 12;
  631. var id = '';
  632. while (size-- > 0) {
  633. id += idPool[Math.random() * 62 | 0];
  634. }
  635. return id;
  636. }
  637. function toArray(obj) {
  638. var array = [];
  639. for (var i = (obj || []).length >>> 0; i--;) {
  640. array[i] = obj[i];
  641. }
  642. return array;
  643. }
  644. function classArray(node) {
  645. if (node.classList) {
  646. return toArray(node.classList);
  647. } else {
  648. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  649. return i;
  650. });
  651. }
  652. }
  653. function getIconName(familyPrefix, cls) {
  654. var parts = cls.split('-');
  655. var prefix = parts[0];
  656. var iconName = parts.slice(1).join('-');
  657. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  658. return iconName;
  659. } else {
  660. return null;
  661. }
  662. }
  663. function htmlEscape(str) {
  664. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  665. }
  666. function joinAttributes(attributes) {
  667. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  668. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  669. }, '').trim();
  670. }
  671. function joinStyles(styles) {
  672. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  673. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  674. }, '');
  675. }
  676. function transformIsMeaningful(transform) {
  677. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  678. }
  679. function transformForSvg(_ref) {
  680. var transform = _ref.transform,
  681. containerWidth = _ref.containerWidth,
  682. iconWidth = _ref.iconWidth;
  683. var outer = {
  684. transform: "translate(".concat(containerWidth / 2, " 256)")
  685. };
  686. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  687. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  688. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  689. var inner = {
  690. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  691. };
  692. var path = {
  693. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  694. };
  695. return {
  696. outer: outer,
  697. inner: inner,
  698. path: path
  699. };
  700. }
  701. function transformForCss(_ref2) {
  702. var transform = _ref2.transform,
  703. _ref2$width = _ref2.width,
  704. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  705. _ref2$height = _ref2.height,
  706. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  707. _ref2$startCentered = _ref2.startCentered,
  708. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  709. var val = '';
  710. if (startCentered && IS_IE) {
  711. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  712. } else if (startCentered) {
  713. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  714. } else {
  715. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  716. }
  717. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  718. val += "rotate(".concat(transform.rotate, "deg) ");
  719. return val;
  720. }
  721. var ALL_SPACE = {
  722. x: 0,
  723. y: 0,
  724. width: '100%',
  725. height: '100%'
  726. };
  727. function makeIconMasking (_ref) {
  728. var children = _ref.children,
  729. attributes = _ref.attributes,
  730. main = _ref.main,
  731. mask = _ref.mask,
  732. transform = _ref.transform;
  733. var mainWidth = main.width,
  734. mainPath = main.icon;
  735. var maskWidth = mask.width,
  736. maskPath = mask.icon;
  737. var trans = transformForSvg({
  738. transform: transform,
  739. containerWidth: maskWidth,
  740. iconWidth: mainWidth
  741. });
  742. var maskRect = {
  743. tag: 'rect',
  744. attributes: _objectSpread({}, ALL_SPACE, {
  745. fill: 'white'
  746. })
  747. };
  748. var maskInnerGroup = {
  749. tag: 'g',
  750. attributes: _objectSpread({}, trans.inner),
  751. children: [{
  752. tag: 'path',
  753. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  754. fill: 'black'
  755. })
  756. }]
  757. };
  758. var maskOuterGroup = {
  759. tag: 'g',
  760. attributes: _objectSpread({}, trans.outer),
  761. children: [maskInnerGroup]
  762. };
  763. var maskId = "mask-".concat(nextUniqueId());
  764. var clipId = "clip-".concat(nextUniqueId());
  765. var maskTag = {
  766. tag: 'mask',
  767. attributes: _objectSpread({}, ALL_SPACE, {
  768. id: maskId,
  769. maskUnits: 'userSpaceOnUse',
  770. maskContentUnits: 'userSpaceOnUse'
  771. }),
  772. children: [maskRect, maskOuterGroup]
  773. };
  774. var defs = {
  775. tag: 'defs',
  776. children: [{
  777. tag: 'clipPath',
  778. attributes: {
  779. id: clipId
  780. },
  781. children: [maskPath]
  782. }, maskTag]
  783. };
  784. children.push(defs, {
  785. tag: 'rect',
  786. attributes: _objectSpread({
  787. fill: 'currentColor',
  788. 'clip-path': "url(#".concat(clipId, ")"),
  789. mask: "url(#".concat(maskId, ")")
  790. }, ALL_SPACE)
  791. });
  792. return {
  793. children: children,
  794. attributes: attributes
  795. };
  796. }
  797. function makeIconStandard (_ref) {
  798. var children = _ref.children,
  799. attributes = _ref.attributes,
  800. main = _ref.main,
  801. transform = _ref.transform,
  802. styles = _ref.styles;
  803. var styleString = joinStyles(styles);
  804. if (styleString.length > 0) {
  805. attributes['style'] = styleString;
  806. }
  807. if (transformIsMeaningful(transform)) {
  808. var trans = transformForSvg({
  809. transform: transform,
  810. containerWidth: main.width,
  811. iconWidth: main.width
  812. });
  813. children.push({
  814. tag: 'g',
  815. attributes: _objectSpread({}, trans.outer),
  816. children: [{
  817. tag: 'g',
  818. attributes: _objectSpread({}, trans.inner),
  819. children: [{
  820. tag: main.icon.tag,
  821. children: main.icon.children,
  822. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  823. }]
  824. }]
  825. });
  826. } else {
  827. children.push(main.icon);
  828. }
  829. return {
  830. children: children,
  831. attributes: attributes
  832. };
  833. }
  834. function asIcon (_ref) {
  835. var children = _ref.children,
  836. main = _ref.main,
  837. mask = _ref.mask,
  838. attributes = _ref.attributes,
  839. styles = _ref.styles,
  840. transform = _ref.transform;
  841. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  842. var width = main.width,
  843. height = main.height;
  844. var offset = {
  845. x: width / height / 2,
  846. y: 0.5
  847. };
  848. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  849. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  850. }));
  851. }
  852. return [{
  853. tag: 'svg',
  854. attributes: attributes,
  855. children: children
  856. }];
  857. }
  858. function asSymbol (_ref) {
  859. var prefix = _ref.prefix,
  860. iconName = _ref.iconName,
  861. children = _ref.children,
  862. attributes = _ref.attributes,
  863. symbol = _ref.symbol;
  864. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  865. return [{
  866. tag: 'svg',
  867. attributes: {
  868. style: 'display: none;'
  869. },
  870. children: [{
  871. tag: 'symbol',
  872. attributes: _objectSpread({}, attributes, {
  873. id: id
  874. }),
  875. children: children
  876. }]
  877. }];
  878. }
  879. function makeInlineSvgAbstract(params) {
  880. var _params$icons = params.icons,
  881. main = _params$icons.main,
  882. mask = _params$icons.mask,
  883. prefix = params.prefix,
  884. iconName = params.iconName,
  885. transform = params.transform,
  886. symbol = params.symbol,
  887. title = params.title,
  888. extra = params.extra,
  889. _params$watchable = params.watchable,
  890. watchable = _params$watchable === void 0 ? false : _params$watchable;
  891. var _ref = mask.found ? mask : main,
  892. width = _ref.width,
  893. height = _ref.height;
  894. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  895. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  896. return extra.classes.indexOf(c) === -1;
  897. }).concat(extra.classes).join(' ');
  898. var content = {
  899. children: [],
  900. attributes: _objectSpread({}, extra.attributes, {
  901. 'data-prefix': prefix,
  902. 'data-icon': iconName,
  903. 'class': attrClass,
  904. 'role': extra.attributes.role || 'img',
  905. 'xmlns': 'http://www.w3.org/2000/svg',
  906. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  907. })
  908. };
  909. if (watchable) {
  910. content.attributes[DATA_FA_I2SVG] = '';
  911. }
  912. if (title) content.children.push({
  913. tag: 'title',
  914. attributes: {
  915. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  916. },
  917. children: [title]
  918. });
  919. var args = _objectSpread({}, content, {
  920. prefix: prefix,
  921. iconName: iconName,
  922. main: main,
  923. mask: mask,
  924. transform: transform,
  925. symbol: symbol,
  926. styles: extra.styles
  927. });
  928. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  929. children = _ref2.children,
  930. attributes = _ref2.attributes;
  931. args.children = children;
  932. args.attributes = attributes;
  933. if (symbol) {
  934. return asSymbol(args);
  935. } else {
  936. return asIcon(args);
  937. }
  938. }
  939. function makeLayersTextAbstract(params) {
  940. var content = params.content,
  941. width = params.width,
  942. height = params.height,
  943. transform = params.transform,
  944. title = params.title,
  945. extra = params.extra,
  946. _params$watchable2 = params.watchable,
  947. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  948. var attributes = _objectSpread({}, extra.attributes, title ? {
  949. 'title': title
  950. } : {}, {
  951. 'class': extra.classes.join(' ')
  952. });
  953. if (watchable) {
  954. attributes[DATA_FA_I2SVG] = '';
  955. }
  956. var styles = _objectSpread({}, extra.styles);
  957. if (transformIsMeaningful(transform)) {
  958. styles['transform'] = transformForCss({
  959. transform: transform,
  960. startCentered: true,
  961. width: width,
  962. height: height
  963. });
  964. styles['-webkit-transform'] = styles['transform'];
  965. }
  966. var styleString = joinStyles(styles);
  967. if (styleString.length > 0) {
  968. attributes['style'] = styleString;
  969. }
  970. var val = [];
  971. val.push({
  972. tag: 'span',
  973. attributes: attributes,
  974. children: [content]
  975. });
  976. if (title) {
  977. val.push({
  978. tag: 'span',
  979. attributes: {
  980. class: 'sr-only'
  981. },
  982. children: [title]
  983. });
  984. }
  985. return val;
  986. }
  987. function makeLayersCounterAbstract(params) {
  988. var content = params.content,
  989. title = params.title,
  990. extra = params.extra;
  991. var attributes = _objectSpread({}, extra.attributes, title ? {
  992. 'title': title
  993. } : {}, {
  994. 'class': extra.classes.join(' ')
  995. });
  996. var styleString = joinStyles(extra.styles);
  997. if (styleString.length > 0) {
  998. attributes['style'] = styleString;
  999. }
  1000. var val = [];
  1001. val.push({
  1002. tag: 'span',
  1003. attributes: attributes,
  1004. children: [content]
  1005. });
  1006. if (title) {
  1007. val.push({
  1008. tag: 'span',
  1009. attributes: {
  1010. class: 'sr-only'
  1011. },
  1012. children: [title]
  1013. });
  1014. }
  1015. return val;
  1016. }
  1017. var noop$1 = function noop() {};
  1018. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  1019. mark: noop$1,
  1020. measure: noop$1
  1021. };
  1022. var preamble = "FA \"5.9.0\"";
  1023. var begin = function begin(name) {
  1024. p.mark("".concat(preamble, " ").concat(name, " begins"));
  1025. return function () {
  1026. return end(name);
  1027. };
  1028. };
  1029. var end = function end(name) {
  1030. p.mark("".concat(preamble, " ").concat(name, " ends"));
  1031. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  1032. };
  1033. var perf = {
  1034. begin: begin,
  1035. end: end
  1036. };
  1037. /**
  1038. * Internal helper to bind a function known to have 4 arguments
  1039. * to a given context.
  1040. */
  1041. var bindInternal4 = function bindInternal4(func, thisContext) {
  1042. return function (a, b, c, d) {
  1043. return func.call(thisContext, a, b, c, d);
  1044. };
  1045. };
  1046. /**
  1047. * # Reduce
  1048. *
  1049. * A fast object `.reduce()` implementation.
  1050. *
  1051. * @param {Object} subject The object to reduce over.
  1052. * @param {Function} fn The reducer function.
  1053. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  1054. * @param {Object} thisContext The context for the reducer.
  1055. * @return {mixed} The final result.
  1056. */
  1057. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  1058. var keys = Object.keys(subject),
  1059. length = keys.length,
  1060. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  1061. i,
  1062. key,
  1063. result;
  1064. if (initialValue === undefined) {
  1065. i = 1;
  1066. result = subject[keys[0]];
  1067. } else {
  1068. i = 0;
  1069. result = initialValue;
  1070. }
  1071. for (; i < length; i++) {
  1072. key = keys[i];
  1073. result = iterator(result, subject[key], key, subject);
  1074. }
  1075. return result;
  1076. };
  1077. function toHex(unicode) {
  1078. var result = '';
  1079. for (var i = 0; i < unicode.length; i++) {
  1080. var hex = unicode.charCodeAt(i).toString(16);
  1081. result += ('000' + hex).slice(-4);
  1082. }
  1083. return result;
  1084. }
  1085. function defineIcons(prefix, icons) {
  1086. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1087. var _params$skipHooks = params.skipHooks,
  1088. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  1089. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1090. var icon = icons[iconName];
  1091. var expanded = !!icon.icon;
  1092. if (expanded) {
  1093. acc[icon.iconName] = icon.icon;
  1094. } else {
  1095. acc[iconName] = icon;
  1096. }
  1097. return acc;
  1098. }, {});
  1099. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  1100. namespace.hooks.addPack(prefix, normalized);
  1101. } else {
  1102. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1103. }
  1104. /**
  1105. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1106. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1107. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1108. * this as well.
  1109. */
  1110. if (prefix === 'fas') {
  1111. defineIcons('fa', icons);
  1112. }
  1113. }
  1114. var styles = namespace.styles,
  1115. shims = namespace.shims;
  1116. var _byUnicode = {};
  1117. var _byLigature = {};
  1118. var _byOldName = {};
  1119. var build = function build() {
  1120. var lookup = function lookup(reducer) {
  1121. return reduce(styles, function (o, style, prefix) {
  1122. o[prefix] = reduce(style, reducer, {});
  1123. return o;
  1124. }, {});
  1125. };
  1126. _byUnicode = lookup(function (acc, icon, iconName) {
  1127. if (icon[3]) {
  1128. acc[icon[3]] = iconName;
  1129. }
  1130. return acc;
  1131. });
  1132. _byLigature = lookup(function (acc, icon, iconName) {
  1133. var ligatures = icon[2];
  1134. acc[iconName] = iconName;
  1135. ligatures.forEach(function (ligature) {
  1136. acc[ligature] = iconName;
  1137. });
  1138. return acc;
  1139. });
  1140. var hasRegular = 'far' in styles;
  1141. _byOldName = reduce(shims, function (acc, shim) {
  1142. var oldName = shim[0];
  1143. var prefix = shim[1];
  1144. var iconName = shim[2];
  1145. if (prefix === 'far' && !hasRegular) {
  1146. prefix = 'fas';
  1147. }
  1148. acc[oldName] = {
  1149. prefix: prefix,
  1150. iconName: iconName
  1151. };
  1152. return acc;
  1153. }, {});
  1154. };
  1155. build();
  1156. function byUnicode(prefix, unicode) {
  1157. return (_byUnicode[prefix] || {})[unicode];
  1158. }
  1159. function byLigature(prefix, ligature) {
  1160. return (_byLigature[prefix] || {})[ligature];
  1161. }
  1162. function byOldName(name) {
  1163. return _byOldName[name] || {
  1164. prefix: null,
  1165. iconName: null
  1166. };
  1167. }
  1168. var styles$1 = namespace.styles;
  1169. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  1170. return {
  1171. prefix: null,
  1172. iconName: null,
  1173. rest: []
  1174. };
  1175. };
  1176. function getCanonicalIcon(values) {
  1177. return values.reduce(function (acc, cls) {
  1178. var iconName = getIconName(config.familyPrefix, cls);
  1179. if (styles$1[cls]) {
  1180. acc.prefix = cls;
  1181. } else if (config.autoFetchSvg && ['fas', 'far', 'fal', 'fab', 'fa'].indexOf(cls) > -1) {
  1182. acc.prefix = cls;
  1183. } else if (iconName) {
  1184. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  1185. acc.iconName = shim.iconName || iconName;
  1186. acc.prefix = shim.prefix || acc.prefix;
  1187. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  1188. acc.rest.push(cls);
  1189. }
  1190. return acc;
  1191. }, emptyCanonicalIcon());
  1192. }
  1193. function iconFromMapping(mapping, prefix, iconName) {
  1194. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  1195. return {
  1196. prefix: prefix,
  1197. iconName: iconName,
  1198. icon: mapping[prefix][iconName]
  1199. };
  1200. }
  1201. }
  1202. function toHtml(abstractNodes) {
  1203. var tag = abstractNodes.tag,
  1204. _abstractNodes$attrib = abstractNodes.attributes,
  1205. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  1206. _abstractNodes$childr = abstractNodes.children,
  1207. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  1208. if (typeof abstractNodes === 'string') {
  1209. return htmlEscape(abstractNodes);
  1210. } else {
  1211. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  1212. }
  1213. }
  1214. var noop$2 = function noop() {};
  1215. function isWatched(node) {
  1216. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  1217. return typeof i2svg === 'string';
  1218. }
  1219. function getMutator() {
  1220. if (config.autoReplaceSvg === true) {
  1221. return mutators.replace;
  1222. }
  1223. var mutator = mutators[config.autoReplaceSvg];
  1224. return mutator || mutators.replace;
  1225. }
  1226. var mutators = {
  1227. replace: function replace(mutation) {
  1228. var node = mutation[0];
  1229. var abstract = mutation[1];
  1230. var newOuterHTML = abstract.map(function (a) {
  1231. return toHtml(a);
  1232. }).join('\n');
  1233. if (node.parentNode && node.outerHTML) {
  1234. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  1235. } else if (node.parentNode) {
  1236. var newNode = document.createElement('span');
  1237. node.parentNode.replaceChild(newNode, node);
  1238. newNode.outerHTML = newOuterHTML;
  1239. }
  1240. },
  1241. nest: function nest(mutation) {
  1242. var node = mutation[0];
  1243. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  1244. // Short-circuit to the standard replacement
  1245. if (~classArray(node).indexOf(config.replacementClass)) {
  1246. return mutators.replace(mutation);
  1247. }
  1248. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  1249. delete abstract[0].attributes.style;
  1250. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  1251. if (cls === config.replacementClass || cls.match(forSvg)) {
  1252. acc.toSvg.push(cls);
  1253. } else {
  1254. acc.toNode.push(cls);
  1255. }
  1256. return acc;
  1257. }, {
  1258. toNode: [],
  1259. toSvg: []
  1260. });
  1261. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  1262. var newInnerHTML = abstract.map(function (a) {
  1263. return toHtml(a);
  1264. }).join('\n');
  1265. node.setAttribute('class', splitClasses.toNode.join(' '));
  1266. node.setAttribute(DATA_FA_I2SVG, '');
  1267. node.innerHTML = newInnerHTML;
  1268. }
  1269. };
  1270. function performOperationSync(op) {
  1271. op();
  1272. }
  1273. function perform(mutations, callback) {
  1274. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  1275. if (mutations.length === 0) {
  1276. callbackFunction();
  1277. } else {
  1278. var frame = performOperationSync;
  1279. if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
  1280. frame = WINDOW.requestAnimationFrame || performOperationSync;
  1281. }
  1282. frame(function () {
  1283. var mutator = getMutator();
  1284. var mark = perf.begin('mutate');
  1285. mutations.map(mutator);
  1286. mark();
  1287. callbackFunction();
  1288. });
  1289. }
  1290. }
  1291. var disabled = false;
  1292. function disableObservation() {
  1293. disabled = true;
  1294. }
  1295. function enableObservation() {
  1296. disabled = false;
  1297. }
  1298. var mo = null;
  1299. function observe(options) {
  1300. if (!MUTATION_OBSERVER) {
  1301. return;
  1302. }
  1303. if (!config.observeMutations) {
  1304. return;
  1305. }
  1306. var treeCallback = options.treeCallback,
  1307. nodeCallback = options.nodeCallback,
  1308. pseudoElementsCallback = options.pseudoElementsCallback,
  1309. _options$observeMutat = options.observeMutationsRoot,
  1310. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  1311. mo = new MUTATION_OBSERVER(function (objects) {
  1312. if (disabled) return;
  1313. toArray(objects).forEach(function (mutationRecord) {
  1314. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  1315. if (config.searchPseudoElements) {
  1316. pseudoElementsCallback(mutationRecord.target);
  1317. }
  1318. treeCallback(mutationRecord.target);
  1319. }
  1320. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1321. pseudoElementsCallback(mutationRecord.target.parentNode);
  1322. }
  1323. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1324. if (mutationRecord.attributeName === 'class') {
  1325. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1326. prefix = _getCanonicalIcon.prefix,
  1327. iconName = _getCanonicalIcon.iconName;
  1328. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1329. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1330. } else {
  1331. nodeCallback(mutationRecord.target);
  1332. }
  1333. }
  1334. });
  1335. });
  1336. if (!IS_DOM) return;
  1337. mo.observe(observeMutationsRoot, {
  1338. childList: true,
  1339. attributes: true,
  1340. characterData: true,
  1341. subtree: true
  1342. });
  1343. }
  1344. function disconnect() {
  1345. if (!mo) return;
  1346. mo.disconnect();
  1347. }
  1348. function styleParser (node) {
  1349. var style = node.getAttribute('style');
  1350. var val = [];
  1351. if (style) {
  1352. val = style.split(';').reduce(function (acc, style) {
  1353. var styles = style.split(':');
  1354. var prop = styles[0];
  1355. var value = styles.slice(1);
  1356. if (prop && value.length > 0) {
  1357. acc[prop] = value.join(':').trim();
  1358. }
  1359. return acc;
  1360. }, {});
  1361. }
  1362. return val;
  1363. }
  1364. function classParser (node) {
  1365. var existingPrefix = node.getAttribute('data-prefix');
  1366. var existingIconName = node.getAttribute('data-icon');
  1367. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1368. var val = getCanonicalIcon(classArray(node));
  1369. if (existingPrefix && existingIconName) {
  1370. val.prefix = existingPrefix;
  1371. val.iconName = existingIconName;
  1372. }
  1373. if (val.prefix && innerText.length > 1) {
  1374. val.iconName = byLigature(val.prefix, node.innerText);
  1375. } else if (val.prefix && innerText.length === 1) {
  1376. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1377. }
  1378. return val;
  1379. }
  1380. var parseTransformString = function parseTransformString(transformString) {
  1381. var transform = {
  1382. size: 16,
  1383. x: 0,
  1384. y: 0,
  1385. flipX: false,
  1386. flipY: false,
  1387. rotate: 0
  1388. };
  1389. if (!transformString) {
  1390. return transform;
  1391. } else {
  1392. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1393. var parts = n.toLowerCase().split('-');
  1394. var first = parts[0];
  1395. var rest = parts.slice(1).join('-');
  1396. if (first && rest === 'h') {
  1397. acc.flipX = true;
  1398. return acc;
  1399. }
  1400. if (first && rest === 'v') {
  1401. acc.flipY = true;
  1402. return acc;
  1403. }
  1404. rest = parseFloat(rest);
  1405. if (isNaN(rest)) {
  1406. return acc;
  1407. }
  1408. switch (first) {
  1409. case 'grow':
  1410. acc.size = acc.size + rest;
  1411. break;
  1412. case 'shrink':
  1413. acc.size = acc.size - rest;
  1414. break;
  1415. case 'left':
  1416. acc.x = acc.x - rest;
  1417. break;
  1418. case 'right':
  1419. acc.x = acc.x + rest;
  1420. break;
  1421. case 'up':
  1422. acc.y = acc.y - rest;
  1423. break;
  1424. case 'down':
  1425. acc.y = acc.y + rest;
  1426. break;
  1427. case 'rotate':
  1428. acc.rotate = acc.rotate + rest;
  1429. break;
  1430. }
  1431. return acc;
  1432. }, transform);
  1433. }
  1434. };
  1435. function transformParser (node) {
  1436. return parseTransformString(node.getAttribute('data-fa-transform'));
  1437. }
  1438. function symbolParser (node) {
  1439. var symbol = node.getAttribute('data-fa-symbol');
  1440. return symbol === null ? false : symbol === '' ? true : symbol;
  1441. }
  1442. function attributesParser (node) {
  1443. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1444. if (acc.name !== 'class' && acc.name !== 'style') {
  1445. acc[attr.name] = attr.value;
  1446. }
  1447. return acc;
  1448. }, {});
  1449. var title = node.getAttribute('title');
  1450. if (config.autoA11y) {
  1451. if (title) {
  1452. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1453. } else {
  1454. extraAttributes['aria-hidden'] = 'true';
  1455. extraAttributes['focusable'] = 'false';
  1456. }
  1457. }
  1458. return extraAttributes;
  1459. }
  1460. function maskParser (node) {
  1461. var mask = node.getAttribute('data-fa-mask');
  1462. if (!mask) {
  1463. return emptyCanonicalIcon();
  1464. } else {
  1465. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1466. return i.trim();
  1467. }));
  1468. }
  1469. }
  1470. function blankMeta() {
  1471. return {
  1472. iconName: null,
  1473. title: null,
  1474. prefix: null,
  1475. transform: meaninglessTransform,
  1476. symbol: false,
  1477. mask: null,
  1478. extra: {
  1479. classes: [],
  1480. styles: {},
  1481. attributes: {}
  1482. }
  1483. };
  1484. }
  1485. function parseMeta(node) {
  1486. var _classParser = classParser(node),
  1487. iconName = _classParser.iconName,
  1488. prefix = _classParser.prefix,
  1489. extraClasses = _classParser.rest;
  1490. var extraStyles = styleParser(node);
  1491. var transform = transformParser(node);
  1492. var symbol = symbolParser(node);
  1493. var extraAttributes = attributesParser(node);
  1494. var mask = maskParser(node);
  1495. return {
  1496. iconName: iconName,
  1497. title: node.getAttribute('title'),
  1498. prefix: prefix,
  1499. transform: transform,
  1500. symbol: symbol,
  1501. mask: mask,
  1502. extra: {
  1503. classes: extraClasses,
  1504. styles: extraStyles,
  1505. attributes: extraAttributes
  1506. }
  1507. };
  1508. }
  1509. function MissingIcon(error) {
  1510. this.name = 'MissingIcon';
  1511. this.message = error || 'Icon unavailable';
  1512. this.stack = new Error().stack;
  1513. }
  1514. MissingIcon.prototype = Object.create(Error.prototype);
  1515. MissingIcon.prototype.constructor = MissingIcon;
  1516. var FILL = {
  1517. fill: 'currentColor'
  1518. };
  1519. var ANIMATION_BASE = {
  1520. attributeType: 'XML',
  1521. repeatCount: 'indefinite',
  1522. dur: '2s'
  1523. };
  1524. var RING = {
  1525. tag: 'path',
  1526. attributes: _objectSpread({}, FILL, {
  1527. 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'
  1528. })
  1529. };
  1530. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1531. attributeName: 'opacity'
  1532. });
  1533. var DOT = {
  1534. tag: 'circle',
  1535. attributes: _objectSpread({}, FILL, {
  1536. cx: '256',
  1537. cy: '364',
  1538. r: '28'
  1539. }),
  1540. children: [{
  1541. tag: 'animate',
  1542. attributes: _objectSpread({}, ANIMATION_BASE, {
  1543. attributeName: 'r',
  1544. values: '28;14;28;28;14;28;'
  1545. })
  1546. }, {
  1547. tag: 'animate',
  1548. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1549. values: '1;0;1;1;0;1;'
  1550. })
  1551. }]
  1552. };
  1553. var QUESTION = {
  1554. tag: 'path',
  1555. attributes: _objectSpread({}, FILL, {
  1556. opacity: '1',
  1557. 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'
  1558. }),
  1559. children: [{
  1560. tag: 'animate',
  1561. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1562. values: '1;0;0;0;0;1;'
  1563. })
  1564. }]
  1565. };
  1566. var EXCLAMATION = {
  1567. tag: 'path',
  1568. attributes: _objectSpread({}, FILL, {
  1569. opacity: '0',
  1570. 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'
  1571. }),
  1572. children: [{
  1573. tag: 'animate',
  1574. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1575. values: '0;0;1;1;0;0;'
  1576. })
  1577. }]
  1578. };
  1579. var missing = {
  1580. tag: 'g',
  1581. children: [RING, DOT, QUESTION, EXCLAMATION]
  1582. };
  1583. var styles$2 = namespace.styles;
  1584. function findIcon(iconName, prefix) {
  1585. return new picked(function (resolve, reject) {
  1586. var val = {
  1587. found: false,
  1588. width: 512,
  1589. height: 512,
  1590. icon: missing
  1591. };
  1592. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1593. var icon = styles$2[prefix][iconName];
  1594. var width = icon[0];
  1595. var height = icon[1];
  1596. var vectorData = icon.slice(4);
  1597. val = {
  1598. found: true,
  1599. width: width,
  1600. height: height,
  1601. icon: {
  1602. tag: 'path',
  1603. attributes: {
  1604. fill: 'currentColor',
  1605. d: vectorData[0]
  1606. }
  1607. }
  1608. };
  1609. return resolve(val);
  1610. }
  1611. if (iconName && prefix && !config.showMissingIcons) {
  1612. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  1613. } else {
  1614. resolve(val);
  1615. }
  1616. });
  1617. }
  1618. var styles$3 = namespace.styles;
  1619. function generateSvgReplacementMutation(node, nodeMeta) {
  1620. var iconName = nodeMeta.iconName,
  1621. title = nodeMeta.title,
  1622. prefix = nodeMeta.prefix,
  1623. transform = nodeMeta.transform,
  1624. symbol = nodeMeta.symbol,
  1625. mask = nodeMeta.mask,
  1626. extra = nodeMeta.extra;
  1627. return new picked(function (resolve, reject) {
  1628. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  1629. var _ref2 = _slicedToArray(_ref, 2),
  1630. main = _ref2[0],
  1631. mask = _ref2[1];
  1632. resolve([node, makeInlineSvgAbstract({
  1633. icons: {
  1634. main: main,
  1635. mask: mask
  1636. },
  1637. prefix: prefix,
  1638. iconName: iconName,
  1639. transform: transform,
  1640. symbol: symbol,
  1641. mask: mask,
  1642. title: title,
  1643. extra: extra,
  1644. watchable: true
  1645. })]);
  1646. });
  1647. });
  1648. }
  1649. function generateLayersText(node, nodeMeta) {
  1650. var title = nodeMeta.title,
  1651. transform = nodeMeta.transform,
  1652. extra = nodeMeta.extra;
  1653. var width = null;
  1654. var height = null;
  1655. if (IS_IE) {
  1656. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1657. var boundingClientRect = node.getBoundingClientRect();
  1658. width = boundingClientRect.width / computedFontSize;
  1659. height = boundingClientRect.height / computedFontSize;
  1660. }
  1661. if (config.autoA11y && !title) {
  1662. extra.attributes['aria-hidden'] = 'true';
  1663. }
  1664. return picked.resolve([node, makeLayersTextAbstract({
  1665. content: node.innerHTML,
  1666. width: width,
  1667. height: height,
  1668. transform: transform,
  1669. title: title,
  1670. extra: extra,
  1671. watchable: true
  1672. })]);
  1673. }
  1674. function generateMutation(node) {
  1675. var nodeMeta = parseMeta(node);
  1676. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1677. return generateLayersText(node, nodeMeta);
  1678. } else {
  1679. return generateSvgReplacementMutation(node, nodeMeta);
  1680. }
  1681. }
  1682. function onTree(root) {
  1683. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1684. if (!IS_DOM) return;
  1685. var htmlClassList = DOCUMENT.documentElement.classList;
  1686. var hclAdd = function hclAdd(suffix) {
  1687. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1688. };
  1689. var hclRemove = function hclRemove(suffix) {
  1690. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1691. };
  1692. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  1693. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1694. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1695. })).join(', ');
  1696. if (prefixesDomQuery.length === 0) {
  1697. return;
  1698. }
  1699. var candidates = [];
  1700. try {
  1701. candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1702. } catch (e) {// noop
  1703. }
  1704. if (candidates.length > 0) {
  1705. hclAdd('pending');
  1706. hclRemove('complete');
  1707. } else {
  1708. return;
  1709. }
  1710. var mark = perf.begin('onTree');
  1711. var mutations = candidates.reduce(function (acc, node) {
  1712. try {
  1713. var mutation = generateMutation(node);
  1714. if (mutation) {
  1715. acc.push(mutation);
  1716. }
  1717. } catch (e) {
  1718. if (!PRODUCTION) {
  1719. if (e instanceof MissingIcon) {
  1720. console.error(e);
  1721. }
  1722. }
  1723. }
  1724. return acc;
  1725. }, []);
  1726. return new picked(function (resolve, reject) {
  1727. picked.all(mutations).then(function (resolvedMutations) {
  1728. perform(resolvedMutations, function () {
  1729. hclAdd('active');
  1730. hclAdd('complete');
  1731. hclRemove('pending');
  1732. if (typeof callback === 'function') callback();
  1733. mark();
  1734. resolve();
  1735. });
  1736. }).catch(function () {
  1737. mark();
  1738. reject();
  1739. });
  1740. });
  1741. }
  1742. function onNode(node) {
  1743. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1744. generateMutation(node).then(function (mutation) {
  1745. if (mutation) {
  1746. perform([mutation], callback);
  1747. }
  1748. });
  1749. }
  1750. function replaceForPosition(node, position) {
  1751. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  1752. return new picked(function (resolve, reject) {
  1753. if (node.getAttribute(pendingAttribute) !== null) {
  1754. // This node is already being processed
  1755. return resolve();
  1756. }
  1757. var children = toArray(node.children);
  1758. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1759. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  1760. })[0];
  1761. var styles = WINDOW.getComputedStyle(node, position);
  1762. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1763. var fontWeight = styles.getPropertyValue('font-weight');
  1764. if (alreadyProcessedPseudoElement && !fontFamily) {
  1765. // If we've already processed it but the current computed style does not result in a font-family,
  1766. // that probably means that a class name that was previously present to make the icon has been
  1767. // removed. So we now should delete the icon.
  1768. node.removeChild(alreadyProcessedPseudoElement);
  1769. return resolve();
  1770. } else if (fontFamily) {
  1771. var content = styles.getPropertyValue('content');
  1772. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1773. var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
  1774. var iconName = byUnicode(prefix, hexValue);
  1775. var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1776. // already done so with the same prefix and iconName
  1777. if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
  1778. node.setAttribute(pendingAttribute, iconIdentifier);
  1779. if (alreadyProcessedPseudoElement) {
  1780. // Delete the old one, since we're replacing it with a new one
  1781. node.removeChild(alreadyProcessedPseudoElement);
  1782. }
  1783. var meta = blankMeta();
  1784. var extra = meta.extra;
  1785. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  1786. findIcon(iconName, prefix).then(function (main) {
  1787. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  1788. icons: {
  1789. main: main,
  1790. mask: emptyCanonicalIcon()
  1791. },
  1792. prefix: prefix,
  1793. iconName: iconIdentifier,
  1794. extra: extra,
  1795. watchable: true
  1796. }));
  1797. var element = DOCUMENT.createElement('svg');
  1798. if (position === ':before') {
  1799. node.insertBefore(element, node.firstChild);
  1800. } else {
  1801. node.appendChild(element);
  1802. }
  1803. element.outerHTML = abstract.map(function (a) {
  1804. return toHtml(a);
  1805. }).join('\n');
  1806. node.removeAttribute(pendingAttribute);
  1807. resolve();
  1808. }).catch(reject);
  1809. } else {
  1810. resolve();
  1811. }
  1812. } else {
  1813. resolve();
  1814. }
  1815. });
  1816. }
  1817. function replace(node) {
  1818. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  1819. }
  1820. function processable(node) {
  1821. return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
  1822. }
  1823. function searchPseudoElements (root) {
  1824. if (!IS_DOM) return;
  1825. return new picked(function (resolve, reject) {
  1826. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  1827. var end = perf.begin('searchPseudoElements');
  1828. disableObservation();
  1829. picked.all(operations).then(function () {
  1830. end();
  1831. enableObservation();
  1832. resolve();
  1833. }).catch(function () {
  1834. end();
  1835. enableObservation();
  1836. reject();
  1837. });
  1838. });
  1839. }
  1840. var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}";
  1841. function css () {
  1842. var dfp = DEFAULT_FAMILY_PREFIX;
  1843. var drc = DEFAULT_REPLACEMENT_CLASS;
  1844. var fp = config.familyPrefix;
  1845. var rc = config.replacementClass;
  1846. var s = baseStyles;
  1847. if (fp !== dfp || rc !== drc) {
  1848. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1849. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1850. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1851. }
  1852. return s;
  1853. }
  1854. var Library =
  1855. /*#__PURE__*/
  1856. function () {
  1857. function Library() {
  1858. _classCallCheck(this, Library);
  1859. this.definitions = {};
  1860. }
  1861. _createClass(Library, [{
  1862. key: "add",
  1863. value: function add() {
  1864. var _this = this;
  1865. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1866. definitions[_key] = arguments[_key];
  1867. }
  1868. var additions = definitions.reduce(this._pullDefinitions, {});
  1869. Object.keys(additions).forEach(function (key) {
  1870. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1871. defineIcons(key, additions[key]);
  1872. build();
  1873. });
  1874. }
  1875. }, {
  1876. key: "reset",
  1877. value: function reset() {
  1878. this.definitions = {};
  1879. }
  1880. }, {
  1881. key: "_pullDefinitions",
  1882. value: function _pullDefinitions(additions, definition) {
  1883. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1884. 0: definition
  1885. } : definition;
  1886. Object.keys(normalized).map(function (key) {
  1887. var _normalized$key = normalized[key],
  1888. prefix = _normalized$key.prefix,
  1889. iconName = _normalized$key.iconName,
  1890. icon = _normalized$key.icon;
  1891. if (!additions[prefix]) additions[prefix] = {};
  1892. additions[prefix][iconName] = icon;
  1893. });
  1894. return additions;
  1895. }
  1896. }]);
  1897. return Library;
  1898. }();
  1899. function prepIcon(icon) {
  1900. var width = icon[0];
  1901. var height = icon[1];
  1902. var vectorData = icon.slice(4);
  1903. return {
  1904. found: true,
  1905. width: width,
  1906. height: height,
  1907. icon: {
  1908. tag: 'path',
  1909. attributes: {
  1910. fill: 'currentColor',
  1911. d: vectorData[0]
  1912. }
  1913. }
  1914. };
  1915. }
  1916. function ensureCss() {
  1917. if (config.autoAddCss && !_cssInserted) {
  1918. insertCss(css());
  1919. _cssInserted = true;
  1920. }
  1921. }
  1922. function apiObject(val, abstractCreator) {
  1923. Object.defineProperty(val, 'abstract', {
  1924. get: abstractCreator
  1925. });
  1926. Object.defineProperty(val, 'html', {
  1927. get: function get() {
  1928. return val.abstract.map(function (a) {
  1929. return toHtml(a);
  1930. });
  1931. }
  1932. });
  1933. Object.defineProperty(val, 'node', {
  1934. get: function get() {
  1935. if (!IS_DOM) return;
  1936. var container = DOCUMENT.createElement('div');
  1937. container.innerHTML = val.html;
  1938. return container.children;
  1939. }
  1940. });
  1941. return val;
  1942. }
  1943. function findIconDefinition(iconLookup) {
  1944. var _iconLookup$prefix = iconLookup.prefix,
  1945. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  1946. iconName = iconLookup.iconName;
  1947. if (!iconName) return;
  1948. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1949. }
  1950. function resolveIcons(next) {
  1951. return function (maybeIconDefinition) {
  1952. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1953. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1954. var mask = params.mask;
  1955. if (mask) {
  1956. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1957. }
  1958. return next(iconDefinition, _objectSpread({}, params, {
  1959. mask: mask
  1960. }));
  1961. };
  1962. }
  1963. var library = new Library();
  1964. var noAuto = function noAuto() {
  1965. config.autoReplaceSvg = false;
  1966. config.observeMutations = false;
  1967. disconnect();
  1968. };
  1969. var _cssInserted = false;
  1970. var dom = {
  1971. i2svg: function i2svg() {
  1972. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1973. if (IS_DOM) {
  1974. ensureCss();
  1975. var _params$node = params.node,
  1976. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1977. _params$callback = params.callback,
  1978. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1979. if (config.searchPseudoElements) {
  1980. searchPseudoElements(node);
  1981. }
  1982. return onTree(node, callback);
  1983. } else {
  1984. return picked.reject('Operation requires a DOM of some kind.');
  1985. }
  1986. },
  1987. css: css,
  1988. insertCss: function insertCss$$1() {
  1989. if (!_cssInserted) {
  1990. insertCss(css());
  1991. _cssInserted = true;
  1992. }
  1993. },
  1994. watch: function watch() {
  1995. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1996. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1997. observeMutationsRoot = params.observeMutationsRoot;
  1998. if (config.autoReplaceSvg === false) {
  1999. config.autoReplaceSvg = true;
  2000. }
  2001. config.observeMutations = true;
  2002. domready(function () {
  2003. autoReplace({
  2004. autoReplaceSvgRoot: autoReplaceSvgRoot
  2005. });
  2006. observe({
  2007. treeCallback: onTree,
  2008. nodeCallback: onNode,
  2009. pseudoElementsCallback: searchPseudoElements,
  2010. observeMutationsRoot: observeMutationsRoot
  2011. });
  2012. });
  2013. }
  2014. };
  2015. var parse = {
  2016. transform: function transform(transformString) {
  2017. return parseTransformString(transformString);
  2018. }
  2019. };
  2020. var icon = resolveIcons(function (iconDefinition) {
  2021. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2022. var _params$transform = params.transform,
  2023. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  2024. _params$symbol = params.symbol,
  2025. symbol = _params$symbol === void 0 ? false : _params$symbol,
  2026. _params$mask = params.mask,
  2027. mask = _params$mask === void 0 ? null : _params$mask,
  2028. _params$title = params.title,
  2029. title = _params$title === void 0 ? null : _params$title,
  2030. _params$classes = params.classes,
  2031. classes = _params$classes === void 0 ? [] : _params$classes,
  2032. _params$attributes = params.attributes,
  2033. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  2034. _params$styles = params.styles,
  2035. styles = _params$styles === void 0 ? {} : _params$styles;
  2036. if (!iconDefinition) return;
  2037. var prefix = iconDefinition.prefix,
  2038. iconName = iconDefinition.iconName,
  2039. icon = iconDefinition.icon;
  2040. return apiObject(_objectSpread({
  2041. type: 'icon'
  2042. }, iconDefinition), function () {
  2043. ensureCss();
  2044. if (config.autoA11y) {
  2045. if (title) {
  2046. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  2047. } else {
  2048. attributes['aria-hidden'] = 'true';
  2049. attributes['focusable'] = 'false';
  2050. }
  2051. }
  2052. return makeInlineSvgAbstract({
  2053. icons: {
  2054. main: prepIcon(icon),
  2055. mask: mask ? prepIcon(mask.icon) : {
  2056. found: false,
  2057. width: null,
  2058. height: null,
  2059. icon: {}
  2060. }
  2061. },
  2062. prefix: prefix,
  2063. iconName: iconName,
  2064. transform: _objectSpread({}, meaninglessTransform, transform),
  2065. symbol: symbol,
  2066. title: title,
  2067. extra: {
  2068. attributes: attributes,
  2069. styles: styles,
  2070. classes: classes
  2071. }
  2072. });
  2073. });
  2074. });
  2075. var text = function text(content) {
  2076. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2077. var _params$transform2 = params.transform,
  2078. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  2079. _params$title2 = params.title,
  2080. title = _params$title2 === void 0 ? null : _params$title2,
  2081. _params$classes2 = params.classes,
  2082. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  2083. _params$attributes2 = params.attributes,
  2084. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  2085. _params$styles2 = params.styles,
  2086. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  2087. return apiObject({
  2088. type: 'text',
  2089. content: content
  2090. }, function () {
  2091. ensureCss();
  2092. return makeLayersTextAbstract({
  2093. content: content,
  2094. transform: _objectSpread({}, meaninglessTransform, transform),
  2095. title: title,
  2096. extra: {
  2097. attributes: attributes,
  2098. styles: styles,
  2099. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  2100. }
  2101. });
  2102. });
  2103. };
  2104. var counter = function counter(content) {
  2105. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2106. var _params$title3 = params.title,
  2107. title = _params$title3 === void 0 ? null : _params$title3,
  2108. _params$classes3 = params.classes,
  2109. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  2110. _params$attributes3 = params.attributes,
  2111. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  2112. _params$styles3 = params.styles,
  2113. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  2114. return apiObject({
  2115. type: 'counter',
  2116. content: content
  2117. }, function () {
  2118. ensureCss();
  2119. return makeLayersCounterAbstract({
  2120. content: content.toString(),
  2121. title: title,
  2122. extra: {
  2123. attributes: attributes,
  2124. styles: styles,
  2125. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  2126. }
  2127. });
  2128. });
  2129. };
  2130. var layer = function layer(assembler) {
  2131. return apiObject({
  2132. type: 'layer'
  2133. }, function () {
  2134. ensureCss();
  2135. var children = [];
  2136. assembler(function (args) {
  2137. Array.isArray(args) ? args.map(function (a) {
  2138. children = children.concat(a.abstract);
  2139. }) : children = children.concat(args.abstract);
  2140. });
  2141. return [{
  2142. tag: 'span',
  2143. attributes: {
  2144. class: "".concat(config.familyPrefix, "-layers")
  2145. },
  2146. children: children
  2147. }];
  2148. });
  2149. };
  2150. var api = {
  2151. noAuto: noAuto,
  2152. config: config,
  2153. dom: dom,
  2154. library: library,
  2155. parse: parse,
  2156. findIconDefinition: findIconDefinition,
  2157. icon: icon,
  2158. text: text,
  2159. counter: counter,
  2160. layer: layer,
  2161. toHtml: toHtml
  2162. };
  2163. var autoReplace = function autoReplace() {
  2164. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2165. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  2166. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  2167. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  2168. node: autoReplaceSvgRoot
  2169. });
  2170. };
  2171. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../timers-browserify/main.js */ "../../node_modules/timers-browserify/main.js").setImmediate))
  2172. /***/ }),
  2173. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  2174. /*!**************************************************************************************!*\
  2175. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  2176. \**************************************************************************************/
  2177. /*! 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 */
  2178. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2179. "use strict";
  2180. __webpack_require__.r(__webpack_exports__);
  2181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  2182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  2184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  2187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  2188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  2189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  2190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  2191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  2192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  2193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  2194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  2195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  2196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  2197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  2198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  2199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  2200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  2201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  2202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  2203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  2204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  2206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  2207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  2208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  2209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  2214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  2215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  2216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  2217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  2218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  2219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  2220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  2221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  2222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  2223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  2224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  2225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  2957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  2959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  2988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  2989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  2990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  2991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  2994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  2995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  2996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  2997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  2998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  2999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  3000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  3001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  3002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  3003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  3004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  3005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  3006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  3007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  3008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  3009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  3010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  3011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  3012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  3013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  3014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  3015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  3016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  3017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  3019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  3020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  3021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  3022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  3023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  3024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  3025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  3026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  3027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  3028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  3029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  3030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  3031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  3032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  3033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  3034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  3035. /*!
  3036. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  3037. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  3038. */
  3039. var prefix = "fas";
  3040. 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"] };
  3041. 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"] };
  3042. 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"] };
  3043. 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"] };
  3044. 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"] };
  3045. 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"] };
  3046. 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"] };
  3047. 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"] };
  3048. 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"] };
  3049. 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"] };
  3050. 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"] };
  3051. 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"] };
  3052. 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"] };
  3053. 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"] };
  3054. 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"] };
  3055. 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"] };
  3056. 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"] };
  3057. 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"] };
  3058. 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"] };
  3059. 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"] };
  3060. 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"] };
  3061. 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"] };
  3062. 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"] };
  3063. 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"] };
  3064. 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"] };
  3065. 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"] };
  3066. 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"] };
  3067. 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"] };
  3068. 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"] };
  3069. 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"] };
  3070. 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"] };
  3071. 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"] };
  3072. 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"] };
  3073. 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"] };
  3074. 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"] };
  3075. 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"] };
  3076. 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"] };
  3077. 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"] };
  3078. 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"] };
  3079. 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"] };
  3080. 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"] };
  3081. 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"] };
  3082. 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"] };
  3083. 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"] };
  3084. 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"] };
  3085. 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"] };
  3086. 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"] };
  3087. 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"] };
  3088. 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"] };
  3089. 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"] };
  3090. 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"] };
  3091. 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"] };
  3092. 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"] };
  3093. 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"] };
  3094. 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"] };
  3095. 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"] };
  3096. 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"] };
  3097. 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"] };
  3098. 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"] };
  3099. 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"] };
  3100. 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"] };
  3101. 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"] };
  3102. 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"] };
  3103. 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"] };
  3104. 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"] };
  3105. 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"] };
  3106. 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"] };
  3107. 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"] };
  3108. 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"] };
  3109. 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"] };
  3110. 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"] };
  3111. 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"] };
  3112. 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"] };
  3113. 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"] };
  3114. 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"] };
  3115. 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"] };
  3116. 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"] };
  3117. 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"] };
  3118. 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"] };
  3119. 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"] };
  3120. 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"] };
  3121. 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"] };
  3122. 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"] };
  3123. 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"] };
  3124. 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"] };
  3125. 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"] };
  3126. 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"] };
  3127. 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"] };
  3128. 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"] };
  3129. 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"] };
  3130. 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"] };
  3131. 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"] };
  3132. 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"] };
  3133. 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"] };
  3134. 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"] };
  3135. 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"] };
  3136. 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"] };
  3137. 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"] };
  3138. 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"] };
  3139. 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"] };
  3140. 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"] };
  3141. 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"] };
  3142. 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"] };
  3143. 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"] };
  3144. 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"] };
  3145. 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"] };
  3146. 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"] };
  3147. 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"] };
  3148. 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"] };
  3149. 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"] };
  3150. 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"] };
  3151. 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"] };
  3152. 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"] };
  3153. 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"] };
  3154. 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"] };
  3155. 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"] };
  3156. 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"] };
  3157. 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"] };
  3158. 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"] };
  3159. 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"] };
  3160. 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"] };
  3161. 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"] };
  3162. 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"] };
  3163. 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"] };
  3164. 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"] };
  3165. 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"] };
  3166. 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"] };
  3167. 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"] };
  3168. 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"] };
  3169. 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"] };
  3170. 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"] };
  3171. 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"] };
  3172. 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"] };
  3173. 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"] };
  3174. 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"] };
  3175. 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"] };
  3176. 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"] };
  3177. 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"] };
  3178. 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"] };
  3179. 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"] };
  3180. 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"] };
  3181. 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"] };
  3182. 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"] };
  3183. 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"] };
  3184. 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"] };
  3185. 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"] };
  3186. 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"] };
  3187. 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"] };
  3188. 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"] };
  3189. 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"] };
  3190. 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"] };
  3191. 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"] };
  3192. 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"] };
  3193. 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"] };
  3194. 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"] };
  3195. 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"] };
  3196. 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"] };
  3197. 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"] };
  3198. 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"] };
  3199. 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"] };
  3200. 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"] };
  3201. 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"] };
  3202. 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"] };
  3203. 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"] };
  3204. 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"] };
  3205. 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"] };
  3206. 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"] };
  3207. 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"] };
  3208. 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"] };
  3209. 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"] };
  3210. 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"] };
  3211. 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"] };
  3212. 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"] };
  3213. 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"] };
  3214. 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"] };
  3215. 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"] };
  3216. 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"] };
  3217. 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"] };
  3218. 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"] };
  3219. 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"] };
  3220. 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"] };
  3221. 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"] };
  3222. 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"] };
  3223. 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"] };
  3224. 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"] };
  3225. 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"] };
  3226. 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"] };
  3227. 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"] };
  3228. 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"] };
  3229. 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"] };
  3230. 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"] };
  3231. 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"] };
  3232. 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"] };
  3233. 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"] };
  3234. 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"] };
  3235. 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"] };
  3236. 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"] };
  3237. 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"] };
  3238. 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"] };
  3239. 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"] };
  3240. 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"] };
  3241. 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"] };
  3242. 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"] };
  3243. 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"] };
  3244. 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"] };
  3245. 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"] };
  3246. 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"] };
  3247. 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"] };
  3248. 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"] };
  3249. 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"] };
  3250. 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"] };
  3251. 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"] };
  3252. 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"] };
  3253. 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"] };
  3254. 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"] };
  3255. 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"] };
  3256. 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"] };
  3257. 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"] };
  3258. 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"] };
  3259. 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"] };
  3260. 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"] };
  3261. 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"] };
  3262. 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"] };
  3263. 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"] };
  3264. 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"] };
  3265. 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"] };
  3266. 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"] };
  3267. 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"] };
  3268. 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"] };
  3269. 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"] };
  3270. 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"] };
  3271. 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"] };
  3272. 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"] };
  3273. 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"] };
  3274. 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"] };
  3275. 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"] };
  3276. 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"] };
  3277. 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"] };
  3278. 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"] };
  3279. 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"] };
  3280. 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"] };
  3281. 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"] };
  3282. 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"] };
  3283. 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"] };
  3284. 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"] };
  3285. 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"] };
  3286. 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"] };
  3287. 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"] };
  3288. 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"] };
  3289. 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"] };
  3290. 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"] };
  3291. 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"] };
  3292. 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"] };
  3293. 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"] };
  3294. 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"] };
  3295. 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"] };
  3296. 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"] };
  3297. 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"] };
  3298. 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"] };
  3299. 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"] };
  3300. 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"] };
  3301. 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"] };
  3302. 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"] };
  3303. 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"] };
  3304. 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"] };
  3305. 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"] };
  3306. 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"] };
  3307. 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"] };
  3308. 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"] };
  3309. 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"] };
  3310. 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"] };
  3311. 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"] };
  3312. 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"] };
  3313. 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"] };
  3314. 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"] };
  3315. 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"] };
  3316. 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"] };
  3317. 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"] };
  3318. 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"] };
  3319. 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"] };
  3320. 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"] };
  3321. 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"] };
  3322. 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"] };
  3323. 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"] };
  3324. 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"] };
  3325. 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"] };
  3326. 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"] };
  3327. 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"] };
  3328. 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"] };
  3329. 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"] };
  3330. 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"] };
  3331. 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"] };
  3332. 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"] };
  3333. 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"] };
  3334. 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"] };
  3335. 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"] };
  3336. 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"] };
  3337. 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"] };
  3338. 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"] };
  3339. 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"] };
  3340. 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"] };
  3341. 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"] };
  3342. 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"] };
  3343. 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"] };
  3344. 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"] };
  3345. 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"] };
  3346. 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"] };
  3347. 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"] };
  3348. 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"] };
  3349. 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"] };
  3350. 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"] };
  3351. 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"] };
  3352. 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"] };
  3353. 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"] };
  3354. 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"] };
  3355. 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"] };
  3356. 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"] };
  3357. 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"] };
  3358. 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"] };
  3359. 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"] };
  3360. 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"] };
  3361. 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"] };
  3362. 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"] };
  3363. 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"] };
  3364. 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"] };
  3365. 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"] };
  3366. 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"] };
  3367. 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"] };
  3368. 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"] };
  3369. 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"] };
  3370. 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"] };
  3371. 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"] };
  3372. 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"] };
  3373. 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"] };
  3374. 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"] };
  3375. 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"] };
  3376. 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"] };
  3377. 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"] };
  3378. 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"] };
  3379. 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"] };
  3380. 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"] };
  3381. 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"] };
  3382. 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"] };
  3383. 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"] };
  3384. 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"] };
  3385. 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"] };
  3386. 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"] };
  3387. 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"] };
  3388. 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"] };
  3389. 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"] };
  3390. 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"] };
  3391. 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"] };
  3392. 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"] };
  3393. 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"] };
  3394. 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"] };
  3395. 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"] };
  3396. 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"] };
  3397. 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"] };
  3398. 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"] };
  3399. 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"] };
  3400. 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"] };
  3401. 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"] };
  3402. 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"] };
  3403. 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"] };
  3404. 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"] };
  3405. 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"] };
  3406. 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"] };
  3407. 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"] };
  3408. 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"] };
  3409. 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"] };
  3410. 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"] };
  3411. 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"] };
  3412. 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"] };
  3413. 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"] };
  3414. 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"] };
  3415. 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"] };
  3416. 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"] };
  3417. 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"] };
  3418. 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"] };
  3419. 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"] };
  3420. 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"] };
  3421. 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"] };
  3422. 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"] };
  3423. 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"] };
  3424. 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"] };
  3425. 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"] };
  3426. 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"] };
  3427. 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"] };
  3428. 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"] };
  3429. 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"] };
  3430. 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"] };
  3431. 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"] };
  3432. 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"] };
  3433. 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"] };
  3434. 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"] };
  3435. 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"] };
  3436. 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"] };
  3437. 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"] };
  3438. 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"] };
  3439. 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"] };
  3440. 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"] };
  3441. 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"] };
  3442. 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"] };
  3443. 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"] };
  3444. 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"] };
  3445. 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"] };
  3446. 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"] };
  3447. 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"] };
  3448. 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"] };
  3449. 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"] };
  3450. 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"] };
  3451. 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"] };
  3452. 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"] };
  3453. 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"] };
  3454. 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"] };
  3455. 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"] };
  3456. 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"] };
  3457. 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"] };
  3458. 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"] };
  3459. 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"] };
  3460. 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"] };
  3461. 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"] };
  3462. 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"] };
  3463. 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"] };
  3464. 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"] };
  3465. 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"] };
  3466. 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"] };
  3467. 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"] };
  3468. 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"] };
  3469. 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"] };
  3470. 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"] };
  3471. 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"] };
  3472. 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"] };
  3473. 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"] };
  3474. 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"] };
  3475. 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"] };
  3476. 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"] };
  3477. 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"] };
  3478. 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"] };
  3479. 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"] };
  3480. 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"] };
  3481. 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"] };
  3482. 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"] };
  3483. 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"] };
  3484. 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"] };
  3485. 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"] };
  3486. 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"] };
  3487. 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"] };
  3488. 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"] };
  3489. 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"] };
  3490. 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"] };
  3491. 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"] };
  3492. 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"] };
  3493. 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"] };
  3494. 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"] };
  3495. 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"] };
  3496. 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"] };
  3497. 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"] };
  3498. 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"] };
  3499. 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"] };
  3500. 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"] };
  3501. 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"] };
  3502. 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"] };
  3503. 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"] };
  3504. 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"] };
  3505. 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"] };
  3506. 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"] };
  3507. 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"] };
  3508. 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"] };
  3509. 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"] };
  3510. 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"] };
  3511. 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"] };
  3512. 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"] };
  3513. 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"] };
  3514. 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"] };
  3515. 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"] };
  3516. 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"] };
  3517. 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"] };
  3518. 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"] };
  3519. 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"] };
  3520. 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"] };
  3521. 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"] };
  3522. 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"] };
  3523. 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"] };
  3524. 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"] };
  3525. 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"] };
  3526. 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"] };
  3527. 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"] };
  3528. 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"] };
  3529. 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"] };
  3530. 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"] };
  3531. 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"] };
  3532. 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"] };
  3533. 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"] };
  3534. 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"] };
  3535. 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"] };
  3536. 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"] };
  3537. 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"] };
  3538. 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"] };
  3539. 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"] };
  3540. 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"] };
  3541. 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"] };
  3542. 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"] };
  3543. 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"] };
  3544. 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"] };
  3545. 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"] };
  3546. 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"] };
  3547. 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"] };
  3548. 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"] };
  3549. 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"] };
  3550. 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"] };
  3551. 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"] };
  3552. 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"] };
  3553. 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"] };
  3554. 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"] };
  3555. 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"] };
  3556. 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"] };
  3557. 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"] };
  3558. 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"] };
  3559. 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"] };
  3560. 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"] };
  3561. 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"] };
  3562. 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"] };
  3563. 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"] };
  3564. 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"] };
  3565. 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"] };
  3566. 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"] };
  3567. 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"] };
  3568. 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"] };
  3569. 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"] };
  3570. 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"] };
  3571. 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"] };
  3572. 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"] };
  3573. 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"] };
  3574. 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"] };
  3575. 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"] };
  3576. 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"] };
  3577. 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"] };
  3578. 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"] };
  3579. 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"] };
  3580. 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"] };
  3581. 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"] };
  3582. 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"] };
  3583. 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"] };
  3584. 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"] };
  3585. 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"] };
  3586. 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"] };
  3587. 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"] };
  3588. 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"] };
  3589. 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"] };
  3590. 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"] };
  3591. 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"] };
  3592. 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"] };
  3593. 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"] };
  3594. 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"] };
  3595. 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"] };
  3596. 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"] };
  3597. 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"] };
  3598. 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"] };
  3599. 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"] };
  3600. 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"] };
  3601. 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"] };
  3602. 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"] };
  3603. 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"] };
  3604. 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"] };
  3605. 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"] };
  3606. 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"] };
  3607. 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"] };
  3608. 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"] };
  3609. 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"] };
  3610. 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"] };
  3611. 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"] };
  3612. 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"] };
  3613. 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"] };
  3614. 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"] };
  3615. 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"] };
  3616. 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"] };
  3617. 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"] };
  3618. 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"] };
  3619. 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"] };
  3620. 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"] };
  3621. 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"] };
  3622. 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"] };
  3623. 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"] };
  3624. 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"] };
  3625. 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"] };
  3626. 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"] };
  3627. 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"] };
  3628. 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"] };
  3629. 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"] };
  3630. 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"] };
  3631. 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"] };
  3632. 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"] };
  3633. 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"] };
  3634. 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"] };
  3635. 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"] };
  3636. 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"] };
  3637. 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"] };
  3638. 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"] };
  3639. 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"] };
  3640. 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"] };
  3641. 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"] };
  3642. 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"] };
  3643. 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"] };
  3644. 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"] };
  3645. 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"] };
  3646. 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"] };
  3647. 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"] };
  3648. 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"] };
  3649. 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"] };
  3650. 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"] };
  3651. 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"] };
  3652. 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"] };
  3653. 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"] };
  3654. 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"] };
  3655. 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"] };
  3656. 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"] };
  3657. 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"] };
  3658. 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"] };
  3659. 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"] };
  3660. 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"] };
  3661. 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"] };
  3662. 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"] };
  3663. 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"] };
  3664. 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"] };
  3665. 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"] };
  3666. 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"] };
  3667. 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"] };
  3668. 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"] };
  3669. 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"] };
  3670. 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"] };
  3671. 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"] };
  3672. 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"] };
  3673. 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"] };
  3674. 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"] };
  3675. 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"] };
  3676. 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"] };
  3677. 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"] };
  3678. 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"] };
  3679. 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"] };
  3680. 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"] };
  3681. 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"] };
  3682. 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"] };
  3683. 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"] };
  3684. 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"] };
  3685. 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"] };
  3686. 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"] };
  3687. 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"] };
  3688. 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"] };
  3689. 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"] };
  3690. 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"] };
  3691. 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"] };
  3692. 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"] };
  3693. 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"] };
  3694. 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"] };
  3695. 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"] };
  3696. 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"] };
  3697. 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"] };
  3698. 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"] };
  3699. 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"] };
  3700. 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"] };
  3701. 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"] };
  3702. 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"] };
  3703. 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"] };
  3704. 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"] };
  3705. 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"] };
  3706. 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"] };
  3707. 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"] };
  3708. 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"] };
  3709. 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"] };
  3710. 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"] };
  3711. 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"] };
  3712. 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"] };
  3713. 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"] };
  3714. 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"] };
  3715. 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"] };
  3716. 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"] };
  3717. 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"] };
  3718. 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"] };
  3719. 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"] };
  3720. 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"] };
  3721. 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"] };
  3722. 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"] };
  3723. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3724. 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"] };
  3725. 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"] };
  3726. 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"] };
  3727. 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"] };
  3728. 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"] };
  3729. 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"] };
  3730. 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"] };
  3731. 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"] };
  3732. 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"] };
  3733. 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"] };
  3734. 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"] };
  3735. 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"] };
  3736. 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"] };
  3737. 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"] };
  3738. 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"] };
  3739. 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"] };
  3740. 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"] };
  3741. 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"] };
  3742. 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"] };
  3743. 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"] };
  3744. 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"] };
  3745. 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"] };
  3746. 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"] };
  3747. 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"] };
  3748. 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"] };
  3749. 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"] };
  3750. 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"] };
  3751. 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"] };
  3752. 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"] };
  3753. 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"] };
  3754. 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"] };
  3755. 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"] };
  3756. 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"] };
  3757. 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"] };
  3758. 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"] };
  3759. 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"] };
  3760. 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"] };
  3761. 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"] };
  3762. 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"] };
  3763. 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"] };
  3764. 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"] };
  3765. 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"] };
  3766. 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"] };
  3767. 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"] };
  3768. 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"] };
  3769. 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"] };
  3770. 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"] };
  3771. 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"] };
  3772. 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"] };
  3773. 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"] };
  3774. 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"] };
  3775. 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"] };
  3776. 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"] };
  3777. 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"] };
  3778. 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"] };
  3779. 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"] };
  3780. 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"] };
  3781. 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"] };
  3782. 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"] };
  3783. 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"] };
  3784. 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"] };
  3785. 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"] };
  3786. 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"] };
  3787. 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"] };
  3788. 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"] };
  3789. 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"] };
  3790. 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"] };
  3791. 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"] };
  3792. 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"] };
  3793. 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"] };
  3794. 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"] };
  3795. 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"] };
  3796. 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"] };
  3797. 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"] };
  3798. 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"] };
  3799. 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"] };
  3800. 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"] };
  3801. 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"] };
  3802. 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"] };
  3803. 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"] };
  3804. 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"] };
  3805. 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"] };
  3806. 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"] };
  3807. 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"] };
  3808. 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"] };
  3809. 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"] };
  3810. 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"] };
  3811. 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"] };
  3812. 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"] };
  3813. 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"] };
  3814. 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"] };
  3815. 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"] };
  3816. 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"] };
  3817. 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"] };
  3818. 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"] };
  3819. 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"] };
  3820. 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"] };
  3821. 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"] };
  3822. 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"] };
  3823. 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"] };
  3824. 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"] };
  3825. 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"] };
  3826. 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"] };
  3827. 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"] };
  3828. 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"] };
  3829. 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"] };
  3830. 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"] };
  3831. 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"] };
  3832. 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"] };
  3833. 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"] };
  3834. 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"] };
  3835. 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"] };
  3836. 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"] };
  3837. 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"] };
  3838. 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"] };
  3839. 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"] };
  3840. 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"] };
  3841. 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"] };
  3842. 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"] };
  3843. 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"] };
  3844. 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"] };
  3845. 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"] };
  3846. 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"] };
  3847. 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"] };
  3848. 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"] };
  3849. 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"] };
  3850. 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"] };
  3851. 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"] };
  3852. 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"] };
  3853. 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"] };
  3854. 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"] };
  3855. 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"] };
  3856. 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"] };
  3857. 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"] };
  3858. 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"] };
  3859. 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"] };
  3860. 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"] };
  3861. 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"] };
  3862. 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"] };
  3863. 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"] };
  3864. 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"] };
  3865. 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"] };
  3866. 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"] };
  3867. 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"] };
  3868. 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"] };
  3869. 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"] };
  3870. 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"] };
  3871. 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"] };
  3872. 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"] };
  3873. 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"] };
  3874. 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"] };
  3875. 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"] };
  3876. 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"] };
  3877. 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"] };
  3878. 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"] };
  3879. 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"] };
  3880. 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"] };
  3881. 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"] };
  3882. 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"] };
  3883. 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"] };
  3884. 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"] };
  3885. 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"] };
  3886. 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"] };
  3887. 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"] };
  3888. 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"] };
  3889. 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"] };
  3890. 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"] };
  3891. 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"] };
  3892. var _iconsCache = {
  3893. faAd: faAd,
  3894. faAddressBook: faAddressBook,
  3895. faAddressCard: faAddressCard,
  3896. faAdjust: faAdjust,
  3897. faAirFreshener: faAirFreshener,
  3898. faAlignCenter: faAlignCenter,
  3899. faAlignJustify: faAlignJustify,
  3900. faAlignLeft: faAlignLeft,
  3901. faAlignRight: faAlignRight,
  3902. faAllergies: faAllergies,
  3903. faAmbulance: faAmbulance,
  3904. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3905. faAnchor: faAnchor,
  3906. faAngleDoubleDown: faAngleDoubleDown,
  3907. faAngleDoubleLeft: faAngleDoubleLeft,
  3908. faAngleDoubleRight: faAngleDoubleRight,
  3909. faAngleDoubleUp: faAngleDoubleUp,
  3910. faAngleDown: faAngleDown,
  3911. faAngleLeft: faAngleLeft,
  3912. faAngleRight: faAngleRight,
  3913. faAngleUp: faAngleUp,
  3914. faAngry: faAngry,
  3915. faAnkh: faAnkh,
  3916. faAppleAlt: faAppleAlt,
  3917. faArchive: faArchive,
  3918. faArchway: faArchway,
  3919. faArrowAltCircleDown: faArrowAltCircleDown,
  3920. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3921. faArrowAltCircleRight: faArrowAltCircleRight,
  3922. faArrowAltCircleUp: faArrowAltCircleUp,
  3923. faArrowCircleDown: faArrowCircleDown,
  3924. faArrowCircleLeft: faArrowCircleLeft,
  3925. faArrowCircleRight: faArrowCircleRight,
  3926. faArrowCircleUp: faArrowCircleUp,
  3927. faArrowDown: faArrowDown,
  3928. faArrowLeft: faArrowLeft,
  3929. faArrowRight: faArrowRight,
  3930. faArrowUp: faArrowUp,
  3931. faArrowsAlt: faArrowsAlt,
  3932. faArrowsAltH: faArrowsAltH,
  3933. faArrowsAltV: faArrowsAltV,
  3934. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3935. faAsterisk: faAsterisk,
  3936. faAt: faAt,
  3937. faAtlas: faAtlas,
  3938. faAtom: faAtom,
  3939. faAudioDescription: faAudioDescription,
  3940. faAward: faAward,
  3941. faBackspace: faBackspace,
  3942. faBackward: faBackward,
  3943. faBalanceScale: faBalanceScale,
  3944. faBan: faBan,
  3945. faBandAid: faBandAid,
  3946. faBarcode: faBarcode,
  3947. faBars: faBars,
  3948. faBaseballBall: faBaseballBall,
  3949. faBasketballBall: faBasketballBall,
  3950. faBath: faBath,
  3951. faBatteryEmpty: faBatteryEmpty,
  3952. faBatteryFull: faBatteryFull,
  3953. faBatteryHalf: faBatteryHalf,
  3954. faBatteryQuarter: faBatteryQuarter,
  3955. faBatteryThreeQuarters: faBatteryThreeQuarters,
  3956. faBed: faBed,
  3957. faBeer: faBeer,
  3958. faBell: faBell,
  3959. faBellSlash: faBellSlash,
  3960. faBezierCurve: faBezierCurve,
  3961. faBible: faBible,
  3962. faBicycle: faBicycle,
  3963. faBinoculars: faBinoculars,
  3964. faBirthdayCake: faBirthdayCake,
  3965. faBlender: faBlender,
  3966. faBlenderPhone: faBlenderPhone,
  3967. faBlind: faBlind,
  3968. faBold: faBold,
  3969. faBolt: faBolt,
  3970. faBomb: faBomb,
  3971. faBone: faBone,
  3972. faBong: faBong,
  3973. faBook: faBook,
  3974. faBookDead: faBookDead,
  3975. faBookOpen: faBookOpen,
  3976. faBookReader: faBookReader,
  3977. faBookmark: faBookmark,
  3978. faBowlingBall: faBowlingBall,
  3979. faBox: faBox,
  3980. faBoxOpen: faBoxOpen,
  3981. faBoxes: faBoxes,
  3982. faBraille: faBraille,
  3983. faBrain: faBrain,
  3984. faBriefcase: faBriefcase,
  3985. faBriefcaseMedical: faBriefcaseMedical,
  3986. faBroadcastTower: faBroadcastTower,
  3987. faBroom: faBroom,
  3988. faBrush: faBrush,
  3989. faBug: faBug,
  3990. faBuilding: faBuilding,
  3991. faBullhorn: faBullhorn,
  3992. faBullseye: faBullseye,
  3993. faBurn: faBurn,
  3994. faBus: faBus,
  3995. faBusAlt: faBusAlt,
  3996. faBusinessTime: faBusinessTime,
  3997. faCalculator: faCalculator,
  3998. faCalendar: faCalendar,
  3999. faCalendarAlt: faCalendarAlt,
  4000. faCalendarCheck: faCalendarCheck,
  4001. faCalendarMinus: faCalendarMinus,
  4002. faCalendarPlus: faCalendarPlus,
  4003. faCalendarTimes: faCalendarTimes,
  4004. faCamera: faCamera,
  4005. faCameraRetro: faCameraRetro,
  4006. faCampground: faCampground,
  4007. faCannabis: faCannabis,
  4008. faCapsules: faCapsules,
  4009. faCar: faCar,
  4010. faCarAlt: faCarAlt,
  4011. faCarBattery: faCarBattery,
  4012. faCarCrash: faCarCrash,
  4013. faCarSide: faCarSide,
  4014. faCaretDown: faCaretDown,
  4015. faCaretLeft: faCaretLeft,
  4016. faCaretRight: faCaretRight,
  4017. faCaretSquareDown: faCaretSquareDown,
  4018. faCaretSquareLeft: faCaretSquareLeft,
  4019. faCaretSquareRight: faCaretSquareRight,
  4020. faCaretSquareUp: faCaretSquareUp,
  4021. faCaretUp: faCaretUp,
  4022. faCartArrowDown: faCartArrowDown,
  4023. faCartPlus: faCartPlus,
  4024. faCat: faCat,
  4025. faCertificate: faCertificate,
  4026. faChair: faChair,
  4027. faChalkboard: faChalkboard,
  4028. faChalkboardTeacher: faChalkboardTeacher,
  4029. faChargingStation: faChargingStation,
  4030. faChartArea: faChartArea,
  4031. faChartBar: faChartBar,
  4032. faChartLine: faChartLine,
  4033. faChartPie: faChartPie,
  4034. faCheck: faCheck,
  4035. faCheckCircle: faCheckCircle,
  4036. faCheckDouble: faCheckDouble,
  4037. faCheckSquare: faCheckSquare,
  4038. faChess: faChess,
  4039. faChessBishop: faChessBishop,
  4040. faChessBoard: faChessBoard,
  4041. faChessKing: faChessKing,
  4042. faChessKnight: faChessKnight,
  4043. faChessPawn: faChessPawn,
  4044. faChessQueen: faChessQueen,
  4045. faChessRook: faChessRook,
  4046. faChevronCircleDown: faChevronCircleDown,
  4047. faChevronCircleLeft: faChevronCircleLeft,
  4048. faChevronCircleRight: faChevronCircleRight,
  4049. faChevronCircleUp: faChevronCircleUp,
  4050. faChevronDown: faChevronDown,
  4051. faChevronLeft: faChevronLeft,
  4052. faChevronRight: faChevronRight,
  4053. faChevronUp: faChevronUp,
  4054. faChild: faChild,
  4055. faChurch: faChurch,
  4056. faCircle: faCircle,
  4057. faCircleNotch: faCircleNotch,
  4058. faCity: faCity,
  4059. faClipboard: faClipboard,
  4060. faClipboardCheck: faClipboardCheck,
  4061. faClipboardList: faClipboardList,
  4062. faClock: faClock,
  4063. faClone: faClone,
  4064. faClosedCaptioning: faClosedCaptioning,
  4065. faCloud: faCloud,
  4066. faCloudDownloadAlt: faCloudDownloadAlt,
  4067. faCloudMoon: faCloudMoon,
  4068. faCloudSun: faCloudSun,
  4069. faCloudUploadAlt: faCloudUploadAlt,
  4070. faCocktail: faCocktail,
  4071. faCode: faCode,
  4072. faCodeBranch: faCodeBranch,
  4073. faCoffee: faCoffee,
  4074. faCog: faCog,
  4075. faCogs: faCogs,
  4076. faCoins: faCoins,
  4077. faColumns: faColumns,
  4078. faComment: faComment,
  4079. faCommentAlt: faCommentAlt,
  4080. faCommentDollar: faCommentDollar,
  4081. faCommentDots: faCommentDots,
  4082. faCommentSlash: faCommentSlash,
  4083. faComments: faComments,
  4084. faCommentsDollar: faCommentsDollar,
  4085. faCompactDisc: faCompactDisc,
  4086. faCompass: faCompass,
  4087. faCompress: faCompress,
  4088. faConciergeBell: faConciergeBell,
  4089. faCookie: faCookie,
  4090. faCookieBite: faCookieBite,
  4091. faCopy: faCopy,
  4092. faCopyright: faCopyright,
  4093. faCouch: faCouch,
  4094. faCreditCard: faCreditCard,
  4095. faCrop: faCrop,
  4096. faCropAlt: faCropAlt,
  4097. faCross: faCross,
  4098. faCrosshairs: faCrosshairs,
  4099. faCrow: faCrow,
  4100. faCrown: faCrown,
  4101. faCube: faCube,
  4102. faCubes: faCubes,
  4103. faCut: faCut,
  4104. faDatabase: faDatabase,
  4105. faDeaf: faDeaf,
  4106. faDesktop: faDesktop,
  4107. faDharmachakra: faDharmachakra,
  4108. faDiagnoses: faDiagnoses,
  4109. faDice: faDice,
  4110. faDiceD20: faDiceD20,
  4111. faDiceD6: faDiceD6,
  4112. faDiceFive: faDiceFive,
  4113. faDiceFour: faDiceFour,
  4114. faDiceOne: faDiceOne,
  4115. faDiceSix: faDiceSix,
  4116. faDiceThree: faDiceThree,
  4117. faDiceTwo: faDiceTwo,
  4118. faDigitalTachograph: faDigitalTachograph,
  4119. faDirections: faDirections,
  4120. faDivide: faDivide,
  4121. faDizzy: faDizzy,
  4122. faDna: faDna,
  4123. faDog: faDog,
  4124. faDollarSign: faDollarSign,
  4125. faDolly: faDolly,
  4126. faDollyFlatbed: faDollyFlatbed,
  4127. faDonate: faDonate,
  4128. faDoorClosed: faDoorClosed,
  4129. faDoorOpen: faDoorOpen,
  4130. faDotCircle: faDotCircle,
  4131. faDove: faDove,
  4132. faDownload: faDownload,
  4133. faDraftingCompass: faDraftingCompass,
  4134. faDragon: faDragon,
  4135. faDrawPolygon: faDrawPolygon,
  4136. faDrum: faDrum,
  4137. faDrumSteelpan: faDrumSteelpan,
  4138. faDrumstickBite: faDrumstickBite,
  4139. faDumbbell: faDumbbell,
  4140. faDungeon: faDungeon,
  4141. faEdit: faEdit,
  4142. faEject: faEject,
  4143. faEllipsisH: faEllipsisH,
  4144. faEllipsisV: faEllipsisV,
  4145. faEnvelope: faEnvelope,
  4146. faEnvelopeOpen: faEnvelopeOpen,
  4147. faEnvelopeOpenText: faEnvelopeOpenText,
  4148. faEnvelopeSquare: faEnvelopeSquare,
  4149. faEquals: faEquals,
  4150. faEraser: faEraser,
  4151. faEuroSign: faEuroSign,
  4152. faExchangeAlt: faExchangeAlt,
  4153. faExclamation: faExclamation,
  4154. faExclamationCircle: faExclamationCircle,
  4155. faExclamationTriangle: faExclamationTriangle,
  4156. faExpand: faExpand,
  4157. faExpandArrowsAlt: faExpandArrowsAlt,
  4158. faExternalLinkAlt: faExternalLinkAlt,
  4159. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  4160. faEye: faEye,
  4161. faEyeDropper: faEyeDropper,
  4162. faEyeSlash: faEyeSlash,
  4163. faFastBackward: faFastBackward,
  4164. faFastForward: faFastForward,
  4165. faFax: faFax,
  4166. faFeather: faFeather,
  4167. faFeatherAlt: faFeatherAlt,
  4168. faFemale: faFemale,
  4169. faFighterJet: faFighterJet,
  4170. faFile: faFile,
  4171. faFileAlt: faFileAlt,
  4172. faFileArchive: faFileArchive,
  4173. faFileAudio: faFileAudio,
  4174. faFileCode: faFileCode,
  4175. faFileContract: faFileContract,
  4176. faFileCsv: faFileCsv,
  4177. faFileDownload: faFileDownload,
  4178. faFileExcel: faFileExcel,
  4179. faFileExport: faFileExport,
  4180. faFileImage: faFileImage,
  4181. faFileImport: faFileImport,
  4182. faFileInvoice: faFileInvoice,
  4183. faFileInvoiceDollar: faFileInvoiceDollar,
  4184. faFileMedical: faFileMedical,
  4185. faFileMedicalAlt: faFileMedicalAlt,
  4186. faFilePdf: faFilePdf,
  4187. faFilePowerpoint: faFilePowerpoint,
  4188. faFilePrescription: faFilePrescription,
  4189. faFileSignature: faFileSignature,
  4190. faFileUpload: faFileUpload,
  4191. faFileVideo: faFileVideo,
  4192. faFileWord: faFileWord,
  4193. faFill: faFill,
  4194. faFillDrip: faFillDrip,
  4195. faFilm: faFilm,
  4196. faFilter: faFilter,
  4197. faFingerprint: faFingerprint,
  4198. faFire: faFire,
  4199. faFireExtinguisher: faFireExtinguisher,
  4200. faFirstAid: faFirstAid,
  4201. faFish: faFish,
  4202. faFistRaised: faFistRaised,
  4203. faFlag: faFlag,
  4204. faFlagCheckered: faFlagCheckered,
  4205. faFlask: faFlask,
  4206. faFlushed: faFlushed,
  4207. faFolder: faFolder,
  4208. faFolderMinus: faFolderMinus,
  4209. faFolderOpen: faFolderOpen,
  4210. faFolderPlus: faFolderPlus,
  4211. faFont: faFont,
  4212. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  4213. faFootballBall: faFootballBall,
  4214. faForward: faForward,
  4215. faFrog: faFrog,
  4216. faFrown: faFrown,
  4217. faFrownOpen: faFrownOpen,
  4218. faFunnelDollar: faFunnelDollar,
  4219. faFutbol: faFutbol,
  4220. faGamepad: faGamepad,
  4221. faGasPump: faGasPump,
  4222. faGavel: faGavel,
  4223. faGem: faGem,
  4224. faGenderless: faGenderless,
  4225. faGhost: faGhost,
  4226. faGift: faGift,
  4227. faGlassMartini: faGlassMartini,
  4228. faGlassMartiniAlt: faGlassMartiniAlt,
  4229. faGlasses: faGlasses,
  4230. faGlobe: faGlobe,
  4231. faGlobeAfrica: faGlobeAfrica,
  4232. faGlobeAmericas: faGlobeAmericas,
  4233. faGlobeAsia: faGlobeAsia,
  4234. faGolfBall: faGolfBall,
  4235. faGopuram: faGopuram,
  4236. faGraduationCap: faGraduationCap,
  4237. faGreaterThan: faGreaterThan,
  4238. faGreaterThanEqual: faGreaterThanEqual,
  4239. faGrimace: faGrimace,
  4240. faGrin: faGrin,
  4241. faGrinAlt: faGrinAlt,
  4242. faGrinBeam: faGrinBeam,
  4243. faGrinBeamSweat: faGrinBeamSweat,
  4244. faGrinHearts: faGrinHearts,
  4245. faGrinSquint: faGrinSquint,
  4246. faGrinSquintTears: faGrinSquintTears,
  4247. faGrinStars: faGrinStars,
  4248. faGrinTears: faGrinTears,
  4249. faGrinTongue: faGrinTongue,
  4250. faGrinTongueSquint: faGrinTongueSquint,
  4251. faGrinTongueWink: faGrinTongueWink,
  4252. faGrinWink: faGrinWink,
  4253. faGripHorizontal: faGripHorizontal,
  4254. faGripVertical: faGripVertical,
  4255. faHSquare: faHSquare,
  4256. faHammer: faHammer,
  4257. faHamsa: faHamsa,
  4258. faHandHolding: faHandHolding,
  4259. faHandHoldingHeart: faHandHoldingHeart,
  4260. faHandHoldingUsd: faHandHoldingUsd,
  4261. faHandLizard: faHandLizard,
  4262. faHandPaper: faHandPaper,
  4263. faHandPeace: faHandPeace,
  4264. faHandPointDown: faHandPointDown,
  4265. faHandPointLeft: faHandPointLeft,
  4266. faHandPointRight: faHandPointRight,
  4267. faHandPointUp: faHandPointUp,
  4268. faHandPointer: faHandPointer,
  4269. faHandRock: faHandRock,
  4270. faHandScissors: faHandScissors,
  4271. faHandSpock: faHandSpock,
  4272. faHands: faHands,
  4273. faHandsHelping: faHandsHelping,
  4274. faHandshake: faHandshake,
  4275. faHanukiah: faHanukiah,
  4276. faHashtag: faHashtag,
  4277. faHatWizard: faHatWizard,
  4278. faHaykal: faHaykal,
  4279. faHdd: faHdd,
  4280. faHeading: faHeading,
  4281. faHeadphones: faHeadphones,
  4282. faHeadphonesAlt: faHeadphonesAlt,
  4283. faHeadset: faHeadset,
  4284. faHeart: faHeart,
  4285. faHeartbeat: faHeartbeat,
  4286. faHelicopter: faHelicopter,
  4287. faHighlighter: faHighlighter,
  4288. faHiking: faHiking,
  4289. faHippo: faHippo,
  4290. faHistory: faHistory,
  4291. faHockeyPuck: faHockeyPuck,
  4292. faHome: faHome,
  4293. faHorse: faHorse,
  4294. faHospital: faHospital,
  4295. faHospitalAlt: faHospitalAlt,
  4296. faHospitalSymbol: faHospitalSymbol,
  4297. faHotTub: faHotTub,
  4298. faHotel: faHotel,
  4299. faHourglass: faHourglass,
  4300. faHourglassEnd: faHourglassEnd,
  4301. faHourglassHalf: faHourglassHalf,
  4302. faHourglassStart: faHourglassStart,
  4303. faHouseDamage: faHouseDamage,
  4304. faHryvnia: faHryvnia,
  4305. faICursor: faICursor,
  4306. faIdBadge: faIdBadge,
  4307. faIdCard: faIdCard,
  4308. faIdCardAlt: faIdCardAlt,
  4309. faImage: faImage,
  4310. faImages: faImages,
  4311. faInbox: faInbox,
  4312. faIndent: faIndent,
  4313. faIndustry: faIndustry,
  4314. faInfinity: faInfinity,
  4315. faInfo: faInfo,
  4316. faInfoCircle: faInfoCircle,
  4317. faItalic: faItalic,
  4318. faJedi: faJedi,
  4319. faJoint: faJoint,
  4320. faJournalWhills: faJournalWhills,
  4321. faKaaba: faKaaba,
  4322. faKey: faKey,
  4323. faKeyboard: faKeyboard,
  4324. faKhanda: faKhanda,
  4325. faKiss: faKiss,
  4326. faKissBeam: faKissBeam,
  4327. faKissWinkHeart: faKissWinkHeart,
  4328. faKiwiBird: faKiwiBird,
  4329. faLandmark: faLandmark,
  4330. faLanguage: faLanguage,
  4331. faLaptop: faLaptop,
  4332. faLaptopCode: faLaptopCode,
  4333. faLaugh: faLaugh,
  4334. faLaughBeam: faLaughBeam,
  4335. faLaughSquint: faLaughSquint,
  4336. faLaughWink: faLaughWink,
  4337. faLayerGroup: faLayerGroup,
  4338. faLeaf: faLeaf,
  4339. faLemon: faLemon,
  4340. faLessThan: faLessThan,
  4341. faLessThanEqual: faLessThanEqual,
  4342. faLevelDownAlt: faLevelDownAlt,
  4343. faLevelUpAlt: faLevelUpAlt,
  4344. faLifeRing: faLifeRing,
  4345. faLightbulb: faLightbulb,
  4346. faLink: faLink,
  4347. faLiraSign: faLiraSign,
  4348. faList: faList,
  4349. faListAlt: faListAlt,
  4350. faListOl: faListOl,
  4351. faListUl: faListUl,
  4352. faLocationArrow: faLocationArrow,
  4353. faLock: faLock,
  4354. faLockOpen: faLockOpen,
  4355. faLongArrowAltDown: faLongArrowAltDown,
  4356. faLongArrowAltLeft: faLongArrowAltLeft,
  4357. faLongArrowAltRight: faLongArrowAltRight,
  4358. faLongArrowAltUp: faLongArrowAltUp,
  4359. faLowVision: faLowVision,
  4360. faLuggageCart: faLuggageCart,
  4361. faMagic: faMagic,
  4362. faMagnet: faMagnet,
  4363. faMailBulk: faMailBulk,
  4364. faMale: faMale,
  4365. faMap: faMap,
  4366. faMapMarked: faMapMarked,
  4367. faMapMarkedAlt: faMapMarkedAlt,
  4368. faMapMarker: faMapMarker,
  4369. faMapMarkerAlt: faMapMarkerAlt,
  4370. faMapPin: faMapPin,
  4371. faMapSigns: faMapSigns,
  4372. faMarker: faMarker,
  4373. faMars: faMars,
  4374. faMarsDouble: faMarsDouble,
  4375. faMarsStroke: faMarsStroke,
  4376. faMarsStrokeH: faMarsStrokeH,
  4377. faMarsStrokeV: faMarsStrokeV,
  4378. faMask: faMask,
  4379. faMedal: faMedal,
  4380. faMedkit: faMedkit,
  4381. faMeh: faMeh,
  4382. faMehBlank: faMehBlank,
  4383. faMehRollingEyes: faMehRollingEyes,
  4384. faMemory: faMemory,
  4385. faMenorah: faMenorah,
  4386. faMercury: faMercury,
  4387. faMicrochip: faMicrochip,
  4388. faMicrophone: faMicrophone,
  4389. faMicrophoneAlt: faMicrophoneAlt,
  4390. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4391. faMicrophoneSlash: faMicrophoneSlash,
  4392. faMicroscope: faMicroscope,
  4393. faMinus: faMinus,
  4394. faMinusCircle: faMinusCircle,
  4395. faMinusSquare: faMinusSquare,
  4396. faMobile: faMobile,
  4397. faMobileAlt: faMobileAlt,
  4398. faMoneyBill: faMoneyBill,
  4399. faMoneyBillAlt: faMoneyBillAlt,
  4400. faMoneyBillWave: faMoneyBillWave,
  4401. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4402. faMoneyCheck: faMoneyCheck,
  4403. faMoneyCheckAlt: faMoneyCheckAlt,
  4404. faMonument: faMonument,
  4405. faMoon: faMoon,
  4406. faMortarPestle: faMortarPestle,
  4407. faMosque: faMosque,
  4408. faMotorcycle: faMotorcycle,
  4409. faMountain: faMountain,
  4410. faMousePointer: faMousePointer,
  4411. faMusic: faMusic,
  4412. faNetworkWired: faNetworkWired,
  4413. faNeuter: faNeuter,
  4414. faNewspaper: faNewspaper,
  4415. faNotEqual: faNotEqual,
  4416. faNotesMedical: faNotesMedical,
  4417. faObjectGroup: faObjectGroup,
  4418. faObjectUngroup: faObjectUngroup,
  4419. faOilCan: faOilCan,
  4420. faOm: faOm,
  4421. faOtter: faOtter,
  4422. faOutdent: faOutdent,
  4423. faPaintBrush: faPaintBrush,
  4424. faPaintRoller: faPaintRoller,
  4425. faPalette: faPalette,
  4426. faPallet: faPallet,
  4427. faPaperPlane: faPaperPlane,
  4428. faPaperclip: faPaperclip,
  4429. faParachuteBox: faParachuteBox,
  4430. faParagraph: faParagraph,
  4431. faParking: faParking,
  4432. faPassport: faPassport,
  4433. faPastafarianism: faPastafarianism,
  4434. faPaste: faPaste,
  4435. faPause: faPause,
  4436. faPauseCircle: faPauseCircle,
  4437. faPaw: faPaw,
  4438. faPeace: faPeace,
  4439. faPen: faPen,
  4440. faPenAlt: faPenAlt,
  4441. faPenFancy: faPenFancy,
  4442. faPenNib: faPenNib,
  4443. faPenSquare: faPenSquare,
  4444. faPencilAlt: faPencilAlt,
  4445. faPencilRuler: faPencilRuler,
  4446. faPeopleCarry: faPeopleCarry,
  4447. faPercent: faPercent,
  4448. faPercentage: faPercentage,
  4449. faPhone: faPhone,
  4450. faPhoneSlash: faPhoneSlash,
  4451. faPhoneSquare: faPhoneSquare,
  4452. faPhoneVolume: faPhoneVolume,
  4453. faPiggyBank: faPiggyBank,
  4454. faPills: faPills,
  4455. faPlaceOfWorship: faPlaceOfWorship,
  4456. faPlane: faPlane,
  4457. faPlaneArrival: faPlaneArrival,
  4458. faPlaneDeparture: faPlaneDeparture,
  4459. faPlay: faPlay,
  4460. faPlayCircle: faPlayCircle,
  4461. faPlug: faPlug,
  4462. faPlus: faPlus,
  4463. faPlusCircle: faPlusCircle,
  4464. faPlusSquare: faPlusSquare,
  4465. faPodcast: faPodcast,
  4466. faPoll: faPoll,
  4467. faPollH: faPollH,
  4468. faPoo: faPoo,
  4469. faPoop: faPoop,
  4470. faPortrait: faPortrait,
  4471. faPoundSign: faPoundSign,
  4472. faPowerOff: faPowerOff,
  4473. faPray: faPray,
  4474. faPrayingHands: faPrayingHands,
  4475. faPrescription: faPrescription,
  4476. faPrescriptionBottle: faPrescriptionBottle,
  4477. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4478. faPrint: faPrint,
  4479. faProcedures: faProcedures,
  4480. faProjectDiagram: faProjectDiagram,
  4481. faPuzzlePiece: faPuzzlePiece,
  4482. faQrcode: faQrcode,
  4483. faQuestion: faQuestion,
  4484. faQuestionCircle: faQuestionCircle,
  4485. faQuidditch: faQuidditch,
  4486. faQuoteLeft: faQuoteLeft,
  4487. faQuoteRight: faQuoteRight,
  4488. faQuran: faQuran,
  4489. faRandom: faRandom,
  4490. faReceipt: faReceipt,
  4491. faRecycle: faRecycle,
  4492. faRedo: faRedo,
  4493. faRedoAlt: faRedoAlt,
  4494. faRegistered: faRegistered,
  4495. faReply: faReply,
  4496. faReplyAll: faReplyAll,
  4497. faRetweet: faRetweet,
  4498. faRibbon: faRibbon,
  4499. faRing: faRing,
  4500. faRoad: faRoad,
  4501. faRobot: faRobot,
  4502. faRocket: faRocket,
  4503. faRoute: faRoute,
  4504. faRss: faRss,
  4505. faRssSquare: faRssSquare,
  4506. faRubleSign: faRubleSign,
  4507. faRuler: faRuler,
  4508. faRulerCombined: faRulerCombined,
  4509. faRulerHorizontal: faRulerHorizontal,
  4510. faRulerVertical: faRulerVertical,
  4511. faRunning: faRunning,
  4512. faRupeeSign: faRupeeSign,
  4513. faSadCry: faSadCry,
  4514. faSadTear: faSadTear,
  4515. faSave: faSave,
  4516. faSchool: faSchool,
  4517. faScrewdriver: faScrewdriver,
  4518. faScroll: faScroll,
  4519. faSearch: faSearch,
  4520. faSearchDollar: faSearchDollar,
  4521. faSearchLocation: faSearchLocation,
  4522. faSearchMinus: faSearchMinus,
  4523. faSearchPlus: faSearchPlus,
  4524. faSeedling: faSeedling,
  4525. faServer: faServer,
  4526. faShapes: faShapes,
  4527. faShare: faShare,
  4528. faShareAlt: faShareAlt,
  4529. faShareAltSquare: faShareAltSquare,
  4530. faShareSquare: faShareSquare,
  4531. faShekelSign: faShekelSign,
  4532. faShieldAlt: faShieldAlt,
  4533. faShip: faShip,
  4534. faShippingFast: faShippingFast,
  4535. faShoePrints: faShoePrints,
  4536. faShoppingBag: faShoppingBag,
  4537. faShoppingBasket: faShoppingBasket,
  4538. faShoppingCart: faShoppingCart,
  4539. faShower: faShower,
  4540. faShuttleVan: faShuttleVan,
  4541. faSign: faSign,
  4542. faSignInAlt: faSignInAlt,
  4543. faSignLanguage: faSignLanguage,
  4544. faSignOutAlt: faSignOutAlt,
  4545. faSignal: faSignal,
  4546. faSignature: faSignature,
  4547. faSitemap: faSitemap,
  4548. faSkull: faSkull,
  4549. faSkullCrossbones: faSkullCrossbones,
  4550. faSlash: faSlash,
  4551. faSlidersH: faSlidersH,
  4552. faSmile: faSmile,
  4553. faSmileBeam: faSmileBeam,
  4554. faSmileWink: faSmileWink,
  4555. faSmoking: faSmoking,
  4556. faSmokingBan: faSmokingBan,
  4557. faSnowflake: faSnowflake,
  4558. faSocks: faSocks,
  4559. faSolarPanel: faSolarPanel,
  4560. faSort: faSort,
  4561. faSortAlphaDown: faSortAlphaDown,
  4562. faSortAlphaUp: faSortAlphaUp,
  4563. faSortAmountDown: faSortAmountDown,
  4564. faSortAmountUp: faSortAmountUp,
  4565. faSortDown: faSortDown,
  4566. faSortNumericDown: faSortNumericDown,
  4567. faSortNumericUp: faSortNumericUp,
  4568. faSortUp: faSortUp,
  4569. faSpa: faSpa,
  4570. faSpaceShuttle: faSpaceShuttle,
  4571. faSpider: faSpider,
  4572. faSpinner: faSpinner,
  4573. faSplotch: faSplotch,
  4574. faSprayCan: faSprayCan,
  4575. faSquare: faSquare,
  4576. faSquareFull: faSquareFull,
  4577. faSquareRootAlt: faSquareRootAlt,
  4578. faStamp: faStamp,
  4579. faStar: faStar,
  4580. faStarAndCrescent: faStarAndCrescent,
  4581. faStarHalf: faStarHalf,
  4582. faStarHalfAlt: faStarHalfAlt,
  4583. faStarOfDavid: faStarOfDavid,
  4584. faStarOfLife: faStarOfLife,
  4585. faStepBackward: faStepBackward,
  4586. faStepForward: faStepForward,
  4587. faStethoscope: faStethoscope,
  4588. faStickyNote: faStickyNote,
  4589. faStop: faStop,
  4590. faStopCircle: faStopCircle,
  4591. faStopwatch: faStopwatch,
  4592. faStore: faStore,
  4593. faStoreAlt: faStoreAlt,
  4594. faStream: faStream,
  4595. faStreetView: faStreetView,
  4596. faStrikethrough: faStrikethrough,
  4597. faStroopwafel: faStroopwafel,
  4598. faSubscript: faSubscript,
  4599. faSubway: faSubway,
  4600. faSuitcase: faSuitcase,
  4601. faSuitcaseRolling: faSuitcaseRolling,
  4602. faSun: faSun,
  4603. faSuperscript: faSuperscript,
  4604. faSurprise: faSurprise,
  4605. faSwatchbook: faSwatchbook,
  4606. faSwimmer: faSwimmer,
  4607. faSwimmingPool: faSwimmingPool,
  4608. faSynagogue: faSynagogue,
  4609. faSync: faSync,
  4610. faSyncAlt: faSyncAlt,
  4611. faSyringe: faSyringe,
  4612. faTable: faTable,
  4613. faTableTennis: faTableTennis,
  4614. faTablet: faTablet,
  4615. faTabletAlt: faTabletAlt,
  4616. faTablets: faTablets,
  4617. faTachometerAlt: faTachometerAlt,
  4618. faTag: faTag,
  4619. faTags: faTags,
  4620. faTape: faTape,
  4621. faTasks: faTasks,
  4622. faTaxi: faTaxi,
  4623. faTeeth: faTeeth,
  4624. faTeethOpen: faTeethOpen,
  4625. faTerminal: faTerminal,
  4626. faTextHeight: faTextHeight,
  4627. faTextWidth: faTextWidth,
  4628. faTh: faTh,
  4629. faThLarge: faThLarge,
  4630. faThList: faThList,
  4631. faTheaterMasks: faTheaterMasks,
  4632. faThermometer: faThermometer,
  4633. faThermometerEmpty: faThermometerEmpty,
  4634. faThermometerFull: faThermometerFull,
  4635. faThermometerHalf: faThermometerHalf,
  4636. faThermometerQuarter: faThermometerQuarter,
  4637. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4638. faThumbsDown: faThumbsDown,
  4639. faThumbsUp: faThumbsUp,
  4640. faThumbtack: faThumbtack,
  4641. faTicketAlt: faTicketAlt,
  4642. faTimes: faTimes,
  4643. faTimesCircle: faTimesCircle,
  4644. faTint: faTint,
  4645. faTintSlash: faTintSlash,
  4646. faTired: faTired,
  4647. faToggleOff: faToggleOff,
  4648. faToggleOn: faToggleOn,
  4649. faToiletPaper: faToiletPaper,
  4650. faToolbox: faToolbox,
  4651. faTooth: faTooth,
  4652. faTorah: faTorah,
  4653. faToriiGate: faToriiGate,
  4654. faTractor: faTractor,
  4655. faTrademark: faTrademark,
  4656. faTrafficLight: faTrafficLight,
  4657. faTrain: faTrain,
  4658. faTransgender: faTransgender,
  4659. faTransgenderAlt: faTransgenderAlt,
  4660. faTrash: faTrash,
  4661. faTrashAlt: faTrashAlt,
  4662. faTree: faTree,
  4663. faTrophy: faTrophy,
  4664. faTruck: faTruck,
  4665. faTruckLoading: faTruckLoading,
  4666. faTruckMonster: faTruckMonster,
  4667. faTruckMoving: faTruckMoving,
  4668. faTruckPickup: faTruckPickup,
  4669. faTshirt: faTshirt,
  4670. faTty: faTty,
  4671. faTv: faTv,
  4672. faUmbrella: faUmbrella,
  4673. faUmbrellaBeach: faUmbrellaBeach,
  4674. faUnderline: faUnderline,
  4675. faUndo: faUndo,
  4676. faUndoAlt: faUndoAlt,
  4677. faUniversalAccess: faUniversalAccess,
  4678. faUniversity: faUniversity,
  4679. faUnlink: faUnlink,
  4680. faUnlock: faUnlock,
  4681. faUnlockAlt: faUnlockAlt,
  4682. faUpload: faUpload,
  4683. faUser: faUser,
  4684. faUserAlt: faUserAlt,
  4685. faUserAltSlash: faUserAltSlash,
  4686. faUserAstronaut: faUserAstronaut,
  4687. faUserCheck: faUserCheck,
  4688. faUserCircle: faUserCircle,
  4689. faUserClock: faUserClock,
  4690. faUserCog: faUserCog,
  4691. faUserEdit: faUserEdit,
  4692. faUserFriends: faUserFriends,
  4693. faUserGraduate: faUserGraduate,
  4694. faUserInjured: faUserInjured,
  4695. faUserLock: faUserLock,
  4696. faUserMd: faUserMd,
  4697. faUserMinus: faUserMinus,
  4698. faUserNinja: faUserNinja,
  4699. faUserPlus: faUserPlus,
  4700. faUserSecret: faUserSecret,
  4701. faUserShield: faUserShield,
  4702. faUserSlash: faUserSlash,
  4703. faUserTag: faUserTag,
  4704. faUserTie: faUserTie,
  4705. faUserTimes: faUserTimes,
  4706. faUsers: faUsers,
  4707. faUsersCog: faUsersCog,
  4708. faUtensilSpoon: faUtensilSpoon,
  4709. faUtensils: faUtensils,
  4710. faVectorSquare: faVectorSquare,
  4711. faVenus: faVenus,
  4712. faVenusDouble: faVenusDouble,
  4713. faVenusMars: faVenusMars,
  4714. faVial: faVial,
  4715. faVials: faVials,
  4716. faVideo: faVideo,
  4717. faVideoSlash: faVideoSlash,
  4718. faVihara: faVihara,
  4719. faVolleyballBall: faVolleyballBall,
  4720. faVolumeDown: faVolumeDown,
  4721. faVolumeMute: faVolumeMute,
  4722. faVolumeOff: faVolumeOff,
  4723. faVolumeUp: faVolumeUp,
  4724. faVrCardboard: faVrCardboard,
  4725. faWalking: faWalking,
  4726. faWallet: faWallet,
  4727. faWarehouse: faWarehouse,
  4728. faWeight: faWeight,
  4729. faWeightHanging: faWeightHanging,
  4730. faWheelchair: faWheelchair,
  4731. faWifi: faWifi,
  4732. faWind: faWind,
  4733. faWindowClose: faWindowClose,
  4734. faWindowMaximize: faWindowMaximize,
  4735. faWindowMinimize: faWindowMinimize,
  4736. faWindowRestore: faWindowRestore,
  4737. faWineBottle: faWineBottle,
  4738. faWineGlass: faWineGlass,
  4739. faWineGlassAlt: faWineGlassAlt,
  4740. faWonSign: faWonSign,
  4741. faWrench: faWrench,
  4742. faXRay: faXRay,
  4743. faYenSign: faYenSign,
  4744. faYinYang: faYinYang
  4745. };
  4746. /***/ }),
  4747. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4748. /*!***********************************************************************************!*\
  4749. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4750. \***********************************************************************************/
  4751. /*! exports provided: FontAwesomeIcon */
  4752. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4753. "use strict";
  4754. __webpack_require__.r(__webpack_exports__);
  4755. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4756. /* 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");
  4757. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4758. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4759. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4760. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4761. function _typeof(obj) {
  4762. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  4763. _typeof = function (obj) {
  4764. return typeof obj;
  4765. };
  4766. } else {
  4767. _typeof = function (obj) {
  4768. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4769. };
  4770. }
  4771. return _typeof(obj);
  4772. }
  4773. function _defineProperty(obj, key, value) {
  4774. if (key in obj) {
  4775. Object.defineProperty(obj, key, {
  4776. value: value,
  4777. enumerable: true,
  4778. configurable: true,
  4779. writable: true
  4780. });
  4781. } else {
  4782. obj[key] = value;
  4783. }
  4784. return obj;
  4785. }
  4786. function _objectSpread(target) {
  4787. for (var i = 1; i < arguments.length; i++) {
  4788. var source = arguments[i] != null ? arguments[i] : {};
  4789. var ownKeys = Object.keys(source);
  4790. if (typeof Object.getOwnPropertySymbols === 'function') {
  4791. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  4792. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  4793. }));
  4794. }
  4795. ownKeys.forEach(function (key) {
  4796. _defineProperty(target, key, source[key]);
  4797. });
  4798. }
  4799. return target;
  4800. }
  4801. function _objectWithoutPropertiesLoose(source, excluded) {
  4802. if (source == null) return {};
  4803. var target = {};
  4804. var sourceKeys = Object.keys(source);
  4805. var key, i;
  4806. for (i = 0; i < sourceKeys.length; i++) {
  4807. key = sourceKeys[i];
  4808. if (excluded.indexOf(key) >= 0) continue;
  4809. target[key] = source[key];
  4810. }
  4811. return target;
  4812. }
  4813. function _objectWithoutProperties(source, excluded) {
  4814. if (source == null) return {};
  4815. var target = _objectWithoutPropertiesLoose(source, excluded);
  4816. var key, i;
  4817. if (Object.getOwnPropertySymbols) {
  4818. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  4819. for (i = 0; i < sourceSymbolKeys.length; i++) {
  4820. key = sourceSymbolKeys[i];
  4821. if (excluded.indexOf(key) >= 0) continue;
  4822. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  4823. target[key] = source[key];
  4824. }
  4825. }
  4826. return target;
  4827. }
  4828. function _toConsumableArray(arr) {
  4829. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  4830. }
  4831. function _arrayWithoutHoles(arr) {
  4832. if (Array.isArray(arr)) {
  4833. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4834. return arr2;
  4835. }
  4836. }
  4837. function _iterableToArray(iter) {
  4838. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  4839. }
  4840. function _nonIterableSpread() {
  4841. throw new TypeError("Invalid attempt to spread non-iterable instance");
  4842. }
  4843. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4844. function createCommonjsModule(fn, module) {
  4845. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4846. }
  4847. var humps = createCommonjsModule(function (module) {
  4848. (function(global) {
  4849. var _processKeys = function(convert, obj, options) {
  4850. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4851. return obj;
  4852. }
  4853. var output,
  4854. i = 0,
  4855. l = 0;
  4856. if(_isArray(obj)) {
  4857. output = [];
  4858. for(l=obj.length; i<l; i++) {
  4859. output.push(_processKeys(convert, obj[i], options));
  4860. }
  4861. }
  4862. else {
  4863. output = {};
  4864. for(var key in obj) {
  4865. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4866. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4867. }
  4868. }
  4869. }
  4870. return output;
  4871. };
  4872. // String conversion methods
  4873. var separateWords = function(string, options) {
  4874. options = options || {};
  4875. var separator = options.separator || '_';
  4876. var split = options.split || /(?=[A-Z])/;
  4877. return string.split(split).join(separator);
  4878. };
  4879. var camelize = function(string) {
  4880. if (_isNumerical(string)) {
  4881. return string;
  4882. }
  4883. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4884. return chr ? chr.toUpperCase() : '';
  4885. });
  4886. // Ensure 1st char is always lowercase
  4887. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4888. };
  4889. var pascalize = function(string) {
  4890. var camelized = camelize(string);
  4891. // Ensure 1st char is always uppercase
  4892. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4893. };
  4894. var decamelize = function(string, options) {
  4895. return separateWords(string, options).toLowerCase();
  4896. };
  4897. // Utilities
  4898. // Taken from Underscore.js
  4899. var toString = Object.prototype.toString;
  4900. var _isFunction = function(obj) {
  4901. return typeof(obj) === 'function';
  4902. };
  4903. var _isObject = function(obj) {
  4904. return obj === Object(obj);
  4905. };
  4906. var _isArray = function(obj) {
  4907. return toString.call(obj) == '[object Array]';
  4908. };
  4909. var _isDate = function(obj) {
  4910. return toString.call(obj) == '[object Date]';
  4911. };
  4912. var _isRegExp = function(obj) {
  4913. return toString.call(obj) == '[object RegExp]';
  4914. };
  4915. var _isBoolean = function(obj) {
  4916. return toString.call(obj) == '[object Boolean]';
  4917. };
  4918. // Performant way to determine if obj coerces to a number
  4919. var _isNumerical = function(obj) {
  4920. obj = obj - 0;
  4921. return obj === obj;
  4922. };
  4923. // Sets up function which handles processing keys
  4924. // allowing the convert function to be modified by a callback
  4925. var _processor = function(convert, options) {
  4926. var callback = options && 'process' in options ? options.process : options;
  4927. if(typeof(callback) !== 'function') {
  4928. return convert;
  4929. }
  4930. return function(string, options) {
  4931. return callback(string, convert, options);
  4932. }
  4933. };
  4934. var humps = {
  4935. camelize: camelize,
  4936. decamelize: decamelize,
  4937. pascalize: pascalize,
  4938. depascalize: decamelize,
  4939. camelizeKeys: function(object, options) {
  4940. return _processKeys(_processor(camelize, options), object);
  4941. },
  4942. decamelizeKeys: function(object, options) {
  4943. return _processKeys(_processor(decamelize, options), object, options);
  4944. },
  4945. pascalizeKeys: function(object, options) {
  4946. return _processKeys(_processor(pascalize, options), object);
  4947. },
  4948. depascalizeKeys: function () {
  4949. return this.decamelizeKeys.apply(this, arguments);
  4950. }
  4951. };
  4952. if (module.exports) {
  4953. module.exports = humps;
  4954. } else {
  4955. global.humps = humps;
  4956. }
  4957. })(commonjsGlobal);
  4958. });
  4959. function capitalize(val) {
  4960. return val.charAt(0).toUpperCase() + val.slice(1);
  4961. }
  4962. function styleToObject(style) {
  4963. return style.split(';').map(function (s) {
  4964. return s.trim();
  4965. }).filter(function (s) {
  4966. return s;
  4967. }).reduce(function (acc, pair) {
  4968. var i = pair.indexOf(':');
  4969. var prop = humps.camelize(pair.slice(0, i));
  4970. var value = pair.slice(i + 1).trim();
  4971. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4972. return acc;
  4973. }, {});
  4974. }
  4975. function convert(createElement, element) {
  4976. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4977. if (typeof element === 'string') {
  4978. return element;
  4979. }
  4980. var children = (element.children || []).map(function (child) {
  4981. return convert(createElement, child);
  4982. });
  4983. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4984. var val = element.attributes[key];
  4985. switch (key) {
  4986. case 'class':
  4987. acc.attrs['className'] = val;
  4988. delete element.attributes['class'];
  4989. break;
  4990. case 'style':
  4991. acc.attrs['style'] = styleToObject(val);
  4992. break;
  4993. default:
  4994. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4995. acc.attrs[key.toLowerCase()] = val;
  4996. } else {
  4997. acc.attrs[humps.camelize(key)] = val;
  4998. }
  4999. }
  5000. return acc;
  5001. }, {
  5002. attrs: {}
  5003. });
  5004. var _extraProps$style = extraProps.style,
  5005. existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
  5006. remaining = _objectWithoutProperties(extraProps, ["style"]);
  5007. mixins.attrs['style'] = _objectSpread({}, mixins.attrs['style'], existingStyle);
  5008. return createElement.apply(void 0, [element.tag, _objectSpread({}, mixins.attrs, remaining)].concat(_toConsumableArray(children)));
  5009. }
  5010. var PRODUCTION = false;
  5011. try {
  5012. PRODUCTION = "development" === 'production';
  5013. } catch (e) {}
  5014. function log () {
  5015. if (!PRODUCTION && console && typeof console.error === 'function') {
  5016. var _console;
  5017. (_console = console).error.apply(_console, arguments);
  5018. }
  5019. }
  5020. function objectWithKey(key, value) {
  5021. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
  5022. }
  5023. function classList(props) {
  5024. var _classes;
  5025. var classes = (_classes = {
  5026. 'fa-spin': props.spin,
  5027. 'fa-pulse': props.pulse,
  5028. 'fa-fw': props.fixedWidth,
  5029. 'fa-inverse': props.inverse,
  5030. 'fa-border': props.border,
  5031. 'fa-li': props.listItem,
  5032. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  5033. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  5034. }, _defineProperty(_classes, "fa-".concat(props.size), props.size !== null), _defineProperty(_classes, "fa-rotate-".concat(props.rotation), props.rotation !== null), _defineProperty(_classes, "fa-pull-".concat(props.pull), props.pull !== null), _classes);
  5035. return Object.keys(classes).map(function (key) {
  5036. return classes[key] ? key : null;
  5037. }).filter(function (key) {
  5038. return key;
  5039. });
  5040. }
  5041. function normalizeIconArgs(icon$$1) {
  5042. if (icon$$1 === null) {
  5043. return null;
  5044. }
  5045. if (_typeof(icon$$1) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  5046. return icon$$1;
  5047. }
  5048. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  5049. return {
  5050. prefix: icon$$1[0],
  5051. iconName: icon$$1[1]
  5052. };
  5053. }
  5054. if (typeof icon$$1 === 'string') {
  5055. return {
  5056. prefix: 'fas',
  5057. iconName: icon$$1
  5058. };
  5059. }
  5060. }
  5061. function FontAwesomeIcon(props) {
  5062. var iconArgs = props.icon,
  5063. maskArgs = props.mask,
  5064. symbol = props.symbol,
  5065. className = props.className,
  5066. title = props.title;
  5067. var iconLookup = normalizeIconArgs(iconArgs);
  5068. var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  5069. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  5070. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  5071. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread({}, classes, transform, mask, {
  5072. symbol: symbol,
  5073. title: title
  5074. }));
  5075. if (!renderedIcon) {
  5076. log('Could not find icon', iconLookup);
  5077. return null;
  5078. }
  5079. var abstract = renderedIcon.abstract;
  5080. var extraProps = {};
  5081. Object.keys(props).forEach(function (key) {
  5082. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  5083. extraProps[key] = props[key];
  5084. }
  5085. });
  5086. return convertCurry(abstract[0], extraProps);
  5087. }
  5088. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  5089. FontAwesomeIcon.propTypes = {
  5090. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5091. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5092. 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]),
  5093. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5094. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5095. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  5096. 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]),
  5097. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5098. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  5099. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5100. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  5101. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  5102. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5103. 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]),
  5104. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5105. 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])
  5106. };
  5107. FontAwesomeIcon.defaultProps = {
  5108. border: false,
  5109. className: '',
  5110. mask: null,
  5111. fixedWidth: false,
  5112. inverse: false,
  5113. flip: null,
  5114. icon: null,
  5115. listItem: false,
  5116. pull: null,
  5117. pulse: false,
  5118. rotation: null,
  5119. size: null,
  5120. spin: false,
  5121. symbol: false,
  5122. title: '',
  5123. transform: null
  5124. };
  5125. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  5126. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  5127. /***/ }),
  5128. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss":
  5129. /*!************************************************************************************************************************************************!*\
  5130. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss ***!
  5131. \************************************************************************************************************************************************/
  5132. /*! no static exports found */
  5133. /***/ (function(module, exports, __webpack_require__) {
  5134. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5135. // imports
  5136. // module
  5137. exports.push([module.i, ".srd-node {\n width: 200px; }\n\n.srd-node--selected .input-port-border {\n border-color: #00c0ff !important; }\n\n.srd-node--selected .output-port-border {\n border-color: #00c0ff !important; }\n\n.srd-default-link--path-selected {\n animation: 0s !important; }\n\n.srd-port {\n grid-column: 1;\n grid-row: 1;\n background: #2796B2;\n border-radius: 10px;\n transform: scale(1); }\n .srd-port.connected {\n background: #CAB422; }\n .srd-port:hover {\n background: greenyellow !important; }\n\n.diagramBlock {\n background: white;\n width: 100%;\n border: 4px solid black;\n border-radius: 20px;\n display: grid;\n grid-template-rows: 30px auto;\n grid-template-columns: 50% 50%; }\n .diagramBlock.input {\n background: #40866E;\n color: white; }\n .diagramBlock.input .value {\n grid-row: 2; }\n .diagramBlock.input .outputs {\n transform: translateY(5px); }\n .diagramBlock.trigonometry {\n background: #405c86;\n color: white; }\n .diagramBlock.trigonometry .value {\n grid-row: 2; }\n .diagramBlock.remap {\n color: white;\n background: #4086BB; }\n .diagramBlock.remap .value {\n grid-row: 3; }\n .diagramBlock.remap .outputs, .diagramBlock.remap .inputs {\n transform: translateY(5px); }\n .diagramBlock.attribute {\n background: #40866E; }\n .diagramBlock.output {\n background: #6a2c83;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n grid-row: 1;\n grid-column: 1 / span 2;\n border: 4px solid black;\n border-top-right-radius: 16px;\n border-top-left-radius: 16px;\n font-size: 16px;\n text-align: center;\n margin-top: -1px;\n transform: scaleX(1.001);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n background: black;\n color: white; }\n .diagramBlock .value {\n grid-row: 3;\n grid-column: 1 / span 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n .diagramBlock .value .value-text {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .inputs {\n grid-row: 2;\n grid-column: 1;\n padding-bottom: 8px; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 10px calc(100% - 10px);\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: -8px;\n position: relative; }\n .diagramBlock .inputs .input-port .input-port-plug:hover .input-port-connection {\n background: greenyellow !important; }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-type {\n width: 15px;\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n transform: scale(1); }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-type img {\n width: 12px; }\n .diagramBlock .inputs .input-port .input-port-plug .input-port-border {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n border: 4px solid black;\n width: 4px;\n height: 7px;\n border-right: 0;\n position: absolute;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px;\n transform: translateX(-2px) scale(1.2); }\n .diagramBlock .inputs .input-port .input-port-label {\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .diagramBlock .outputs {\n grid-row: 2;\n grid-column: 2;\n padding-bottom: 8px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 10px) 10px;\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 position: relative;\n margin-left: 3px; }\n .diagramBlock .outputs .output-port .output-port-plug:hover .output-port-connection {\n background: greenyellow !important; }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-type {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-items: center;\n justify-items: center;\n transform: scale(1); }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-type img {\n width: 12px; }\n .diagramBlock .outputs .output-port .output-port-plug .output-port-border {\n pointer-events: none;\n grid-column: 1;\n grid-row: 1;\n border: 4px solid black;\n width: 4px;\n border-left: 0;\n border-left: 0;\n transform: translateX(9px) scale(1.2);\n border-bottom-right-radius: 10px;\n border-top-right-radius: 10px; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .diagramBlock.texture-block {\n display: grid;\n grid-template-rows: 30px auto 1fr;\n grid-template-columns: calc(100% - 60px) 60px; }\n .diagramBlock.texture-block .inputs {\n grid-column: 1;\n grid-row: 2; }\n .diagramBlock.texture-block .outputs {\n grid-column: 2;\n grid-row: 2 / span 2; }\n .diagramBlock.texture-block .textureLine {\n height: 140px;\n grid-column: 1;\n grid-row: 3;\n overflow: hidden;\n border-bottom-left-radius: 16px;\n border: black 4px solid;\n border-left: 0px;\n border-bottom: 0px; }\n .diagramBlock.texture-block .textureLine canvas {\n width: 100%;\n height: 100%; }\n", ""]);
  5138. // exports
  5139. /***/ }),
  5140. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss":
  5141. /*!****************************************************************************************************************************************!*\
  5142. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/log/log.scss ***!
  5143. \****************************************************************************************************************************************/
  5144. /*! no static exports found */
  5145. /***/ (function(module, exports, __webpack_require__) {
  5146. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5147. // imports
  5148. // module
  5149. exports.push([module.i, "#log-console {\n background: #333333;\n height: 120px;\n box-sizing: border-box;\n margin: 0;\n padding: 10px;\n width: 100%;\n overflow: hidden;\n overflow-y: auto; }\n #log-console .log {\n color: white;\n font-size: 14px;\n font-family: 'Courier New', Courier, monospace; }\n #log-console .log.error {\n color: red; }\n", ""]);
  5150. // exports
  5151. /***/ }),
  5152. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss":
  5153. /*!**************************************************************************************************************************************************!*\
  5154. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss ***!
  5155. \**************************************************************************************************************************************************/
  5156. /*! no static exports found */
  5157. /***/ (function(module, exports, __webpack_require__) {
  5158. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5159. // imports
  5160. // module
  5161. exports.push([module.i, "#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 100%;\n overflow: hidden; }\n #nodeList .panes {\n overflow: hidden; }\n #nodeList .panes .pane {\n color: white;\n overflow: hidden;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .panes .pane .filter {\n display: flex;\n align-items: stretch; }\n #nodeList .panes .pane .filter input {\n width: 100%;\n margin: 10px 10px 5px 10px;\n display: block;\n border: none;\n padding: 0;\n border-bottom: solid 1px #337ab7;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, #337ab7 4%);\n background-position: -1000px 0;\n background-size: 1000px 100%;\n background-repeat: no-repeat;\n color: white; }\n #nodeList .panes .pane .filter input:focus {\n box-shadow: none;\n outline: none;\n background-position: 0 0; }\n #nodeList .panes .pane .list-container {\n overflow-x: hidden;\n overflow-y: auto;\n height: calc(100% - 32px); }\n #nodeList .panes .pane .list-container .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .panes .pane .list-container .draggableLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n background: #222222;\n cursor: grab;\n text-align: center;\n margin: 0;\n box-sizing: border-box; }\n #nodeList .panes .pane .list-container .draggableLine:hover {\n background: #337ab7;\n color: white; }\n #nodeList .panes .pane .list-container .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .panes .pane .list-container .buttonLine button {\n background: #222222;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .panes .pane .list-container .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .panes .pane .list-container .buttonLine button:active {\n background: #282828; }\n #nodeList .panes .pane .list-container .buttonLine button:focus {\n outline: 0px; }\n #nodeList .panes .pane .list-container .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .panes .pane .list-container .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 .panes .pane .list-container .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 .panes .pane .list-container .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 .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 1px solid rgba(255, 255, 255, 0.3); }\n", ""]);
  5162. // exports
  5163. /***/ }),
  5164. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss":
  5165. /*!********************************************************************************************************************************************************!*\
  5166. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss ***!
  5167. \********************************************************************************************************************************************************/
  5168. /*! no static exports found */
  5169. /***/ (function(module, exports, __webpack_require__) {
  5170. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5171. // imports
  5172. // module
  5173. exports.push([module.i, "#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #propertyTab #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: calc(100% - 5px); }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .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 #propertyTab .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 #propertyTab .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 #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\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 padding-bottom: 5px; }\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 padding-top: 0px;\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: 5px;\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: 5px;\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 .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #propertyTab .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .color3Line .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 .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\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", ""]);
  5174. // exports
  5175. /***/ }),
  5176. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss":
  5177. /*!**************************************************************************************************************************!*\
  5178. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./main.scss ***!
  5179. \**************************************************************************************************************************/
  5180. /*! no static exports found */
  5181. /***/ (function(module, exports, __webpack_require__) {
  5182. exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5183. // imports
  5184. // module
  5185. exports.push([module.i, "#node-editor-graph-root {\n display: grid;\n grid-template-rows: calc(100% - 120px) 120px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px \"acumin-pro\"; }\n\n#nodeList {\n grid-row: 1 / span 2;\n grid-column: 1; }\n\n#leftGrab {\n grid-row: 1 / span 2;\n grid-column: 2;\n cursor: ew-resize; }\n\n#rightGrab {\n grid-row: 1 / span 2;\n grid-column: 4;\n cursor: ew-resize; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 3;\n background: #5f5b60;\n width: 100%;\n height: 100%; }\n .diagram-container .diagram {\n width: 100%;\n height: 100%; }\n\n.right-panel {\n grid-row: 1 / span 2;\n grid-column: 5;\n display: grid;\n grid-template-rows: 1fr 30px auto 30px;\n grid-template-columns: 100%;\n height: 100%;\n overflow-y: auto; }\n .right-panel #propertyTab {\n grid-row: 1;\n grid-column: 1; }\n .right-panel .button {\n display: grid;\n justify-content: center;\n align-content: center;\n height: 30px;\n width: calc(100% / 6);\n cursor: pointer; }\n .right-panel .button:hover {\n background: #337ab7;\n color: white;\n opacity: 0.8; }\n .right-panel .button.selected {\n background: #337ab7;\n color: white; }\n .right-panel .button.align {\n justify-content: stretch;\n text-align: center; }\n .right-panel #preview-mesh-bar {\n grid-row: 2;\n grid-column: 1;\n display: flex;\n color: white;\n align-items: center;\n font-size: 18px; }\n .right-panel #preview-mesh-bar #file-picker {\n display: none; }\n .right-panel #preview-mesh-bar #file-picker-label {\n width: 100%;\n background: transparent;\n cursor: pointer; }\n .right-panel #preview-config-bar {\n grid-row: 4;\n grid-column: 1;\n display: flex;\n flex-direction: row-reverse;\n color: white;\n align-items: center;\n font-size: 18px; }\n .right-panel #preview-config-bar .button {\n width: 60px; }\n .right-panel #preview-config-bar #color-picker {\n display: none; }\n .right-panel #preview-config-bar #color-picker-label {\n width: 100%;\n background: transparent;\n cursor: pointer; }\n .right-panel #preview {\n border-top: 1px solid #555555;\n grid-row: 3;\n grid-column: 1;\n width: 100%;\n display: grid;\n outline: 0 !important; }\n .right-panel #preview #preview-canvas {\n width: 100%;\n height: 100%;\n outline: 0 !important; }\n\n#log-console {\n grid-row: 2;\n grid-column: 3; }\n\n.dialog-container {\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n display: grid;\n font-family: \"acumin-pro\";\n top: 0; }\n .dialog-container .dialog {\n align-self: center;\n justify-self: center;\n min-height: 140px;\n max-width: 400px;\n border-radius: 10px;\n background: white;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: calc(100% - 50px) 50px; }\n .dialog-container .dialog .dialog-message {\n grid-row: 1;\n grid-column: 1;\n margin-top: 20px;\n padding: 10px;\n font-size: 18px;\n color: black; }\n .dialog-container .dialog .dialog-buttons {\n grid-row: 2;\n grid-column: 1;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%;\n color: white; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok {\n cursor: pointer;\n justify-self: center;\n background: green;\n min-width: 80px;\n justify-content: center;\n display: grid;\n align-content: center;\n align-self: center;\n height: 35px;\n border-radius: 10px; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok:hover {\n opacity: 0.8; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok.error {\n background: red; }\n", ""]);
  5186. // exports
  5187. /***/ }),
  5188. /***/ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css":
  5189. /*!****************************************************************************************************************************!*\
  5190. !*** C:/Repos/Babylon.js/node_modules/css-loader!C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  5191. \****************************************************************************************************************************/
  5192. /*! no static exports found */
  5193. /***/ (function(module, exports, __webpack_require__) {
  5194. exports = module.exports = __webpack_require__(/*! ../../css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5195. // imports
  5196. // module
  5197. 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", ""]);
  5198. // exports
  5199. /***/ }),
  5200. /***/ "../../node_modules/css-loader/lib/css-base.js":
  5201. /*!*******************************************************************!*\
  5202. !*** C:/Repos/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  5203. \*******************************************************************/
  5204. /*! no static exports found */
  5205. /***/ (function(module, exports) {
  5206. /*
  5207. MIT License http://www.opensource.org/licenses/mit-license.php
  5208. Author Tobias Koppers @sokra
  5209. */
  5210. // css base code, injected by the css-loader
  5211. module.exports = function(useSourceMap) {
  5212. var list = [];
  5213. // return the list of modules as css string
  5214. list.toString = function toString() {
  5215. return this.map(function (item) {
  5216. var content = cssWithMappingToString(item, useSourceMap);
  5217. if(item[2]) {
  5218. return "@media " + item[2] + "{" + content + "}";
  5219. } else {
  5220. return content;
  5221. }
  5222. }).join("");
  5223. };
  5224. // import a list of modules into the list
  5225. list.i = function(modules, mediaQuery) {
  5226. if(typeof modules === "string")
  5227. modules = [[null, modules, ""]];
  5228. var alreadyImportedModules = {};
  5229. for(var i = 0; i < this.length; i++) {
  5230. var id = this[i][0];
  5231. if(typeof id === "number")
  5232. alreadyImportedModules[id] = true;
  5233. }
  5234. for(i = 0; i < modules.length; i++) {
  5235. var item = modules[i];
  5236. // skip already imported module
  5237. // this implementation is not 100% perfect for weird media query combinations
  5238. // when a module is imported multiple times with different media queries.
  5239. // I hope this will never occur (Hey this way we have smaller bundles)
  5240. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  5241. if(mediaQuery && !item[2]) {
  5242. item[2] = mediaQuery;
  5243. } else if(mediaQuery) {
  5244. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  5245. }
  5246. list.push(item);
  5247. }
  5248. }
  5249. };
  5250. return list;
  5251. };
  5252. function cssWithMappingToString(item, useSourceMap) {
  5253. var content = item[1] || '';
  5254. var cssMapping = item[3];
  5255. if (!cssMapping) {
  5256. return content;
  5257. }
  5258. if (useSourceMap && typeof btoa === 'function') {
  5259. var sourceMapping = toComment(cssMapping);
  5260. var sourceURLs = cssMapping.sources.map(function (source) {
  5261. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  5262. });
  5263. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  5264. }
  5265. return [content].join('\n');
  5266. }
  5267. // Adapted from convert-source-map (MIT)
  5268. function toComment(sourceMap) {
  5269. // eslint-disable-next-line no-undef
  5270. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  5271. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  5272. return '/*# ' + data + ' */';
  5273. }
  5274. /***/ }),
  5275. /***/ "../../node_modules/dagre/index.js":
  5276. /*!*******************************************************!*\
  5277. !*** C:/Repos/Babylon.js/node_modules/dagre/index.js ***!
  5278. \*******************************************************/
  5279. /*! no static exports found */
  5280. /***/ (function(module, exports, __webpack_require__) {
  5281. /*
  5282. Copyright (c) 2012-2014 Chris Pettitt
  5283. Permission is hereby granted, free of charge, to any person obtaining a copy
  5284. of this software and associated documentation files (the "Software"), to deal
  5285. in the Software without restriction, including without limitation the rights
  5286. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  5287. copies of the Software, and to permit persons to whom the Software is
  5288. furnished to do so, subject to the following conditions:
  5289. The above copyright notice and this permission notice shall be included in
  5290. all copies or substantial portions of the Software.
  5291. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  5292. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  5293. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  5294. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  5295. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  5296. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  5297. THE SOFTWARE.
  5298. */
  5299. module.exports = {
  5300. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  5301. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  5302. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  5303. util: {
  5304. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  5305. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  5306. },
  5307. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  5308. };
  5309. /***/ }),
  5310. /***/ "../../node_modules/dagre/lib/acyclic.js":
  5311. /*!*************************************************************!*\
  5312. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  5313. \*************************************************************/
  5314. /*! no static exports found */
  5315. /***/ (function(module, exports, __webpack_require__) {
  5316. "use strict";
  5317. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5318. greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  5319. module.exports = {
  5320. run: run,
  5321. undo: undo
  5322. };
  5323. function run(g) {
  5324. var fas = (g.graph().acyclicer === "greedy"
  5325. ? greedyFAS(g, weightFn(g))
  5326. : dfsFAS(g));
  5327. _.forEach(fas, function(e) {
  5328. var label = g.edge(e);
  5329. g.removeEdge(e);
  5330. label.forwardName = e.name;
  5331. label.reversed = true;
  5332. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  5333. });
  5334. function weightFn(g) {
  5335. return function(e) {
  5336. return g.edge(e).weight;
  5337. };
  5338. }
  5339. }
  5340. function dfsFAS(g) {
  5341. var fas = [],
  5342. stack = {},
  5343. visited = {};
  5344. function dfs(v) {
  5345. if (_.has(visited, v)) {
  5346. return;
  5347. }
  5348. visited[v] = true;
  5349. stack[v] = true;
  5350. _.forEach(g.outEdges(v), function(e) {
  5351. if (_.has(stack, e.w)) {
  5352. fas.push(e);
  5353. } else {
  5354. dfs(e.w);
  5355. }
  5356. });
  5357. delete stack[v];
  5358. }
  5359. _.forEach(g.nodes(), dfs);
  5360. return fas;
  5361. }
  5362. function undo(g) {
  5363. _.forEach(g.edges(), function(e) {
  5364. var label = g.edge(e);
  5365. if (label.reversed) {
  5366. g.removeEdge(e);
  5367. var forwardName = label.forwardName;
  5368. delete label.reversed;
  5369. delete label.forwardName;
  5370. g.setEdge(e.w, e.v, label, forwardName);
  5371. }
  5372. });
  5373. }
  5374. /***/ }),
  5375. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  5376. /*!*************************************************************************!*\
  5377. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  5378. \*************************************************************************/
  5379. /*! no static exports found */
  5380. /***/ (function(module, exports, __webpack_require__) {
  5381. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5382. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  5383. module.exports = addBorderSegments;
  5384. function addBorderSegments(g) {
  5385. function dfs(v) {
  5386. var children = g.children(v),
  5387. node = g.node(v);
  5388. if (children.length) {
  5389. _.forEach(children, dfs);
  5390. }
  5391. if (_.has(node, "minRank")) {
  5392. node.borderLeft = [];
  5393. node.borderRight = [];
  5394. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  5395. rank < maxRank;
  5396. ++rank) {
  5397. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  5398. addBorderNode(g, "borderRight", "_br", v, node, rank);
  5399. }
  5400. }
  5401. }
  5402. _.forEach(g.children(), dfs);
  5403. }
  5404. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  5405. var label = { width: 0, height: 0, rank: rank, borderType: prop },
  5406. prev = sgNode[prop][rank - 1],
  5407. curr = util.addDummyNode(g, "border", label, prefix);
  5408. sgNode[prop][rank] = curr;
  5409. g.setParent(curr, sg);
  5410. if (prev) {
  5411. g.setEdge(prev, curr, { weight: 1 });
  5412. }
  5413. }
  5414. /***/ }),
  5415. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  5416. /*!***********************************************************************!*\
  5417. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  5418. \***********************************************************************/
  5419. /*! no static exports found */
  5420. /***/ (function(module, exports, __webpack_require__) {
  5421. "use strict";
  5422. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  5423. module.exports = {
  5424. adjust: adjust,
  5425. undo: undo
  5426. };
  5427. function adjust(g) {
  5428. var rankDir = g.graph().rankdir.toLowerCase();
  5429. if (rankDir === "lr" || rankDir === "rl") {
  5430. swapWidthHeight(g);
  5431. }
  5432. }
  5433. function undo(g) {
  5434. var rankDir = g.graph().rankdir.toLowerCase();
  5435. if (rankDir === "bt" || rankDir === "rl") {
  5436. reverseY(g);
  5437. }
  5438. if (rankDir === "lr" || rankDir === "rl") {
  5439. swapXY(g);
  5440. swapWidthHeight(g);
  5441. }
  5442. }
  5443. function swapWidthHeight(g) {
  5444. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  5445. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  5446. }
  5447. function swapWidthHeightOne(attrs) {
  5448. var w = attrs.width;
  5449. attrs.width = attrs.height;
  5450. attrs.height = w;
  5451. }
  5452. function reverseY(g) {
  5453. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  5454. _.forEach(g.edges(), function(e) {
  5455. var edge = g.edge(e);
  5456. _.forEach(edge.points, reverseYOne);
  5457. if (_.has(edge, "y")) {
  5458. reverseYOne(edge);
  5459. }
  5460. });
  5461. }
  5462. function reverseYOne(attrs) {
  5463. attrs.y = -attrs.y;
  5464. }
  5465. function swapXY(g) {
  5466. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  5467. _.forEach(g.edges(), function(e) {
  5468. var edge = g.edge(e);
  5469. _.forEach(edge.points, swapXYOne);
  5470. if (_.has(edge, "x")) {
  5471. swapXYOne(edge);
  5472. }
  5473. });
  5474. }
  5475. function swapXYOne(attrs) {
  5476. var x = attrs.x;
  5477. attrs.x = attrs.y;
  5478. attrs.y = x;
  5479. }
  5480. /***/ }),
  5481. /***/ "../../node_modules/dagre/lib/data/list.js":
  5482. /*!***************************************************************!*\
  5483. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  5484. \***************************************************************/
  5485. /*! no static exports found */
  5486. /***/ (function(module, exports) {
  5487. /*
  5488. * Simple doubly linked list implementation derived from Cormen, et al.,
  5489. * "Introduction to Algorithms".
  5490. */
  5491. module.exports = List;
  5492. function List() {
  5493. var sentinel = {};
  5494. sentinel._next = sentinel._prev = sentinel;
  5495. this._sentinel = sentinel;
  5496. }
  5497. List.prototype.dequeue = function() {
  5498. var sentinel = this._sentinel,
  5499. entry = sentinel._prev;
  5500. if (entry !== sentinel) {
  5501. unlink(entry);
  5502. return entry;
  5503. }
  5504. };
  5505. List.prototype.enqueue = function(entry) {
  5506. var sentinel = this._sentinel;
  5507. if (entry._prev && entry._next) {
  5508. unlink(entry);
  5509. }
  5510. entry._next = sentinel._next;
  5511. sentinel._next._prev = entry;
  5512. sentinel._next = entry;
  5513. entry._prev = sentinel;
  5514. };
  5515. List.prototype.toString = function() {
  5516. var strs = [],
  5517. sentinel = this._sentinel,
  5518. curr = sentinel._prev;
  5519. while (curr !== sentinel) {
  5520. strs.push(JSON.stringify(curr, filterOutLinks));
  5521. curr = curr._prev;
  5522. }
  5523. return "[" + strs.join(", ") + "]";
  5524. };
  5525. function unlink(entry) {
  5526. entry._prev._next = entry._next;
  5527. entry._next._prev = entry._prev;
  5528. delete entry._next;
  5529. delete entry._prev;
  5530. }
  5531. function filterOutLinks(k, v) {
  5532. if (k !== "_next" && k !== "_prev") {
  5533. return v;
  5534. }
  5535. }
  5536. /***/ }),
  5537. /***/ "../../node_modules/dagre/lib/debug.js":
  5538. /*!***********************************************************!*\
  5539. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/debug.js ***!
  5540. \***********************************************************/
  5541. /*! no static exports found */
  5542. /***/ (function(module, exports, __webpack_require__) {
  5543. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5544. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5545. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5546. module.exports = {
  5547. debugOrdering: debugOrdering
  5548. };
  5549. /* istanbul ignore next */
  5550. function debugOrdering(g) {
  5551. var layerMatrix = util.buildLayerMatrix(g);
  5552. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  5553. _.forEach(g.nodes(), function(v) {
  5554. h.setNode(v, { label: v });
  5555. h.setParent(v, "layer" + g.node(v).rank);
  5556. });
  5557. _.forEach(g.edges(), function(e) {
  5558. h.setEdge(e.v, e.w, {}, e.name);
  5559. });
  5560. _.forEach(layerMatrix, function(layer, i) {
  5561. var layerV = "layer" + i;
  5562. h.setNode(layerV, { rank: "same" });
  5563. _.reduce(layer, function(u, v) {
  5564. h.setEdge(u, v, { style: "invis" });
  5565. return v;
  5566. });
  5567. });
  5568. return h;
  5569. }
  5570. /***/ }),
  5571. /***/ "../../node_modules/dagre/lib/graphlib.js":
  5572. /*!**************************************************************!*\
  5573. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  5574. \**************************************************************/
  5575. /*! no static exports found */
  5576. /***/ (function(module, exports, __webpack_require__) {
  5577. /* global window */
  5578. var graphlib;
  5579. if (true) {
  5580. try {
  5581. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  5582. } catch (e) {}
  5583. }
  5584. if (!graphlib) {
  5585. graphlib = window.graphlib;
  5586. }
  5587. module.exports = graphlib;
  5588. /***/ }),
  5589. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  5590. /*!****************************************************************!*\
  5591. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  5592. \****************************************************************/
  5593. /*! no static exports found */
  5594. /***/ (function(module, exports, __webpack_require__) {
  5595. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5596. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  5597. List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  5598. /*
  5599. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  5600. * arc set is a set of edges that can be removed to make a graph acyclic.
  5601. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  5602. * effective heuristic for the feedback arc set problem." This implementation
  5603. * adjusts that from the paper to allow for weighted edges.
  5604. */
  5605. module.exports = greedyFAS;
  5606. var DEFAULT_WEIGHT_FN = _.constant(1);
  5607. function greedyFAS(g, weightFn) {
  5608. if (g.nodeCount() <= 1) {
  5609. return [];
  5610. }
  5611. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  5612. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  5613. // Expand multi-edges
  5614. return _.flatten(_.map(results, function(e) {
  5615. return g.outEdges(e.v, e.w);
  5616. }), true);
  5617. }
  5618. function doGreedyFAS(g, buckets, zeroIdx) {
  5619. var results = [],
  5620. sources = buckets[buckets.length - 1],
  5621. sinks = buckets[0];
  5622. var entry;
  5623. while (g.nodeCount()) {
  5624. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5625. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5626. if (g.nodeCount()) {
  5627. for (var i = buckets.length - 2; i > 0; --i) {
  5628. entry = buckets[i].dequeue();
  5629. if (entry) {
  5630. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  5631. break;
  5632. }
  5633. }
  5634. }
  5635. }
  5636. return results;
  5637. }
  5638. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  5639. var results = collectPredecessors ? [] : undefined;
  5640. _.forEach(g.inEdges(entry.v), function(edge) {
  5641. var weight = g.edge(edge),
  5642. uEntry = g.node(edge.v);
  5643. if (collectPredecessors) {
  5644. results.push({ v: edge.v, w: edge.w });
  5645. }
  5646. uEntry.out -= weight;
  5647. assignBucket(buckets, zeroIdx, uEntry);
  5648. });
  5649. _.forEach(g.outEdges(entry.v), function(edge) {
  5650. var weight = g.edge(edge),
  5651. w = edge.w,
  5652. wEntry = g.node(w);
  5653. wEntry["in"] -= weight;
  5654. assignBucket(buckets, zeroIdx, wEntry);
  5655. });
  5656. g.removeNode(entry.v);
  5657. return results;
  5658. }
  5659. function buildState(g, weightFn) {
  5660. var fasGraph = new Graph(),
  5661. maxIn = 0,
  5662. maxOut = 0;
  5663. _.forEach(g.nodes(), function(v) {
  5664. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  5665. });
  5666. // Aggregate weights on nodes, but also sum the weights across multi-edges
  5667. // into a single edge for the fasGraph.
  5668. _.forEach(g.edges(), function(e) {
  5669. var prevWeight = fasGraph.edge(e.v, e.w) || 0,
  5670. weight = weightFn(e),
  5671. edgeWeight = prevWeight + weight;
  5672. fasGraph.setEdge(e.v, e.w, edgeWeight);
  5673. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  5674. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  5675. });
  5676. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  5677. var zeroIdx = maxIn + 1;
  5678. _.forEach(fasGraph.nodes(), function(v) {
  5679. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  5680. });
  5681. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  5682. }
  5683. function assignBucket(buckets, zeroIdx, entry) {
  5684. if (!entry.out) {
  5685. buckets[0].enqueue(entry);
  5686. } else if (!entry["in"]) {
  5687. buckets[buckets.length - 1].enqueue(entry);
  5688. } else {
  5689. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  5690. }
  5691. }
  5692. /***/ }),
  5693. /***/ "../../node_modules/dagre/lib/layout.js":
  5694. /*!************************************************************!*\
  5695. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/layout.js ***!
  5696. \************************************************************/
  5697. /*! no static exports found */
  5698. /***/ (function(module, exports, __webpack_require__) {
  5699. "use strict";
  5700. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5701. acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js"),
  5702. normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js"),
  5703. rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js"),
  5704. normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks,
  5705. parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js"),
  5706. removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks,
  5707. nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js"),
  5708. addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js"),
  5709. coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js"),
  5710. order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js"),
  5711. position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js"),
  5712. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5713. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5714. module.exports = layout;
  5715. function layout(g, opts) {
  5716. var time = opts && opts.debugTiming ? util.time : util.notime;
  5717. time("layout", function() {
  5718. var layoutGraph = time(" buildLayoutGraph",
  5719. function() { return buildLayoutGraph(g); });
  5720. time(" runLayout", function() { runLayout(layoutGraph, time); });
  5721. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  5722. });
  5723. }
  5724. function runLayout(g, time) {
  5725. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  5726. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  5727. time(" acyclic", function() { acyclic.run(g); });
  5728. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  5729. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  5730. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  5731. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  5732. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  5733. time(" normalizeRanks", function() { normalizeRanks(g); });
  5734. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  5735. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  5736. time(" normalize.run", function() { normalize.run(g); });
  5737. time(" parentDummyChains", function() { parentDummyChains(g); });
  5738. time(" addBorderSegments", function() { addBorderSegments(g); });
  5739. time(" order", function() { order(g); });
  5740. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  5741. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  5742. time(" position", function() { position(g); });
  5743. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  5744. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  5745. time(" normalize.undo", function() { normalize.undo(g); });
  5746. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  5747. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  5748. time(" translateGraph", function() { translateGraph(g); });
  5749. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  5750. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  5751. time(" acyclic.undo", function() { acyclic.undo(g); });
  5752. }
  5753. /*
  5754. * Copies final layout information from the layout graph back to the input
  5755. * graph. This process only copies whitelisted attributes from the layout graph
  5756. * to the input graph, so it serves as a good place to determine what
  5757. * attributes can influence layout.
  5758. */
  5759. function updateInputGraph(inputGraph, layoutGraph) {
  5760. _.forEach(inputGraph.nodes(), function(v) {
  5761. var inputLabel = inputGraph.node(v),
  5762. layoutLabel = layoutGraph.node(v);
  5763. if (inputLabel) {
  5764. inputLabel.x = layoutLabel.x;
  5765. inputLabel.y = layoutLabel.y;
  5766. if (layoutGraph.children(v).length) {
  5767. inputLabel.width = layoutLabel.width;
  5768. inputLabel.height = layoutLabel.height;
  5769. }
  5770. }
  5771. });
  5772. _.forEach(inputGraph.edges(), function(e) {
  5773. var inputLabel = inputGraph.edge(e),
  5774. layoutLabel = layoutGraph.edge(e);
  5775. inputLabel.points = layoutLabel.points;
  5776. if (_.has(layoutLabel, "x")) {
  5777. inputLabel.x = layoutLabel.x;
  5778. inputLabel.y = layoutLabel.y;
  5779. }
  5780. });
  5781. inputGraph.graph().width = layoutGraph.graph().width;
  5782. inputGraph.graph().height = layoutGraph.graph().height;
  5783. }
  5784. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"],
  5785. graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" },
  5786. graphAttrs = ["acyclicer", "ranker", "rankdir", "align"],
  5787. nodeNumAttrs = ["width", "height"],
  5788. nodeDefaults = { width: 0, height: 0 },
  5789. edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"],
  5790. edgeDefaults = {
  5791. minlen: 1, weight: 1, width: 0, height: 0,
  5792. labeloffset: 10, labelpos: "r"
  5793. },
  5794. edgeAttrs = ["labelpos"];
  5795. /*
  5796. * Constructs a new graph from the input graph, which can be used for layout.
  5797. * This process copies only whitelisted attributes from the input graph to the
  5798. * layout graph. Thus this function serves as a good place to determine what
  5799. * attributes can influence layout.
  5800. */
  5801. function buildLayoutGraph(inputGraph) {
  5802. var g = new Graph({ multigraph: true, compound: true }),
  5803. graph = canonicalize(inputGraph.graph());
  5804. g.setGraph(_.merge({},
  5805. graphDefaults,
  5806. selectNumberAttrs(graph, graphNumAttrs),
  5807. _.pick(graph, graphAttrs)));
  5808. _.forEach(inputGraph.nodes(), function(v) {
  5809. var node = canonicalize(inputGraph.node(v));
  5810. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  5811. g.setParent(v, inputGraph.parent(v));
  5812. });
  5813. _.forEach(inputGraph.edges(), function(e) {
  5814. var edge = canonicalize(inputGraph.edge(e));
  5815. g.setEdge(e, _.merge({},
  5816. edgeDefaults,
  5817. selectNumberAttrs(edge, edgeNumAttrs),
  5818. _.pick(edge, edgeAttrs)));
  5819. });
  5820. return g;
  5821. }
  5822. /*
  5823. * This idea comes from the Gansner paper: to account for edge labels in our
  5824. * layout we split each rank in half by doubling minlen and halving ranksep.
  5825. * Then we can place labels at these mid-points between nodes.
  5826. *
  5827. * We also add some minimal padding to the width to push the label for the edge
  5828. * away from the edge itself a bit.
  5829. */
  5830. function makeSpaceForEdgeLabels(g) {
  5831. var graph = g.graph();
  5832. graph.ranksep /= 2;
  5833. _.forEach(g.edges(), function(e) {
  5834. var edge = g.edge(e);
  5835. edge.minlen *= 2;
  5836. if (edge.labelpos.toLowerCase() !== "c") {
  5837. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  5838. edge.width += edge.labeloffset;
  5839. } else {
  5840. edge.height += edge.labeloffset;
  5841. }
  5842. }
  5843. });
  5844. }
  5845. /*
  5846. * Creates temporary dummy nodes that capture the rank in which each edge's
  5847. * label is going to, if it has one of non-zero width and height. We do this
  5848. * so that we can safely remove empty ranks while preserving balance for the
  5849. * label's position.
  5850. */
  5851. function injectEdgeLabelProxies(g) {
  5852. _.forEach(g.edges(), function(e) {
  5853. var edge = g.edge(e);
  5854. if (edge.width && edge.height) {
  5855. var v = g.node(e.v),
  5856. w = g.node(e.w),
  5857. label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  5858. util.addDummyNode(g, "edge-proxy", label, "_ep");
  5859. }
  5860. });
  5861. }
  5862. function assignRankMinMax(g) {
  5863. var maxRank = 0;
  5864. _.forEach(g.nodes(), function(v) {
  5865. var node = g.node(v);
  5866. if (node.borderTop) {
  5867. node.minRank = g.node(node.borderTop).rank;
  5868. node.maxRank = g.node(node.borderBottom).rank;
  5869. maxRank = _.max(maxRank, node.maxRank);
  5870. }
  5871. });
  5872. g.graph().maxRank = maxRank;
  5873. }
  5874. function removeEdgeLabelProxies(g) {
  5875. _.forEach(g.nodes(), function(v) {
  5876. var node = g.node(v);
  5877. if (node.dummy === "edge-proxy") {
  5878. g.edge(node.e).labelRank = node.rank;
  5879. g.removeNode(v);
  5880. }
  5881. });
  5882. }
  5883. function translateGraph(g) {
  5884. var minX = Number.POSITIVE_INFINITY,
  5885. maxX = 0,
  5886. minY = Number.POSITIVE_INFINITY,
  5887. maxY = 0,
  5888. graphLabel = g.graph(),
  5889. marginX = graphLabel.marginx || 0,
  5890. marginY = graphLabel.marginy || 0;
  5891. function getExtremes(attrs) {
  5892. var x = attrs.x,
  5893. y = attrs.y,
  5894. w = attrs.width,
  5895. h = attrs.height;
  5896. minX = Math.min(minX, x - w / 2);
  5897. maxX = Math.max(maxX, x + w / 2);
  5898. minY = Math.min(minY, y - h / 2);
  5899. maxY = Math.max(maxY, y + h / 2);
  5900. }
  5901. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  5902. _.forEach(g.edges(), function(e) {
  5903. var edge = g.edge(e);
  5904. if (_.has(edge, "x")) {
  5905. getExtremes(edge);
  5906. }
  5907. });
  5908. minX -= marginX;
  5909. minY -= marginY;
  5910. _.forEach(g.nodes(), function(v) {
  5911. var node = g.node(v);
  5912. node.x -= minX;
  5913. node.y -= minY;
  5914. });
  5915. _.forEach(g.edges(), function(e) {
  5916. var edge = g.edge(e);
  5917. _.forEach(edge.points, function(p) {
  5918. p.x -= minX;
  5919. p.y -= minY;
  5920. });
  5921. if (_.has(edge, "x")) { edge.x -= minX; }
  5922. if (_.has(edge, "y")) { edge.y -= minY; }
  5923. });
  5924. graphLabel.width = maxX - minX + marginX;
  5925. graphLabel.height = maxY - minY + marginY;
  5926. }
  5927. function assignNodeIntersects(g) {
  5928. _.forEach(g.edges(), function(e) {
  5929. var edge = g.edge(e),
  5930. nodeV = g.node(e.v),
  5931. nodeW = g.node(e.w),
  5932. p1, p2;
  5933. if (!edge.points) {
  5934. edge.points = [];
  5935. p1 = nodeW;
  5936. p2 = nodeV;
  5937. } else {
  5938. p1 = edge.points[0];
  5939. p2 = edge.points[edge.points.length - 1];
  5940. }
  5941. edge.points.unshift(util.intersectRect(nodeV, p1));
  5942. edge.points.push(util.intersectRect(nodeW, p2));
  5943. });
  5944. }
  5945. function fixupEdgeLabelCoords(g) {
  5946. _.forEach(g.edges(), function(e) {
  5947. var edge = g.edge(e);
  5948. if (_.has(edge, "x")) {
  5949. if (edge.labelpos === "l" || edge.labelpos === "r") {
  5950. edge.width -= edge.labeloffset;
  5951. }
  5952. switch (edge.labelpos) {
  5953. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  5954. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  5955. }
  5956. }
  5957. });
  5958. }
  5959. function reversePointsForReversedEdges(g) {
  5960. _.forEach(g.edges(), function(e) {
  5961. var edge = g.edge(e);
  5962. if (edge.reversed) {
  5963. edge.points.reverse();
  5964. }
  5965. });
  5966. }
  5967. function removeBorderNodes(g) {
  5968. _.forEach(g.nodes(), function(v) {
  5969. if (g.children(v).length) {
  5970. var node = g.node(v),
  5971. t = g.node(node.borderTop),
  5972. b = g.node(node.borderBottom),
  5973. l = g.node(_.last(node.borderLeft)),
  5974. r = g.node(_.last(node.borderRight));
  5975. node.width = Math.abs(r.x - l.x);
  5976. node.height = Math.abs(b.y - t.y);
  5977. node.x = l.x + node.width / 2;
  5978. node.y = t.y + node.height / 2;
  5979. }
  5980. });
  5981. _.forEach(g.nodes(), function(v) {
  5982. if (g.node(v).dummy === "border") {
  5983. g.removeNode(v);
  5984. }
  5985. });
  5986. }
  5987. function removeSelfEdges(g) {
  5988. _.forEach(g.edges(), function(e) {
  5989. if (e.v === e.w) {
  5990. var node = g.node(e.v);
  5991. if (!node.selfEdges) {
  5992. node.selfEdges = [];
  5993. }
  5994. node.selfEdges.push({ e: e, label: g.edge(e) });
  5995. g.removeEdge(e);
  5996. }
  5997. });
  5998. }
  5999. function insertSelfEdges(g) {
  6000. var layers = util.buildLayerMatrix(g);
  6001. _.forEach(layers, function(layer) {
  6002. var orderShift = 0;
  6003. _.forEach(layer, function(v, i) {
  6004. var node = g.node(v);
  6005. node.order = i + orderShift;
  6006. _.forEach(node.selfEdges, function(selfEdge) {
  6007. util.addDummyNode(g, "selfedge", {
  6008. width: selfEdge.label.width,
  6009. height: selfEdge.label.height,
  6010. rank: node.rank,
  6011. order: i + (++orderShift),
  6012. e: selfEdge.e,
  6013. label: selfEdge.label
  6014. }, "_se");
  6015. });
  6016. delete node.selfEdges;
  6017. });
  6018. });
  6019. }
  6020. function positionSelfEdges(g) {
  6021. _.forEach(g.nodes(), function(v) {
  6022. var node = g.node(v);
  6023. if (node.dummy === "selfedge") {
  6024. var selfNode = g.node(node.e.v),
  6025. x = selfNode.x + selfNode.width / 2,
  6026. y = selfNode.y,
  6027. dx = node.x - x,
  6028. dy = selfNode.height / 2;
  6029. g.setEdge(node.e, node.label);
  6030. g.removeNode(v);
  6031. node.label.points = [
  6032. { x: x + 2 * dx / 3, y: y - dy },
  6033. { x: x + 5 * dx / 6, y: y - dy },
  6034. { x: x + dx , y: y },
  6035. { x: x + 5 * dx / 6, y: y + dy },
  6036. { x: x + 2 * dx / 3, y: y + dy }
  6037. ];
  6038. node.label.x = node.x;
  6039. node.label.y = node.y;
  6040. }
  6041. });
  6042. }
  6043. function selectNumberAttrs(obj, attrs) {
  6044. return _.mapValues(_.pick(obj, attrs), Number);
  6045. }
  6046. function canonicalize(attrs) {
  6047. var newAttrs = {};
  6048. _.forEach(attrs, function(v, k) {
  6049. newAttrs[k.toLowerCase()] = v;
  6050. });
  6051. return newAttrs;
  6052. }
  6053. /***/ }),
  6054. /***/ "../../node_modules/dagre/lib/lodash.js":
  6055. /*!************************************************************!*\
  6056. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  6057. \************************************************************/
  6058. /*! no static exports found */
  6059. /***/ (function(module, exports, __webpack_require__) {
  6060. /* global window */
  6061. var lodash;
  6062. if (true) {
  6063. try {
  6064. lodash = {
  6065. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  6066. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  6067. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  6068. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  6069. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  6070. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  6071. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  6072. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  6073. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  6074. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  6075. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  6076. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  6077. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  6078. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  6079. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  6080. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  6081. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  6082. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  6083. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  6084. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  6085. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  6086. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  6087. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  6088. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  6089. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  6090. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  6091. };
  6092. } catch (e) {}
  6093. }
  6094. if (!lodash) {
  6095. lodash = window._;
  6096. }
  6097. module.exports = lodash;
  6098. /***/ }),
  6099. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  6100. /*!*******************************************************************!*\
  6101. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  6102. \*******************************************************************/
  6103. /*! no static exports found */
  6104. /***/ (function(module, exports, __webpack_require__) {
  6105. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6106. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6107. module.exports = {
  6108. run: run,
  6109. cleanup: cleanup
  6110. };
  6111. /*
  6112. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  6113. * adds appropriate edges to ensure that all cluster nodes are placed between
  6114. * these boundries, and ensures that the graph is connected.
  6115. *
  6116. * In addition we ensure, through the use of the minlen property, that nodes
  6117. * and subgraph border nodes to not end up on the same rank.
  6118. *
  6119. * Preconditions:
  6120. *
  6121. * 1. Input graph is a DAG
  6122. * 2. Nodes in the input graph has a minlen attribute
  6123. *
  6124. * Postconditions:
  6125. *
  6126. * 1. Input graph is connected.
  6127. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  6128. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  6129. * get placed on the same rank as subgraph border nodes.
  6130. *
  6131. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  6132. * Graphs."
  6133. */
  6134. function run(g) {
  6135. var root = util.addDummyNode(g, "root", {}, "_root");
  6136. var depths = treeDepths(g);
  6137. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  6138. var nodeSep = 2 * height + 1;
  6139. g.graph().nestingRoot = root;
  6140. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  6141. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  6142. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  6143. var weight = sumWeights(g) + 1;
  6144. // Create border nodes and link them up
  6145. _.forEach(g.children(), function(child) {
  6146. dfs(g, root, nodeSep, weight, height, depths, child);
  6147. });
  6148. // Save the multiplier for node layers for later removal of empty border
  6149. // layers.
  6150. g.graph().nodeRankFactor = nodeSep;
  6151. }
  6152. function dfs(g, root, nodeSep, weight, height, depths, v) {
  6153. var children = g.children(v);
  6154. if (!children.length) {
  6155. if (v !== root) {
  6156. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  6157. }
  6158. return;
  6159. }
  6160. var top = util.addBorderNode(g, "_bt"),
  6161. bottom = util.addBorderNode(g, "_bb"),
  6162. label = g.node(v);
  6163. g.setParent(top, v);
  6164. label.borderTop = top;
  6165. g.setParent(bottom, v);
  6166. label.borderBottom = bottom;
  6167. _.forEach(children, function(child) {
  6168. dfs(g, root, nodeSep, weight, height, depths, child);
  6169. var childNode = g.node(child),
  6170. childTop = childNode.borderTop ? childNode.borderTop : child,
  6171. childBottom = childNode.borderBottom ? childNode.borderBottom : child,
  6172. thisWeight = childNode.borderTop ? weight : 2 * weight,
  6173. minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  6174. g.setEdge(top, childTop, {
  6175. weight: thisWeight,
  6176. minlen: minlen,
  6177. nestingEdge: true
  6178. });
  6179. g.setEdge(childBottom, bottom, {
  6180. weight: thisWeight,
  6181. minlen: minlen,
  6182. nestingEdge: true
  6183. });
  6184. });
  6185. if (!g.parent(v)) {
  6186. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  6187. }
  6188. }
  6189. function treeDepths(g) {
  6190. var depths = {};
  6191. function dfs(v, depth) {
  6192. var children = g.children(v);
  6193. if (children && children.length) {
  6194. _.forEach(children, function(child) {
  6195. dfs(child, depth + 1);
  6196. });
  6197. }
  6198. depths[v] = depth;
  6199. }
  6200. _.forEach(g.children(), function(v) { dfs(v, 1); });
  6201. return depths;
  6202. }
  6203. function sumWeights(g) {
  6204. return _.reduce(g.edges(), function(acc, e) {
  6205. return acc + g.edge(e).weight;
  6206. }, 0);
  6207. }
  6208. function cleanup(g) {
  6209. var graphLabel = g.graph();
  6210. g.removeNode(graphLabel.nestingRoot);
  6211. delete graphLabel.nestingRoot;
  6212. _.forEach(g.edges(), function(e) {
  6213. var edge = g.edge(e);
  6214. if (edge.nestingEdge) {
  6215. g.removeEdge(e);
  6216. }
  6217. });
  6218. }
  6219. /***/ }),
  6220. /***/ "../../node_modules/dagre/lib/normalize.js":
  6221. /*!***************************************************************!*\
  6222. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  6223. \***************************************************************/
  6224. /*! no static exports found */
  6225. /***/ (function(module, exports, __webpack_require__) {
  6226. "use strict";
  6227. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6228. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6229. module.exports = {
  6230. run: run,
  6231. undo: undo
  6232. };
  6233. /*
  6234. * Breaks any long edges in the graph into short segments that span 1 layer
  6235. * each. This operation is undoable with the denormalize function.
  6236. *
  6237. * Pre-conditions:
  6238. *
  6239. * 1. The input graph is a DAG.
  6240. * 2. Each node in the graph has a "rank" property.
  6241. *
  6242. * Post-condition:
  6243. *
  6244. * 1. All edges in the graph have a length of 1.
  6245. * 2. Dummy nodes are added where edges have been split into segments.
  6246. * 3. The graph is augmented with a "dummyChains" attribute which contains
  6247. * the first dummy in each chain of dummy nodes produced.
  6248. */
  6249. function run(g) {
  6250. g.graph().dummyChains = [];
  6251. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  6252. }
  6253. function normalizeEdge(g, e) {
  6254. var v = e.v,
  6255. vRank = g.node(v).rank,
  6256. w = e.w,
  6257. wRank = g.node(w).rank,
  6258. name = e.name,
  6259. edgeLabel = g.edge(e),
  6260. labelRank = edgeLabel.labelRank;
  6261. if (wRank === vRank + 1) return;
  6262. g.removeEdge(e);
  6263. var dummy, attrs, i;
  6264. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  6265. edgeLabel.points = [];
  6266. attrs = {
  6267. width: 0, height: 0,
  6268. edgeLabel: edgeLabel, edgeObj: e,
  6269. rank: vRank
  6270. };
  6271. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  6272. if (vRank === labelRank) {
  6273. attrs.width = edgeLabel.width;
  6274. attrs.height = edgeLabel.height;
  6275. attrs.dummy = "edge-label";
  6276. attrs.labelpos = edgeLabel.labelpos;
  6277. }
  6278. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  6279. if (i === 0) {
  6280. g.graph().dummyChains.push(dummy);
  6281. }
  6282. v = dummy;
  6283. }
  6284. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  6285. }
  6286. function undo(g) {
  6287. _.forEach(g.graph().dummyChains, function(v) {
  6288. var node = g.node(v),
  6289. origLabel = node.edgeLabel,
  6290. w;
  6291. g.setEdge(node.edgeObj, origLabel);
  6292. while (node.dummy) {
  6293. w = g.successors(v)[0];
  6294. g.removeNode(v);
  6295. origLabel.points.push({ x: node.x, y: node.y });
  6296. if (node.dummy === "edge-label") {
  6297. origLabel.x = node.x;
  6298. origLabel.y = node.y;
  6299. origLabel.width = node.width;
  6300. origLabel.height = node.height;
  6301. }
  6302. v = w;
  6303. node = g.node(v);
  6304. }
  6305. });
  6306. }
  6307. /***/ }),
  6308. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  6309. /*!************************************************************************************!*\
  6310. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  6311. \************************************************************************************/
  6312. /*! no static exports found */
  6313. /***/ (function(module, exports, __webpack_require__) {
  6314. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6315. module.exports = addSubgraphConstraints;
  6316. function addSubgraphConstraints(g, cg, vs) {
  6317. var prev = {},
  6318. rootPrev;
  6319. _.forEach(vs, function(v) {
  6320. var child = g.parent(v),
  6321. parent,
  6322. prevChild;
  6323. while (child) {
  6324. parent = g.parent(child);
  6325. if (parent) {
  6326. prevChild = prev[parent];
  6327. prev[parent] = child;
  6328. } else {
  6329. prevChild = rootPrev;
  6330. rootPrev = child;
  6331. }
  6332. if (prevChild && prevChild !== child) {
  6333. cg.setEdge(prevChild, child);
  6334. return;
  6335. }
  6336. child = parent;
  6337. }
  6338. });
  6339. /*
  6340. function dfs(v) {
  6341. var children = v ? g.children(v) : g.children();
  6342. if (children.length) {
  6343. var min = Number.POSITIVE_INFINITY,
  6344. subgraphs = [];
  6345. _.each(children, function(child) {
  6346. var childMin = dfs(child);
  6347. if (g.children(child).length) {
  6348. subgraphs.push({ v: child, order: childMin });
  6349. }
  6350. min = Math.min(min, childMin);
  6351. });
  6352. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  6353. cg.setEdge(prev.v, curr.v);
  6354. return curr;
  6355. });
  6356. return min;
  6357. }
  6358. return g.node(v).order;
  6359. }
  6360. dfs(undefined);
  6361. */
  6362. }
  6363. /***/ }),
  6364. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  6365. /*!**********************************************************************!*\
  6366. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  6367. \**********************************************************************/
  6368. /*! no static exports found */
  6369. /***/ (function(module, exports, __webpack_require__) {
  6370. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6371. module.exports = barycenter;
  6372. function barycenter(g, movable) {
  6373. return _.map(movable, function(v) {
  6374. var inV = g.inEdges(v);
  6375. if (!inV.length) {
  6376. return { v: v };
  6377. } else {
  6378. var result = _.reduce(inV, function(acc, e) {
  6379. var edge = g.edge(e),
  6380. nodeU = g.node(e.v);
  6381. return {
  6382. sum: acc.sum + (edge.weight * nodeU.order),
  6383. weight: acc.weight + edge.weight
  6384. };
  6385. }, { sum: 0, weight: 0 });
  6386. return {
  6387. v: v,
  6388. barycenter: result.sum / result.weight,
  6389. weight: result.weight
  6390. };
  6391. }
  6392. });
  6393. }
  6394. /***/ }),
  6395. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  6396. /*!*****************************************************************************!*\
  6397. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  6398. \*****************************************************************************/
  6399. /*! no static exports found */
  6400. /***/ (function(module, exports, __webpack_require__) {
  6401. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6402. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  6403. module.exports = buildLayerGraph;
  6404. /*
  6405. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  6406. * contain all base and subgraph nodes from the request layer in their original
  6407. * hierarchy and any edges that are incident on these nodes and are of the type
  6408. * requested by the "relationship" parameter.
  6409. *
  6410. * Nodes from the requested rank that do not have parents are assigned a root
  6411. * node in the output graph, which is set in the root graph attribute. This
  6412. * makes it easy to walk the hierarchy of movable nodes during ordering.
  6413. *
  6414. * Pre-conditions:
  6415. *
  6416. * 1. Input graph is a DAG
  6417. * 2. Base nodes in the input graph have a rank attribute
  6418. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  6419. * 4. Edges have an assigned weight
  6420. *
  6421. * Post-conditions:
  6422. *
  6423. * 1. Output graph has all nodes in the movable rank with preserved
  6424. * hierarchy.
  6425. * 2. Root nodes in the movable layer are made children of the node
  6426. * indicated by the root attribute of the graph.
  6427. * 3. Non-movable nodes incident on movable nodes, selected by the
  6428. * relationship parameter, are included in the graph (without hierarchy).
  6429. * 4. Edges incident on movable nodes, selected by the relationship
  6430. * parameter, are added to the output graph.
  6431. * 5. The weights for copied edges are aggregated as need, since the output
  6432. * graph is not a multi-graph.
  6433. */
  6434. function buildLayerGraph(g, rank, relationship) {
  6435. var root = createRootNode(g),
  6436. result = new Graph({ compound: true }).setGraph({ root: root })
  6437. .setDefaultNodeLabel(function(v) { return g.node(v); });
  6438. _.forEach(g.nodes(), function(v) {
  6439. var node = g.node(v),
  6440. parent = g.parent(v);
  6441. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  6442. result.setNode(v);
  6443. result.setParent(v, parent || root);
  6444. // This assumes we have only short edges!
  6445. _.forEach(g[relationship](v), function(e) {
  6446. var u = e.v === v ? e.w : e.v,
  6447. edge = result.edge(u, v),
  6448. weight = !_.isUndefined(edge) ? edge.weight : 0;
  6449. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  6450. });
  6451. if (_.has(node, "minRank")) {
  6452. result.setNode(v, {
  6453. borderLeft: node.borderLeft[rank],
  6454. borderRight: node.borderRight[rank]
  6455. });
  6456. }
  6457. }
  6458. });
  6459. return result;
  6460. }
  6461. function createRootNode(g) {
  6462. var v;
  6463. while (g.hasNode((v = _.uniqueId("_root"))));
  6464. return v;
  6465. }
  6466. /***/ }),
  6467. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  6468. /*!***********************************************************************!*\
  6469. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  6470. \***********************************************************************/
  6471. /*! no static exports found */
  6472. /***/ (function(module, exports, __webpack_require__) {
  6473. "use strict";
  6474. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6475. module.exports = crossCount;
  6476. /*
  6477. * A function that takes a layering (an array of layers, each with an array of
  6478. * ordererd nodes) and a graph and returns a weighted crossing count.
  6479. *
  6480. * Pre-conditions:
  6481. *
  6482. * 1. Input graph must be simple (not a multigraph), directed, and include
  6483. * only simple edges.
  6484. * 2. Edges in the input graph must have assigned weights.
  6485. *
  6486. * Post-conditions:
  6487. *
  6488. * 1. The graph and layering matrix are left unchanged.
  6489. *
  6490. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  6491. */
  6492. function crossCount(g, layering) {
  6493. var cc = 0;
  6494. for (var i = 1; i < layering.length; ++i) {
  6495. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  6496. }
  6497. return cc;
  6498. }
  6499. function twoLayerCrossCount(g, northLayer, southLayer) {
  6500. // Sort all of the edges between the north and south layers by their position
  6501. // in the north layer and then the south. Map these edges to the position of
  6502. // their head in the south layer.
  6503. var southPos = _.zipObject(southLayer,
  6504. _.map(southLayer, function (v, i) { return i; }));
  6505. var southEntries = _.flatten(_.map(northLayer, function(v) {
  6506. return _.sortBy(_.map(g.outEdges(v), function(e) {
  6507. return { pos: southPos[e.w], weight: g.edge(e).weight };
  6508. }), "pos");
  6509. }), true);
  6510. // Build the accumulator tree
  6511. var firstIndex = 1;
  6512. while (firstIndex < southLayer.length) firstIndex <<= 1;
  6513. var treeSize = 2 * firstIndex - 1;
  6514. firstIndex -= 1;
  6515. var tree = _.map(new Array(treeSize), function() { return 0; });
  6516. // Calculate the weighted crossings
  6517. var cc = 0;
  6518. _.forEach(southEntries.forEach(function(entry) {
  6519. var index = entry.pos + firstIndex;
  6520. tree[index] += entry.weight;
  6521. var weightSum = 0;
  6522. while (index > 0) {
  6523. if (index % 2) {
  6524. weightSum += tree[index + 1];
  6525. }
  6526. index = (index - 1) >> 1;
  6527. tree[index] += entry.weight;
  6528. }
  6529. cc += entry.weight * weightSum;
  6530. }));
  6531. return cc;
  6532. }
  6533. /***/ }),
  6534. /***/ "../../node_modules/dagre/lib/order/index.js":
  6535. /*!*****************************************************************!*\
  6536. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  6537. \*****************************************************************/
  6538. /*! no static exports found */
  6539. /***/ (function(module, exports, __webpack_require__) {
  6540. "use strict";
  6541. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6542. initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js"),
  6543. crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js"),
  6544. sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js"),
  6545. buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js"),
  6546. addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js"),
  6547. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6548. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6549. module.exports = order;
  6550. /*
  6551. * Applies heuristics to minimize edge crossings in the graph and sets the best
  6552. * order solution as an order attribute on each node.
  6553. *
  6554. * Pre-conditions:
  6555. *
  6556. * 1. Graph must be DAG
  6557. * 2. Graph nodes must be objects with a "rank" attribute
  6558. * 3. Graph edges must have the "weight" attribute
  6559. *
  6560. * Post-conditions:
  6561. *
  6562. * 1. Graph nodes will have an "order" attribute based on the results of the
  6563. * algorithm.
  6564. */
  6565. function order(g) {
  6566. var maxRank = util.maxRank(g),
  6567. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  6568. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  6569. var layering = initOrder(g);
  6570. assignOrder(g, layering);
  6571. var bestCC = Number.POSITIVE_INFINITY,
  6572. best;
  6573. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  6574. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  6575. layering = util.buildLayerMatrix(g);
  6576. var cc = crossCount(g, layering);
  6577. if (cc < bestCC) {
  6578. lastBest = 0;
  6579. best = _.cloneDeep(layering);
  6580. bestCC = cc;
  6581. }
  6582. }
  6583. assignOrder(g, best);
  6584. }
  6585. function buildLayerGraphs(g, ranks, relationship) {
  6586. return _.map(ranks, function(rank) {
  6587. return buildLayerGraph(g, rank, relationship);
  6588. });
  6589. }
  6590. function sweepLayerGraphs(layerGraphs, biasRight) {
  6591. var cg = new Graph();
  6592. _.forEach(layerGraphs, function(lg) {
  6593. var root = lg.graph().root;
  6594. var sorted = sortSubgraph(lg, root, cg, biasRight);
  6595. _.forEach(sorted.vs, function(v, i) {
  6596. lg.node(v).order = i;
  6597. });
  6598. addSubgraphConstraints(lg, cg, sorted.vs);
  6599. });
  6600. }
  6601. function assignOrder(g, layering) {
  6602. _.forEach(layering, function(layer) {
  6603. _.forEach(layer, function(v, i) {
  6604. g.node(v).order = i;
  6605. });
  6606. });
  6607. }
  6608. /***/ }),
  6609. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  6610. /*!**********************************************************************!*\
  6611. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  6612. \**********************************************************************/
  6613. /*! no static exports found */
  6614. /***/ (function(module, exports, __webpack_require__) {
  6615. "use strict";
  6616. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6617. module.exports = initOrder;
  6618. /*
  6619. * Assigns an initial order value for each node by performing a DFS search
  6620. * starting from nodes in the first rank. Nodes are assigned an order in their
  6621. * rank as they are first visited.
  6622. *
  6623. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  6624. * Graphs."
  6625. *
  6626. * Returns a layering matrix with an array per layer and each layer sorted by
  6627. * the order of its nodes.
  6628. */
  6629. function initOrder(g) {
  6630. var visited = {},
  6631. simpleNodes = _.filter(g.nodes(), function(v) {
  6632. return !g.children(v).length;
  6633. }),
  6634. maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; })),
  6635. layers = _.map(_.range(maxRank + 1), function() { return []; });
  6636. function dfs(v) {
  6637. if (_.has(visited, v)) return;
  6638. visited[v] = true;
  6639. var node = g.node(v);
  6640. layers[node.rank].push(v);
  6641. _.forEach(g.successors(v), dfs);
  6642. }
  6643. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  6644. _.forEach(orderedVs, dfs);
  6645. return layers;
  6646. }
  6647. /***/ }),
  6648. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  6649. /*!*****************************************************************************!*\
  6650. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  6651. \*****************************************************************************/
  6652. /*! no static exports found */
  6653. /***/ (function(module, exports, __webpack_require__) {
  6654. "use strict";
  6655. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6656. module.exports = resolveConflicts;
  6657. /*
  6658. * Given a list of entries of the form {v, barycenter, weight} and a
  6659. * constraint graph this function will resolve any conflicts between the
  6660. * constraint graph and the barycenters for the entries. If the barycenters for
  6661. * an entry would violate a constraint in the constraint graph then we coalesce
  6662. * the nodes in the conflict into a new node that respects the contraint and
  6663. * aggregates barycenter and weight information.
  6664. *
  6665. * This implementation is based on the description in Forster, "A Fast and
  6666. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  6667. * differs in some specific details.
  6668. *
  6669. * Pre-conditions:
  6670. *
  6671. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  6672. * no barycenter, then {v}.
  6673. *
  6674. * Returns:
  6675. *
  6676. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  6677. * `vs` may either be a singleton or it may be an aggregation of nodes
  6678. * ordered such that they do not violate constraints from the constraint
  6679. * graph. The property `i` is the lowest original index of any of the
  6680. * elements in `vs`.
  6681. */
  6682. function resolveConflicts(entries, cg) {
  6683. var mappedEntries = {};
  6684. _.forEach(entries, function(entry, i) {
  6685. var tmp = mappedEntries[entry.v] = {
  6686. indegree: 0,
  6687. "in": [],
  6688. out: [],
  6689. vs: [entry.v],
  6690. i: i
  6691. };
  6692. if (!_.isUndefined(entry.barycenter)) {
  6693. tmp.barycenter = entry.barycenter;
  6694. tmp.weight = entry.weight;
  6695. }
  6696. });
  6697. _.forEach(cg.edges(), function(e) {
  6698. var entryV = mappedEntries[e.v],
  6699. entryW = mappedEntries[e.w];
  6700. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  6701. entryW.indegree++;
  6702. entryV.out.push(mappedEntries[e.w]);
  6703. }
  6704. });
  6705. var sourceSet = _.filter(mappedEntries, function(entry) {
  6706. return !entry.indegree;
  6707. });
  6708. return doResolveConflicts(sourceSet);
  6709. }
  6710. function doResolveConflicts(sourceSet) {
  6711. var entries = [];
  6712. function handleIn(vEntry) {
  6713. return function(uEntry) {
  6714. if (uEntry.merged) {
  6715. return;
  6716. }
  6717. if (_.isUndefined(uEntry.barycenter) ||
  6718. _.isUndefined(vEntry.barycenter) ||
  6719. uEntry.barycenter >= vEntry.barycenter) {
  6720. mergeEntries(vEntry, uEntry);
  6721. }
  6722. };
  6723. }
  6724. function handleOut(vEntry) {
  6725. return function(wEntry) {
  6726. wEntry["in"].push(vEntry);
  6727. if (--wEntry.indegree === 0) {
  6728. sourceSet.push(wEntry);
  6729. }
  6730. };
  6731. }
  6732. while (sourceSet.length) {
  6733. var entry = sourceSet.pop();
  6734. entries.push(entry);
  6735. _.forEach(entry["in"].reverse(), handleIn(entry));
  6736. _.forEach(entry.out, handleOut(entry));
  6737. }
  6738. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  6739. function(entry) {
  6740. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  6741. });
  6742. }
  6743. function mergeEntries(target, source) {
  6744. var sum = 0,
  6745. weight = 0;
  6746. if (target.weight) {
  6747. sum += target.barycenter * target.weight;
  6748. weight += target.weight;
  6749. }
  6750. if (source.weight) {
  6751. sum += source.barycenter * source.weight;
  6752. weight += source.weight;
  6753. }
  6754. target.vs = source.vs.concat(target.vs);
  6755. target.barycenter = sum / weight;
  6756. target.weight = weight;
  6757. target.i = Math.min(source.i, target.i);
  6758. source.merged = true;
  6759. }
  6760. /***/ }),
  6761. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  6762. /*!*************************************************************************!*\
  6763. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  6764. \*************************************************************************/
  6765. /*! no static exports found */
  6766. /***/ (function(module, exports, __webpack_require__) {
  6767. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6768. barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js"),
  6769. resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js"),
  6770. sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  6771. module.exports = sortSubgraph;
  6772. function sortSubgraph(g, v, cg, biasRight) {
  6773. var movable = g.children(v),
  6774. node = g.node(v),
  6775. bl = node ? node.borderLeft : undefined,
  6776. br = node ? node.borderRight: undefined,
  6777. subgraphs = {};
  6778. if (bl) {
  6779. movable = _.filter(movable, function(w) {
  6780. return w !== bl && w !== br;
  6781. });
  6782. }
  6783. var barycenters = barycenter(g, movable);
  6784. _.forEach(barycenters, function(entry) {
  6785. if (g.children(entry.v).length) {
  6786. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  6787. subgraphs[entry.v] = subgraphResult;
  6788. if (_.has(subgraphResult, "barycenter")) {
  6789. mergeBarycenters(entry, subgraphResult);
  6790. }
  6791. }
  6792. });
  6793. var entries = resolveConflicts(barycenters, cg);
  6794. expandSubgraphs(entries, subgraphs);
  6795. var result = sort(entries, biasRight);
  6796. if (bl) {
  6797. result.vs = _.flatten([bl, result.vs, br], true);
  6798. if (g.predecessors(bl).length) {
  6799. var blPred = g.node(g.predecessors(bl)[0]),
  6800. brPred = g.node(g.predecessors(br)[0]);
  6801. if (!_.has(result, "barycenter")) {
  6802. result.barycenter = 0;
  6803. result.weight = 0;
  6804. }
  6805. result.barycenter = (result.barycenter * result.weight +
  6806. blPred.order + brPred.order) / (result.weight + 2);
  6807. result.weight += 2;
  6808. }
  6809. }
  6810. return result;
  6811. }
  6812. function expandSubgraphs(entries, subgraphs) {
  6813. _.forEach(entries, function(entry) {
  6814. entry.vs = _.flatten(entry.vs.map(function(v) {
  6815. if (subgraphs[v]) {
  6816. return subgraphs[v].vs;
  6817. }
  6818. return v;
  6819. }), true);
  6820. });
  6821. }
  6822. function mergeBarycenters(target, other) {
  6823. if (!_.isUndefined(target.barycenter)) {
  6824. target.barycenter = (target.barycenter * target.weight +
  6825. other.barycenter * other.weight) /
  6826. (target.weight + other.weight);
  6827. target.weight += other.weight;
  6828. } else {
  6829. target.barycenter = other.barycenter;
  6830. target.weight = other.weight;
  6831. }
  6832. }
  6833. /***/ }),
  6834. /***/ "../../node_modules/dagre/lib/order/sort.js":
  6835. /*!****************************************************************!*\
  6836. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  6837. \****************************************************************/
  6838. /*! no static exports found */
  6839. /***/ (function(module, exports, __webpack_require__) {
  6840. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6841. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6842. module.exports = sort;
  6843. function sort(entries, biasRight) {
  6844. var parts = util.partition(entries, function(entry) {
  6845. return _.has(entry, "barycenter");
  6846. });
  6847. var sortable = parts.lhs,
  6848. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  6849. vs = [],
  6850. sum = 0,
  6851. weight = 0,
  6852. vsIndex = 0;
  6853. sortable.sort(compareWithBias(!!biasRight));
  6854. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6855. _.forEach(sortable, function (entry) {
  6856. vsIndex += entry.vs.length;
  6857. vs.push(entry.vs);
  6858. sum += entry.barycenter * entry.weight;
  6859. weight += entry.weight;
  6860. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6861. });
  6862. var result = { vs: _.flatten(vs, true) };
  6863. if (weight) {
  6864. result.barycenter = sum / weight;
  6865. result.weight = weight;
  6866. }
  6867. return result;
  6868. }
  6869. function consumeUnsortable(vs, unsortable, index) {
  6870. var last;
  6871. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  6872. unsortable.pop();
  6873. vs.push(last.vs);
  6874. index++;
  6875. }
  6876. return index;
  6877. }
  6878. function compareWithBias(bias) {
  6879. return function(entryV, entryW) {
  6880. if (entryV.barycenter < entryW.barycenter) {
  6881. return -1;
  6882. } else if (entryV.barycenter > entryW.barycenter) {
  6883. return 1;
  6884. }
  6885. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  6886. };
  6887. }
  6888. /***/ }),
  6889. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  6890. /*!*************************************************************************!*\
  6891. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  6892. \*************************************************************************/
  6893. /*! no static exports found */
  6894. /***/ (function(module, exports, __webpack_require__) {
  6895. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  6896. module.exports = parentDummyChains;
  6897. function parentDummyChains(g) {
  6898. var postorderNums = postorder(g);
  6899. _.forEach(g.graph().dummyChains, function(v) {
  6900. var node = g.node(v),
  6901. edgeObj = node.edgeObj,
  6902. pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w),
  6903. path = pathData.path,
  6904. lca = pathData.lca,
  6905. pathIdx = 0,
  6906. pathV = path[pathIdx],
  6907. ascending = true;
  6908. while (v !== edgeObj.w) {
  6909. node = g.node(v);
  6910. if (ascending) {
  6911. while ((pathV = path[pathIdx]) !== lca &&
  6912. g.node(pathV).maxRank < node.rank) {
  6913. pathIdx++;
  6914. }
  6915. if (pathV === lca) {
  6916. ascending = false;
  6917. }
  6918. }
  6919. if (!ascending) {
  6920. while (pathIdx < path.length - 1 &&
  6921. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  6922. pathIdx++;
  6923. }
  6924. pathV = path[pathIdx];
  6925. }
  6926. g.setParent(v, pathV);
  6927. v = g.successors(v)[0];
  6928. }
  6929. });
  6930. }
  6931. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  6932. // full path and the LCA.
  6933. function findPath(g, postorderNums, v, w) {
  6934. var vPath = [],
  6935. wPath = [],
  6936. low = Math.min(postorderNums[v].low, postorderNums[w].low),
  6937. lim = Math.max(postorderNums[v].lim, postorderNums[w].lim),
  6938. parent,
  6939. lca;
  6940. // Traverse up from v to find the LCA
  6941. parent = v;
  6942. do {
  6943. parent = g.parent(parent);
  6944. vPath.push(parent);
  6945. } while (parent &&
  6946. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  6947. lca = parent;
  6948. // Traverse from w to LCA
  6949. parent = w;
  6950. while ((parent = g.parent(parent)) !== lca) {
  6951. wPath.push(parent);
  6952. }
  6953. return { path: vPath.concat(wPath.reverse()), lca: lca };
  6954. }
  6955. function postorder(g) {
  6956. var result = {},
  6957. lim = 0;
  6958. function dfs(v) {
  6959. var low = lim;
  6960. _.forEach(g.children(v), dfs);
  6961. result[v] = { low: low, lim: lim++ };
  6962. }
  6963. _.forEach(g.children(), dfs);
  6964. return result;
  6965. }
  6966. /***/ }),
  6967. /***/ "../../node_modules/dagre/lib/position/bk.js":
  6968. /*!*****************************************************************!*\
  6969. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  6970. \*****************************************************************/
  6971. /*! no static exports found */
  6972. /***/ (function(module, exports, __webpack_require__) {
  6973. "use strict";
  6974. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6975. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6976. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6977. /*
  6978. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  6979. * and Simple Horizontal Coordinate Assignment."
  6980. */
  6981. module.exports = {
  6982. positionX: positionX,
  6983. findType1Conflicts: findType1Conflicts,
  6984. findType2Conflicts: findType2Conflicts,
  6985. addConflict: addConflict,
  6986. hasConflict: hasConflict,
  6987. verticalAlignment: verticalAlignment,
  6988. horizontalCompaction: horizontalCompaction,
  6989. alignCoordinates: alignCoordinates,
  6990. findSmallestWidthAlignment: findSmallestWidthAlignment,
  6991. balance: balance
  6992. };
  6993. /*
  6994. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  6995. * property. A type-1 conflict is one where a non-inner segment crosses an
  6996. * inner segment. An inner segment is an edge with both incident nodes marked
  6997. * with the "dummy" property.
  6998. *
  6999. * This algorithm scans layer by layer, starting with the second, for type-1
  7000. * conflicts between the current layer and the previous layer. For each layer
  7001. * it scans the nodes from left to right until it reaches one that is incident
  7002. * on an inner segment. It then scans predecessors to determine if they have
  7003. * edges that cross that inner segment. At the end a final scan is done for all
  7004. * nodes on the current rank to see if they cross the last visited inner
  7005. * segment.
  7006. *
  7007. * This algorithm (safely) assumes that a dummy node will only be incident on a
  7008. * single node in the layers being scanned.
  7009. */
  7010. function findType1Conflicts(g, layering) {
  7011. var conflicts = {};
  7012. function visitLayer(prevLayer, layer) {
  7013. var
  7014. // last visited node in the previous layer that is incident on an inner
  7015. // segment.
  7016. k0 = 0,
  7017. // Tracks the last node in this layer scanned for crossings with a type-1
  7018. // segment.
  7019. scanPos = 0,
  7020. prevLayerLength = prevLayer.length,
  7021. lastNode = _.last(layer);
  7022. _.forEach(layer, function(v, i) {
  7023. var w = findOtherInnerSegmentNode(g, v),
  7024. k1 = w ? g.node(w).order : prevLayerLength;
  7025. if (w || v === lastNode) {
  7026. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  7027. _.forEach(g.predecessors(scanNode), function(u) {
  7028. var uLabel = g.node(u),
  7029. uPos = uLabel.order;
  7030. if ((uPos < k0 || k1 < uPos) &&
  7031. !(uLabel.dummy && g.node(scanNode).dummy)) {
  7032. addConflict(conflicts, u, scanNode);
  7033. }
  7034. });
  7035. });
  7036. scanPos = i + 1;
  7037. k0 = k1;
  7038. }
  7039. });
  7040. return layer;
  7041. }
  7042. _.reduce(layering, visitLayer);
  7043. return conflicts;
  7044. }
  7045. function findType2Conflicts(g, layering) {
  7046. var conflicts = {};
  7047. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  7048. var v;
  7049. _.forEach(_.range(southPos, southEnd), function(i) {
  7050. v = south[i];
  7051. if (g.node(v).dummy) {
  7052. _.forEach(g.predecessors(v), function(u) {
  7053. var uNode = g.node(u);
  7054. if (uNode.dummy &&
  7055. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  7056. addConflict(conflicts, u, v);
  7057. }
  7058. });
  7059. }
  7060. });
  7061. }
  7062. function visitLayer(north, south) {
  7063. var prevNorthPos = -1,
  7064. nextNorthPos,
  7065. southPos = 0;
  7066. _.forEach(south, function(v, southLookahead) {
  7067. if (g.node(v).dummy === "border") {
  7068. var predecessors = g.predecessors(v);
  7069. if (predecessors.length) {
  7070. nextNorthPos = g.node(predecessors[0]).order;
  7071. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  7072. southPos = southLookahead;
  7073. prevNorthPos = nextNorthPos;
  7074. }
  7075. }
  7076. scan(south, southPos, south.length, nextNorthPos, north.length);
  7077. });
  7078. return south;
  7079. }
  7080. _.reduce(layering, visitLayer);
  7081. return conflicts;
  7082. }
  7083. function findOtherInnerSegmentNode(g, v) {
  7084. if (g.node(v).dummy) {
  7085. return _.find(g.predecessors(v), function(u) {
  7086. return g.node(u).dummy;
  7087. });
  7088. }
  7089. }
  7090. function addConflict(conflicts, v, w) {
  7091. if (v > w) {
  7092. var tmp = v;
  7093. v = w;
  7094. w = tmp;
  7095. }
  7096. var conflictsV = conflicts[v];
  7097. if (!conflictsV) {
  7098. conflicts[v] = conflictsV = {};
  7099. }
  7100. conflictsV[w] = true;
  7101. }
  7102. function hasConflict(conflicts, v, w) {
  7103. if (v > w) {
  7104. var tmp = v;
  7105. v = w;
  7106. w = tmp;
  7107. }
  7108. return _.has(conflicts[v], w);
  7109. }
  7110. /*
  7111. * Try to align nodes into vertical "blocks" where possible. This algorithm
  7112. * attempts to align a node with one of its median neighbors. If the edge
  7113. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  7114. * If a previous node has already formed a block with a node after the node
  7115. * we're trying to form a block with, we also ignore that possibility - our
  7116. * blocks would be split in that scenario.
  7117. */
  7118. function verticalAlignment(g, layering, conflicts, neighborFn) {
  7119. var root = {},
  7120. align = {},
  7121. pos = {};
  7122. // We cache the position here based on the layering because the graph and
  7123. // layering may be out of sync. The layering matrix is manipulated to
  7124. // generate different extreme alignments.
  7125. _.forEach(layering, function(layer) {
  7126. _.forEach(layer, function(v, order) {
  7127. root[v] = v;
  7128. align[v] = v;
  7129. pos[v] = order;
  7130. });
  7131. });
  7132. _.forEach(layering, function(layer) {
  7133. var prevIdx = -1;
  7134. _.forEach(layer, function(v) {
  7135. var ws = neighborFn(v);
  7136. if (ws.length) {
  7137. ws = _.sortBy(ws, function(w) { return pos[w]; });
  7138. var mp = (ws.length - 1) / 2;
  7139. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  7140. var w = ws[i];
  7141. if (align[v] === v &&
  7142. prevIdx < pos[w] &&
  7143. !hasConflict(conflicts, v, w)) {
  7144. align[w] = v;
  7145. align[v] = root[v] = root[w];
  7146. prevIdx = pos[w];
  7147. }
  7148. }
  7149. }
  7150. });
  7151. });
  7152. return { root: root, align: align };
  7153. }
  7154. function horizontalCompaction(g, layering, root, align, reverseSep) {
  7155. // This portion of the algorithm differs from BK due to a number of problems.
  7156. // Instead of their algorithm we construct a new block graph and do two
  7157. // sweeps. The first sweep places blocks with the smallest possible
  7158. // coordinates. The second sweep removes unused space by moving blocks to the
  7159. // greatest coordinates without violating separation.
  7160. var xs = {},
  7161. blockG = buildBlockGraph(g, layering, root, reverseSep),
  7162. borderType = reverseSep ? "borderLeft" : "borderRight";
  7163. function iterate(setXsFunc, nextNodesFunc) {
  7164. var stack = blockG.nodes();
  7165. var elem = stack.pop();
  7166. var visited = {};
  7167. while (elem) {
  7168. if (visited[elem]) {
  7169. setXsFunc(elem);
  7170. } else {
  7171. visited[elem] = true;
  7172. stack.push(elem);
  7173. stack = stack.concat(nextNodesFunc(elem));
  7174. }
  7175. elem = stack.pop();
  7176. }
  7177. }
  7178. // First pass, assign smallest coordinates
  7179. function pass1(elem) {
  7180. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  7181. return Math.max(acc, xs[e.v] + blockG.edge(e));
  7182. }, 0);
  7183. }
  7184. // Second pass, assign greatest coordinates
  7185. function pass2(elem) {
  7186. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  7187. return Math.min(acc, xs[e.w] - blockG.edge(e));
  7188. }, Number.POSITIVE_INFINITY);
  7189. var node = g.node(elem);
  7190. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  7191. xs[elem] = Math.max(xs[elem], min);
  7192. }
  7193. }
  7194. iterate(pass1, blockG.predecessors.bind(blockG));
  7195. iterate(pass2, blockG.successors.bind(blockG));
  7196. // Assign x coordinates to all nodes
  7197. _.forEach(align, function(v) {
  7198. xs[v] = xs[root[v]];
  7199. });
  7200. return xs;
  7201. }
  7202. function buildBlockGraph(g, layering, root, reverseSep) {
  7203. var blockGraph = new Graph(),
  7204. graphLabel = g.graph(),
  7205. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  7206. _.forEach(layering, function(layer) {
  7207. var u;
  7208. _.forEach(layer, function(v) {
  7209. var vRoot = root[v];
  7210. blockGraph.setNode(vRoot);
  7211. if (u) {
  7212. var uRoot = root[u],
  7213. prevMax = blockGraph.edge(uRoot, vRoot);
  7214. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  7215. }
  7216. u = v;
  7217. });
  7218. });
  7219. return blockGraph;
  7220. }
  7221. /*
  7222. * Returns the alignment that has the smallest width of the given alignments.
  7223. */
  7224. function findSmallestWidthAlignment(g, xss) {
  7225. return _.minBy(_.values(xss), function (xs) {
  7226. var max = Number.NEGATIVE_INFINITY;
  7227. var min = Number.POSITIVE_INFINITY;
  7228. _.forIn(xs, function (x, v) {
  7229. var halfWidth = width(g, v) / 2;
  7230. max = Math.max(x + halfWidth, max);
  7231. min = Math.min(x - halfWidth, min);
  7232. });
  7233. return max - min;
  7234. });
  7235. }
  7236. /*
  7237. * Align the coordinates of each of the layout alignments such that
  7238. * left-biased alignments have their minimum coordinate at the same point as
  7239. * the minimum coordinate of the smallest width alignment and right-biased
  7240. * alignments have their maximum coordinate at the same point as the maximum
  7241. * coordinate of the smallest width alignment.
  7242. */
  7243. function alignCoordinates(xss, alignTo) {
  7244. var alignToVals = _.values(alignTo),
  7245. alignToMin = _.min(alignToVals),
  7246. alignToMax = _.max(alignToVals);
  7247. _.forEach(["u", "d"], function(vert) {
  7248. _.forEach(["l", "r"], function(horiz) {
  7249. var alignment = vert + horiz,
  7250. xs = xss[alignment],
  7251. delta;
  7252. if (xs === alignTo) return;
  7253. var xsVals = _.values(xs);
  7254. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  7255. if (delta) {
  7256. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  7257. }
  7258. });
  7259. });
  7260. }
  7261. function balance(xss, align) {
  7262. return _.mapValues(xss.ul, function(ignore, v) {
  7263. if (align) {
  7264. return xss[align.toLowerCase()][v];
  7265. } else {
  7266. var xs = _.sortBy(_.map(xss, v));
  7267. return (xs[1] + xs[2]) / 2;
  7268. }
  7269. });
  7270. }
  7271. function positionX(g) {
  7272. var layering = util.buildLayerMatrix(g),
  7273. conflicts = _.merge(findType1Conflicts(g, layering),
  7274. findType2Conflicts(g, layering));
  7275. var xss = {},
  7276. adjustedLayering;
  7277. _.forEach(["u", "d"], function(vert) {
  7278. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  7279. _.forEach(["l", "r"], function(horiz) {
  7280. if (horiz === "r") {
  7281. adjustedLayering = _.map(adjustedLayering, function(inner) {
  7282. return _.values(inner).reverse();
  7283. });
  7284. }
  7285. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  7286. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  7287. var xs = horizontalCompaction(g, adjustedLayering,
  7288. align.root, align.align,
  7289. horiz === "r");
  7290. if (horiz === "r") {
  7291. xs = _.mapValues(xs, function(x) { return -x; });
  7292. }
  7293. xss[vert + horiz] = xs;
  7294. });
  7295. });
  7296. var smallestWidth = findSmallestWidthAlignment(g, xss);
  7297. alignCoordinates(xss, smallestWidth);
  7298. return balance(xss, g.graph().align);
  7299. }
  7300. function sep(nodeSep, edgeSep, reverseSep) {
  7301. return function(g, v, w) {
  7302. var vLabel = g.node(v),
  7303. wLabel = g.node(w),
  7304. sum = 0,
  7305. delta;
  7306. sum += vLabel.width / 2;
  7307. if (_.has(vLabel, "labelpos")) {
  7308. switch (vLabel.labelpos.toLowerCase()) {
  7309. case "l": delta = -vLabel.width / 2; break;
  7310. case "r": delta = vLabel.width / 2; break;
  7311. }
  7312. }
  7313. if (delta) {
  7314. sum += reverseSep ? delta : -delta;
  7315. }
  7316. delta = 0;
  7317. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  7318. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  7319. sum += wLabel.width / 2;
  7320. if (_.has(wLabel, "labelpos")) {
  7321. switch (wLabel.labelpos.toLowerCase()) {
  7322. case "l": delta = wLabel.width / 2; break;
  7323. case "r": delta = -wLabel.width / 2; break;
  7324. }
  7325. }
  7326. if (delta) {
  7327. sum += reverseSep ? delta : -delta;
  7328. }
  7329. delta = 0;
  7330. return sum;
  7331. };
  7332. }
  7333. function width(g, v) {
  7334. return g.node(v).width;
  7335. }
  7336. /***/ }),
  7337. /***/ "../../node_modules/dagre/lib/position/index.js":
  7338. /*!********************************************************************!*\
  7339. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  7340. \********************************************************************/
  7341. /*! no static exports found */
  7342. /***/ (function(module, exports, __webpack_require__) {
  7343. "use strict";
  7344. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7345. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js"),
  7346. positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  7347. module.exports = position;
  7348. function position(g) {
  7349. g = util.asNonCompoundGraph(g);
  7350. positionY(g);
  7351. _.forEach(positionX(g), function(x, v) {
  7352. g.node(v).x = x;
  7353. });
  7354. }
  7355. function positionY(g) {
  7356. var layering = util.buildLayerMatrix(g),
  7357. rankSep = g.graph().ranksep,
  7358. prevY = 0;
  7359. _.forEach(layering, function(layer) {
  7360. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  7361. _.forEach(layer, function(v) {
  7362. g.node(v).y = prevY + maxHeight / 2;
  7363. });
  7364. prevY += maxHeight + rankSep;
  7365. });
  7366. }
  7367. /***/ }),
  7368. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  7369. /*!************************************************************************!*\
  7370. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  7371. \************************************************************************/
  7372. /*! no static exports found */
  7373. /***/ (function(module, exports, __webpack_require__) {
  7374. "use strict";
  7375. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7376. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  7377. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  7378. module.exports = feasibleTree;
  7379. /*
  7380. * Constructs a spanning tree with tight edges and adjusted the input node's
  7381. * ranks to achieve this. A tight edge is one that is has a length that matches
  7382. * its "minlen" attribute.
  7383. *
  7384. * The basic structure for this function is derived from Gansner, et al., "A
  7385. * Technique for Drawing Directed Graphs."
  7386. *
  7387. * Pre-conditions:
  7388. *
  7389. * 1. Graph must be a DAG.
  7390. * 2. Graph must be connected.
  7391. * 3. Graph must have at least one node.
  7392. * 5. Graph nodes must have been previously assigned a "rank" property that
  7393. * respects the "minlen" property of incident edges.
  7394. * 6. Graph edges must have a "minlen" property.
  7395. *
  7396. * Post-conditions:
  7397. *
  7398. * - Graph nodes will have their rank adjusted to ensure that all edges are
  7399. * tight.
  7400. *
  7401. * Returns a tree (undirected graph) that is constructed using only "tight"
  7402. * edges.
  7403. */
  7404. function feasibleTree(g) {
  7405. var t = new Graph({ directed: false });
  7406. // Choose arbitrary node from which to start our tree
  7407. var start = g.nodes()[0],
  7408. size = g.nodeCount();
  7409. t.setNode(start, {});
  7410. var edge, delta;
  7411. while (tightTree(t, g) < size) {
  7412. edge = findMinSlackEdge(t, g);
  7413. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  7414. shiftRanks(t, g, delta);
  7415. }
  7416. return t;
  7417. }
  7418. /*
  7419. * Finds a maximal tree of tight edges and returns the number of nodes in the
  7420. * tree.
  7421. */
  7422. function tightTree(t, g) {
  7423. function dfs(v) {
  7424. _.forEach(g.nodeEdges(v), function(e) {
  7425. var edgeV = e.v,
  7426. w = (v === edgeV) ? e.w : edgeV;
  7427. if (!t.hasNode(w) && !slack(g, e)) {
  7428. t.setNode(w, {});
  7429. t.setEdge(v, w, {});
  7430. dfs(w);
  7431. }
  7432. });
  7433. }
  7434. _.forEach(t.nodes(), dfs);
  7435. return t.nodeCount();
  7436. }
  7437. /*
  7438. * Finds the edge with the smallest slack that is incident on tree and returns
  7439. * it.
  7440. */
  7441. function findMinSlackEdge(t, g) {
  7442. return _.minBy(g.edges(), function(e) {
  7443. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  7444. return slack(g, e);
  7445. }
  7446. });
  7447. }
  7448. function shiftRanks(t, g, delta) {
  7449. _.forEach(t.nodes(), function(v) {
  7450. g.node(v).rank += delta;
  7451. });
  7452. }
  7453. /***/ }),
  7454. /***/ "../../node_modules/dagre/lib/rank/index.js":
  7455. /*!****************************************************************!*\
  7456. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  7457. \****************************************************************/
  7458. /*! no static exports found */
  7459. /***/ (function(module, exports, __webpack_require__) {
  7460. "use strict";
  7461. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js"),
  7462. longestPath = rankUtil.longestPath,
  7463. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7464. networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  7465. module.exports = rank;
  7466. /*
  7467. * Assigns a rank to each node in the input graph that respects the "minlen"
  7468. * constraint specified on edges between nodes.
  7469. *
  7470. * This basic structure is derived from Gansner, et al., "A Technique for
  7471. * Drawing Directed Graphs."
  7472. *
  7473. * Pre-conditions:
  7474. *
  7475. * 1. Graph must be a connected DAG
  7476. * 2. Graph nodes must be objects
  7477. * 3. Graph edges must have "weight" and "minlen" attributes
  7478. *
  7479. * Post-conditions:
  7480. *
  7481. * 1. Graph nodes will have a "rank" attribute based on the results of the
  7482. * algorithm. Ranks can start at any index (including negative), we'll
  7483. * fix them up later.
  7484. */
  7485. function rank(g) {
  7486. switch(g.graph().ranker) {
  7487. case "network-simplex": networkSimplexRanker(g); break;
  7488. case "tight-tree": tightTreeRanker(g); break;
  7489. case "longest-path": longestPathRanker(g); break;
  7490. default: networkSimplexRanker(g);
  7491. }
  7492. }
  7493. // A fast and simple ranker, but results are far from optimal.
  7494. var longestPathRanker = longestPath;
  7495. function tightTreeRanker(g) {
  7496. longestPath(g);
  7497. feasibleTree(g);
  7498. }
  7499. function networkSimplexRanker(g) {
  7500. networkSimplex(g);
  7501. }
  7502. /***/ }),
  7503. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  7504. /*!**************************************************************************!*\
  7505. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  7506. \**************************************************************************/
  7507. /*! no static exports found */
  7508. /***/ (function(module, exports, __webpack_require__) {
  7509. "use strict";
  7510. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7511. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7512. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack,
  7513. initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath,
  7514. preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder,
  7515. postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder,
  7516. simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  7517. module.exports = networkSimplex;
  7518. // Expose some internals for testing purposes
  7519. networkSimplex.initLowLimValues = initLowLimValues;
  7520. networkSimplex.initCutValues = initCutValues;
  7521. networkSimplex.calcCutValue = calcCutValue;
  7522. networkSimplex.leaveEdge = leaveEdge;
  7523. networkSimplex.enterEdge = enterEdge;
  7524. networkSimplex.exchangeEdges = exchangeEdges;
  7525. /*
  7526. * The network simplex algorithm assigns ranks to each node in the input graph
  7527. * and iteratively improves the ranking to reduce the length of edges.
  7528. *
  7529. * Preconditions:
  7530. *
  7531. * 1. The input graph must be a DAG.
  7532. * 2. All nodes in the graph must have an object value.
  7533. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  7534. *
  7535. * Postconditions:
  7536. *
  7537. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  7538. * been optimized by the network simplex algorithm. Ranks start at 0.
  7539. *
  7540. *
  7541. * A rough sketch of the algorithm is as follows:
  7542. *
  7543. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  7544. * which assigns ranks to the lowest position possible. In general this
  7545. * leads to very wide bottom ranks and unnecessarily long edges.
  7546. * 2. Construct a feasible tight tree. A tight tree is one such that all
  7547. * edges in the tree have no slack (difference between length of edge
  7548. * and minlen for the edge). This by itself greatly improves the assigned
  7549. * rankings by shorting edges.
  7550. * 3. Iteratively find edges that have negative cut values. Generally a
  7551. * negative cut value indicates that the edge could be removed and a new
  7552. * tree edge could be added to produce a more compact graph.
  7553. *
  7554. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  7555. * for Drawing Directed Graphs." The structure of the file roughly follows the
  7556. * structure of the overall algorithm.
  7557. */
  7558. function networkSimplex(g) {
  7559. g = simplify(g);
  7560. initRank(g);
  7561. var t = feasibleTree(g);
  7562. initLowLimValues(t);
  7563. initCutValues(t, g);
  7564. var e, f;
  7565. while ((e = leaveEdge(t))) {
  7566. f = enterEdge(t, g, e);
  7567. exchangeEdges(t, g, e, f);
  7568. }
  7569. }
  7570. /*
  7571. * Initializes cut values for all edges in the tree.
  7572. */
  7573. function initCutValues(t, g) {
  7574. var vs = postorder(t, t.nodes());
  7575. vs = vs.slice(0, vs.length - 1);
  7576. _.forEach(vs, function(v) {
  7577. assignCutValue(t, g, v);
  7578. });
  7579. }
  7580. function assignCutValue(t, g, child) {
  7581. var childLab = t.node(child),
  7582. parent = childLab.parent;
  7583. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  7584. }
  7585. /*
  7586. * Given the tight tree, its graph, and a child in the graph calculate and
  7587. * return the cut value for the edge between the child and its parent.
  7588. */
  7589. function calcCutValue(t, g, child) {
  7590. var childLab = t.node(child),
  7591. parent = childLab.parent,
  7592. // True if the child is on the tail end of the edge in the directed graph
  7593. childIsTail = true,
  7594. // The graph's view of the tree edge we're inspecting
  7595. graphEdge = g.edge(child, parent),
  7596. // The accumulated cut value for the edge between this node and its parent
  7597. cutValue = 0;
  7598. if (!graphEdge) {
  7599. childIsTail = false;
  7600. graphEdge = g.edge(parent, child);
  7601. }
  7602. cutValue = graphEdge.weight;
  7603. _.forEach(g.nodeEdges(child), function(e) {
  7604. var isOutEdge = e.v === child,
  7605. other = isOutEdge ? e.w : e.v;
  7606. if (other !== parent) {
  7607. var pointsToHead = isOutEdge === childIsTail,
  7608. otherWeight = g.edge(e).weight;
  7609. cutValue += pointsToHead ? otherWeight : -otherWeight;
  7610. if (isTreeEdge(t, child, other)) {
  7611. var otherCutValue = t.edge(child, other).cutvalue;
  7612. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  7613. }
  7614. }
  7615. });
  7616. return cutValue;
  7617. }
  7618. function initLowLimValues(tree, root) {
  7619. if (arguments.length < 2) {
  7620. root = tree.nodes()[0];
  7621. }
  7622. dfsAssignLowLim(tree, {}, 1, root);
  7623. }
  7624. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  7625. var low = nextLim,
  7626. label = tree.node(v);
  7627. visited[v] = true;
  7628. _.forEach(tree.neighbors(v), function(w) {
  7629. if (!_.has(visited, w)) {
  7630. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  7631. }
  7632. });
  7633. label.low = low;
  7634. label.lim = nextLim++;
  7635. if (parent) {
  7636. label.parent = parent;
  7637. } else {
  7638. // TODO should be able to remove this when we incrementally update low lim
  7639. delete label.parent;
  7640. }
  7641. return nextLim;
  7642. }
  7643. function leaveEdge(tree) {
  7644. return _.find(tree.edges(), function(e) {
  7645. return tree.edge(e).cutvalue < 0;
  7646. });
  7647. }
  7648. function enterEdge(t, g, edge) {
  7649. var v = edge.v,
  7650. w = edge.w;
  7651. // For the rest of this function we assume that v is the tail and w is the
  7652. // head, so if we don't have this edge in the graph we should flip it to
  7653. // match the correct orientation.
  7654. if (!g.hasEdge(v, w)) {
  7655. v = edge.w;
  7656. w = edge.v;
  7657. }
  7658. var vLabel = t.node(v),
  7659. wLabel = t.node(w),
  7660. tailLabel = vLabel,
  7661. flip = false;
  7662. // If the root is in the tail of the edge then we need to flip the logic that
  7663. // checks for the head and tail nodes in the candidates function below.
  7664. if (vLabel.lim > wLabel.lim) {
  7665. tailLabel = wLabel;
  7666. flip = true;
  7667. }
  7668. var candidates = _.filter(g.edges(), function(edge) {
  7669. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  7670. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  7671. });
  7672. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  7673. }
  7674. function exchangeEdges(t, g, e, f) {
  7675. var v = e.v,
  7676. w = e.w;
  7677. t.removeEdge(v, w);
  7678. t.setEdge(f.v, f.w, {});
  7679. initLowLimValues(t);
  7680. initCutValues(t, g);
  7681. updateRanks(t, g);
  7682. }
  7683. function updateRanks(t, g) {
  7684. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; }),
  7685. vs = preorder(t, root);
  7686. vs = vs.slice(1);
  7687. _.forEach(vs, function(v) {
  7688. var parent = t.node(v).parent,
  7689. edge = g.edge(v, parent),
  7690. flipped = false;
  7691. if (!edge) {
  7692. edge = g.edge(parent, v);
  7693. flipped = true;
  7694. }
  7695. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  7696. });
  7697. }
  7698. /*
  7699. * Returns true if the edge is in the tree.
  7700. */
  7701. function isTreeEdge(tree, u, v) {
  7702. return tree.hasEdge(u, v);
  7703. }
  7704. /*
  7705. * Returns true if the specified node is descendant of the root node per the
  7706. * assigned low and lim attributes in the tree.
  7707. */
  7708. function isDescendant(tree, vLabel, rootLabel) {
  7709. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  7710. }
  7711. /***/ }),
  7712. /***/ "../../node_modules/dagre/lib/rank/util.js":
  7713. /*!***************************************************************!*\
  7714. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  7715. \***************************************************************/
  7716. /*! no static exports found */
  7717. /***/ (function(module, exports, __webpack_require__) {
  7718. "use strict";
  7719. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  7720. module.exports = {
  7721. longestPath: longestPath,
  7722. slack: slack
  7723. };
  7724. /*
  7725. * Initializes ranks for the input graph using the longest path algorithm. This
  7726. * algorithm scales well and is fast in practice, it yields rather poor
  7727. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  7728. * ranks wide and leaving edges longer than necessary. However, due to its
  7729. * speed, this algorithm is good for getting an initial ranking that can be fed
  7730. * into other algorithms.
  7731. *
  7732. * This algorithm does not normalize layers because it will be used by other
  7733. * algorithms in most cases. If using this algorithm directly, be sure to
  7734. * run normalize at the end.
  7735. *
  7736. * Pre-conditions:
  7737. *
  7738. * 1. Input graph is a DAG.
  7739. * 2. Input graph node labels can be assigned properties.
  7740. *
  7741. * Post-conditions:
  7742. *
  7743. * 1. Each node will be assign an (unnormalized) "rank" property.
  7744. */
  7745. function longestPath(g) {
  7746. var visited = {};
  7747. function dfs(v) {
  7748. var label = g.node(v);
  7749. if (_.has(visited, v)) {
  7750. return label.rank;
  7751. }
  7752. visited[v] = true;
  7753. var rank = _.min(_.map(g.outEdges(v), function(e) {
  7754. return dfs(e.w) - g.edge(e).minlen;
  7755. }));
  7756. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  7757. rank === undefined || // return value of _.map([]) for Lodash 4
  7758. rank === null) { // return value of _.map([null])
  7759. rank = 0;
  7760. }
  7761. return (label.rank = rank);
  7762. }
  7763. _.forEach(g.sources(), dfs);
  7764. }
  7765. /*
  7766. * Returns the amount of slack for the given edge. The slack is defined as the
  7767. * difference between the length of the edge and its minimum length.
  7768. */
  7769. function slack(g, e) {
  7770. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  7771. }
  7772. /***/ }),
  7773. /***/ "../../node_modules/dagre/lib/util.js":
  7774. /*!**********************************************************!*\
  7775. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/util.js ***!
  7776. \**********************************************************/
  7777. /*! no static exports found */
  7778. /***/ (function(module, exports, __webpack_require__) {
  7779. "use strict";
  7780. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7781. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  7782. module.exports = {
  7783. addDummyNode: addDummyNode,
  7784. simplify: simplify,
  7785. asNonCompoundGraph: asNonCompoundGraph,
  7786. successorWeights: successorWeights,
  7787. predecessorWeights: predecessorWeights,
  7788. intersectRect: intersectRect,
  7789. buildLayerMatrix: buildLayerMatrix,
  7790. normalizeRanks: normalizeRanks,
  7791. removeEmptyRanks: removeEmptyRanks,
  7792. addBorderNode: addBorderNode,
  7793. maxRank: maxRank,
  7794. partition: partition,
  7795. time: time,
  7796. notime: notime
  7797. };
  7798. /*
  7799. * Adds a dummy node to the graph and return v.
  7800. */
  7801. function addDummyNode(g, type, attrs, name) {
  7802. var v;
  7803. do {
  7804. v = _.uniqueId(name);
  7805. } while (g.hasNode(v));
  7806. attrs.dummy = type;
  7807. g.setNode(v, attrs);
  7808. return v;
  7809. }
  7810. /*
  7811. * Returns a new graph with only simple edges. Handles aggregation of data
  7812. * associated with multi-edges.
  7813. */
  7814. function simplify(g) {
  7815. var simplified = new Graph().setGraph(g.graph());
  7816. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  7817. _.forEach(g.edges(), function(e) {
  7818. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 },
  7819. label = g.edge(e);
  7820. simplified.setEdge(e.v, e.w, {
  7821. weight: simpleLabel.weight + label.weight,
  7822. minlen: Math.max(simpleLabel.minlen, label.minlen)
  7823. });
  7824. });
  7825. return simplified;
  7826. }
  7827. function asNonCompoundGraph(g) {
  7828. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  7829. _.forEach(g.nodes(), function(v) {
  7830. if (!g.children(v).length) {
  7831. simplified.setNode(v, g.node(v));
  7832. }
  7833. });
  7834. _.forEach(g.edges(), function(e) {
  7835. simplified.setEdge(e, g.edge(e));
  7836. });
  7837. return simplified;
  7838. }
  7839. function successorWeights(g) {
  7840. var weightMap = _.map(g.nodes(), function(v) {
  7841. var sucs = {};
  7842. _.forEach(g.outEdges(v), function(e) {
  7843. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  7844. });
  7845. return sucs;
  7846. });
  7847. return _.zipObject(g.nodes(), weightMap);
  7848. }
  7849. function predecessorWeights(g) {
  7850. var weightMap = _.map(g.nodes(), function(v) {
  7851. var preds = {};
  7852. _.forEach(g.inEdges(v), function(e) {
  7853. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  7854. });
  7855. return preds;
  7856. });
  7857. return _.zipObject(g.nodes(), weightMap);
  7858. }
  7859. /*
  7860. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  7861. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  7862. */
  7863. function intersectRect(rect, point) {
  7864. var x = rect.x;
  7865. var y = rect.y;
  7866. // Rectangle intersection algorithm from:
  7867. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  7868. var dx = point.x - x;
  7869. var dy = point.y - y;
  7870. var w = rect.width / 2;
  7871. var h = rect.height / 2;
  7872. if (!dx && !dy) {
  7873. throw new Error("Not possible to find intersection inside of the rectangle");
  7874. }
  7875. var sx, sy;
  7876. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  7877. // Intersection is top or bottom of rect.
  7878. if (dy < 0) {
  7879. h = -h;
  7880. }
  7881. sx = h * dx / dy;
  7882. sy = h;
  7883. } else {
  7884. // Intersection is left or right of rect.
  7885. if (dx < 0) {
  7886. w = -w;
  7887. }
  7888. sx = w;
  7889. sy = w * dy / dx;
  7890. }
  7891. return { x: x + sx, y: y + sy };
  7892. }
  7893. /*
  7894. * Given a DAG with each node assigned "rank" and "order" properties, this
  7895. * function will produce a matrix with the ids of each node.
  7896. */
  7897. function buildLayerMatrix(g) {
  7898. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  7899. _.forEach(g.nodes(), function(v) {
  7900. var node = g.node(v),
  7901. rank = node.rank;
  7902. if (!_.isUndefined(rank)) {
  7903. layering[rank][node.order] = v;
  7904. }
  7905. });
  7906. return layering;
  7907. }
  7908. /*
  7909. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  7910. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  7911. */
  7912. function normalizeRanks(g) {
  7913. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7914. _.forEach(g.nodes(), function(v) {
  7915. var node = g.node(v);
  7916. if (_.has(node, "rank")) {
  7917. node.rank -= min;
  7918. }
  7919. });
  7920. }
  7921. function removeEmptyRanks(g) {
  7922. // Ranks may not start at 0, so we need to offset them
  7923. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7924. var layers = [];
  7925. _.forEach(g.nodes(), function(v) {
  7926. var rank = g.node(v).rank - offset;
  7927. if (!layers[rank]) {
  7928. layers[rank] = [];
  7929. }
  7930. layers[rank].push(v);
  7931. });
  7932. var delta = 0,
  7933. nodeRankFactor = g.graph().nodeRankFactor;
  7934. _.forEach(layers, function(vs, i) {
  7935. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  7936. --delta;
  7937. } else if (delta) {
  7938. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  7939. }
  7940. });
  7941. }
  7942. function addBorderNode(g, prefix, rank, order) {
  7943. var node = {
  7944. width: 0,
  7945. height: 0
  7946. };
  7947. if (arguments.length >= 4) {
  7948. node.rank = rank;
  7949. node.order = order;
  7950. }
  7951. return addDummyNode(g, "border", node, prefix);
  7952. }
  7953. function maxRank(g) {
  7954. return _.max(_.map(g.nodes(), function(v) {
  7955. var rank = g.node(v).rank;
  7956. if (!_.isUndefined(rank)) {
  7957. return rank;
  7958. }
  7959. }));
  7960. }
  7961. /*
  7962. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  7963. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  7964. * into `rhs.
  7965. */
  7966. function partition(collection, fn) {
  7967. var result = { lhs: [], rhs: [] };
  7968. _.forEach(collection, function(value) {
  7969. if (fn(value)) {
  7970. result.lhs.push(value);
  7971. } else {
  7972. result.rhs.push(value);
  7973. }
  7974. });
  7975. return result;
  7976. }
  7977. /*
  7978. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  7979. * time it takes to execute the function.
  7980. */
  7981. function time(name, fn) {
  7982. var start = _.now();
  7983. try {
  7984. return fn();
  7985. } finally {
  7986. console.log(name + " time: " + (_.now() - start) + "ms");
  7987. }
  7988. }
  7989. function notime(name, fn) {
  7990. return fn();
  7991. }
  7992. /***/ }),
  7993. /***/ "../../node_modules/dagre/lib/version.js":
  7994. /*!*************************************************************!*\
  7995. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/version.js ***!
  7996. \*************************************************************/
  7997. /*! no static exports found */
  7998. /***/ (function(module, exports) {
  7999. module.exports = "0.8.4";
  8000. /***/ }),
  8001. /***/ "../../node_modules/file-saver/dist/FileSaver.min.js":
  8002. /*!*************************************************************************!*\
  8003. !*** C:/Repos/Babylon.js/node_modules/file-saver/dist/FileSaver.min.js ***!
  8004. \*************************************************************************/
  8005. /*! no static exports found */
  8006. /***/ (function(module, exports, __webpack_require__) {
  8007. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),
  8008. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  8009. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  8010. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open("GET",b),e.responseType="blob",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error("could not download file")},e.send()}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open("","_blank"),e&&(e.document.title=e.document.body.innerText="downloading..."),"string"==typeof a)return c(a,b,d);var g="application/octet-stream"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||g&&h)&&"object"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a, true&&(module.exports=a)});
  8011. //# sourceMappingURL=FileSaver.min.js.map
  8012. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  8013. /***/ }),
  8014. /***/ "../../node_modules/graphlib/index.js":
  8015. /*!**********************************************************!*\
  8016. !*** C:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  8017. \**********************************************************/
  8018. /*! no static exports found */
  8019. /***/ (function(module, exports, __webpack_require__) {
  8020. /**
  8021. * Copyright (c) 2014, Chris Pettitt
  8022. * All rights reserved.
  8023. *
  8024. * Redistribution and use in source and binary forms, with or without
  8025. * modification, are permitted provided that the following conditions are met:
  8026. *
  8027. * 1. Redistributions of source code must retain the above copyright notice, this
  8028. * list of conditions and the following disclaimer.
  8029. *
  8030. * 2. Redistributions in binary form must reproduce the above copyright notice,
  8031. * this list of conditions and the following disclaimer in the documentation
  8032. * and/or other materials provided with the distribution.
  8033. *
  8034. * 3. Neither the name of the copyright holder nor the names of its contributors
  8035. * may be used to endorse or promote products derived from this software without
  8036. * specific prior written permission.
  8037. *
  8038. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  8039. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  8040. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  8041. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  8042. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8043. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  8044. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  8045. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  8046. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  8047. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8048. */
  8049. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  8050. module.exports = {
  8051. Graph: lib.Graph,
  8052. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  8053. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  8054. version: lib.version
  8055. };
  8056. /***/ }),
  8057. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  8058. /*!***********************************************************************!*\
  8059. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  8060. \***********************************************************************/
  8061. /*! no static exports found */
  8062. /***/ (function(module, exports, __webpack_require__) {
  8063. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8064. module.exports = components;
  8065. function components(g) {
  8066. var visited = {},
  8067. cmpts = [],
  8068. cmpt;
  8069. function dfs(v) {
  8070. if (_.has(visited, v)) return;
  8071. visited[v] = true;
  8072. cmpt.push(v);
  8073. _.each(g.successors(v), dfs);
  8074. _.each(g.predecessors(v), dfs);
  8075. }
  8076. _.each(g.nodes(), function(v) {
  8077. cmpt = [];
  8078. dfs(v);
  8079. if (cmpt.length) {
  8080. cmpts.push(cmpt);
  8081. }
  8082. });
  8083. return cmpts;
  8084. }
  8085. /***/ }),
  8086. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  8087. /*!****************************************************************!*\
  8088. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  8089. \****************************************************************/
  8090. /*! no static exports found */
  8091. /***/ (function(module, exports, __webpack_require__) {
  8092. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8093. module.exports = dfs;
  8094. /*
  8095. * A helper that preforms a pre- or post-order traversal on the input graph
  8096. * and returns the nodes in the order they were visited. If the graph is
  8097. * undirected then this algorithm will navigate using neighbors. If the graph
  8098. * is directed then this algorithm will navigate using successors.
  8099. *
  8100. * Order must be one of "pre" or "post".
  8101. */
  8102. function dfs(g, vs, order) {
  8103. if (!_.isArray(vs)) {
  8104. vs = [vs];
  8105. }
  8106. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  8107. var acc = [],
  8108. visited = {};
  8109. _.each(vs, function(v) {
  8110. if (!g.hasNode(v)) {
  8111. throw new Error("Graph does not have node: " + v);
  8112. }
  8113. doDfs(g, v, order === "post", visited, navigation, acc);
  8114. });
  8115. return acc;
  8116. }
  8117. function doDfs(g, v, postorder, visited, navigation, acc) {
  8118. if (!_.has(visited, v)) {
  8119. visited[v] = true;
  8120. if (!postorder) { acc.push(v); }
  8121. _.each(navigation(v), function(w) {
  8122. doDfs(g, w, postorder, visited, navigation, acc);
  8123. });
  8124. if (postorder) { acc.push(v); }
  8125. }
  8126. }
  8127. /***/ }),
  8128. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  8129. /*!*************************************************************************!*\
  8130. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  8131. \*************************************************************************/
  8132. /*! no static exports found */
  8133. /***/ (function(module, exports, __webpack_require__) {
  8134. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8135. _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8136. module.exports = dijkstraAll;
  8137. function dijkstraAll(g, weightFunc, edgeFunc) {
  8138. return _.transform(g.nodes(), function(acc, v) {
  8139. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  8140. }, {});
  8141. }
  8142. /***/ }),
  8143. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  8144. /*!*********************************************************************!*\
  8145. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  8146. \*********************************************************************/
  8147. /*! no static exports found */
  8148. /***/ (function(module, exports, __webpack_require__) {
  8149. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8150. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8151. module.exports = dijkstra;
  8152. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8153. function dijkstra(g, source, weightFn, edgeFn) {
  8154. return runDijkstra(g, String(source),
  8155. weightFn || DEFAULT_WEIGHT_FUNC,
  8156. edgeFn || function(v) { return g.outEdges(v); });
  8157. }
  8158. function runDijkstra(g, source, weightFn, edgeFn) {
  8159. var results = {},
  8160. pq = new PriorityQueue(),
  8161. v, vEntry;
  8162. var updateNeighbors = function(edge) {
  8163. var w = edge.v !== v ? edge.v : edge.w,
  8164. wEntry = results[w],
  8165. weight = weightFn(edge),
  8166. distance = vEntry.distance + weight;
  8167. if (weight < 0) {
  8168. throw new Error("dijkstra does not allow negative edge weights. " +
  8169. "Bad edge: " + edge + " Weight: " + weight);
  8170. }
  8171. if (distance < wEntry.distance) {
  8172. wEntry.distance = distance;
  8173. wEntry.predecessor = v;
  8174. pq.decrease(w, distance);
  8175. }
  8176. };
  8177. g.nodes().forEach(function(v) {
  8178. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  8179. results[v] = { distance: distance };
  8180. pq.add(v, distance);
  8181. });
  8182. while (pq.size() > 0) {
  8183. v = pq.removeMin();
  8184. vEntry = results[v];
  8185. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  8186. break;
  8187. }
  8188. edgeFn(v).forEach(updateNeighbors);
  8189. }
  8190. return results;
  8191. }
  8192. /***/ }),
  8193. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  8194. /*!************************************************************************!*\
  8195. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  8196. \************************************************************************/
  8197. /*! no static exports found */
  8198. /***/ (function(module, exports, __webpack_require__) {
  8199. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8200. tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  8201. module.exports = findCycles;
  8202. function findCycles(g) {
  8203. return _.filter(tarjan(g), function(cmpt) {
  8204. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  8205. });
  8206. }
  8207. /***/ }),
  8208. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  8209. /*!***************************************************************************!*\
  8210. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  8211. \***************************************************************************/
  8212. /*! no static exports found */
  8213. /***/ (function(module, exports, __webpack_require__) {
  8214. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8215. module.exports = floydWarshall;
  8216. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8217. function floydWarshall(g, weightFn, edgeFn) {
  8218. return runFloydWarshall(g,
  8219. weightFn || DEFAULT_WEIGHT_FUNC,
  8220. edgeFn || function(v) { return g.outEdges(v); });
  8221. }
  8222. function runFloydWarshall(g, weightFn, edgeFn) {
  8223. var results = {},
  8224. nodes = g.nodes();
  8225. nodes.forEach(function(v) {
  8226. results[v] = {};
  8227. results[v][v] = { distance: 0 };
  8228. nodes.forEach(function(w) {
  8229. if (v !== w) {
  8230. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  8231. }
  8232. });
  8233. edgeFn(v).forEach(function(edge) {
  8234. var w = edge.v === v ? edge.w : edge.v,
  8235. d = weightFn(edge);
  8236. results[v][w] = { distance: d, predecessor: v };
  8237. });
  8238. });
  8239. nodes.forEach(function(k) {
  8240. var rowK = results[k];
  8241. nodes.forEach(function(i) {
  8242. var rowI = results[i];
  8243. nodes.forEach(function(j) {
  8244. var ik = rowI[k];
  8245. var kj = rowK[j];
  8246. var ij = rowI[j];
  8247. var altDistance = ik.distance + kj.distance;
  8248. if (altDistance < ij.distance) {
  8249. ij.distance = altDistance;
  8250. ij.predecessor = kj.predecessor;
  8251. }
  8252. });
  8253. });
  8254. });
  8255. return results;
  8256. }
  8257. /***/ }),
  8258. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  8259. /*!******************************************************************!*\
  8260. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  8261. \******************************************************************/
  8262. /*! no static exports found */
  8263. /***/ (function(module, exports, __webpack_require__) {
  8264. module.exports = {
  8265. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  8266. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8267. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  8268. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  8269. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  8270. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  8271. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  8272. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  8273. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  8274. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  8275. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  8276. };
  8277. /***/ }),
  8278. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  8279. /*!***********************************************************************!*\
  8280. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  8281. \***********************************************************************/
  8282. /*! no static exports found */
  8283. /***/ (function(module, exports, __webpack_require__) {
  8284. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  8285. module.exports = isAcyclic;
  8286. function isAcyclic(g) {
  8287. try {
  8288. topsort(g);
  8289. } catch (e) {
  8290. if (e instanceof topsort.CycleException) {
  8291. return false;
  8292. }
  8293. throw e;
  8294. }
  8295. return true;
  8296. }
  8297. /***/ }),
  8298. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  8299. /*!**********************************************************************!*\
  8300. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  8301. \**********************************************************************/
  8302. /*! no static exports found */
  8303. /***/ (function(module, exports, __webpack_require__) {
  8304. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8305. module.exports = postorder;
  8306. function postorder(g, vs) {
  8307. return dfs(g, vs, "post");
  8308. }
  8309. /***/ }),
  8310. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  8311. /*!*********************************************************************!*\
  8312. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  8313. \*********************************************************************/
  8314. /*! no static exports found */
  8315. /***/ (function(module, exports, __webpack_require__) {
  8316. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8317. module.exports = preorder;
  8318. function preorder(g, vs) {
  8319. return dfs(g, vs, "pre");
  8320. }
  8321. /***/ }),
  8322. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  8323. /*!*****************************************************************!*\
  8324. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  8325. \*****************************************************************/
  8326. /*! no static exports found */
  8327. /***/ (function(module, exports, __webpack_require__) {
  8328. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8329. Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js"),
  8330. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8331. module.exports = prim;
  8332. function prim(g, weightFunc) {
  8333. var result = new Graph(),
  8334. parents = {},
  8335. pq = new PriorityQueue(),
  8336. v;
  8337. function updateNeighbors(edge) {
  8338. var w = edge.v === v ? edge.w : edge.v,
  8339. pri = pq.priority(w);
  8340. if (pri !== undefined) {
  8341. var edgeWeight = weightFunc(edge);
  8342. if (edgeWeight < pri) {
  8343. parents[w] = v;
  8344. pq.decrease(w, edgeWeight);
  8345. }
  8346. }
  8347. }
  8348. if (g.nodeCount() === 0) {
  8349. return result;
  8350. }
  8351. _.each(g.nodes(), function(v) {
  8352. pq.add(v, Number.POSITIVE_INFINITY);
  8353. result.setNode(v);
  8354. });
  8355. // Start from an arbitrary node
  8356. pq.decrease(g.nodes()[0], 0);
  8357. var init = false;
  8358. while (pq.size() > 0) {
  8359. v = pq.removeMin();
  8360. if (_.has(parents, v)) {
  8361. result.setEdge(v, parents[v]);
  8362. } else if (init) {
  8363. throw new Error("Input graph is not connected: " + g);
  8364. } else {
  8365. init = true;
  8366. }
  8367. g.nodeEdges(v).forEach(updateNeighbors);
  8368. }
  8369. return result;
  8370. }
  8371. /***/ }),
  8372. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  8373. /*!*******************************************************************!*\
  8374. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  8375. \*******************************************************************/
  8376. /*! no static exports found */
  8377. /***/ (function(module, exports, __webpack_require__) {
  8378. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8379. module.exports = tarjan;
  8380. function tarjan(g) {
  8381. var index = 0,
  8382. stack = [],
  8383. visited = {}, // node id -> { onStack, lowlink, index }
  8384. results = [];
  8385. function dfs(v) {
  8386. var entry = visited[v] = {
  8387. onStack: true,
  8388. lowlink: index,
  8389. index: index++
  8390. };
  8391. stack.push(v);
  8392. g.successors(v).forEach(function(w) {
  8393. if (!_.has(visited, w)) {
  8394. dfs(w);
  8395. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  8396. } else if (visited[w].onStack) {
  8397. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  8398. }
  8399. });
  8400. if (entry.lowlink === entry.index) {
  8401. var cmpt = [],
  8402. w;
  8403. do {
  8404. w = stack.pop();
  8405. visited[w].onStack = false;
  8406. cmpt.push(w);
  8407. } while (v !== w);
  8408. results.push(cmpt);
  8409. }
  8410. }
  8411. g.nodes().forEach(function(v) {
  8412. if (!_.has(visited, v)) {
  8413. dfs(v);
  8414. }
  8415. });
  8416. return results;
  8417. }
  8418. /***/ }),
  8419. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  8420. /*!********************************************************************!*\
  8421. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  8422. \********************************************************************/
  8423. /*! no static exports found */
  8424. /***/ (function(module, exports, __webpack_require__) {
  8425. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8426. module.exports = topsort;
  8427. topsort.CycleException = CycleException;
  8428. function topsort(g) {
  8429. var visited = {},
  8430. stack = {},
  8431. results = [];
  8432. function visit(node) {
  8433. if (_.has(stack, node)) {
  8434. throw new CycleException();
  8435. }
  8436. if (!_.has(visited, node)) {
  8437. stack[node] = true;
  8438. visited[node] = true;
  8439. _.each(g.predecessors(node), visit);
  8440. delete stack[node];
  8441. results.push(node);
  8442. }
  8443. }
  8444. _.each(g.sinks(), visit);
  8445. if (_.size(visited) !== g.nodeCount()) {
  8446. throw new CycleException();
  8447. }
  8448. return results;
  8449. }
  8450. function CycleException() {}
  8451. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  8452. /***/ }),
  8453. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  8454. /*!****************************************************************************!*\
  8455. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  8456. \****************************************************************************/
  8457. /*! no static exports found */
  8458. /***/ (function(module, exports, __webpack_require__) {
  8459. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8460. module.exports = PriorityQueue;
  8461. /**
  8462. * A min-priority queue data structure. This algorithm is derived from Cormen,
  8463. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  8464. * queue is that you can efficiently (in O(1) time) get the smallest key in
  8465. * the queue. Adding and removing elements takes O(log n) time. A key can
  8466. * have its priority decreased in O(log n) time.
  8467. */
  8468. function PriorityQueue() {
  8469. this._arr = [];
  8470. this._keyIndices = {};
  8471. }
  8472. /**
  8473. * Returns the number of elements in the queue. Takes `O(1)` time.
  8474. */
  8475. PriorityQueue.prototype.size = function() {
  8476. return this._arr.length;
  8477. };
  8478. /**
  8479. * Returns the keys that are in the queue. Takes `O(n)` time.
  8480. */
  8481. PriorityQueue.prototype.keys = function() {
  8482. return this._arr.map(function(x) { return x.key; });
  8483. };
  8484. /**
  8485. * Returns `true` if **key** is in the queue and `false` if not.
  8486. */
  8487. PriorityQueue.prototype.has = function(key) {
  8488. return _.has(this._keyIndices, key);
  8489. };
  8490. /**
  8491. * Returns the priority for **key**. If **key** is not present in the queue
  8492. * then this function returns `undefined`. Takes `O(1)` time.
  8493. *
  8494. * @param {Object} key
  8495. */
  8496. PriorityQueue.prototype.priority = function(key) {
  8497. var index = this._keyIndices[key];
  8498. if (index !== undefined) {
  8499. return this._arr[index].priority;
  8500. }
  8501. };
  8502. /**
  8503. * Returns the key for the minimum element in this queue. If the queue is
  8504. * empty this function throws an Error. Takes `O(1)` time.
  8505. */
  8506. PriorityQueue.prototype.min = function() {
  8507. if (this.size() === 0) {
  8508. throw new Error("Queue underflow");
  8509. }
  8510. return this._arr[0].key;
  8511. };
  8512. /**
  8513. * Inserts a new key into the priority queue. If the key already exists in
  8514. * the queue this function returns `false`; otherwise it will return `true`.
  8515. * Takes `O(n)` time.
  8516. *
  8517. * @param {Object} key the key to add
  8518. * @param {Number} priority the initial priority for the key
  8519. */
  8520. PriorityQueue.prototype.add = function(key, priority) {
  8521. var keyIndices = this._keyIndices;
  8522. key = String(key);
  8523. if (!_.has(keyIndices, key)) {
  8524. var arr = this._arr;
  8525. var index = arr.length;
  8526. keyIndices[key] = index;
  8527. arr.push({key: key, priority: priority});
  8528. this._decrease(index);
  8529. return true;
  8530. }
  8531. return false;
  8532. };
  8533. /**
  8534. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  8535. */
  8536. PriorityQueue.prototype.removeMin = function() {
  8537. this._swap(0, this._arr.length - 1);
  8538. var min = this._arr.pop();
  8539. delete this._keyIndices[min.key];
  8540. this._heapify(0);
  8541. return min.key;
  8542. };
  8543. /**
  8544. * Decreases the priority for **key** to **priority**. If the new priority is
  8545. * greater than the previous priority, this function will throw an Error.
  8546. *
  8547. * @param {Object} key the key for which to raise priority
  8548. * @param {Number} priority the new priority for the key
  8549. */
  8550. PriorityQueue.prototype.decrease = function(key, priority) {
  8551. var index = this._keyIndices[key];
  8552. if (priority > this._arr[index].priority) {
  8553. throw new Error("New priority is greater than current priority. " +
  8554. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  8555. }
  8556. this._arr[index].priority = priority;
  8557. this._decrease(index);
  8558. };
  8559. PriorityQueue.prototype._heapify = function(i) {
  8560. var arr = this._arr;
  8561. var l = 2 * i,
  8562. r = l + 1,
  8563. largest = i;
  8564. if (l < arr.length) {
  8565. largest = arr[l].priority < arr[largest].priority ? l : largest;
  8566. if (r < arr.length) {
  8567. largest = arr[r].priority < arr[largest].priority ? r : largest;
  8568. }
  8569. if (largest !== i) {
  8570. this._swap(i, largest);
  8571. this._heapify(largest);
  8572. }
  8573. }
  8574. };
  8575. PriorityQueue.prototype._decrease = function(index) {
  8576. var arr = this._arr;
  8577. var priority = arr[index].priority;
  8578. var parent;
  8579. while (index !== 0) {
  8580. parent = index >> 1;
  8581. if (arr[parent].priority < priority) {
  8582. break;
  8583. }
  8584. this._swap(index, parent);
  8585. index = parent;
  8586. }
  8587. };
  8588. PriorityQueue.prototype._swap = function(i, j) {
  8589. var arr = this._arr;
  8590. var keyIndices = this._keyIndices;
  8591. var origArrI = arr[i];
  8592. var origArrJ = arr[j];
  8593. arr[i] = origArrJ;
  8594. arr[j] = origArrI;
  8595. keyIndices[origArrJ.key] = i;
  8596. keyIndices[origArrI.key] = j;
  8597. };
  8598. /***/ }),
  8599. /***/ "../../node_modules/graphlib/lib/graph.js":
  8600. /*!**************************************************************!*\
  8601. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  8602. \**************************************************************/
  8603. /*! no static exports found */
  8604. /***/ (function(module, exports, __webpack_require__) {
  8605. "use strict";
  8606. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8607. module.exports = Graph;
  8608. var DEFAULT_EDGE_NAME = "\x00",
  8609. GRAPH_NODE = "\x00",
  8610. EDGE_KEY_DELIM = "\x01";
  8611. // Implementation notes:
  8612. //
  8613. // * Node id query functions should return string ids for the nodes
  8614. // * Edge id query functions should return an "edgeObj", edge object, that is
  8615. // composed of enough information to uniquely identify an edge: {v, w, name}.
  8616. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  8617. // reference edges. This is because we need a performant way to look these
  8618. // edges up and, object properties, which have string keys, are the closest
  8619. // we're going to get to a performant hashtable in JavaScript.
  8620. function Graph(opts) {
  8621. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  8622. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  8623. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  8624. // Label for the graph itself
  8625. this._label = undefined;
  8626. // Defaults to be set when creating a new node
  8627. this._defaultNodeLabelFn = _.constant(undefined);
  8628. // Defaults to be set when creating a new edge
  8629. this._defaultEdgeLabelFn = _.constant(undefined);
  8630. // v -> label
  8631. this._nodes = {};
  8632. if (this._isCompound) {
  8633. // v -> parent
  8634. this._parent = {};
  8635. // v -> children
  8636. this._children = {};
  8637. this._children[GRAPH_NODE] = {};
  8638. }
  8639. // v -> edgeObj
  8640. this._in = {};
  8641. // u -> v -> Number
  8642. this._preds = {};
  8643. // v -> edgeObj
  8644. this._out = {};
  8645. // v -> w -> Number
  8646. this._sucs = {};
  8647. // e -> edgeObj
  8648. this._edgeObjs = {};
  8649. // e -> label
  8650. this._edgeLabels = {};
  8651. }
  8652. /* Number of nodes in the graph. Should only be changed by the implementation. */
  8653. Graph.prototype._nodeCount = 0;
  8654. /* Number of edges in the graph. Should only be changed by the implementation. */
  8655. Graph.prototype._edgeCount = 0;
  8656. /* === Graph functions ========= */
  8657. Graph.prototype.isDirected = function() {
  8658. return this._isDirected;
  8659. };
  8660. Graph.prototype.isMultigraph = function() {
  8661. return this._isMultigraph;
  8662. };
  8663. Graph.prototype.isCompound = function() {
  8664. return this._isCompound;
  8665. };
  8666. Graph.prototype.setGraph = function(label) {
  8667. this._label = label;
  8668. return this;
  8669. };
  8670. Graph.prototype.graph = function() {
  8671. return this._label;
  8672. };
  8673. /* === Node functions ========== */
  8674. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  8675. if (!_.isFunction(newDefault)) {
  8676. newDefault = _.constant(newDefault);
  8677. }
  8678. this._defaultNodeLabelFn = newDefault;
  8679. return this;
  8680. };
  8681. Graph.prototype.nodeCount = function() {
  8682. return this._nodeCount;
  8683. };
  8684. Graph.prototype.nodes = function() {
  8685. return _.keys(this._nodes);
  8686. };
  8687. Graph.prototype.sources = function() {
  8688. var self = this;
  8689. return _.filter(this.nodes(), function(v) {
  8690. return _.isEmpty(self._in[v]);
  8691. });
  8692. };
  8693. Graph.prototype.sinks = function() {
  8694. var self = this;
  8695. return _.filter(this.nodes(), function(v) {
  8696. return _.isEmpty(self._out[v]);
  8697. });
  8698. };
  8699. Graph.prototype.setNodes = function(vs, value) {
  8700. var args = arguments;
  8701. var self = this;
  8702. _.each(vs, function(v) {
  8703. if (args.length > 1) {
  8704. self.setNode(v, value);
  8705. } else {
  8706. self.setNode(v);
  8707. }
  8708. });
  8709. return this;
  8710. };
  8711. Graph.prototype.setNode = function(v, value) {
  8712. if (_.has(this._nodes, v)) {
  8713. if (arguments.length > 1) {
  8714. this._nodes[v] = value;
  8715. }
  8716. return this;
  8717. }
  8718. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  8719. if (this._isCompound) {
  8720. this._parent[v] = GRAPH_NODE;
  8721. this._children[v] = {};
  8722. this._children[GRAPH_NODE][v] = true;
  8723. }
  8724. this._in[v] = {};
  8725. this._preds[v] = {};
  8726. this._out[v] = {};
  8727. this._sucs[v] = {};
  8728. ++this._nodeCount;
  8729. return this;
  8730. };
  8731. Graph.prototype.node = function(v) {
  8732. return this._nodes[v];
  8733. };
  8734. Graph.prototype.hasNode = function(v) {
  8735. return _.has(this._nodes, v);
  8736. };
  8737. Graph.prototype.removeNode = function(v) {
  8738. var self = this;
  8739. if (_.has(this._nodes, v)) {
  8740. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  8741. delete this._nodes[v];
  8742. if (this._isCompound) {
  8743. this._removeFromParentsChildList(v);
  8744. delete this._parent[v];
  8745. _.each(this.children(v), function(child) {
  8746. self.setParent(child);
  8747. });
  8748. delete this._children[v];
  8749. }
  8750. _.each(_.keys(this._in[v]), removeEdge);
  8751. delete this._in[v];
  8752. delete this._preds[v];
  8753. _.each(_.keys(this._out[v]), removeEdge);
  8754. delete this._out[v];
  8755. delete this._sucs[v];
  8756. --this._nodeCount;
  8757. }
  8758. return this;
  8759. };
  8760. Graph.prototype.setParent = function(v, parent) {
  8761. if (!this._isCompound) {
  8762. throw new Error("Cannot set parent in a non-compound graph");
  8763. }
  8764. if (_.isUndefined(parent)) {
  8765. parent = GRAPH_NODE;
  8766. } else {
  8767. // Coerce parent to string
  8768. parent += "";
  8769. for (var ancestor = parent;
  8770. !_.isUndefined(ancestor);
  8771. ancestor = this.parent(ancestor)) {
  8772. if (ancestor === v) {
  8773. throw new Error("Setting " + parent+ " as parent of " + v +
  8774. " would create a cycle");
  8775. }
  8776. }
  8777. this.setNode(parent);
  8778. }
  8779. this.setNode(v);
  8780. this._removeFromParentsChildList(v);
  8781. this._parent[v] = parent;
  8782. this._children[parent][v] = true;
  8783. return this;
  8784. };
  8785. Graph.prototype._removeFromParentsChildList = function(v) {
  8786. delete this._children[this._parent[v]][v];
  8787. };
  8788. Graph.prototype.parent = function(v) {
  8789. if (this._isCompound) {
  8790. var parent = this._parent[v];
  8791. if (parent !== GRAPH_NODE) {
  8792. return parent;
  8793. }
  8794. }
  8795. };
  8796. Graph.prototype.children = function(v) {
  8797. if (_.isUndefined(v)) {
  8798. v = GRAPH_NODE;
  8799. }
  8800. if (this._isCompound) {
  8801. var children = this._children[v];
  8802. if (children) {
  8803. return _.keys(children);
  8804. }
  8805. } else if (v === GRAPH_NODE) {
  8806. return this.nodes();
  8807. } else if (this.hasNode(v)) {
  8808. return [];
  8809. }
  8810. };
  8811. Graph.prototype.predecessors = function(v) {
  8812. var predsV = this._preds[v];
  8813. if (predsV) {
  8814. return _.keys(predsV);
  8815. }
  8816. };
  8817. Graph.prototype.successors = function(v) {
  8818. var sucsV = this._sucs[v];
  8819. if (sucsV) {
  8820. return _.keys(sucsV);
  8821. }
  8822. };
  8823. Graph.prototype.neighbors = function(v) {
  8824. var preds = this.predecessors(v);
  8825. if (preds) {
  8826. return _.union(preds, this.successors(v));
  8827. }
  8828. };
  8829. Graph.prototype.isLeaf = function (v) {
  8830. var neighbors;
  8831. if (this.isDirected()) {
  8832. neighbors = this.successors(v);
  8833. } else {
  8834. neighbors = this.neighbors(v);
  8835. }
  8836. return neighbors.length === 0;
  8837. };
  8838. Graph.prototype.filterNodes = function(filter) {
  8839. var copy = new this.constructor({
  8840. directed: this._isDirected,
  8841. multigraph: this._isMultigraph,
  8842. compound: this._isCompound
  8843. });
  8844. copy.setGraph(this.graph());
  8845. var self = this;
  8846. _.each(this._nodes, function(value, v) {
  8847. if (filter(v)) {
  8848. copy.setNode(v, value);
  8849. }
  8850. });
  8851. _.each(this._edgeObjs, function(e) {
  8852. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  8853. copy.setEdge(e, self.edge(e));
  8854. }
  8855. });
  8856. var parents = {};
  8857. function findParent(v) {
  8858. var parent = self.parent(v);
  8859. if (parent === undefined || copy.hasNode(parent)) {
  8860. parents[v] = parent;
  8861. return parent;
  8862. } else if (parent in parents) {
  8863. return parents[parent];
  8864. } else {
  8865. return findParent(parent);
  8866. }
  8867. }
  8868. if (this._isCompound) {
  8869. _.each(copy.nodes(), function(v) {
  8870. copy.setParent(v, findParent(v));
  8871. });
  8872. }
  8873. return copy;
  8874. };
  8875. /* === Edge functions ========== */
  8876. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  8877. if (!_.isFunction(newDefault)) {
  8878. newDefault = _.constant(newDefault);
  8879. }
  8880. this._defaultEdgeLabelFn = newDefault;
  8881. return this;
  8882. };
  8883. Graph.prototype.edgeCount = function() {
  8884. return this._edgeCount;
  8885. };
  8886. Graph.prototype.edges = function() {
  8887. return _.values(this._edgeObjs);
  8888. };
  8889. Graph.prototype.setPath = function(vs, value) {
  8890. var self = this,
  8891. args = arguments;
  8892. _.reduce(vs, function(v, w) {
  8893. if (args.length > 1) {
  8894. self.setEdge(v, w, value);
  8895. } else {
  8896. self.setEdge(v, w);
  8897. }
  8898. return w;
  8899. });
  8900. return this;
  8901. };
  8902. /*
  8903. * setEdge(v, w, [value, [name]])
  8904. * setEdge({ v, w, [name] }, [value])
  8905. */
  8906. Graph.prototype.setEdge = function() {
  8907. var v, w, name, value,
  8908. valueSpecified = false,
  8909. arg0 = arguments[0];
  8910. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  8911. v = arg0.v;
  8912. w = arg0.w;
  8913. name = arg0.name;
  8914. if (arguments.length === 2) {
  8915. value = arguments[1];
  8916. valueSpecified = true;
  8917. }
  8918. } else {
  8919. v = arg0;
  8920. w = arguments[1];
  8921. name = arguments[3];
  8922. if (arguments.length > 2) {
  8923. value = arguments[2];
  8924. valueSpecified = true;
  8925. }
  8926. }
  8927. v = "" + v;
  8928. w = "" + w;
  8929. if (!_.isUndefined(name)) {
  8930. name = "" + name;
  8931. }
  8932. var e = edgeArgsToId(this._isDirected, v, w, name);
  8933. if (_.has(this._edgeLabels, e)) {
  8934. if (valueSpecified) {
  8935. this._edgeLabels[e] = value;
  8936. }
  8937. return this;
  8938. }
  8939. if (!_.isUndefined(name) && !this._isMultigraph) {
  8940. throw new Error("Cannot set a named edge when isMultigraph = false");
  8941. }
  8942. // It didn't exist, so we need to create it.
  8943. // First ensure the nodes exist.
  8944. this.setNode(v);
  8945. this.setNode(w);
  8946. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  8947. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  8948. // Ensure we add undirected edges in a consistent way.
  8949. v = edgeObj.v;
  8950. w = edgeObj.w;
  8951. Object.freeze(edgeObj);
  8952. this._edgeObjs[e] = edgeObj;
  8953. incrementOrInitEntry(this._preds[w], v);
  8954. incrementOrInitEntry(this._sucs[v], w);
  8955. this._in[w][e] = edgeObj;
  8956. this._out[v][e] = edgeObj;
  8957. this._edgeCount++;
  8958. return this;
  8959. };
  8960. Graph.prototype.edge = function(v, w, name) {
  8961. var e = (arguments.length === 1
  8962. ? edgeObjToId(this._isDirected, arguments[0])
  8963. : edgeArgsToId(this._isDirected, v, w, name));
  8964. return this._edgeLabels[e];
  8965. };
  8966. Graph.prototype.hasEdge = function(v, w, name) {
  8967. var e = (arguments.length === 1
  8968. ? edgeObjToId(this._isDirected, arguments[0])
  8969. : edgeArgsToId(this._isDirected, v, w, name));
  8970. return _.has(this._edgeLabels, e);
  8971. };
  8972. Graph.prototype.removeEdge = function(v, w, name) {
  8973. var e = (arguments.length === 1
  8974. ? edgeObjToId(this._isDirected, arguments[0])
  8975. : edgeArgsToId(this._isDirected, v, w, name)),
  8976. edge = this._edgeObjs[e];
  8977. if (edge) {
  8978. v = edge.v;
  8979. w = edge.w;
  8980. delete this._edgeLabels[e];
  8981. delete this._edgeObjs[e];
  8982. decrementOrRemoveEntry(this._preds[w], v);
  8983. decrementOrRemoveEntry(this._sucs[v], w);
  8984. delete this._in[w][e];
  8985. delete this._out[v][e];
  8986. this._edgeCount--;
  8987. }
  8988. return this;
  8989. };
  8990. Graph.prototype.inEdges = function(v, u) {
  8991. var inV = this._in[v];
  8992. if (inV) {
  8993. var edges = _.values(inV);
  8994. if (!u) {
  8995. return edges;
  8996. }
  8997. return _.filter(edges, function(edge) { return edge.v === u; });
  8998. }
  8999. };
  9000. Graph.prototype.outEdges = function(v, w) {
  9001. var outV = this._out[v];
  9002. if (outV) {
  9003. var edges = _.values(outV);
  9004. if (!w) {
  9005. return edges;
  9006. }
  9007. return _.filter(edges, function(edge) { return edge.w === w; });
  9008. }
  9009. };
  9010. Graph.prototype.nodeEdges = function(v, w) {
  9011. var inEdges = this.inEdges(v, w);
  9012. if (inEdges) {
  9013. return inEdges.concat(this.outEdges(v, w));
  9014. }
  9015. };
  9016. function incrementOrInitEntry(map, k) {
  9017. if (map[k]) {
  9018. map[k]++;
  9019. } else {
  9020. map[k] = 1;
  9021. }
  9022. }
  9023. function decrementOrRemoveEntry(map, k) {
  9024. if (!--map[k]) { delete map[k]; }
  9025. }
  9026. function edgeArgsToId(isDirected, v_, w_, name) {
  9027. var v = "" + v_;
  9028. var w = "" + w_;
  9029. if (!isDirected && v > w) {
  9030. var tmp = v;
  9031. v = w;
  9032. w = tmp;
  9033. }
  9034. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  9035. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  9036. }
  9037. function edgeArgsToObj(isDirected, v_, w_, name) {
  9038. var v = "" + v_;
  9039. var w = "" + w_;
  9040. if (!isDirected && v > w) {
  9041. var tmp = v;
  9042. v = w;
  9043. w = tmp;
  9044. }
  9045. var edgeObj = { v: v, w: w };
  9046. if (name) {
  9047. edgeObj.name = name;
  9048. }
  9049. return edgeObj;
  9050. }
  9051. function edgeObjToId(isDirected, edgeObj) {
  9052. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  9053. }
  9054. /***/ }),
  9055. /***/ "../../node_modules/graphlib/lib/index.js":
  9056. /*!**************************************************************!*\
  9057. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  9058. \**************************************************************/
  9059. /*! no static exports found */
  9060. /***/ (function(module, exports, __webpack_require__) {
  9061. // Includes only the "core" of graphlib
  9062. module.exports = {
  9063. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  9064. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  9065. };
  9066. /***/ }),
  9067. /***/ "../../node_modules/graphlib/lib/json.js":
  9068. /*!*************************************************************!*\
  9069. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  9070. \*************************************************************/
  9071. /*! no static exports found */
  9072. /***/ (function(module, exports, __webpack_require__) {
  9073. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  9074. Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  9075. module.exports = {
  9076. write: write,
  9077. read: read
  9078. };
  9079. function write(g) {
  9080. var json = {
  9081. options: {
  9082. directed: g.isDirected(),
  9083. multigraph: g.isMultigraph(),
  9084. compound: g.isCompound()
  9085. },
  9086. nodes: writeNodes(g),
  9087. edges: writeEdges(g)
  9088. };
  9089. if (!_.isUndefined(g.graph())) {
  9090. json.value = _.clone(g.graph());
  9091. }
  9092. return json;
  9093. }
  9094. function writeNodes(g) {
  9095. return _.map(g.nodes(), function(v) {
  9096. var nodeValue = g.node(v),
  9097. parent = g.parent(v),
  9098. node = { v: v };
  9099. if (!_.isUndefined(nodeValue)) {
  9100. node.value = nodeValue;
  9101. }
  9102. if (!_.isUndefined(parent)) {
  9103. node.parent = parent;
  9104. }
  9105. return node;
  9106. });
  9107. }
  9108. function writeEdges(g) {
  9109. return _.map(g.edges(), function(e) {
  9110. var edgeValue = g.edge(e),
  9111. edge = { v: e.v, w: e.w };
  9112. if (!_.isUndefined(e.name)) {
  9113. edge.name = e.name;
  9114. }
  9115. if (!_.isUndefined(edgeValue)) {
  9116. edge.value = edgeValue;
  9117. }
  9118. return edge;
  9119. });
  9120. }
  9121. function read(json) {
  9122. var g = new Graph(json.options).setGraph(json.value);
  9123. _.each(json.nodes, function(entry) {
  9124. g.setNode(entry.v, entry.value);
  9125. if (entry.parent) {
  9126. g.setParent(entry.v, entry.parent);
  9127. }
  9128. });
  9129. _.each(json.edges, function(entry) {
  9130. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  9131. });
  9132. return g;
  9133. }
  9134. /***/ }),
  9135. /***/ "../../node_modules/graphlib/lib/lodash.js":
  9136. /*!***************************************************************!*\
  9137. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  9138. \***************************************************************/
  9139. /*! no static exports found */
  9140. /***/ (function(module, exports, __webpack_require__) {
  9141. /* global window */
  9142. var lodash;
  9143. if (true) {
  9144. try {
  9145. lodash = {
  9146. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  9147. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  9148. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  9149. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  9150. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  9151. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  9152. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  9153. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  9154. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  9155. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  9156. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  9157. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  9158. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  9159. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  9160. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  9161. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  9162. };
  9163. } catch (e) {}
  9164. }
  9165. if (!lodash) {
  9166. lodash = window._;
  9167. }
  9168. module.exports = lodash;
  9169. /***/ }),
  9170. /***/ "../../node_modules/graphlib/lib/version.js":
  9171. /*!****************************************************************!*\
  9172. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  9173. \****************************************************************/
  9174. /*! no static exports found */
  9175. /***/ (function(module, exports) {
  9176. module.exports = '2.1.7';
  9177. /***/ }),
  9178. /***/ "../../node_modules/lodash/_DataView.js":
  9179. /*!************************************************************!*\
  9180. !*** C:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  9181. \************************************************************/
  9182. /*! no static exports found */
  9183. /***/ (function(module, exports, __webpack_require__) {
  9184. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9185. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9186. /* Built-in method references that are verified to be native. */
  9187. var DataView = getNative(root, 'DataView');
  9188. module.exports = DataView;
  9189. /***/ }),
  9190. /***/ "../../node_modules/lodash/_Hash.js":
  9191. /*!********************************************************!*\
  9192. !*** C:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  9193. \********************************************************/
  9194. /*! no static exports found */
  9195. /***/ (function(module, exports, __webpack_require__) {
  9196. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  9197. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  9198. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  9199. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  9200. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  9201. /**
  9202. * Creates a hash object.
  9203. *
  9204. * @private
  9205. * @constructor
  9206. * @param {Array} [entries] The key-value pairs to cache.
  9207. */
  9208. function Hash(entries) {
  9209. var index = -1,
  9210. length = entries == null ? 0 : entries.length;
  9211. this.clear();
  9212. while (++index < length) {
  9213. var entry = entries[index];
  9214. this.set(entry[0], entry[1]);
  9215. }
  9216. }
  9217. // Add methods to `Hash`.
  9218. Hash.prototype.clear = hashClear;
  9219. Hash.prototype['delete'] = hashDelete;
  9220. Hash.prototype.get = hashGet;
  9221. Hash.prototype.has = hashHas;
  9222. Hash.prototype.set = hashSet;
  9223. module.exports = Hash;
  9224. /***/ }),
  9225. /***/ "../../node_modules/lodash/_ListCache.js":
  9226. /*!*************************************************************!*\
  9227. !*** C:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  9228. \*************************************************************/
  9229. /*! no static exports found */
  9230. /***/ (function(module, exports, __webpack_require__) {
  9231. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  9232. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  9233. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  9234. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  9235. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  9236. /**
  9237. * Creates an list cache object.
  9238. *
  9239. * @private
  9240. * @constructor
  9241. * @param {Array} [entries] The key-value pairs to cache.
  9242. */
  9243. function ListCache(entries) {
  9244. var index = -1,
  9245. length = entries == null ? 0 : entries.length;
  9246. this.clear();
  9247. while (++index < length) {
  9248. var entry = entries[index];
  9249. this.set(entry[0], entry[1]);
  9250. }
  9251. }
  9252. // Add methods to `ListCache`.
  9253. ListCache.prototype.clear = listCacheClear;
  9254. ListCache.prototype['delete'] = listCacheDelete;
  9255. ListCache.prototype.get = listCacheGet;
  9256. ListCache.prototype.has = listCacheHas;
  9257. ListCache.prototype.set = listCacheSet;
  9258. module.exports = ListCache;
  9259. /***/ }),
  9260. /***/ "../../node_modules/lodash/_Map.js":
  9261. /*!*******************************************************!*\
  9262. !*** C:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  9263. \*******************************************************/
  9264. /*! no static exports found */
  9265. /***/ (function(module, exports, __webpack_require__) {
  9266. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9267. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9268. /* Built-in method references that are verified to be native. */
  9269. var Map = getNative(root, 'Map');
  9270. module.exports = Map;
  9271. /***/ }),
  9272. /***/ "../../node_modules/lodash/_MapCache.js":
  9273. /*!************************************************************!*\
  9274. !*** C:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  9275. \************************************************************/
  9276. /*! no static exports found */
  9277. /***/ (function(module, exports, __webpack_require__) {
  9278. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  9279. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  9280. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  9281. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  9282. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  9283. /**
  9284. * Creates a map cache object to store key-value pairs.
  9285. *
  9286. * @private
  9287. * @constructor
  9288. * @param {Array} [entries] The key-value pairs to cache.
  9289. */
  9290. function MapCache(entries) {
  9291. var index = -1,
  9292. length = entries == null ? 0 : entries.length;
  9293. this.clear();
  9294. while (++index < length) {
  9295. var entry = entries[index];
  9296. this.set(entry[0], entry[1]);
  9297. }
  9298. }
  9299. // Add methods to `MapCache`.
  9300. MapCache.prototype.clear = mapCacheClear;
  9301. MapCache.prototype['delete'] = mapCacheDelete;
  9302. MapCache.prototype.get = mapCacheGet;
  9303. MapCache.prototype.has = mapCacheHas;
  9304. MapCache.prototype.set = mapCacheSet;
  9305. module.exports = MapCache;
  9306. /***/ }),
  9307. /***/ "../../node_modules/lodash/_Promise.js":
  9308. /*!***********************************************************!*\
  9309. !*** C:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  9310. \***********************************************************/
  9311. /*! no static exports found */
  9312. /***/ (function(module, exports, __webpack_require__) {
  9313. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9314. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9315. /* Built-in method references that are verified to be native. */
  9316. var Promise = getNative(root, 'Promise');
  9317. module.exports = Promise;
  9318. /***/ }),
  9319. /***/ "../../node_modules/lodash/_Set.js":
  9320. /*!*******************************************************!*\
  9321. !*** C:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  9322. \*******************************************************/
  9323. /*! no static exports found */
  9324. /***/ (function(module, exports, __webpack_require__) {
  9325. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9326. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9327. /* Built-in method references that are verified to be native. */
  9328. var Set = getNative(root, 'Set');
  9329. module.exports = Set;
  9330. /***/ }),
  9331. /***/ "../../node_modules/lodash/_SetCache.js":
  9332. /*!************************************************************!*\
  9333. !*** C:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  9334. \************************************************************/
  9335. /*! no static exports found */
  9336. /***/ (function(module, exports, __webpack_require__) {
  9337. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  9338. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  9339. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  9340. /**
  9341. *
  9342. * Creates an array cache object to store unique values.
  9343. *
  9344. * @private
  9345. * @constructor
  9346. * @param {Array} [values] The values to cache.
  9347. */
  9348. function SetCache(values) {
  9349. var index = -1,
  9350. length = values == null ? 0 : values.length;
  9351. this.__data__ = new MapCache;
  9352. while (++index < length) {
  9353. this.add(values[index]);
  9354. }
  9355. }
  9356. // Add methods to `SetCache`.
  9357. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  9358. SetCache.prototype.has = setCacheHas;
  9359. module.exports = SetCache;
  9360. /***/ }),
  9361. /***/ "../../node_modules/lodash/_Stack.js":
  9362. /*!*********************************************************!*\
  9363. !*** C:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  9364. \*********************************************************/
  9365. /*! no static exports found */
  9366. /***/ (function(module, exports, __webpack_require__) {
  9367. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  9368. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  9369. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  9370. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  9371. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  9372. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  9373. /**
  9374. * Creates a stack cache object to store key-value pairs.
  9375. *
  9376. * @private
  9377. * @constructor
  9378. * @param {Array} [entries] The key-value pairs to cache.
  9379. */
  9380. function Stack(entries) {
  9381. var data = this.__data__ = new ListCache(entries);
  9382. this.size = data.size;
  9383. }
  9384. // Add methods to `Stack`.
  9385. Stack.prototype.clear = stackClear;
  9386. Stack.prototype['delete'] = stackDelete;
  9387. Stack.prototype.get = stackGet;
  9388. Stack.prototype.has = stackHas;
  9389. Stack.prototype.set = stackSet;
  9390. module.exports = Stack;
  9391. /***/ }),
  9392. /***/ "../../node_modules/lodash/_Symbol.js":
  9393. /*!**********************************************************!*\
  9394. !*** C:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  9395. \**********************************************************/
  9396. /*! no static exports found */
  9397. /***/ (function(module, exports, __webpack_require__) {
  9398. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9399. /** Built-in value references. */
  9400. var Symbol = root.Symbol;
  9401. module.exports = Symbol;
  9402. /***/ }),
  9403. /***/ "../../node_modules/lodash/_Uint8Array.js":
  9404. /*!**************************************************************!*\
  9405. !*** C:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  9406. \**************************************************************/
  9407. /*! no static exports found */
  9408. /***/ (function(module, exports, __webpack_require__) {
  9409. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9410. /** Built-in value references. */
  9411. var Uint8Array = root.Uint8Array;
  9412. module.exports = Uint8Array;
  9413. /***/ }),
  9414. /***/ "../../node_modules/lodash/_WeakMap.js":
  9415. /*!***********************************************************!*\
  9416. !*** C:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  9417. \***********************************************************/
  9418. /*! no static exports found */
  9419. /***/ (function(module, exports, __webpack_require__) {
  9420. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9421. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9422. /* Built-in method references that are verified to be native. */
  9423. var WeakMap = getNative(root, 'WeakMap');
  9424. module.exports = WeakMap;
  9425. /***/ }),
  9426. /***/ "../../node_modules/lodash/_apply.js":
  9427. /*!*********************************************************!*\
  9428. !*** C:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  9429. \*********************************************************/
  9430. /*! no static exports found */
  9431. /***/ (function(module, exports) {
  9432. /**
  9433. * A faster alternative to `Function#apply`, this function invokes `func`
  9434. * with the `this` binding of `thisArg` and the arguments of `args`.
  9435. *
  9436. * @private
  9437. * @param {Function} func The function to invoke.
  9438. * @param {*} thisArg The `this` binding of `func`.
  9439. * @param {Array} args The arguments to invoke `func` with.
  9440. * @returns {*} Returns the result of `func`.
  9441. */
  9442. function apply(func, thisArg, args) {
  9443. switch (args.length) {
  9444. case 0: return func.call(thisArg);
  9445. case 1: return func.call(thisArg, args[0]);
  9446. case 2: return func.call(thisArg, args[0], args[1]);
  9447. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  9448. }
  9449. return func.apply(thisArg, args);
  9450. }
  9451. module.exports = apply;
  9452. /***/ }),
  9453. /***/ "../../node_modules/lodash/_arrayEach.js":
  9454. /*!*************************************************************!*\
  9455. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  9456. \*************************************************************/
  9457. /*! no static exports found */
  9458. /***/ (function(module, exports) {
  9459. /**
  9460. * A specialized version of `_.forEach` for arrays without support for
  9461. * iteratee shorthands.
  9462. *
  9463. * @private
  9464. * @param {Array} [array] The array to iterate over.
  9465. * @param {Function} iteratee The function invoked per iteration.
  9466. * @returns {Array} Returns `array`.
  9467. */
  9468. function arrayEach(array, iteratee) {
  9469. var index = -1,
  9470. length = array == null ? 0 : array.length;
  9471. while (++index < length) {
  9472. if (iteratee(array[index], index, array) === false) {
  9473. break;
  9474. }
  9475. }
  9476. return array;
  9477. }
  9478. module.exports = arrayEach;
  9479. /***/ }),
  9480. /***/ "../../node_modules/lodash/_arrayFilter.js":
  9481. /*!***************************************************************!*\
  9482. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  9483. \***************************************************************/
  9484. /*! no static exports found */
  9485. /***/ (function(module, exports) {
  9486. /**
  9487. * A specialized version of `_.filter` for arrays without support for
  9488. * iteratee shorthands.
  9489. *
  9490. * @private
  9491. * @param {Array} [array] The array to iterate over.
  9492. * @param {Function} predicate The function invoked per iteration.
  9493. * @returns {Array} Returns the new filtered array.
  9494. */
  9495. function arrayFilter(array, predicate) {
  9496. var index = -1,
  9497. length = array == null ? 0 : array.length,
  9498. resIndex = 0,
  9499. result = [];
  9500. while (++index < length) {
  9501. var value = array[index];
  9502. if (predicate(value, index, array)) {
  9503. result[resIndex++] = value;
  9504. }
  9505. }
  9506. return result;
  9507. }
  9508. module.exports = arrayFilter;
  9509. /***/ }),
  9510. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  9511. /*!*****************************************************************!*\
  9512. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  9513. \*****************************************************************/
  9514. /*! no static exports found */
  9515. /***/ (function(module, exports, __webpack_require__) {
  9516. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  9517. /**
  9518. * A specialized version of `_.includes` for arrays without support for
  9519. * specifying an index to search from.
  9520. *
  9521. * @private
  9522. * @param {Array} [array] The array to inspect.
  9523. * @param {*} target The value to search for.
  9524. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9525. */
  9526. function arrayIncludes(array, value) {
  9527. var length = array == null ? 0 : array.length;
  9528. return !!length && baseIndexOf(array, value, 0) > -1;
  9529. }
  9530. module.exports = arrayIncludes;
  9531. /***/ }),
  9532. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  9533. /*!*********************************************************************!*\
  9534. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  9535. \*********************************************************************/
  9536. /*! no static exports found */
  9537. /***/ (function(module, exports) {
  9538. /**
  9539. * This function is like `arrayIncludes` except that it accepts a comparator.
  9540. *
  9541. * @private
  9542. * @param {Array} [array] The array to inspect.
  9543. * @param {*} target The value to search for.
  9544. * @param {Function} comparator The comparator invoked per element.
  9545. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9546. */
  9547. function arrayIncludesWith(array, value, comparator) {
  9548. var index = -1,
  9549. length = array == null ? 0 : array.length;
  9550. while (++index < length) {
  9551. if (comparator(value, array[index])) {
  9552. return true;
  9553. }
  9554. }
  9555. return false;
  9556. }
  9557. module.exports = arrayIncludesWith;
  9558. /***/ }),
  9559. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  9560. /*!*****************************************************************!*\
  9561. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  9562. \*****************************************************************/
  9563. /*! no static exports found */
  9564. /***/ (function(module, exports, __webpack_require__) {
  9565. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  9566. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  9567. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9568. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9569. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  9570. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  9571. /** Used for built-in method references. */
  9572. var objectProto = Object.prototype;
  9573. /** Used to check objects for own properties. */
  9574. var hasOwnProperty = objectProto.hasOwnProperty;
  9575. /**
  9576. * Creates an array of the enumerable property names of the array-like `value`.
  9577. *
  9578. * @private
  9579. * @param {*} value The value to query.
  9580. * @param {boolean} inherited Specify returning inherited property names.
  9581. * @returns {Array} Returns the array of property names.
  9582. */
  9583. function arrayLikeKeys(value, inherited) {
  9584. var isArr = isArray(value),
  9585. isArg = !isArr && isArguments(value),
  9586. isBuff = !isArr && !isArg && isBuffer(value),
  9587. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  9588. skipIndexes = isArr || isArg || isBuff || isType,
  9589. result = skipIndexes ? baseTimes(value.length, String) : [],
  9590. length = result.length;
  9591. for (var key in value) {
  9592. if ((inherited || hasOwnProperty.call(value, key)) &&
  9593. !(skipIndexes && (
  9594. // Safari 9 has enumerable `arguments.length` in strict mode.
  9595. key == 'length' ||
  9596. // Node.js 0.10 has enumerable non-index properties on buffers.
  9597. (isBuff && (key == 'offset' || key == 'parent')) ||
  9598. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  9599. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  9600. // Skip index properties.
  9601. isIndex(key, length)
  9602. ))) {
  9603. result.push(key);
  9604. }
  9605. }
  9606. return result;
  9607. }
  9608. module.exports = arrayLikeKeys;
  9609. /***/ }),
  9610. /***/ "../../node_modules/lodash/_arrayMap.js":
  9611. /*!************************************************************!*\
  9612. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  9613. \************************************************************/
  9614. /*! no static exports found */
  9615. /***/ (function(module, exports) {
  9616. /**
  9617. * A specialized version of `_.map` for arrays without support for iteratee
  9618. * shorthands.
  9619. *
  9620. * @private
  9621. * @param {Array} [array] The array to iterate over.
  9622. * @param {Function} iteratee The function invoked per iteration.
  9623. * @returns {Array} Returns the new mapped array.
  9624. */
  9625. function arrayMap(array, iteratee) {
  9626. var index = -1,
  9627. length = array == null ? 0 : array.length,
  9628. result = Array(length);
  9629. while (++index < length) {
  9630. result[index] = iteratee(array[index], index, array);
  9631. }
  9632. return result;
  9633. }
  9634. module.exports = arrayMap;
  9635. /***/ }),
  9636. /***/ "../../node_modules/lodash/_arrayPush.js":
  9637. /*!*************************************************************!*\
  9638. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  9639. \*************************************************************/
  9640. /*! no static exports found */
  9641. /***/ (function(module, exports) {
  9642. /**
  9643. * Appends the elements of `values` to `array`.
  9644. *
  9645. * @private
  9646. * @param {Array} array The array to modify.
  9647. * @param {Array} values The values to append.
  9648. * @returns {Array} Returns `array`.
  9649. */
  9650. function arrayPush(array, values) {
  9651. var index = -1,
  9652. length = values.length,
  9653. offset = array.length;
  9654. while (++index < length) {
  9655. array[offset + index] = values[index];
  9656. }
  9657. return array;
  9658. }
  9659. module.exports = arrayPush;
  9660. /***/ }),
  9661. /***/ "../../node_modules/lodash/_arrayReduce.js":
  9662. /*!***************************************************************!*\
  9663. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  9664. \***************************************************************/
  9665. /*! no static exports found */
  9666. /***/ (function(module, exports) {
  9667. /**
  9668. * A specialized version of `_.reduce` for arrays without support for
  9669. * iteratee shorthands.
  9670. *
  9671. * @private
  9672. * @param {Array} [array] The array to iterate over.
  9673. * @param {Function} iteratee The function invoked per iteration.
  9674. * @param {*} [accumulator] The initial value.
  9675. * @param {boolean} [initAccum] Specify using the first element of `array` as
  9676. * the initial value.
  9677. * @returns {*} Returns the accumulated value.
  9678. */
  9679. function arrayReduce(array, iteratee, accumulator, initAccum) {
  9680. var index = -1,
  9681. length = array == null ? 0 : array.length;
  9682. if (initAccum && length) {
  9683. accumulator = array[++index];
  9684. }
  9685. while (++index < length) {
  9686. accumulator = iteratee(accumulator, array[index], index, array);
  9687. }
  9688. return accumulator;
  9689. }
  9690. module.exports = arrayReduce;
  9691. /***/ }),
  9692. /***/ "../../node_modules/lodash/_arraySome.js":
  9693. /*!*************************************************************!*\
  9694. !*** C:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  9695. \*************************************************************/
  9696. /*! no static exports found */
  9697. /***/ (function(module, exports) {
  9698. /**
  9699. * A specialized version of `_.some` for arrays without support for iteratee
  9700. * shorthands.
  9701. *
  9702. * @private
  9703. * @param {Array} [array] The array to iterate over.
  9704. * @param {Function} predicate The function invoked per iteration.
  9705. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9706. * else `false`.
  9707. */
  9708. function arraySome(array, predicate) {
  9709. var index = -1,
  9710. length = array == null ? 0 : array.length;
  9711. while (++index < length) {
  9712. if (predicate(array[index], index, array)) {
  9713. return true;
  9714. }
  9715. }
  9716. return false;
  9717. }
  9718. module.exports = arraySome;
  9719. /***/ }),
  9720. /***/ "../../node_modules/lodash/_asciiSize.js":
  9721. /*!*************************************************************!*\
  9722. !*** C:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  9723. \*************************************************************/
  9724. /*! no static exports found */
  9725. /***/ (function(module, exports, __webpack_require__) {
  9726. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  9727. /**
  9728. * Gets the size of an ASCII `string`.
  9729. *
  9730. * @private
  9731. * @param {string} string The string inspect.
  9732. * @returns {number} Returns the string size.
  9733. */
  9734. var asciiSize = baseProperty('length');
  9735. module.exports = asciiSize;
  9736. /***/ }),
  9737. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  9738. /*!********************************************************************!*\
  9739. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  9740. \********************************************************************/
  9741. /*! no static exports found */
  9742. /***/ (function(module, exports, __webpack_require__) {
  9743. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9744. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9745. /**
  9746. * This function is like `assignValue` except that it doesn't assign
  9747. * `undefined` values.
  9748. *
  9749. * @private
  9750. * @param {Object} object The object to modify.
  9751. * @param {string} key The key of the property to assign.
  9752. * @param {*} value The value to assign.
  9753. */
  9754. function assignMergeValue(object, key, value) {
  9755. if ((value !== undefined && !eq(object[key], value)) ||
  9756. (value === undefined && !(key in object))) {
  9757. baseAssignValue(object, key, value);
  9758. }
  9759. }
  9760. module.exports = assignMergeValue;
  9761. /***/ }),
  9762. /***/ "../../node_modules/lodash/_assignValue.js":
  9763. /*!***************************************************************!*\
  9764. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  9765. \***************************************************************/
  9766. /*! no static exports found */
  9767. /***/ (function(module, exports, __webpack_require__) {
  9768. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9769. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9770. /** Used for built-in method references. */
  9771. var objectProto = Object.prototype;
  9772. /** Used to check objects for own properties. */
  9773. var hasOwnProperty = objectProto.hasOwnProperty;
  9774. /**
  9775. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  9776. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  9777. * for equality comparisons.
  9778. *
  9779. * @private
  9780. * @param {Object} object The object to modify.
  9781. * @param {string} key The key of the property to assign.
  9782. * @param {*} value The value to assign.
  9783. */
  9784. function assignValue(object, key, value) {
  9785. var objValue = object[key];
  9786. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  9787. (value === undefined && !(key in object))) {
  9788. baseAssignValue(object, key, value);
  9789. }
  9790. }
  9791. module.exports = assignValue;
  9792. /***/ }),
  9793. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  9794. /*!****************************************************************!*\
  9795. !*** C:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  9796. \****************************************************************/
  9797. /*! no static exports found */
  9798. /***/ (function(module, exports, __webpack_require__) {
  9799. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9800. /**
  9801. * Gets the index at which the `key` is found in `array` of key-value pairs.
  9802. *
  9803. * @private
  9804. * @param {Array} array The array to inspect.
  9805. * @param {*} key The key to search for.
  9806. * @returns {number} Returns the index of the matched value, else `-1`.
  9807. */
  9808. function assocIndexOf(array, key) {
  9809. var length = array.length;
  9810. while (length--) {
  9811. if (eq(array[length][0], key)) {
  9812. return length;
  9813. }
  9814. }
  9815. return -1;
  9816. }
  9817. module.exports = assocIndexOf;
  9818. /***/ }),
  9819. /***/ "../../node_modules/lodash/_baseAssign.js":
  9820. /*!**************************************************************!*\
  9821. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  9822. \**************************************************************/
  9823. /*! no static exports found */
  9824. /***/ (function(module, exports, __webpack_require__) {
  9825. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9826. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9827. /**
  9828. * The base implementation of `_.assign` without support for multiple sources
  9829. * or `customizer` functions.
  9830. *
  9831. * @private
  9832. * @param {Object} object The destination object.
  9833. * @param {Object} source The source object.
  9834. * @returns {Object} Returns `object`.
  9835. */
  9836. function baseAssign(object, source) {
  9837. return object && copyObject(source, keys(source), object);
  9838. }
  9839. module.exports = baseAssign;
  9840. /***/ }),
  9841. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  9842. /*!****************************************************************!*\
  9843. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  9844. \****************************************************************/
  9845. /*! no static exports found */
  9846. /***/ (function(module, exports, __webpack_require__) {
  9847. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9848. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  9849. /**
  9850. * The base implementation of `_.assignIn` without support for multiple sources
  9851. * or `customizer` functions.
  9852. *
  9853. * @private
  9854. * @param {Object} object The destination object.
  9855. * @param {Object} source The source object.
  9856. * @returns {Object} Returns `object`.
  9857. */
  9858. function baseAssignIn(object, source) {
  9859. return object && copyObject(source, keysIn(source), object);
  9860. }
  9861. module.exports = baseAssignIn;
  9862. /***/ }),
  9863. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  9864. /*!*******************************************************************!*\
  9865. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  9866. \*******************************************************************/
  9867. /*! no static exports found */
  9868. /***/ (function(module, exports, __webpack_require__) {
  9869. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  9870. /**
  9871. * The base implementation of `assignValue` and `assignMergeValue` without
  9872. * value checks.
  9873. *
  9874. * @private
  9875. * @param {Object} object The object to modify.
  9876. * @param {string} key The key of the property to assign.
  9877. * @param {*} value The value to assign.
  9878. */
  9879. function baseAssignValue(object, key, value) {
  9880. if (key == '__proto__' && defineProperty) {
  9881. defineProperty(object, key, {
  9882. 'configurable': true,
  9883. 'enumerable': true,
  9884. 'value': value,
  9885. 'writable': true
  9886. });
  9887. } else {
  9888. object[key] = value;
  9889. }
  9890. }
  9891. module.exports = baseAssignValue;
  9892. /***/ }),
  9893. /***/ "../../node_modules/lodash/_baseClone.js":
  9894. /*!*************************************************************!*\
  9895. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  9896. \*************************************************************/
  9897. /*! no static exports found */
  9898. /***/ (function(module, exports, __webpack_require__) {
  9899. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  9900. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  9901. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  9902. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  9903. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  9904. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  9905. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  9906. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  9907. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  9908. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  9909. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  9910. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  9911. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  9912. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  9913. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  9914. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9915. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9916. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  9917. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  9918. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  9919. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9920. /** Used to compose bitmasks for cloning. */
  9921. var CLONE_DEEP_FLAG = 1,
  9922. CLONE_FLAT_FLAG = 2,
  9923. CLONE_SYMBOLS_FLAG = 4;
  9924. /** `Object#toString` result references. */
  9925. var argsTag = '[object Arguments]',
  9926. arrayTag = '[object Array]',
  9927. boolTag = '[object Boolean]',
  9928. dateTag = '[object Date]',
  9929. errorTag = '[object Error]',
  9930. funcTag = '[object Function]',
  9931. genTag = '[object GeneratorFunction]',
  9932. mapTag = '[object Map]',
  9933. numberTag = '[object Number]',
  9934. objectTag = '[object Object]',
  9935. regexpTag = '[object RegExp]',
  9936. setTag = '[object Set]',
  9937. stringTag = '[object String]',
  9938. symbolTag = '[object Symbol]',
  9939. weakMapTag = '[object WeakMap]';
  9940. var arrayBufferTag = '[object ArrayBuffer]',
  9941. dataViewTag = '[object DataView]',
  9942. float32Tag = '[object Float32Array]',
  9943. float64Tag = '[object Float64Array]',
  9944. int8Tag = '[object Int8Array]',
  9945. int16Tag = '[object Int16Array]',
  9946. int32Tag = '[object Int32Array]',
  9947. uint8Tag = '[object Uint8Array]',
  9948. uint8ClampedTag = '[object Uint8ClampedArray]',
  9949. uint16Tag = '[object Uint16Array]',
  9950. uint32Tag = '[object Uint32Array]';
  9951. /** Used to identify `toStringTag` values supported by `_.clone`. */
  9952. var cloneableTags = {};
  9953. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  9954. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  9955. cloneableTags[boolTag] = cloneableTags[dateTag] =
  9956. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  9957. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  9958. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  9959. cloneableTags[numberTag] = cloneableTags[objectTag] =
  9960. cloneableTags[regexpTag] = cloneableTags[setTag] =
  9961. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  9962. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  9963. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  9964. cloneableTags[errorTag] = cloneableTags[funcTag] =
  9965. cloneableTags[weakMapTag] = false;
  9966. /**
  9967. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  9968. * traversed objects.
  9969. *
  9970. * @private
  9971. * @param {*} value The value to clone.
  9972. * @param {boolean} bitmask The bitmask flags.
  9973. * 1 - Deep clone
  9974. * 2 - Flatten inherited properties
  9975. * 4 - Clone symbols
  9976. * @param {Function} [customizer] The function to customize cloning.
  9977. * @param {string} [key] The key of `value`.
  9978. * @param {Object} [object] The parent object of `value`.
  9979. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  9980. * @returns {*} Returns the cloned value.
  9981. */
  9982. function baseClone(value, bitmask, customizer, key, object, stack) {
  9983. var result,
  9984. isDeep = bitmask & CLONE_DEEP_FLAG,
  9985. isFlat = bitmask & CLONE_FLAT_FLAG,
  9986. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  9987. if (customizer) {
  9988. result = object ? customizer(value, key, object, stack) : customizer(value);
  9989. }
  9990. if (result !== undefined) {
  9991. return result;
  9992. }
  9993. if (!isObject(value)) {
  9994. return value;
  9995. }
  9996. var isArr = isArray(value);
  9997. if (isArr) {
  9998. result = initCloneArray(value);
  9999. if (!isDeep) {
  10000. return copyArray(value, result);
  10001. }
  10002. } else {
  10003. var tag = getTag(value),
  10004. isFunc = tag == funcTag || tag == genTag;
  10005. if (isBuffer(value)) {
  10006. return cloneBuffer(value, isDeep);
  10007. }
  10008. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  10009. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  10010. if (!isDeep) {
  10011. return isFlat
  10012. ? copySymbolsIn(value, baseAssignIn(result, value))
  10013. : copySymbols(value, baseAssign(result, value));
  10014. }
  10015. } else {
  10016. if (!cloneableTags[tag]) {
  10017. return object ? value : {};
  10018. }
  10019. result = initCloneByTag(value, tag, isDeep);
  10020. }
  10021. }
  10022. // Check for circular references and return its corresponding clone.
  10023. stack || (stack = new Stack);
  10024. var stacked = stack.get(value);
  10025. if (stacked) {
  10026. return stacked;
  10027. }
  10028. stack.set(value, result);
  10029. if (isSet(value)) {
  10030. value.forEach(function(subValue) {
  10031. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  10032. });
  10033. } else if (isMap(value)) {
  10034. value.forEach(function(subValue, key) {
  10035. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10036. });
  10037. }
  10038. var keysFunc = isFull
  10039. ? (isFlat ? getAllKeysIn : getAllKeys)
  10040. : (isFlat ? keysIn : keys);
  10041. var props = isArr ? undefined : keysFunc(value);
  10042. arrayEach(props || value, function(subValue, key) {
  10043. if (props) {
  10044. key = subValue;
  10045. subValue = value[key];
  10046. }
  10047. // Recursively populate clone (susceptible to call stack limits).
  10048. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10049. });
  10050. return result;
  10051. }
  10052. module.exports = baseClone;
  10053. /***/ }),
  10054. /***/ "../../node_modules/lodash/_baseCreate.js":
  10055. /*!**************************************************************!*\
  10056. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  10057. \**************************************************************/
  10058. /*! no static exports found */
  10059. /***/ (function(module, exports, __webpack_require__) {
  10060. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  10061. /** Built-in value references. */
  10062. var objectCreate = Object.create;
  10063. /**
  10064. * The base implementation of `_.create` without support for assigning
  10065. * properties to the created object.
  10066. *
  10067. * @private
  10068. * @param {Object} proto The object to inherit from.
  10069. * @returns {Object} Returns the new object.
  10070. */
  10071. var baseCreate = (function() {
  10072. function object() {}
  10073. return function(proto) {
  10074. if (!isObject(proto)) {
  10075. return {};
  10076. }
  10077. if (objectCreate) {
  10078. return objectCreate(proto);
  10079. }
  10080. object.prototype = proto;
  10081. var result = new object;
  10082. object.prototype = undefined;
  10083. return result;
  10084. };
  10085. }());
  10086. module.exports = baseCreate;
  10087. /***/ }),
  10088. /***/ "../../node_modules/lodash/_baseEach.js":
  10089. /*!************************************************************!*\
  10090. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  10091. \************************************************************/
  10092. /*! no static exports found */
  10093. /***/ (function(module, exports, __webpack_require__) {
  10094. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  10095. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  10096. /**
  10097. * The base implementation of `_.forEach` without support for iteratee shorthands.
  10098. *
  10099. * @private
  10100. * @param {Array|Object} collection The collection to iterate over.
  10101. * @param {Function} iteratee The function invoked per iteration.
  10102. * @returns {Array|Object} Returns `collection`.
  10103. */
  10104. var baseEach = createBaseEach(baseForOwn);
  10105. module.exports = baseEach;
  10106. /***/ }),
  10107. /***/ "../../node_modules/lodash/_baseExtremum.js":
  10108. /*!****************************************************************!*\
  10109. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  10110. \****************************************************************/
  10111. /*! no static exports found */
  10112. /***/ (function(module, exports, __webpack_require__) {
  10113. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  10114. /**
  10115. * The base implementation of methods like `_.max` and `_.min` which accepts a
  10116. * `comparator` to determine the extremum value.
  10117. *
  10118. * @private
  10119. * @param {Array} array The array to iterate over.
  10120. * @param {Function} iteratee The iteratee invoked per iteration.
  10121. * @param {Function} comparator The comparator used to compare values.
  10122. * @returns {*} Returns the extremum value.
  10123. */
  10124. function baseExtremum(array, iteratee, comparator) {
  10125. var index = -1,
  10126. length = array.length;
  10127. while (++index < length) {
  10128. var value = array[index],
  10129. current = iteratee(value);
  10130. if (current != null && (computed === undefined
  10131. ? (current === current && !isSymbol(current))
  10132. : comparator(current, computed)
  10133. )) {
  10134. var computed = current,
  10135. result = value;
  10136. }
  10137. }
  10138. return result;
  10139. }
  10140. module.exports = baseExtremum;
  10141. /***/ }),
  10142. /***/ "../../node_modules/lodash/_baseFilter.js":
  10143. /*!**************************************************************!*\
  10144. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  10145. \**************************************************************/
  10146. /*! no static exports found */
  10147. /***/ (function(module, exports, __webpack_require__) {
  10148. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  10149. /**
  10150. * The base implementation of `_.filter` without support for iteratee shorthands.
  10151. *
  10152. * @private
  10153. * @param {Array|Object} collection The collection to iterate over.
  10154. * @param {Function} predicate The function invoked per iteration.
  10155. * @returns {Array} Returns the new filtered array.
  10156. */
  10157. function baseFilter(collection, predicate) {
  10158. var result = [];
  10159. baseEach(collection, function(value, index, collection) {
  10160. if (predicate(value, index, collection)) {
  10161. result.push(value);
  10162. }
  10163. });
  10164. return result;
  10165. }
  10166. module.exports = baseFilter;
  10167. /***/ }),
  10168. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  10169. /*!*****************************************************************!*\
  10170. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  10171. \*****************************************************************/
  10172. /*! no static exports found */
  10173. /***/ (function(module, exports) {
  10174. /**
  10175. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  10176. * support for iteratee shorthands.
  10177. *
  10178. * @private
  10179. * @param {Array} array The array to inspect.
  10180. * @param {Function} predicate The function invoked per iteration.
  10181. * @param {number} fromIndex The index to search from.
  10182. * @param {boolean} [fromRight] Specify iterating from right to left.
  10183. * @returns {number} Returns the index of the matched value, else `-1`.
  10184. */
  10185. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  10186. var length = array.length,
  10187. index = fromIndex + (fromRight ? 1 : -1);
  10188. while ((fromRight ? index-- : ++index < length)) {
  10189. if (predicate(array[index], index, array)) {
  10190. return index;
  10191. }
  10192. }
  10193. return -1;
  10194. }
  10195. module.exports = baseFindIndex;
  10196. /***/ }),
  10197. /***/ "../../node_modules/lodash/_baseFlatten.js":
  10198. /*!***************************************************************!*\
  10199. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  10200. \***************************************************************/
  10201. /*! no static exports found */
  10202. /***/ (function(module, exports, __webpack_require__) {
  10203. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10204. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  10205. /**
  10206. * The base implementation of `_.flatten` with support for restricting flattening.
  10207. *
  10208. * @private
  10209. * @param {Array} array The array to flatten.
  10210. * @param {number} depth The maximum recursion depth.
  10211. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  10212. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  10213. * @param {Array} [result=[]] The initial result value.
  10214. * @returns {Array} Returns the new flattened array.
  10215. */
  10216. function baseFlatten(array, depth, predicate, isStrict, result) {
  10217. var index = -1,
  10218. length = array.length;
  10219. predicate || (predicate = isFlattenable);
  10220. result || (result = []);
  10221. while (++index < length) {
  10222. var value = array[index];
  10223. if (depth > 0 && predicate(value)) {
  10224. if (depth > 1) {
  10225. // Recursively flatten arrays (susceptible to call stack limits).
  10226. baseFlatten(value, depth - 1, predicate, isStrict, result);
  10227. } else {
  10228. arrayPush(result, value);
  10229. }
  10230. } else if (!isStrict) {
  10231. result[result.length] = value;
  10232. }
  10233. }
  10234. return result;
  10235. }
  10236. module.exports = baseFlatten;
  10237. /***/ }),
  10238. /***/ "../../node_modules/lodash/_baseFor.js":
  10239. /*!***********************************************************!*\
  10240. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  10241. \***********************************************************/
  10242. /*! no static exports found */
  10243. /***/ (function(module, exports, __webpack_require__) {
  10244. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  10245. /**
  10246. * The base implementation of `baseForOwn` which iterates over `object`
  10247. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  10248. * Iteratee functions may exit iteration early by explicitly returning `false`.
  10249. *
  10250. * @private
  10251. * @param {Object} object The object to iterate over.
  10252. * @param {Function} iteratee The function invoked per iteration.
  10253. * @param {Function} keysFunc The function to get the keys of `object`.
  10254. * @returns {Object} Returns `object`.
  10255. */
  10256. var baseFor = createBaseFor();
  10257. module.exports = baseFor;
  10258. /***/ }),
  10259. /***/ "../../node_modules/lodash/_baseForOwn.js":
  10260. /*!**************************************************************!*\
  10261. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  10262. \**************************************************************/
  10263. /*! no static exports found */
  10264. /***/ (function(module, exports, __webpack_require__) {
  10265. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  10266. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  10267. /**
  10268. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  10269. *
  10270. * @private
  10271. * @param {Object} object The object to iterate over.
  10272. * @param {Function} iteratee The function invoked per iteration.
  10273. * @returns {Object} Returns `object`.
  10274. */
  10275. function baseForOwn(object, iteratee) {
  10276. return object && baseFor(object, iteratee, keys);
  10277. }
  10278. module.exports = baseForOwn;
  10279. /***/ }),
  10280. /***/ "../../node_modules/lodash/_baseGet.js":
  10281. /*!***********************************************************!*\
  10282. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  10283. \***********************************************************/
  10284. /*! no static exports found */
  10285. /***/ (function(module, exports, __webpack_require__) {
  10286. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  10287. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10288. /**
  10289. * The base implementation of `_.get` without support for default values.
  10290. *
  10291. * @private
  10292. * @param {Object} object The object to query.
  10293. * @param {Array|string} path The path of the property to get.
  10294. * @returns {*} Returns the resolved value.
  10295. */
  10296. function baseGet(object, path) {
  10297. path = castPath(path, object);
  10298. var index = 0,
  10299. length = path.length;
  10300. while (object != null && index < length) {
  10301. object = object[toKey(path[index++])];
  10302. }
  10303. return (index && index == length) ? object : undefined;
  10304. }
  10305. module.exports = baseGet;
  10306. /***/ }),
  10307. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  10308. /*!******************************************************************!*\
  10309. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  10310. \******************************************************************/
  10311. /*! no static exports found */
  10312. /***/ (function(module, exports, __webpack_require__) {
  10313. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10314. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  10315. /**
  10316. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  10317. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  10318. * symbols of `object`.
  10319. *
  10320. * @private
  10321. * @param {Object} object The object to query.
  10322. * @param {Function} keysFunc The function to get the keys of `object`.
  10323. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  10324. * @returns {Array} Returns the array of property names and symbols.
  10325. */
  10326. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  10327. var result = keysFunc(object);
  10328. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  10329. }
  10330. module.exports = baseGetAllKeys;
  10331. /***/ }),
  10332. /***/ "../../node_modules/lodash/_baseGetTag.js":
  10333. /*!**************************************************************!*\
  10334. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  10335. \**************************************************************/
  10336. /*! no static exports found */
  10337. /***/ (function(module, exports, __webpack_require__) {
  10338. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  10339. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  10340. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  10341. /** `Object#toString` result references. */
  10342. var nullTag = '[object Null]',
  10343. undefinedTag = '[object Undefined]';
  10344. /** Built-in value references. */
  10345. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  10346. /**
  10347. * The base implementation of `getTag` without fallbacks for buggy environments.
  10348. *
  10349. * @private
  10350. * @param {*} value The value to query.
  10351. * @returns {string} Returns the `toStringTag`.
  10352. */
  10353. function baseGetTag(value) {
  10354. if (value == null) {
  10355. return value === undefined ? undefinedTag : nullTag;
  10356. }
  10357. return (symToStringTag && symToStringTag in Object(value))
  10358. ? getRawTag(value)
  10359. : objectToString(value);
  10360. }
  10361. module.exports = baseGetTag;
  10362. /***/ }),
  10363. /***/ "../../node_modules/lodash/_baseGt.js":
  10364. /*!**********************************************************!*\
  10365. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  10366. \**********************************************************/
  10367. /*! no static exports found */
  10368. /***/ (function(module, exports) {
  10369. /**
  10370. * The base implementation of `_.gt` which doesn't coerce arguments.
  10371. *
  10372. * @private
  10373. * @param {*} value The value to compare.
  10374. * @param {*} other The other value to compare.
  10375. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  10376. * else `false`.
  10377. */
  10378. function baseGt(value, other) {
  10379. return value > other;
  10380. }
  10381. module.exports = baseGt;
  10382. /***/ }),
  10383. /***/ "../../node_modules/lodash/_baseHas.js":
  10384. /*!***********************************************************!*\
  10385. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  10386. \***********************************************************/
  10387. /*! no static exports found */
  10388. /***/ (function(module, exports) {
  10389. /** Used for built-in method references. */
  10390. var objectProto = Object.prototype;
  10391. /** Used to check objects for own properties. */
  10392. var hasOwnProperty = objectProto.hasOwnProperty;
  10393. /**
  10394. * The base implementation of `_.has` without support for deep paths.
  10395. *
  10396. * @private
  10397. * @param {Object} [object] The object to query.
  10398. * @param {Array|string} key The key to check.
  10399. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10400. */
  10401. function baseHas(object, key) {
  10402. return object != null && hasOwnProperty.call(object, key);
  10403. }
  10404. module.exports = baseHas;
  10405. /***/ }),
  10406. /***/ "../../node_modules/lodash/_baseHasIn.js":
  10407. /*!*************************************************************!*\
  10408. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  10409. \*************************************************************/
  10410. /*! no static exports found */
  10411. /***/ (function(module, exports) {
  10412. /**
  10413. * The base implementation of `_.hasIn` without support for deep paths.
  10414. *
  10415. * @private
  10416. * @param {Object} [object] The object to query.
  10417. * @param {Array|string} key The key to check.
  10418. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10419. */
  10420. function baseHasIn(object, key) {
  10421. return object != null && key in Object(object);
  10422. }
  10423. module.exports = baseHasIn;
  10424. /***/ }),
  10425. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  10426. /*!***************************************************************!*\
  10427. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  10428. \***************************************************************/
  10429. /*! no static exports found */
  10430. /***/ (function(module, exports, __webpack_require__) {
  10431. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  10432. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  10433. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  10434. /**
  10435. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  10436. *
  10437. * @private
  10438. * @param {Array} array The array to inspect.
  10439. * @param {*} value The value to search for.
  10440. * @param {number} fromIndex The index to search from.
  10441. * @returns {number} Returns the index of the matched value, else `-1`.
  10442. */
  10443. function baseIndexOf(array, value, fromIndex) {
  10444. return value === value
  10445. ? strictIndexOf(array, value, fromIndex)
  10446. : baseFindIndex(array, baseIsNaN, fromIndex);
  10447. }
  10448. module.exports = baseIndexOf;
  10449. /***/ }),
  10450. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  10451. /*!*******************************************************************!*\
  10452. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  10453. \*******************************************************************/
  10454. /*! no static exports found */
  10455. /***/ (function(module, exports, __webpack_require__) {
  10456. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10457. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10458. /** `Object#toString` result references. */
  10459. var argsTag = '[object Arguments]';
  10460. /**
  10461. * The base implementation of `_.isArguments`.
  10462. *
  10463. * @private
  10464. * @param {*} value The value to check.
  10465. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  10466. */
  10467. function baseIsArguments(value) {
  10468. return isObjectLike(value) && baseGetTag(value) == argsTag;
  10469. }
  10470. module.exports = baseIsArguments;
  10471. /***/ }),
  10472. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  10473. /*!***************************************************************!*\
  10474. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  10475. \***************************************************************/
  10476. /*! no static exports found */
  10477. /***/ (function(module, exports, __webpack_require__) {
  10478. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  10479. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10480. /**
  10481. * The base implementation of `_.isEqual` which supports partial comparisons
  10482. * and tracks traversed objects.
  10483. *
  10484. * @private
  10485. * @param {*} value The value to compare.
  10486. * @param {*} other The other value to compare.
  10487. * @param {boolean} bitmask The bitmask flags.
  10488. * 1 - Unordered comparison
  10489. * 2 - Partial comparison
  10490. * @param {Function} [customizer] The function to customize comparisons.
  10491. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  10492. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  10493. */
  10494. function baseIsEqual(value, other, bitmask, customizer, stack) {
  10495. if (value === other) {
  10496. return true;
  10497. }
  10498. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  10499. return value !== value && other !== other;
  10500. }
  10501. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  10502. }
  10503. module.exports = baseIsEqual;
  10504. /***/ }),
  10505. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  10506. /*!*******************************************************************!*\
  10507. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  10508. \*******************************************************************/
  10509. /*! no static exports found */
  10510. /***/ (function(module, exports, __webpack_require__) {
  10511. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10512. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  10513. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  10514. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  10515. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10516. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10517. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10518. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  10519. /** Used to compose bitmasks for value comparisons. */
  10520. var COMPARE_PARTIAL_FLAG = 1;
  10521. /** `Object#toString` result references. */
  10522. var argsTag = '[object Arguments]',
  10523. arrayTag = '[object Array]',
  10524. objectTag = '[object Object]';
  10525. /** Used for built-in method references. */
  10526. var objectProto = Object.prototype;
  10527. /** Used to check objects for own properties. */
  10528. var hasOwnProperty = objectProto.hasOwnProperty;
  10529. /**
  10530. * A specialized version of `baseIsEqual` for arrays and objects which performs
  10531. * deep comparisons and tracks traversed objects enabling objects with circular
  10532. * references to be compared.
  10533. *
  10534. * @private
  10535. * @param {Object} object The object to compare.
  10536. * @param {Object} other The other object to compare.
  10537. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10538. * @param {Function} customizer The function to customize comparisons.
  10539. * @param {Function} equalFunc The function to determine equivalents of values.
  10540. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  10541. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10542. */
  10543. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  10544. var objIsArr = isArray(object),
  10545. othIsArr = isArray(other),
  10546. objTag = objIsArr ? arrayTag : getTag(object),
  10547. othTag = othIsArr ? arrayTag : getTag(other);
  10548. objTag = objTag == argsTag ? objectTag : objTag;
  10549. othTag = othTag == argsTag ? objectTag : othTag;
  10550. var objIsObj = objTag == objectTag,
  10551. othIsObj = othTag == objectTag,
  10552. isSameTag = objTag == othTag;
  10553. if (isSameTag && isBuffer(object)) {
  10554. if (!isBuffer(other)) {
  10555. return false;
  10556. }
  10557. objIsArr = true;
  10558. objIsObj = false;
  10559. }
  10560. if (isSameTag && !objIsObj) {
  10561. stack || (stack = new Stack);
  10562. return (objIsArr || isTypedArray(object))
  10563. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  10564. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  10565. }
  10566. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  10567. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  10568. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  10569. if (objIsWrapped || othIsWrapped) {
  10570. var objUnwrapped = objIsWrapped ? object.value() : object,
  10571. othUnwrapped = othIsWrapped ? other.value() : other;
  10572. stack || (stack = new Stack);
  10573. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  10574. }
  10575. }
  10576. if (!isSameTag) {
  10577. return false;
  10578. }
  10579. stack || (stack = new Stack);
  10580. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  10581. }
  10582. module.exports = baseIsEqualDeep;
  10583. /***/ }),
  10584. /***/ "../../node_modules/lodash/_baseIsMap.js":
  10585. /*!*************************************************************!*\
  10586. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  10587. \*************************************************************/
  10588. /*! no static exports found */
  10589. /***/ (function(module, exports, __webpack_require__) {
  10590. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10591. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10592. /** `Object#toString` result references. */
  10593. var mapTag = '[object Map]';
  10594. /**
  10595. * The base implementation of `_.isMap` without Node.js optimizations.
  10596. *
  10597. * @private
  10598. * @param {*} value The value to check.
  10599. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  10600. */
  10601. function baseIsMap(value) {
  10602. return isObjectLike(value) && getTag(value) == mapTag;
  10603. }
  10604. module.exports = baseIsMap;
  10605. /***/ }),
  10606. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  10607. /*!***************************************************************!*\
  10608. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  10609. \***************************************************************/
  10610. /*! no static exports found */
  10611. /***/ (function(module, exports, __webpack_require__) {
  10612. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10613. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  10614. /** Used to compose bitmasks for value comparisons. */
  10615. var COMPARE_PARTIAL_FLAG = 1,
  10616. COMPARE_UNORDERED_FLAG = 2;
  10617. /**
  10618. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  10619. *
  10620. * @private
  10621. * @param {Object} object The object to inspect.
  10622. * @param {Object} source The object of property values to match.
  10623. * @param {Array} matchData The property names, values, and compare flags to match.
  10624. * @param {Function} [customizer] The function to customize comparisons.
  10625. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  10626. */
  10627. function baseIsMatch(object, source, matchData, customizer) {
  10628. var index = matchData.length,
  10629. length = index,
  10630. noCustomizer = !customizer;
  10631. if (object == null) {
  10632. return !length;
  10633. }
  10634. object = Object(object);
  10635. while (index--) {
  10636. var data = matchData[index];
  10637. if ((noCustomizer && data[2])
  10638. ? data[1] !== object[data[0]]
  10639. : !(data[0] in object)
  10640. ) {
  10641. return false;
  10642. }
  10643. }
  10644. while (++index < length) {
  10645. data = matchData[index];
  10646. var key = data[0],
  10647. objValue = object[key],
  10648. srcValue = data[1];
  10649. if (noCustomizer && data[2]) {
  10650. if (objValue === undefined && !(key in object)) {
  10651. return false;
  10652. }
  10653. } else {
  10654. var stack = new Stack;
  10655. if (customizer) {
  10656. var result = customizer(objValue, srcValue, key, object, source, stack);
  10657. }
  10658. if (!(result === undefined
  10659. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  10660. : result
  10661. )) {
  10662. return false;
  10663. }
  10664. }
  10665. }
  10666. return true;
  10667. }
  10668. module.exports = baseIsMatch;
  10669. /***/ }),
  10670. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  10671. /*!*************************************************************!*\
  10672. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  10673. \*************************************************************/
  10674. /*! no static exports found */
  10675. /***/ (function(module, exports) {
  10676. /**
  10677. * The base implementation of `_.isNaN` without support for number objects.
  10678. *
  10679. * @private
  10680. * @param {*} value The value to check.
  10681. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  10682. */
  10683. function baseIsNaN(value) {
  10684. return value !== value;
  10685. }
  10686. module.exports = baseIsNaN;
  10687. /***/ }),
  10688. /***/ "../../node_modules/lodash/_baseIsNative.js":
  10689. /*!****************************************************************!*\
  10690. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  10691. \****************************************************************/
  10692. /*! no static exports found */
  10693. /***/ (function(module, exports, __webpack_require__) {
  10694. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10695. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  10696. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10697. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  10698. /**
  10699. * Used to match `RegExp`
  10700. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  10701. */
  10702. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  10703. /** Used to detect host constructors (Safari). */
  10704. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  10705. /** Used for built-in method references. */
  10706. var funcProto = Function.prototype,
  10707. objectProto = Object.prototype;
  10708. /** Used to resolve the decompiled source of functions. */
  10709. var funcToString = funcProto.toString;
  10710. /** Used to check objects for own properties. */
  10711. var hasOwnProperty = objectProto.hasOwnProperty;
  10712. /** Used to detect if a method is native. */
  10713. var reIsNative = RegExp('^' +
  10714. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  10715. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  10716. );
  10717. /**
  10718. * The base implementation of `_.isNative` without bad shim checks.
  10719. *
  10720. * @private
  10721. * @param {*} value The value to check.
  10722. * @returns {boolean} Returns `true` if `value` is a native function,
  10723. * else `false`.
  10724. */
  10725. function baseIsNative(value) {
  10726. if (!isObject(value) || isMasked(value)) {
  10727. return false;
  10728. }
  10729. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  10730. return pattern.test(toSource(value));
  10731. }
  10732. module.exports = baseIsNative;
  10733. /***/ }),
  10734. /***/ "../../node_modules/lodash/_baseIsSet.js":
  10735. /*!*************************************************************!*\
  10736. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  10737. \*************************************************************/
  10738. /*! no static exports found */
  10739. /***/ (function(module, exports, __webpack_require__) {
  10740. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10741. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10742. /** `Object#toString` result references. */
  10743. var setTag = '[object Set]';
  10744. /**
  10745. * The base implementation of `_.isSet` without Node.js optimizations.
  10746. *
  10747. * @private
  10748. * @param {*} value The value to check.
  10749. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  10750. */
  10751. function baseIsSet(value) {
  10752. return isObjectLike(value) && getTag(value) == setTag;
  10753. }
  10754. module.exports = baseIsSet;
  10755. /***/ }),
  10756. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  10757. /*!********************************************************************!*\
  10758. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  10759. \********************************************************************/
  10760. /*! no static exports found */
  10761. /***/ (function(module, exports, __webpack_require__) {
  10762. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10763. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  10764. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10765. /** `Object#toString` result references. */
  10766. var argsTag = '[object Arguments]',
  10767. arrayTag = '[object Array]',
  10768. boolTag = '[object Boolean]',
  10769. dateTag = '[object Date]',
  10770. errorTag = '[object Error]',
  10771. funcTag = '[object Function]',
  10772. mapTag = '[object Map]',
  10773. numberTag = '[object Number]',
  10774. objectTag = '[object Object]',
  10775. regexpTag = '[object RegExp]',
  10776. setTag = '[object Set]',
  10777. stringTag = '[object String]',
  10778. weakMapTag = '[object WeakMap]';
  10779. var arrayBufferTag = '[object ArrayBuffer]',
  10780. dataViewTag = '[object DataView]',
  10781. float32Tag = '[object Float32Array]',
  10782. float64Tag = '[object Float64Array]',
  10783. int8Tag = '[object Int8Array]',
  10784. int16Tag = '[object Int16Array]',
  10785. int32Tag = '[object Int32Array]',
  10786. uint8Tag = '[object Uint8Array]',
  10787. uint8ClampedTag = '[object Uint8ClampedArray]',
  10788. uint16Tag = '[object Uint16Array]',
  10789. uint32Tag = '[object Uint32Array]';
  10790. /** Used to identify `toStringTag` values of typed arrays. */
  10791. var typedArrayTags = {};
  10792. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  10793. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  10794. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  10795. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  10796. typedArrayTags[uint32Tag] = true;
  10797. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  10798. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  10799. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  10800. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  10801. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  10802. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  10803. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  10804. typedArrayTags[weakMapTag] = false;
  10805. /**
  10806. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  10807. *
  10808. * @private
  10809. * @param {*} value The value to check.
  10810. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  10811. */
  10812. function baseIsTypedArray(value) {
  10813. return isObjectLike(value) &&
  10814. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  10815. }
  10816. module.exports = baseIsTypedArray;
  10817. /***/ }),
  10818. /***/ "../../node_modules/lodash/_baseIteratee.js":
  10819. /*!****************************************************************!*\
  10820. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  10821. \****************************************************************/
  10822. /*! no static exports found */
  10823. /***/ (function(module, exports, __webpack_require__) {
  10824. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  10825. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  10826. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10827. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10828. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  10829. /**
  10830. * The base implementation of `_.iteratee`.
  10831. *
  10832. * @private
  10833. * @param {*} [value=_.identity] The value to convert to an iteratee.
  10834. * @returns {Function} Returns the iteratee.
  10835. */
  10836. function baseIteratee(value) {
  10837. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  10838. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  10839. if (typeof value == 'function') {
  10840. return value;
  10841. }
  10842. if (value == null) {
  10843. return identity;
  10844. }
  10845. if (typeof value == 'object') {
  10846. return isArray(value)
  10847. ? baseMatchesProperty(value[0], value[1])
  10848. : baseMatches(value);
  10849. }
  10850. return property(value);
  10851. }
  10852. module.exports = baseIteratee;
  10853. /***/ }),
  10854. /***/ "../../node_modules/lodash/_baseKeys.js":
  10855. /*!************************************************************!*\
  10856. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  10857. \************************************************************/
  10858. /*! no static exports found */
  10859. /***/ (function(module, exports, __webpack_require__) {
  10860. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10861. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  10862. /** Used for built-in method references. */
  10863. var objectProto = Object.prototype;
  10864. /** Used to check objects for own properties. */
  10865. var hasOwnProperty = objectProto.hasOwnProperty;
  10866. /**
  10867. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  10868. *
  10869. * @private
  10870. * @param {Object} object The object to query.
  10871. * @returns {Array} Returns the array of property names.
  10872. */
  10873. function baseKeys(object) {
  10874. if (!isPrototype(object)) {
  10875. return nativeKeys(object);
  10876. }
  10877. var result = [];
  10878. for (var key in Object(object)) {
  10879. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  10880. result.push(key);
  10881. }
  10882. }
  10883. return result;
  10884. }
  10885. module.exports = baseKeys;
  10886. /***/ }),
  10887. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  10888. /*!**************************************************************!*\
  10889. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  10890. \**************************************************************/
  10891. /*! no static exports found */
  10892. /***/ (function(module, exports, __webpack_require__) {
  10893. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10894. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10895. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  10896. /** Used for built-in method references. */
  10897. var objectProto = Object.prototype;
  10898. /** Used to check objects for own properties. */
  10899. var hasOwnProperty = objectProto.hasOwnProperty;
  10900. /**
  10901. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  10902. *
  10903. * @private
  10904. * @param {Object} object The object to query.
  10905. * @returns {Array} Returns the array of property names.
  10906. */
  10907. function baseKeysIn(object) {
  10908. if (!isObject(object)) {
  10909. return nativeKeysIn(object);
  10910. }
  10911. var isProto = isPrototype(object),
  10912. result = [];
  10913. for (var key in object) {
  10914. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  10915. result.push(key);
  10916. }
  10917. }
  10918. return result;
  10919. }
  10920. module.exports = baseKeysIn;
  10921. /***/ }),
  10922. /***/ "../../node_modules/lodash/_baseLt.js":
  10923. /*!**********************************************************!*\
  10924. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  10925. \**********************************************************/
  10926. /*! no static exports found */
  10927. /***/ (function(module, exports) {
  10928. /**
  10929. * The base implementation of `_.lt` which doesn't coerce arguments.
  10930. *
  10931. * @private
  10932. * @param {*} value The value to compare.
  10933. * @param {*} other The other value to compare.
  10934. * @returns {boolean} Returns `true` if `value` is less than `other`,
  10935. * else `false`.
  10936. */
  10937. function baseLt(value, other) {
  10938. return value < other;
  10939. }
  10940. module.exports = baseLt;
  10941. /***/ }),
  10942. /***/ "../../node_modules/lodash/_baseMap.js":
  10943. /*!***********************************************************!*\
  10944. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  10945. \***********************************************************/
  10946. /*! no static exports found */
  10947. /***/ (function(module, exports, __webpack_require__) {
  10948. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  10949. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  10950. /**
  10951. * The base implementation of `_.map` without support for iteratee shorthands.
  10952. *
  10953. * @private
  10954. * @param {Array|Object} collection The collection to iterate over.
  10955. * @param {Function} iteratee The function invoked per iteration.
  10956. * @returns {Array} Returns the new mapped array.
  10957. */
  10958. function baseMap(collection, iteratee) {
  10959. var index = -1,
  10960. result = isArrayLike(collection) ? Array(collection.length) : [];
  10961. baseEach(collection, function(value, key, collection) {
  10962. result[++index] = iteratee(value, key, collection);
  10963. });
  10964. return result;
  10965. }
  10966. module.exports = baseMap;
  10967. /***/ }),
  10968. /***/ "../../node_modules/lodash/_baseMatches.js":
  10969. /*!***************************************************************!*\
  10970. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  10971. \***************************************************************/
  10972. /*! no static exports found */
  10973. /***/ (function(module, exports, __webpack_require__) {
  10974. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  10975. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  10976. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  10977. /**
  10978. * The base implementation of `_.matches` which doesn't clone `source`.
  10979. *
  10980. * @private
  10981. * @param {Object} source The object of property values to match.
  10982. * @returns {Function} Returns the new spec function.
  10983. */
  10984. function baseMatches(source) {
  10985. var matchData = getMatchData(source);
  10986. if (matchData.length == 1 && matchData[0][2]) {
  10987. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  10988. }
  10989. return function(object) {
  10990. return object === source || baseIsMatch(object, source, matchData);
  10991. };
  10992. }
  10993. module.exports = baseMatches;
  10994. /***/ }),
  10995. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  10996. /*!***********************************************************************!*\
  10997. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  10998. \***********************************************************************/
  10999. /*! no static exports found */
  11000. /***/ (function(module, exports, __webpack_require__) {
  11001. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  11002. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  11003. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  11004. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11005. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  11006. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  11007. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11008. /** Used to compose bitmasks for value comparisons. */
  11009. var COMPARE_PARTIAL_FLAG = 1,
  11010. COMPARE_UNORDERED_FLAG = 2;
  11011. /**
  11012. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  11013. *
  11014. * @private
  11015. * @param {string} path The path of the property to get.
  11016. * @param {*} srcValue The value to match.
  11017. * @returns {Function} Returns the new spec function.
  11018. */
  11019. function baseMatchesProperty(path, srcValue) {
  11020. if (isKey(path) && isStrictComparable(srcValue)) {
  11021. return matchesStrictComparable(toKey(path), srcValue);
  11022. }
  11023. return function(object) {
  11024. var objValue = get(object, path);
  11025. return (objValue === undefined && objValue === srcValue)
  11026. ? hasIn(object, path)
  11027. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  11028. };
  11029. }
  11030. module.exports = baseMatchesProperty;
  11031. /***/ }),
  11032. /***/ "../../node_modules/lodash/_baseMerge.js":
  11033. /*!*************************************************************!*\
  11034. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  11035. \*************************************************************/
  11036. /*! no static exports found */
  11037. /***/ (function(module, exports, __webpack_require__) {
  11038. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  11039. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11040. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  11041. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  11042. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11043. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  11044. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  11045. /**
  11046. * The base implementation of `_.merge` without support for multiple sources.
  11047. *
  11048. * @private
  11049. * @param {Object} object The destination object.
  11050. * @param {Object} source The source object.
  11051. * @param {number} srcIndex The index of `source`.
  11052. * @param {Function} [customizer] The function to customize merged values.
  11053. * @param {Object} [stack] Tracks traversed source values and their merged
  11054. * counterparts.
  11055. */
  11056. function baseMerge(object, source, srcIndex, customizer, stack) {
  11057. if (object === source) {
  11058. return;
  11059. }
  11060. baseFor(source, function(srcValue, key) {
  11061. stack || (stack = new Stack);
  11062. if (isObject(srcValue)) {
  11063. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  11064. }
  11065. else {
  11066. var newValue = customizer
  11067. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  11068. : undefined;
  11069. if (newValue === undefined) {
  11070. newValue = srcValue;
  11071. }
  11072. assignMergeValue(object, key, newValue);
  11073. }
  11074. }, keysIn);
  11075. }
  11076. module.exports = baseMerge;
  11077. /***/ }),
  11078. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  11079. /*!*****************************************************************!*\
  11080. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  11081. \*****************************************************************/
  11082. /*! no static exports found */
  11083. /***/ (function(module, exports, __webpack_require__) {
  11084. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11085. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  11086. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  11087. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  11088. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  11089. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  11090. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11091. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  11092. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11093. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  11094. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11095. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  11096. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  11097. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  11098. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  11099. /**
  11100. * A specialized version of `baseMerge` for arrays and objects which performs
  11101. * deep merges and tracks traversed objects enabling objects with circular
  11102. * references to be merged.
  11103. *
  11104. * @private
  11105. * @param {Object} object The destination object.
  11106. * @param {Object} source The source object.
  11107. * @param {string} key The key of the value to merge.
  11108. * @param {number} srcIndex The index of `source`.
  11109. * @param {Function} mergeFunc The function to merge values.
  11110. * @param {Function} [customizer] The function to customize assigned values.
  11111. * @param {Object} [stack] Tracks traversed source values and their merged
  11112. * counterparts.
  11113. */
  11114. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  11115. var objValue = safeGet(object, key),
  11116. srcValue = safeGet(source, key),
  11117. stacked = stack.get(srcValue);
  11118. if (stacked) {
  11119. assignMergeValue(object, key, stacked);
  11120. return;
  11121. }
  11122. var newValue = customizer
  11123. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  11124. : undefined;
  11125. var isCommon = newValue === undefined;
  11126. if (isCommon) {
  11127. var isArr = isArray(srcValue),
  11128. isBuff = !isArr && isBuffer(srcValue),
  11129. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  11130. newValue = srcValue;
  11131. if (isArr || isBuff || isTyped) {
  11132. if (isArray(objValue)) {
  11133. newValue = objValue;
  11134. }
  11135. else if (isArrayLikeObject(objValue)) {
  11136. newValue = copyArray(objValue);
  11137. }
  11138. else if (isBuff) {
  11139. isCommon = false;
  11140. newValue = cloneBuffer(srcValue, true);
  11141. }
  11142. else if (isTyped) {
  11143. isCommon = false;
  11144. newValue = cloneTypedArray(srcValue, true);
  11145. }
  11146. else {
  11147. newValue = [];
  11148. }
  11149. }
  11150. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  11151. newValue = objValue;
  11152. if (isArguments(objValue)) {
  11153. newValue = toPlainObject(objValue);
  11154. }
  11155. else if (!isObject(objValue) || isFunction(objValue)) {
  11156. newValue = initCloneObject(srcValue);
  11157. }
  11158. }
  11159. else {
  11160. isCommon = false;
  11161. }
  11162. }
  11163. if (isCommon) {
  11164. // Recursively merge objects and arrays (susceptible to call stack limits).
  11165. stack.set(srcValue, newValue);
  11166. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  11167. stack['delete'](srcValue);
  11168. }
  11169. assignMergeValue(object, key, newValue);
  11170. }
  11171. module.exports = baseMergeDeep;
  11172. /***/ }),
  11173. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  11174. /*!***************************************************************!*\
  11175. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  11176. \***************************************************************/
  11177. /*! no static exports found */
  11178. /***/ (function(module, exports, __webpack_require__) {
  11179. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11180. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  11181. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  11182. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  11183. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  11184. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  11185. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11186. /**
  11187. * The base implementation of `_.orderBy` without param guards.
  11188. *
  11189. * @private
  11190. * @param {Array|Object} collection The collection to iterate over.
  11191. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  11192. * @param {string[]} orders The sort orders of `iteratees`.
  11193. * @returns {Array} Returns the new sorted array.
  11194. */
  11195. function baseOrderBy(collection, iteratees, orders) {
  11196. var index = -1;
  11197. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  11198. var result = baseMap(collection, function(value, key, collection) {
  11199. var criteria = arrayMap(iteratees, function(iteratee) {
  11200. return iteratee(value);
  11201. });
  11202. return { 'criteria': criteria, 'index': ++index, 'value': value };
  11203. });
  11204. return baseSortBy(result, function(object, other) {
  11205. return compareMultiple(object, other, orders);
  11206. });
  11207. }
  11208. module.exports = baseOrderBy;
  11209. /***/ }),
  11210. /***/ "../../node_modules/lodash/_basePick.js":
  11211. /*!************************************************************!*\
  11212. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  11213. \************************************************************/
  11214. /*! no static exports found */
  11215. /***/ (function(module, exports, __webpack_require__) {
  11216. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  11217. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  11218. /**
  11219. * The base implementation of `_.pick` without support for individual
  11220. * property identifiers.
  11221. *
  11222. * @private
  11223. * @param {Object} object The source object.
  11224. * @param {string[]} paths The property paths to pick.
  11225. * @returns {Object} Returns the new object.
  11226. */
  11227. function basePick(object, paths) {
  11228. return basePickBy(object, paths, function(value, path) {
  11229. return hasIn(object, path);
  11230. });
  11231. }
  11232. module.exports = basePick;
  11233. /***/ }),
  11234. /***/ "../../node_modules/lodash/_basePickBy.js":
  11235. /*!**************************************************************!*\
  11236. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  11237. \**************************************************************/
  11238. /*! no static exports found */
  11239. /***/ (function(module, exports, __webpack_require__) {
  11240. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  11241. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  11242. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  11243. /**
  11244. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  11245. *
  11246. * @private
  11247. * @param {Object} object The source object.
  11248. * @param {string[]} paths The property paths to pick.
  11249. * @param {Function} predicate The function invoked per property.
  11250. * @returns {Object} Returns the new object.
  11251. */
  11252. function basePickBy(object, paths, predicate) {
  11253. var index = -1,
  11254. length = paths.length,
  11255. result = {};
  11256. while (++index < length) {
  11257. var path = paths[index],
  11258. value = baseGet(object, path);
  11259. if (predicate(value, path)) {
  11260. baseSet(result, castPath(path, object), value);
  11261. }
  11262. }
  11263. return result;
  11264. }
  11265. module.exports = basePickBy;
  11266. /***/ }),
  11267. /***/ "../../node_modules/lodash/_baseProperty.js":
  11268. /*!****************************************************************!*\
  11269. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  11270. \****************************************************************/
  11271. /*! no static exports found */
  11272. /***/ (function(module, exports) {
  11273. /**
  11274. * The base implementation of `_.property` without support for deep paths.
  11275. *
  11276. * @private
  11277. * @param {string} key The key of the property to get.
  11278. * @returns {Function} Returns the new accessor function.
  11279. */
  11280. function baseProperty(key) {
  11281. return function(object) {
  11282. return object == null ? undefined : object[key];
  11283. };
  11284. }
  11285. module.exports = baseProperty;
  11286. /***/ }),
  11287. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  11288. /*!********************************************************************!*\
  11289. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  11290. \********************************************************************/
  11291. /*! no static exports found */
  11292. /***/ (function(module, exports, __webpack_require__) {
  11293. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  11294. /**
  11295. * A specialized version of `baseProperty` which supports deep paths.
  11296. *
  11297. * @private
  11298. * @param {Array|string} path The path of the property to get.
  11299. * @returns {Function} Returns the new accessor function.
  11300. */
  11301. function basePropertyDeep(path) {
  11302. return function(object) {
  11303. return baseGet(object, path);
  11304. };
  11305. }
  11306. module.exports = basePropertyDeep;
  11307. /***/ }),
  11308. /***/ "../../node_modules/lodash/_baseRange.js":
  11309. /*!*************************************************************!*\
  11310. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  11311. \*************************************************************/
  11312. /*! no static exports found */
  11313. /***/ (function(module, exports) {
  11314. /* Built-in method references for those with the same name as other `lodash` methods. */
  11315. var nativeCeil = Math.ceil,
  11316. nativeMax = Math.max;
  11317. /**
  11318. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  11319. * coerce arguments.
  11320. *
  11321. * @private
  11322. * @param {number} start The start of the range.
  11323. * @param {number} end The end of the range.
  11324. * @param {number} step The value to increment or decrement by.
  11325. * @param {boolean} [fromRight] Specify iterating from right to left.
  11326. * @returns {Array} Returns the range of numbers.
  11327. */
  11328. function baseRange(start, end, step, fromRight) {
  11329. var index = -1,
  11330. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  11331. result = Array(length);
  11332. while (length--) {
  11333. result[fromRight ? length : ++index] = start;
  11334. start += step;
  11335. }
  11336. return result;
  11337. }
  11338. module.exports = baseRange;
  11339. /***/ }),
  11340. /***/ "../../node_modules/lodash/_baseReduce.js":
  11341. /*!**************************************************************!*\
  11342. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  11343. \**************************************************************/
  11344. /*! no static exports found */
  11345. /***/ (function(module, exports) {
  11346. /**
  11347. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  11348. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  11349. *
  11350. * @private
  11351. * @param {Array|Object} collection The collection to iterate over.
  11352. * @param {Function} iteratee The function invoked per iteration.
  11353. * @param {*} accumulator The initial value.
  11354. * @param {boolean} initAccum Specify using the first or last element of
  11355. * `collection` as the initial value.
  11356. * @param {Function} eachFunc The function to iterate over `collection`.
  11357. * @returns {*} Returns the accumulated value.
  11358. */
  11359. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  11360. eachFunc(collection, function(value, index, collection) {
  11361. accumulator = initAccum
  11362. ? (initAccum = false, value)
  11363. : iteratee(accumulator, value, index, collection);
  11364. });
  11365. return accumulator;
  11366. }
  11367. module.exports = baseReduce;
  11368. /***/ }),
  11369. /***/ "../../node_modules/lodash/_baseRest.js":
  11370. /*!************************************************************!*\
  11371. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  11372. \************************************************************/
  11373. /*! no static exports found */
  11374. /***/ (function(module, exports, __webpack_require__) {
  11375. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  11376. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  11377. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  11378. /**
  11379. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  11380. *
  11381. * @private
  11382. * @param {Function} func The function to apply a rest parameter to.
  11383. * @param {number} [start=func.length-1] The start position of the rest parameter.
  11384. * @returns {Function} Returns the new function.
  11385. */
  11386. function baseRest(func, start) {
  11387. return setToString(overRest(func, start, identity), func + '');
  11388. }
  11389. module.exports = baseRest;
  11390. /***/ }),
  11391. /***/ "../../node_modules/lodash/_baseSet.js":
  11392. /*!***********************************************************!*\
  11393. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  11394. \***********************************************************/
  11395. /*! no static exports found */
  11396. /***/ (function(module, exports, __webpack_require__) {
  11397. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11398. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  11399. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  11400. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11401. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11402. /**
  11403. * The base implementation of `_.set`.
  11404. *
  11405. * @private
  11406. * @param {Object} object The object to modify.
  11407. * @param {Array|string} path The path of the property to set.
  11408. * @param {*} value The value to set.
  11409. * @param {Function} [customizer] The function to customize path creation.
  11410. * @returns {Object} Returns `object`.
  11411. */
  11412. function baseSet(object, path, value, customizer) {
  11413. if (!isObject(object)) {
  11414. return object;
  11415. }
  11416. path = castPath(path, object);
  11417. var index = -1,
  11418. length = path.length,
  11419. lastIndex = length - 1,
  11420. nested = object;
  11421. while (nested != null && ++index < length) {
  11422. var key = toKey(path[index]),
  11423. newValue = value;
  11424. if (index != lastIndex) {
  11425. var objValue = nested[key];
  11426. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  11427. if (newValue === undefined) {
  11428. newValue = isObject(objValue)
  11429. ? objValue
  11430. : (isIndex(path[index + 1]) ? [] : {});
  11431. }
  11432. }
  11433. assignValue(nested, key, newValue);
  11434. nested = nested[key];
  11435. }
  11436. return object;
  11437. }
  11438. module.exports = baseSet;
  11439. /***/ }),
  11440. /***/ "../../node_modules/lodash/_baseSetToString.js":
  11441. /*!*******************************************************************!*\
  11442. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  11443. \*******************************************************************/
  11444. /*! no static exports found */
  11445. /***/ (function(module, exports, __webpack_require__) {
  11446. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  11447. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  11448. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11449. /**
  11450. * The base implementation of `setToString` without support for hot loop shorting.
  11451. *
  11452. * @private
  11453. * @param {Function} func The function to modify.
  11454. * @param {Function} string The `toString` result.
  11455. * @returns {Function} Returns `func`.
  11456. */
  11457. var baseSetToString = !defineProperty ? identity : function(func, string) {
  11458. return defineProperty(func, 'toString', {
  11459. 'configurable': true,
  11460. 'enumerable': false,
  11461. 'value': constant(string),
  11462. 'writable': true
  11463. });
  11464. };
  11465. module.exports = baseSetToString;
  11466. /***/ }),
  11467. /***/ "../../node_modules/lodash/_baseSortBy.js":
  11468. /*!**************************************************************!*\
  11469. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  11470. \**************************************************************/
  11471. /*! no static exports found */
  11472. /***/ (function(module, exports) {
  11473. /**
  11474. * The base implementation of `_.sortBy` which uses `comparer` to define the
  11475. * sort order of `array` and replaces criteria objects with their corresponding
  11476. * values.
  11477. *
  11478. * @private
  11479. * @param {Array} array The array to sort.
  11480. * @param {Function} comparer The function to define sort order.
  11481. * @returns {Array} Returns `array`.
  11482. */
  11483. function baseSortBy(array, comparer) {
  11484. var length = array.length;
  11485. array.sort(comparer);
  11486. while (length--) {
  11487. array[length] = array[length].value;
  11488. }
  11489. return array;
  11490. }
  11491. module.exports = baseSortBy;
  11492. /***/ }),
  11493. /***/ "../../node_modules/lodash/_baseTimes.js":
  11494. /*!*************************************************************!*\
  11495. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  11496. \*************************************************************/
  11497. /*! no static exports found */
  11498. /***/ (function(module, exports) {
  11499. /**
  11500. * The base implementation of `_.times` without support for iteratee shorthands
  11501. * or max array length checks.
  11502. *
  11503. * @private
  11504. * @param {number} n The number of times to invoke `iteratee`.
  11505. * @param {Function} iteratee The function invoked per iteration.
  11506. * @returns {Array} Returns the array of results.
  11507. */
  11508. function baseTimes(n, iteratee) {
  11509. var index = -1,
  11510. result = Array(n);
  11511. while (++index < n) {
  11512. result[index] = iteratee(index);
  11513. }
  11514. return result;
  11515. }
  11516. module.exports = baseTimes;
  11517. /***/ }),
  11518. /***/ "../../node_modules/lodash/_baseToString.js":
  11519. /*!****************************************************************!*\
  11520. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  11521. \****************************************************************/
  11522. /*! no static exports found */
  11523. /***/ (function(module, exports, __webpack_require__) {
  11524. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11525. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11526. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11527. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11528. /** Used as references for various `Number` constants. */
  11529. var INFINITY = 1 / 0;
  11530. /** Used to convert symbols to primitives and strings. */
  11531. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11532. symbolToString = symbolProto ? symbolProto.toString : undefined;
  11533. /**
  11534. * The base implementation of `_.toString` which doesn't convert nullish
  11535. * values to empty strings.
  11536. *
  11537. * @private
  11538. * @param {*} value The value to process.
  11539. * @returns {string} Returns the string.
  11540. */
  11541. function baseToString(value) {
  11542. // Exit early for strings to avoid a performance hit in some environments.
  11543. if (typeof value == 'string') {
  11544. return value;
  11545. }
  11546. if (isArray(value)) {
  11547. // Recursively convert values (susceptible to call stack limits).
  11548. return arrayMap(value, baseToString) + '';
  11549. }
  11550. if (isSymbol(value)) {
  11551. return symbolToString ? symbolToString.call(value) : '';
  11552. }
  11553. var result = (value + '');
  11554. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11555. }
  11556. module.exports = baseToString;
  11557. /***/ }),
  11558. /***/ "../../node_modules/lodash/_baseUnary.js":
  11559. /*!*************************************************************!*\
  11560. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  11561. \*************************************************************/
  11562. /*! no static exports found */
  11563. /***/ (function(module, exports) {
  11564. /**
  11565. * The base implementation of `_.unary` without support for storing metadata.
  11566. *
  11567. * @private
  11568. * @param {Function} func The function to cap arguments for.
  11569. * @returns {Function} Returns the new capped function.
  11570. */
  11571. function baseUnary(func) {
  11572. return function(value) {
  11573. return func(value);
  11574. };
  11575. }
  11576. module.exports = baseUnary;
  11577. /***/ }),
  11578. /***/ "../../node_modules/lodash/_baseUniq.js":
  11579. /*!************************************************************!*\
  11580. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  11581. \************************************************************/
  11582. /*! no static exports found */
  11583. /***/ (function(module, exports, __webpack_require__) {
  11584. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11585. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  11586. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  11587. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  11588. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  11589. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11590. /** Used as the size to enable large array optimizations. */
  11591. var LARGE_ARRAY_SIZE = 200;
  11592. /**
  11593. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  11594. *
  11595. * @private
  11596. * @param {Array} array The array to inspect.
  11597. * @param {Function} [iteratee] The iteratee invoked per element.
  11598. * @param {Function} [comparator] The comparator invoked per element.
  11599. * @returns {Array} Returns the new duplicate free array.
  11600. */
  11601. function baseUniq(array, iteratee, comparator) {
  11602. var index = -1,
  11603. includes = arrayIncludes,
  11604. length = array.length,
  11605. isCommon = true,
  11606. result = [],
  11607. seen = result;
  11608. if (comparator) {
  11609. isCommon = false;
  11610. includes = arrayIncludesWith;
  11611. }
  11612. else if (length >= LARGE_ARRAY_SIZE) {
  11613. var set = iteratee ? null : createSet(array);
  11614. if (set) {
  11615. return setToArray(set);
  11616. }
  11617. isCommon = false;
  11618. includes = cacheHas;
  11619. seen = new SetCache;
  11620. }
  11621. else {
  11622. seen = iteratee ? [] : result;
  11623. }
  11624. outer:
  11625. while (++index < length) {
  11626. var value = array[index],
  11627. computed = iteratee ? iteratee(value) : value;
  11628. value = (comparator || value !== 0) ? value : 0;
  11629. if (isCommon && computed === computed) {
  11630. var seenIndex = seen.length;
  11631. while (seenIndex--) {
  11632. if (seen[seenIndex] === computed) {
  11633. continue outer;
  11634. }
  11635. }
  11636. if (iteratee) {
  11637. seen.push(computed);
  11638. }
  11639. result.push(value);
  11640. }
  11641. else if (!includes(seen, computed, comparator)) {
  11642. if (seen !== result) {
  11643. seen.push(computed);
  11644. }
  11645. result.push(value);
  11646. }
  11647. }
  11648. return result;
  11649. }
  11650. module.exports = baseUniq;
  11651. /***/ }),
  11652. /***/ "../../node_modules/lodash/_baseValues.js":
  11653. /*!**************************************************************!*\
  11654. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  11655. \**************************************************************/
  11656. /*! no static exports found */
  11657. /***/ (function(module, exports, __webpack_require__) {
  11658. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  11659. /**
  11660. * The base implementation of `_.values` and `_.valuesIn` which creates an
  11661. * array of `object` property values corresponding to the property names
  11662. * of `props`.
  11663. *
  11664. * @private
  11665. * @param {Object} object The object to query.
  11666. * @param {Array} props The property names to get values for.
  11667. * @returns {Object} Returns the array of property values.
  11668. */
  11669. function baseValues(object, props) {
  11670. return arrayMap(props, function(key) {
  11671. return object[key];
  11672. });
  11673. }
  11674. module.exports = baseValues;
  11675. /***/ }),
  11676. /***/ "../../node_modules/lodash/_baseZipObject.js":
  11677. /*!*****************************************************************!*\
  11678. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  11679. \*****************************************************************/
  11680. /*! no static exports found */
  11681. /***/ (function(module, exports) {
  11682. /**
  11683. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  11684. *
  11685. * @private
  11686. * @param {Array} props The property identifiers.
  11687. * @param {Array} values The property values.
  11688. * @param {Function} assignFunc The function to assign values.
  11689. * @returns {Object} Returns the new object.
  11690. */
  11691. function baseZipObject(props, values, assignFunc) {
  11692. var index = -1,
  11693. length = props.length,
  11694. valsLength = values.length,
  11695. result = {};
  11696. while (++index < length) {
  11697. var value = index < valsLength ? values[index] : undefined;
  11698. assignFunc(result, props[index], value);
  11699. }
  11700. return result;
  11701. }
  11702. module.exports = baseZipObject;
  11703. /***/ }),
  11704. /***/ "../../node_modules/lodash/_cacheHas.js":
  11705. /*!************************************************************!*\
  11706. !*** C:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  11707. \************************************************************/
  11708. /*! no static exports found */
  11709. /***/ (function(module, exports) {
  11710. /**
  11711. * Checks if a `cache` value for `key` exists.
  11712. *
  11713. * @private
  11714. * @param {Object} cache The cache to query.
  11715. * @param {string} key The key of the entry to check.
  11716. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11717. */
  11718. function cacheHas(cache, key) {
  11719. return cache.has(key);
  11720. }
  11721. module.exports = cacheHas;
  11722. /***/ }),
  11723. /***/ "../../node_modules/lodash/_castFunction.js":
  11724. /*!****************************************************************!*\
  11725. !*** C:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  11726. \****************************************************************/
  11727. /*! no static exports found */
  11728. /***/ (function(module, exports, __webpack_require__) {
  11729. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11730. /**
  11731. * Casts `value` to `identity` if it's not a function.
  11732. *
  11733. * @private
  11734. * @param {*} value The value to inspect.
  11735. * @returns {Function} Returns cast function.
  11736. */
  11737. function castFunction(value) {
  11738. return typeof value == 'function' ? value : identity;
  11739. }
  11740. module.exports = castFunction;
  11741. /***/ }),
  11742. /***/ "../../node_modules/lodash/_castPath.js":
  11743. /*!************************************************************!*\
  11744. !*** C:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  11745. \************************************************************/
  11746. /*! no static exports found */
  11747. /***/ (function(module, exports, __webpack_require__) {
  11748. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11749. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11750. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  11751. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  11752. /**
  11753. * Casts `value` to a path array if it's not one.
  11754. *
  11755. * @private
  11756. * @param {*} value The value to inspect.
  11757. * @param {Object} [object] The object to query keys on.
  11758. * @returns {Array} Returns the cast property path array.
  11759. */
  11760. function castPath(value, object) {
  11761. if (isArray(value)) {
  11762. return value;
  11763. }
  11764. return isKey(value, object) ? [value] : stringToPath(toString(value));
  11765. }
  11766. module.exports = castPath;
  11767. /***/ }),
  11768. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  11769. /*!********************************************************************!*\
  11770. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  11771. \********************************************************************/
  11772. /*! no static exports found */
  11773. /***/ (function(module, exports, __webpack_require__) {
  11774. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  11775. /**
  11776. * Creates a clone of `arrayBuffer`.
  11777. *
  11778. * @private
  11779. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11780. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11781. */
  11782. function cloneArrayBuffer(arrayBuffer) {
  11783. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11784. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11785. return result;
  11786. }
  11787. module.exports = cloneArrayBuffer;
  11788. /***/ }),
  11789. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  11790. /*!***************************************************************!*\
  11791. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  11792. \***************************************************************/
  11793. /*! no static exports found */
  11794. /***/ (function(module, exports, __webpack_require__) {
  11795. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11796. /** Detect free variable `exports`. */
  11797. var freeExports = true && exports && !exports.nodeType && exports;
  11798. /** Detect free variable `module`. */
  11799. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  11800. /** Detect the popular CommonJS extension `module.exports`. */
  11801. var moduleExports = freeModule && freeModule.exports === freeExports;
  11802. /** Built-in value references. */
  11803. var Buffer = moduleExports ? root.Buffer : undefined,
  11804. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  11805. /**
  11806. * Creates a clone of `buffer`.
  11807. *
  11808. * @private
  11809. * @param {Buffer} buffer The buffer to clone.
  11810. * @param {boolean} [isDeep] Specify a deep clone.
  11811. * @returns {Buffer} Returns the cloned buffer.
  11812. */
  11813. function cloneBuffer(buffer, isDeep) {
  11814. if (isDeep) {
  11815. return buffer.slice();
  11816. }
  11817. var length = buffer.length,
  11818. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  11819. buffer.copy(result);
  11820. return result;
  11821. }
  11822. module.exports = cloneBuffer;
  11823. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  11824. /***/ }),
  11825. /***/ "../../node_modules/lodash/_cloneDataView.js":
  11826. /*!*****************************************************************!*\
  11827. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  11828. \*****************************************************************/
  11829. /*! no static exports found */
  11830. /***/ (function(module, exports, __webpack_require__) {
  11831. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11832. /**
  11833. * Creates a clone of `dataView`.
  11834. *
  11835. * @private
  11836. * @param {Object} dataView The data view to clone.
  11837. * @param {boolean} [isDeep] Specify a deep clone.
  11838. * @returns {Object} Returns the cloned data view.
  11839. */
  11840. function cloneDataView(dataView, isDeep) {
  11841. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11842. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11843. }
  11844. module.exports = cloneDataView;
  11845. /***/ }),
  11846. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  11847. /*!***************************************************************!*\
  11848. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  11849. \***************************************************************/
  11850. /*! no static exports found */
  11851. /***/ (function(module, exports) {
  11852. /** Used to match `RegExp` flags from their coerced string values. */
  11853. var reFlags = /\w*$/;
  11854. /**
  11855. * Creates a clone of `regexp`.
  11856. *
  11857. * @private
  11858. * @param {Object} regexp The regexp to clone.
  11859. * @returns {Object} Returns the cloned regexp.
  11860. */
  11861. function cloneRegExp(regexp) {
  11862. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11863. result.lastIndex = regexp.lastIndex;
  11864. return result;
  11865. }
  11866. module.exports = cloneRegExp;
  11867. /***/ }),
  11868. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  11869. /*!***************************************************************!*\
  11870. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  11871. \***************************************************************/
  11872. /*! no static exports found */
  11873. /***/ (function(module, exports, __webpack_require__) {
  11874. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  11875. /** Used to convert symbols to primitives and strings. */
  11876. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11877. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11878. /**
  11879. * Creates a clone of the `symbol` object.
  11880. *
  11881. * @private
  11882. * @param {Object} symbol The symbol object to clone.
  11883. * @returns {Object} Returns the cloned symbol object.
  11884. */
  11885. function cloneSymbol(symbol) {
  11886. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11887. }
  11888. module.exports = cloneSymbol;
  11889. /***/ }),
  11890. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  11891. /*!*******************************************************************!*\
  11892. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  11893. \*******************************************************************/
  11894. /*! no static exports found */
  11895. /***/ (function(module, exports, __webpack_require__) {
  11896. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11897. /**
  11898. * Creates a clone of `typedArray`.
  11899. *
  11900. * @private
  11901. * @param {Object} typedArray The typed array to clone.
  11902. * @param {boolean} [isDeep] Specify a deep clone.
  11903. * @returns {Object} Returns the cloned typed array.
  11904. */
  11905. function cloneTypedArray(typedArray, isDeep) {
  11906. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11907. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11908. }
  11909. module.exports = cloneTypedArray;
  11910. /***/ }),
  11911. /***/ "../../node_modules/lodash/_compareAscending.js":
  11912. /*!********************************************************************!*\
  11913. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  11914. \********************************************************************/
  11915. /*! no static exports found */
  11916. /***/ (function(module, exports, __webpack_require__) {
  11917. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11918. /**
  11919. * Compares values to sort them in ascending order.
  11920. *
  11921. * @private
  11922. * @param {*} value The value to compare.
  11923. * @param {*} other The other value to compare.
  11924. * @returns {number} Returns the sort order indicator for `value`.
  11925. */
  11926. function compareAscending(value, other) {
  11927. if (value !== other) {
  11928. var valIsDefined = value !== undefined,
  11929. valIsNull = value === null,
  11930. valIsReflexive = value === value,
  11931. valIsSymbol = isSymbol(value);
  11932. var othIsDefined = other !== undefined,
  11933. othIsNull = other === null,
  11934. othIsReflexive = other === other,
  11935. othIsSymbol = isSymbol(other);
  11936. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  11937. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  11938. (valIsNull && othIsDefined && othIsReflexive) ||
  11939. (!valIsDefined && othIsReflexive) ||
  11940. !valIsReflexive) {
  11941. return 1;
  11942. }
  11943. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  11944. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  11945. (othIsNull && valIsDefined && valIsReflexive) ||
  11946. (!othIsDefined && valIsReflexive) ||
  11947. !othIsReflexive) {
  11948. return -1;
  11949. }
  11950. }
  11951. return 0;
  11952. }
  11953. module.exports = compareAscending;
  11954. /***/ }),
  11955. /***/ "../../node_modules/lodash/_compareMultiple.js":
  11956. /*!*******************************************************************!*\
  11957. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  11958. \*******************************************************************/
  11959. /*! no static exports found */
  11960. /***/ (function(module, exports, __webpack_require__) {
  11961. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  11962. /**
  11963. * Used by `_.orderBy` to compare multiple properties of a value to another
  11964. * and stable sort them.
  11965. *
  11966. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  11967. * specify an order of "desc" for descending or "asc" for ascending sort order
  11968. * of corresponding values.
  11969. *
  11970. * @private
  11971. * @param {Object} object The object to compare.
  11972. * @param {Object} other The other object to compare.
  11973. * @param {boolean[]|string[]} orders The order to sort by for each property.
  11974. * @returns {number} Returns the sort order indicator for `object`.
  11975. */
  11976. function compareMultiple(object, other, orders) {
  11977. var index = -1,
  11978. objCriteria = object.criteria,
  11979. othCriteria = other.criteria,
  11980. length = objCriteria.length,
  11981. ordersLength = orders.length;
  11982. while (++index < length) {
  11983. var result = compareAscending(objCriteria[index], othCriteria[index]);
  11984. if (result) {
  11985. if (index >= ordersLength) {
  11986. return result;
  11987. }
  11988. var order = orders[index];
  11989. return result * (order == 'desc' ? -1 : 1);
  11990. }
  11991. }
  11992. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  11993. // that causes it, under certain circumstances, to provide the same value for
  11994. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  11995. // for more details.
  11996. //
  11997. // This also ensures a stable sort in V8 and other engines.
  11998. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  11999. return object.index - other.index;
  12000. }
  12001. module.exports = compareMultiple;
  12002. /***/ }),
  12003. /***/ "../../node_modules/lodash/_copyArray.js":
  12004. /*!*************************************************************!*\
  12005. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  12006. \*************************************************************/
  12007. /*! no static exports found */
  12008. /***/ (function(module, exports) {
  12009. /**
  12010. * Copies the values of `source` to `array`.
  12011. *
  12012. * @private
  12013. * @param {Array} source The array to copy values from.
  12014. * @param {Array} [array=[]] The array to copy values to.
  12015. * @returns {Array} Returns `array`.
  12016. */
  12017. function copyArray(source, array) {
  12018. var index = -1,
  12019. length = source.length;
  12020. array || (array = Array(length));
  12021. while (++index < length) {
  12022. array[index] = source[index];
  12023. }
  12024. return array;
  12025. }
  12026. module.exports = copyArray;
  12027. /***/ }),
  12028. /***/ "../../node_modules/lodash/_copyObject.js":
  12029. /*!**************************************************************!*\
  12030. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  12031. \**************************************************************/
  12032. /*! no static exports found */
  12033. /***/ (function(module, exports, __webpack_require__) {
  12034. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  12035. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  12036. /**
  12037. * Copies properties of `source` to `object`.
  12038. *
  12039. * @private
  12040. * @param {Object} source The object to copy properties from.
  12041. * @param {Array} props The property identifiers to copy.
  12042. * @param {Object} [object={}] The object to copy properties to.
  12043. * @param {Function} [customizer] The function to customize copied values.
  12044. * @returns {Object} Returns `object`.
  12045. */
  12046. function copyObject(source, props, object, customizer) {
  12047. var isNew = !object;
  12048. object || (object = {});
  12049. var index = -1,
  12050. length = props.length;
  12051. while (++index < length) {
  12052. var key = props[index];
  12053. var newValue = customizer
  12054. ? customizer(object[key], source[key], key, object, source)
  12055. : undefined;
  12056. if (newValue === undefined) {
  12057. newValue = source[key];
  12058. }
  12059. if (isNew) {
  12060. baseAssignValue(object, key, newValue);
  12061. } else {
  12062. assignValue(object, key, newValue);
  12063. }
  12064. }
  12065. return object;
  12066. }
  12067. module.exports = copyObject;
  12068. /***/ }),
  12069. /***/ "../../node_modules/lodash/_copySymbols.js":
  12070. /*!***************************************************************!*\
  12071. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  12072. \***************************************************************/
  12073. /*! no static exports found */
  12074. /***/ (function(module, exports, __webpack_require__) {
  12075. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12076. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  12077. /**
  12078. * Copies own symbols of `source` to `object`.
  12079. *
  12080. * @private
  12081. * @param {Object} source The object to copy symbols from.
  12082. * @param {Object} [object={}] The object to copy symbols to.
  12083. * @returns {Object} Returns `object`.
  12084. */
  12085. function copySymbols(source, object) {
  12086. return copyObject(source, getSymbols(source), object);
  12087. }
  12088. module.exports = copySymbols;
  12089. /***/ }),
  12090. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  12091. /*!*****************************************************************!*\
  12092. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  12093. \*****************************************************************/
  12094. /*! no static exports found */
  12095. /***/ (function(module, exports, __webpack_require__) {
  12096. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12097. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  12098. /**
  12099. * Copies own and inherited symbols of `source` to `object`.
  12100. *
  12101. * @private
  12102. * @param {Object} source The object to copy symbols from.
  12103. * @param {Object} [object={}] The object to copy symbols to.
  12104. * @returns {Object} Returns `object`.
  12105. */
  12106. function copySymbolsIn(source, object) {
  12107. return copyObject(source, getSymbolsIn(source), object);
  12108. }
  12109. module.exports = copySymbolsIn;
  12110. /***/ }),
  12111. /***/ "../../node_modules/lodash/_coreJsData.js":
  12112. /*!**************************************************************!*\
  12113. !*** C:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  12114. \**************************************************************/
  12115. /*! no static exports found */
  12116. /***/ (function(module, exports, __webpack_require__) {
  12117. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  12118. /** Used to detect overreaching core-js shims. */
  12119. var coreJsData = root['__core-js_shared__'];
  12120. module.exports = coreJsData;
  12121. /***/ }),
  12122. /***/ "../../node_modules/lodash/_createAssigner.js":
  12123. /*!******************************************************************!*\
  12124. !*** C:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  12125. \******************************************************************/
  12126. /*! no static exports found */
  12127. /***/ (function(module, exports, __webpack_require__) {
  12128. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  12129. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  12130. /**
  12131. * Creates a function like `_.assign`.
  12132. *
  12133. * @private
  12134. * @param {Function} assigner The function to assign values.
  12135. * @returns {Function} Returns the new assigner function.
  12136. */
  12137. function createAssigner(assigner) {
  12138. return baseRest(function(object, sources) {
  12139. var index = -1,
  12140. length = sources.length,
  12141. customizer = length > 1 ? sources[length - 1] : undefined,
  12142. guard = length > 2 ? sources[2] : undefined;
  12143. customizer = (assigner.length > 3 && typeof customizer == 'function')
  12144. ? (length--, customizer)
  12145. : undefined;
  12146. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  12147. customizer = length < 3 ? undefined : customizer;
  12148. length = 1;
  12149. }
  12150. object = Object(object);
  12151. while (++index < length) {
  12152. var source = sources[index];
  12153. if (source) {
  12154. assigner(object, source, index, customizer);
  12155. }
  12156. }
  12157. return object;
  12158. });
  12159. }
  12160. module.exports = createAssigner;
  12161. /***/ }),
  12162. /***/ "../../node_modules/lodash/_createBaseEach.js":
  12163. /*!******************************************************************!*\
  12164. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  12165. \******************************************************************/
  12166. /*! no static exports found */
  12167. /***/ (function(module, exports, __webpack_require__) {
  12168. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  12169. /**
  12170. * Creates a `baseEach` or `baseEachRight` function.
  12171. *
  12172. * @private
  12173. * @param {Function} eachFunc The function to iterate over a collection.
  12174. * @param {boolean} [fromRight] Specify iterating from right to left.
  12175. * @returns {Function} Returns the new base function.
  12176. */
  12177. function createBaseEach(eachFunc, fromRight) {
  12178. return function(collection, iteratee) {
  12179. if (collection == null) {
  12180. return collection;
  12181. }
  12182. if (!isArrayLike(collection)) {
  12183. return eachFunc(collection, iteratee);
  12184. }
  12185. var length = collection.length,
  12186. index = fromRight ? length : -1,
  12187. iterable = Object(collection);
  12188. while ((fromRight ? index-- : ++index < length)) {
  12189. if (iteratee(iterable[index], index, iterable) === false) {
  12190. break;
  12191. }
  12192. }
  12193. return collection;
  12194. };
  12195. }
  12196. module.exports = createBaseEach;
  12197. /***/ }),
  12198. /***/ "../../node_modules/lodash/_createBaseFor.js":
  12199. /*!*****************************************************************!*\
  12200. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  12201. \*****************************************************************/
  12202. /*! no static exports found */
  12203. /***/ (function(module, exports) {
  12204. /**
  12205. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  12206. *
  12207. * @private
  12208. * @param {boolean} [fromRight] Specify iterating from right to left.
  12209. * @returns {Function} Returns the new base function.
  12210. */
  12211. function createBaseFor(fromRight) {
  12212. return function(object, iteratee, keysFunc) {
  12213. var index = -1,
  12214. iterable = Object(object),
  12215. props = keysFunc(object),
  12216. length = props.length;
  12217. while (length--) {
  12218. var key = props[fromRight ? length : ++index];
  12219. if (iteratee(iterable[key], key, iterable) === false) {
  12220. break;
  12221. }
  12222. }
  12223. return object;
  12224. };
  12225. }
  12226. module.exports = createBaseFor;
  12227. /***/ }),
  12228. /***/ "../../node_modules/lodash/_createFind.js":
  12229. /*!**************************************************************!*\
  12230. !*** C:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  12231. \**************************************************************/
  12232. /*! no static exports found */
  12233. /***/ (function(module, exports, __webpack_require__) {
  12234. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  12235. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  12236. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12237. /**
  12238. * Creates a `_.find` or `_.findLast` function.
  12239. *
  12240. * @private
  12241. * @param {Function} findIndexFunc The function to find the collection index.
  12242. * @returns {Function} Returns the new find function.
  12243. */
  12244. function createFind(findIndexFunc) {
  12245. return function(collection, predicate, fromIndex) {
  12246. var iterable = Object(collection);
  12247. if (!isArrayLike(collection)) {
  12248. var iteratee = baseIteratee(predicate, 3);
  12249. collection = keys(collection);
  12250. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  12251. }
  12252. var index = findIndexFunc(collection, predicate, fromIndex);
  12253. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  12254. };
  12255. }
  12256. module.exports = createFind;
  12257. /***/ }),
  12258. /***/ "../../node_modules/lodash/_createRange.js":
  12259. /*!***************************************************************!*\
  12260. !*** C:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  12261. \***************************************************************/
  12262. /*! no static exports found */
  12263. /***/ (function(module, exports, __webpack_require__) {
  12264. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  12265. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  12266. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  12267. /**
  12268. * Creates a `_.range` or `_.rangeRight` function.
  12269. *
  12270. * @private
  12271. * @param {boolean} [fromRight] Specify iterating from right to left.
  12272. * @returns {Function} Returns the new range function.
  12273. */
  12274. function createRange(fromRight) {
  12275. return function(start, end, step) {
  12276. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  12277. end = step = undefined;
  12278. }
  12279. // Ensure the sign of `-0` is preserved.
  12280. start = toFinite(start);
  12281. if (end === undefined) {
  12282. end = start;
  12283. start = 0;
  12284. } else {
  12285. end = toFinite(end);
  12286. }
  12287. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  12288. return baseRange(start, end, step, fromRight);
  12289. };
  12290. }
  12291. module.exports = createRange;
  12292. /***/ }),
  12293. /***/ "../../node_modules/lodash/_createSet.js":
  12294. /*!*************************************************************!*\
  12295. !*** C:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  12296. \*************************************************************/
  12297. /*! no static exports found */
  12298. /***/ (function(module, exports, __webpack_require__) {
  12299. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12300. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  12301. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12302. /** Used as references for various `Number` constants. */
  12303. var INFINITY = 1 / 0;
  12304. /**
  12305. * Creates a set object of `values`.
  12306. *
  12307. * @private
  12308. * @param {Array} values The values to add to the set.
  12309. * @returns {Object} Returns the new set.
  12310. */
  12311. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  12312. return new Set(values);
  12313. };
  12314. module.exports = createSet;
  12315. /***/ }),
  12316. /***/ "../../node_modules/lodash/_defineProperty.js":
  12317. /*!******************************************************************!*\
  12318. !*** C:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  12319. \******************************************************************/
  12320. /*! no static exports found */
  12321. /***/ (function(module, exports, __webpack_require__) {
  12322. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  12323. var defineProperty = (function() {
  12324. try {
  12325. var func = getNative(Object, 'defineProperty');
  12326. func({}, '', {});
  12327. return func;
  12328. } catch (e) {}
  12329. }());
  12330. module.exports = defineProperty;
  12331. /***/ }),
  12332. /***/ "../../node_modules/lodash/_equalArrays.js":
  12333. /*!***************************************************************!*\
  12334. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  12335. \***************************************************************/
  12336. /*! no static exports found */
  12337. /***/ (function(module, exports, __webpack_require__) {
  12338. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  12339. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  12340. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  12341. /** Used to compose bitmasks for value comparisons. */
  12342. var COMPARE_PARTIAL_FLAG = 1,
  12343. COMPARE_UNORDERED_FLAG = 2;
  12344. /**
  12345. * A specialized version of `baseIsEqualDeep` for arrays with support for
  12346. * partial deep comparisons.
  12347. *
  12348. * @private
  12349. * @param {Array} array The array to compare.
  12350. * @param {Array} other The other array to compare.
  12351. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12352. * @param {Function} customizer The function to customize comparisons.
  12353. * @param {Function} equalFunc The function to determine equivalents of values.
  12354. * @param {Object} stack Tracks traversed `array` and `other` objects.
  12355. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  12356. */
  12357. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  12358. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12359. arrLength = array.length,
  12360. othLength = other.length;
  12361. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  12362. return false;
  12363. }
  12364. // Assume cyclic values are equal.
  12365. var stacked = stack.get(array);
  12366. if (stacked && stack.get(other)) {
  12367. return stacked == other;
  12368. }
  12369. var index = -1,
  12370. result = true,
  12371. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  12372. stack.set(array, other);
  12373. stack.set(other, array);
  12374. // Ignore non-index properties.
  12375. while (++index < arrLength) {
  12376. var arrValue = array[index],
  12377. othValue = other[index];
  12378. if (customizer) {
  12379. var compared = isPartial
  12380. ? customizer(othValue, arrValue, index, other, array, stack)
  12381. : customizer(arrValue, othValue, index, array, other, stack);
  12382. }
  12383. if (compared !== undefined) {
  12384. if (compared) {
  12385. continue;
  12386. }
  12387. result = false;
  12388. break;
  12389. }
  12390. // Recursively compare arrays (susceptible to call stack limits).
  12391. if (seen) {
  12392. if (!arraySome(other, function(othValue, othIndex) {
  12393. if (!cacheHas(seen, othIndex) &&
  12394. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  12395. return seen.push(othIndex);
  12396. }
  12397. })) {
  12398. result = false;
  12399. break;
  12400. }
  12401. } else if (!(
  12402. arrValue === othValue ||
  12403. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  12404. )) {
  12405. result = false;
  12406. break;
  12407. }
  12408. }
  12409. stack['delete'](array);
  12410. stack['delete'](other);
  12411. return result;
  12412. }
  12413. module.exports = equalArrays;
  12414. /***/ }),
  12415. /***/ "../../node_modules/lodash/_equalByTag.js":
  12416. /*!**************************************************************!*\
  12417. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  12418. \**************************************************************/
  12419. /*! no static exports found */
  12420. /***/ (function(module, exports, __webpack_require__) {
  12421. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12422. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  12423. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12424. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12425. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  12426. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12427. /** Used to compose bitmasks for value comparisons. */
  12428. var COMPARE_PARTIAL_FLAG = 1,
  12429. COMPARE_UNORDERED_FLAG = 2;
  12430. /** `Object#toString` result references. */
  12431. var boolTag = '[object Boolean]',
  12432. dateTag = '[object Date]',
  12433. errorTag = '[object Error]',
  12434. mapTag = '[object Map]',
  12435. numberTag = '[object Number]',
  12436. regexpTag = '[object RegExp]',
  12437. setTag = '[object Set]',
  12438. stringTag = '[object String]',
  12439. symbolTag = '[object Symbol]';
  12440. var arrayBufferTag = '[object ArrayBuffer]',
  12441. dataViewTag = '[object DataView]';
  12442. /** Used to convert symbols to primitives and strings. */
  12443. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12444. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  12445. /**
  12446. * A specialized version of `baseIsEqualDeep` for comparing objects of
  12447. * the same `toStringTag`.
  12448. *
  12449. * **Note:** This function only supports comparing values with tags of
  12450. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12451. *
  12452. * @private
  12453. * @param {Object} object The object to compare.
  12454. * @param {Object} other The other object to compare.
  12455. * @param {string} tag The `toStringTag` of the objects to compare.
  12456. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12457. * @param {Function} customizer The function to customize comparisons.
  12458. * @param {Function} equalFunc The function to determine equivalents of values.
  12459. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12460. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12461. */
  12462. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  12463. switch (tag) {
  12464. case dataViewTag:
  12465. if ((object.byteLength != other.byteLength) ||
  12466. (object.byteOffset != other.byteOffset)) {
  12467. return false;
  12468. }
  12469. object = object.buffer;
  12470. other = other.buffer;
  12471. case arrayBufferTag:
  12472. if ((object.byteLength != other.byteLength) ||
  12473. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  12474. return false;
  12475. }
  12476. return true;
  12477. case boolTag:
  12478. case dateTag:
  12479. case numberTag:
  12480. // Coerce booleans to `1` or `0` and dates to milliseconds.
  12481. // Invalid dates are coerced to `NaN`.
  12482. return eq(+object, +other);
  12483. case errorTag:
  12484. return object.name == other.name && object.message == other.message;
  12485. case regexpTag:
  12486. case stringTag:
  12487. // Coerce regexes to strings and treat strings, primitives and objects,
  12488. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  12489. // for more details.
  12490. return object == (other + '');
  12491. case mapTag:
  12492. var convert = mapToArray;
  12493. case setTag:
  12494. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  12495. convert || (convert = setToArray);
  12496. if (object.size != other.size && !isPartial) {
  12497. return false;
  12498. }
  12499. // Assume cyclic values are equal.
  12500. var stacked = stack.get(object);
  12501. if (stacked) {
  12502. return stacked == other;
  12503. }
  12504. bitmask |= COMPARE_UNORDERED_FLAG;
  12505. // Recursively compare objects (susceptible to call stack limits).
  12506. stack.set(object, other);
  12507. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  12508. stack['delete'](object);
  12509. return result;
  12510. case symbolTag:
  12511. if (symbolValueOf) {
  12512. return symbolValueOf.call(object) == symbolValueOf.call(other);
  12513. }
  12514. }
  12515. return false;
  12516. }
  12517. module.exports = equalByTag;
  12518. /***/ }),
  12519. /***/ "../../node_modules/lodash/_equalObjects.js":
  12520. /*!****************************************************************!*\
  12521. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  12522. \****************************************************************/
  12523. /*! no static exports found */
  12524. /***/ (function(module, exports, __webpack_require__) {
  12525. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  12526. /** Used to compose bitmasks for value comparisons. */
  12527. var COMPARE_PARTIAL_FLAG = 1;
  12528. /** Used for built-in method references. */
  12529. var objectProto = Object.prototype;
  12530. /** Used to check objects for own properties. */
  12531. var hasOwnProperty = objectProto.hasOwnProperty;
  12532. /**
  12533. * A specialized version of `baseIsEqualDeep` for objects with support for
  12534. * partial deep comparisons.
  12535. *
  12536. * @private
  12537. * @param {Object} object The object to compare.
  12538. * @param {Object} other The other object to compare.
  12539. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12540. * @param {Function} customizer The function to customize comparisons.
  12541. * @param {Function} equalFunc The function to determine equivalents of values.
  12542. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12543. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12544. */
  12545. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  12546. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12547. objProps = getAllKeys(object),
  12548. objLength = objProps.length,
  12549. othProps = getAllKeys(other),
  12550. othLength = othProps.length;
  12551. if (objLength != othLength && !isPartial) {
  12552. return false;
  12553. }
  12554. var index = objLength;
  12555. while (index--) {
  12556. var key = objProps[index];
  12557. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  12558. return false;
  12559. }
  12560. }
  12561. // Assume cyclic values are equal.
  12562. var stacked = stack.get(object);
  12563. if (stacked && stack.get(other)) {
  12564. return stacked == other;
  12565. }
  12566. var result = true;
  12567. stack.set(object, other);
  12568. stack.set(other, object);
  12569. var skipCtor = isPartial;
  12570. while (++index < objLength) {
  12571. key = objProps[index];
  12572. var objValue = object[key],
  12573. othValue = other[key];
  12574. if (customizer) {
  12575. var compared = isPartial
  12576. ? customizer(othValue, objValue, key, other, object, stack)
  12577. : customizer(objValue, othValue, key, object, other, stack);
  12578. }
  12579. // Recursively compare objects (susceptible to call stack limits).
  12580. if (!(compared === undefined
  12581. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  12582. : compared
  12583. )) {
  12584. result = false;
  12585. break;
  12586. }
  12587. skipCtor || (skipCtor = key == 'constructor');
  12588. }
  12589. if (result && !skipCtor) {
  12590. var objCtor = object.constructor,
  12591. othCtor = other.constructor;
  12592. // Non `Object` object instances with different constructors are not equal.
  12593. if (objCtor != othCtor &&
  12594. ('constructor' in object && 'constructor' in other) &&
  12595. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  12596. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  12597. result = false;
  12598. }
  12599. }
  12600. stack['delete'](object);
  12601. stack['delete'](other);
  12602. return result;
  12603. }
  12604. module.exports = equalObjects;
  12605. /***/ }),
  12606. /***/ "../../node_modules/lodash/_flatRest.js":
  12607. /*!************************************************************!*\
  12608. !*** C:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  12609. \************************************************************/
  12610. /*! no static exports found */
  12611. /***/ (function(module, exports, __webpack_require__) {
  12612. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  12613. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12614. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12615. /**
  12616. * A specialized version of `baseRest` which flattens the rest array.
  12617. *
  12618. * @private
  12619. * @param {Function} func The function to apply a rest parameter to.
  12620. * @returns {Function} Returns the new function.
  12621. */
  12622. function flatRest(func) {
  12623. return setToString(overRest(func, undefined, flatten), func + '');
  12624. }
  12625. module.exports = flatRest;
  12626. /***/ }),
  12627. /***/ "../../node_modules/lodash/_freeGlobal.js":
  12628. /*!**************************************************************!*\
  12629. !*** C:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  12630. \**************************************************************/
  12631. /*! no static exports found */
  12632. /***/ (function(module, exports, __webpack_require__) {
  12633. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  12634. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12635. module.exports = freeGlobal;
  12636. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  12637. /***/ }),
  12638. /***/ "../../node_modules/lodash/_getAllKeys.js":
  12639. /*!**************************************************************!*\
  12640. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  12641. \**************************************************************/
  12642. /*! no static exports found */
  12643. /***/ (function(module, exports, __webpack_require__) {
  12644. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12645. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12646. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12647. /**
  12648. * Creates an array of own enumerable property names and symbols of `object`.
  12649. *
  12650. * @private
  12651. * @param {Object} object The object to query.
  12652. * @returns {Array} Returns the array of property names and symbols.
  12653. */
  12654. function getAllKeys(object) {
  12655. return baseGetAllKeys(object, keys, getSymbols);
  12656. }
  12657. module.exports = getAllKeys;
  12658. /***/ }),
  12659. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  12660. /*!****************************************************************!*\
  12661. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  12662. \****************************************************************/
  12663. /*! no static exports found */
  12664. /***/ (function(module, exports, __webpack_require__) {
  12665. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12666. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  12667. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  12668. /**
  12669. * Creates an array of own and inherited enumerable property names and
  12670. * symbols of `object`.
  12671. *
  12672. * @private
  12673. * @param {Object} object The object to query.
  12674. * @returns {Array} Returns the array of property names and symbols.
  12675. */
  12676. function getAllKeysIn(object) {
  12677. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  12678. }
  12679. module.exports = getAllKeysIn;
  12680. /***/ }),
  12681. /***/ "../../node_modules/lodash/_getMapData.js":
  12682. /*!**************************************************************!*\
  12683. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  12684. \**************************************************************/
  12685. /*! no static exports found */
  12686. /***/ (function(module, exports, __webpack_require__) {
  12687. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  12688. /**
  12689. * Gets the data for `map`.
  12690. *
  12691. * @private
  12692. * @param {Object} map The map to query.
  12693. * @param {string} key The reference key.
  12694. * @returns {*} Returns the map data.
  12695. */
  12696. function getMapData(map, key) {
  12697. var data = map.__data__;
  12698. return isKeyable(key)
  12699. ? data[typeof key == 'string' ? 'string' : 'hash']
  12700. : data.map;
  12701. }
  12702. module.exports = getMapData;
  12703. /***/ }),
  12704. /***/ "../../node_modules/lodash/_getMatchData.js":
  12705. /*!****************************************************************!*\
  12706. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  12707. \****************************************************************/
  12708. /*! no static exports found */
  12709. /***/ (function(module, exports, __webpack_require__) {
  12710. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12711. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12712. /**
  12713. * Gets the property names, values, and compare flags of `object`.
  12714. *
  12715. * @private
  12716. * @param {Object} object The object to query.
  12717. * @returns {Array} Returns the match data of `object`.
  12718. */
  12719. function getMatchData(object) {
  12720. var result = keys(object),
  12721. length = result.length;
  12722. while (length--) {
  12723. var key = result[length],
  12724. value = object[key];
  12725. result[length] = [key, value, isStrictComparable(value)];
  12726. }
  12727. return result;
  12728. }
  12729. module.exports = getMatchData;
  12730. /***/ }),
  12731. /***/ "../../node_modules/lodash/_getNative.js":
  12732. /*!*************************************************************!*\
  12733. !*** C:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  12734. \*************************************************************/
  12735. /*! no static exports found */
  12736. /***/ (function(module, exports, __webpack_require__) {
  12737. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  12738. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  12739. /**
  12740. * Gets the native function at `key` of `object`.
  12741. *
  12742. * @private
  12743. * @param {Object} object The object to query.
  12744. * @param {string} key The key of the method to get.
  12745. * @returns {*} Returns the function if it's native, else `undefined`.
  12746. */
  12747. function getNative(object, key) {
  12748. var value = getValue(object, key);
  12749. return baseIsNative(value) ? value : undefined;
  12750. }
  12751. module.exports = getNative;
  12752. /***/ }),
  12753. /***/ "../../node_modules/lodash/_getPrototype.js":
  12754. /*!****************************************************************!*\
  12755. !*** C:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  12756. \****************************************************************/
  12757. /*! no static exports found */
  12758. /***/ (function(module, exports, __webpack_require__) {
  12759. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  12760. /** Built-in value references. */
  12761. var getPrototype = overArg(Object.getPrototypeOf, Object);
  12762. module.exports = getPrototype;
  12763. /***/ }),
  12764. /***/ "../../node_modules/lodash/_getRawTag.js":
  12765. /*!*************************************************************!*\
  12766. !*** C:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  12767. \*************************************************************/
  12768. /*! no static exports found */
  12769. /***/ (function(module, exports, __webpack_require__) {
  12770. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  12771. /** Used for built-in method references. */
  12772. var objectProto = Object.prototype;
  12773. /** Used to check objects for own properties. */
  12774. var hasOwnProperty = objectProto.hasOwnProperty;
  12775. /**
  12776. * Used to resolve the
  12777. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12778. * of values.
  12779. */
  12780. var nativeObjectToString = objectProto.toString;
  12781. /** Built-in value references. */
  12782. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12783. /**
  12784. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  12785. *
  12786. * @private
  12787. * @param {*} value The value to query.
  12788. * @returns {string} Returns the raw `toStringTag`.
  12789. */
  12790. function getRawTag(value) {
  12791. var isOwn = hasOwnProperty.call(value, symToStringTag),
  12792. tag = value[symToStringTag];
  12793. try {
  12794. value[symToStringTag] = undefined;
  12795. var unmasked = true;
  12796. } catch (e) {}
  12797. var result = nativeObjectToString.call(value);
  12798. if (unmasked) {
  12799. if (isOwn) {
  12800. value[symToStringTag] = tag;
  12801. } else {
  12802. delete value[symToStringTag];
  12803. }
  12804. }
  12805. return result;
  12806. }
  12807. module.exports = getRawTag;
  12808. /***/ }),
  12809. /***/ "../../node_modules/lodash/_getSymbols.js":
  12810. /*!**************************************************************!*\
  12811. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  12812. \**************************************************************/
  12813. /*! no static exports found */
  12814. /***/ (function(module, exports, __webpack_require__) {
  12815. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  12816. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12817. /** Used for built-in method references. */
  12818. var objectProto = Object.prototype;
  12819. /** Built-in value references. */
  12820. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  12821. /* Built-in method references for those with the same name as other `lodash` methods. */
  12822. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12823. /**
  12824. * Creates an array of the own enumerable symbols of `object`.
  12825. *
  12826. * @private
  12827. * @param {Object} object The object to query.
  12828. * @returns {Array} Returns the array of symbols.
  12829. */
  12830. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  12831. if (object == null) {
  12832. return [];
  12833. }
  12834. object = Object(object);
  12835. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  12836. return propertyIsEnumerable.call(object, symbol);
  12837. });
  12838. };
  12839. module.exports = getSymbols;
  12840. /***/ }),
  12841. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  12842. /*!****************************************************************!*\
  12843. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  12844. \****************************************************************/
  12845. /*! no static exports found */
  12846. /***/ (function(module, exports, __webpack_require__) {
  12847. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  12848. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12849. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12850. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12851. /* Built-in method references for those with the same name as other `lodash` methods. */
  12852. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12853. /**
  12854. * Creates an array of the own and inherited enumerable symbols of `object`.
  12855. *
  12856. * @private
  12857. * @param {Object} object The object to query.
  12858. * @returns {Array} Returns the array of symbols.
  12859. */
  12860. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  12861. var result = [];
  12862. while (object) {
  12863. arrayPush(result, getSymbols(object));
  12864. object = getPrototype(object);
  12865. }
  12866. return result;
  12867. };
  12868. module.exports = getSymbolsIn;
  12869. /***/ }),
  12870. /***/ "../../node_modules/lodash/_getTag.js":
  12871. /*!**********************************************************!*\
  12872. !*** C:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  12873. \**********************************************************/
  12874. /*! no static exports found */
  12875. /***/ (function(module, exports, __webpack_require__) {
  12876. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  12877. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  12878. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  12879. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12880. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  12881. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12882. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12883. /** `Object#toString` result references. */
  12884. var mapTag = '[object Map]',
  12885. objectTag = '[object Object]',
  12886. promiseTag = '[object Promise]',
  12887. setTag = '[object Set]',
  12888. weakMapTag = '[object WeakMap]';
  12889. var dataViewTag = '[object DataView]';
  12890. /** Used to detect maps, sets, and weakmaps. */
  12891. var dataViewCtorString = toSource(DataView),
  12892. mapCtorString = toSource(Map),
  12893. promiseCtorString = toSource(Promise),
  12894. setCtorString = toSource(Set),
  12895. weakMapCtorString = toSource(WeakMap);
  12896. /**
  12897. * Gets the `toStringTag` of `value`.
  12898. *
  12899. * @private
  12900. * @param {*} value The value to query.
  12901. * @returns {string} Returns the `toStringTag`.
  12902. */
  12903. var getTag = baseGetTag;
  12904. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  12905. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12906. (Map && getTag(new Map) != mapTag) ||
  12907. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12908. (Set && getTag(new Set) != setTag) ||
  12909. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12910. getTag = function(value) {
  12911. var result = baseGetTag(value),
  12912. Ctor = result == objectTag ? value.constructor : undefined,
  12913. ctorString = Ctor ? toSource(Ctor) : '';
  12914. if (ctorString) {
  12915. switch (ctorString) {
  12916. case dataViewCtorString: return dataViewTag;
  12917. case mapCtorString: return mapTag;
  12918. case promiseCtorString: return promiseTag;
  12919. case setCtorString: return setTag;
  12920. case weakMapCtorString: return weakMapTag;
  12921. }
  12922. }
  12923. return result;
  12924. };
  12925. }
  12926. module.exports = getTag;
  12927. /***/ }),
  12928. /***/ "../../node_modules/lodash/_getValue.js":
  12929. /*!************************************************************!*\
  12930. !*** C:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  12931. \************************************************************/
  12932. /*! no static exports found */
  12933. /***/ (function(module, exports) {
  12934. /**
  12935. * Gets the value at `key` of `object`.
  12936. *
  12937. * @private
  12938. * @param {Object} [object] The object to query.
  12939. * @param {string} key The key of the property to get.
  12940. * @returns {*} Returns the property value.
  12941. */
  12942. function getValue(object, key) {
  12943. return object == null ? undefined : object[key];
  12944. }
  12945. module.exports = getValue;
  12946. /***/ }),
  12947. /***/ "../../node_modules/lodash/_hasPath.js":
  12948. /*!***********************************************************!*\
  12949. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  12950. \***********************************************************/
  12951. /*! no static exports found */
  12952. /***/ (function(module, exports, __webpack_require__) {
  12953. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  12954. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12955. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12956. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12957. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12958. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12959. /**
  12960. * Checks if `path` exists on `object`.
  12961. *
  12962. * @private
  12963. * @param {Object} object The object to query.
  12964. * @param {Array|string} path The path to check.
  12965. * @param {Function} hasFunc The function to check properties.
  12966. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  12967. */
  12968. function hasPath(object, path, hasFunc) {
  12969. path = castPath(path, object);
  12970. var index = -1,
  12971. length = path.length,
  12972. result = false;
  12973. while (++index < length) {
  12974. var key = toKey(path[index]);
  12975. if (!(result = object != null && hasFunc(object, key))) {
  12976. break;
  12977. }
  12978. object = object[key];
  12979. }
  12980. if (result || ++index != length) {
  12981. return result;
  12982. }
  12983. length = object == null ? 0 : object.length;
  12984. return !!length && isLength(length) && isIndex(key, length) &&
  12985. (isArray(object) || isArguments(object));
  12986. }
  12987. module.exports = hasPath;
  12988. /***/ }),
  12989. /***/ "../../node_modules/lodash/_hasUnicode.js":
  12990. /*!**************************************************************!*\
  12991. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  12992. \**************************************************************/
  12993. /*! no static exports found */
  12994. /***/ (function(module, exports) {
  12995. /** Used to compose unicode character classes. */
  12996. var rsAstralRange = '\\ud800-\\udfff',
  12997. rsComboMarksRange = '\\u0300-\\u036f',
  12998. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  12999. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  13000. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  13001. rsVarRange = '\\ufe0e\\ufe0f';
  13002. /** Used to compose unicode capture groups. */
  13003. var rsZWJ = '\\u200d';
  13004. /** 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/). */
  13005. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  13006. /**
  13007. * Checks if `string` contains Unicode symbols.
  13008. *
  13009. * @private
  13010. * @param {string} string The string to inspect.
  13011. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  13012. */
  13013. function hasUnicode(string) {
  13014. return reHasUnicode.test(string);
  13015. }
  13016. module.exports = hasUnicode;
  13017. /***/ }),
  13018. /***/ "../../node_modules/lodash/_hashClear.js":
  13019. /*!*************************************************************!*\
  13020. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  13021. \*************************************************************/
  13022. /*! no static exports found */
  13023. /***/ (function(module, exports, __webpack_require__) {
  13024. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13025. /**
  13026. * Removes all key-value entries from the hash.
  13027. *
  13028. * @private
  13029. * @name clear
  13030. * @memberOf Hash
  13031. */
  13032. function hashClear() {
  13033. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  13034. this.size = 0;
  13035. }
  13036. module.exports = hashClear;
  13037. /***/ }),
  13038. /***/ "../../node_modules/lodash/_hashDelete.js":
  13039. /*!**************************************************************!*\
  13040. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  13041. \**************************************************************/
  13042. /*! no static exports found */
  13043. /***/ (function(module, exports) {
  13044. /**
  13045. * Removes `key` and its value from the hash.
  13046. *
  13047. * @private
  13048. * @name delete
  13049. * @memberOf Hash
  13050. * @param {Object} hash The hash to modify.
  13051. * @param {string} key The key of the value to remove.
  13052. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13053. */
  13054. function hashDelete(key) {
  13055. var result = this.has(key) && delete this.__data__[key];
  13056. this.size -= result ? 1 : 0;
  13057. return result;
  13058. }
  13059. module.exports = hashDelete;
  13060. /***/ }),
  13061. /***/ "../../node_modules/lodash/_hashGet.js":
  13062. /*!***********************************************************!*\
  13063. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  13064. \***********************************************************/
  13065. /*! no static exports found */
  13066. /***/ (function(module, exports, __webpack_require__) {
  13067. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13068. /** Used to stand-in for `undefined` hash values. */
  13069. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13070. /** Used for built-in method references. */
  13071. var objectProto = Object.prototype;
  13072. /** Used to check objects for own properties. */
  13073. var hasOwnProperty = objectProto.hasOwnProperty;
  13074. /**
  13075. * Gets the hash value for `key`.
  13076. *
  13077. * @private
  13078. * @name get
  13079. * @memberOf Hash
  13080. * @param {string} key The key of the value to get.
  13081. * @returns {*} Returns the entry value.
  13082. */
  13083. function hashGet(key) {
  13084. var data = this.__data__;
  13085. if (nativeCreate) {
  13086. var result = data[key];
  13087. return result === HASH_UNDEFINED ? undefined : result;
  13088. }
  13089. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  13090. }
  13091. module.exports = hashGet;
  13092. /***/ }),
  13093. /***/ "../../node_modules/lodash/_hashHas.js":
  13094. /*!***********************************************************!*\
  13095. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  13096. \***********************************************************/
  13097. /*! no static exports found */
  13098. /***/ (function(module, exports, __webpack_require__) {
  13099. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13100. /** Used for built-in method references. */
  13101. var objectProto = Object.prototype;
  13102. /** Used to check objects for own properties. */
  13103. var hasOwnProperty = objectProto.hasOwnProperty;
  13104. /**
  13105. * Checks if a hash value for `key` exists.
  13106. *
  13107. * @private
  13108. * @name has
  13109. * @memberOf Hash
  13110. * @param {string} key The key of the entry to check.
  13111. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13112. */
  13113. function hashHas(key) {
  13114. var data = this.__data__;
  13115. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  13116. }
  13117. module.exports = hashHas;
  13118. /***/ }),
  13119. /***/ "../../node_modules/lodash/_hashSet.js":
  13120. /*!***********************************************************!*\
  13121. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  13122. \***********************************************************/
  13123. /*! no static exports found */
  13124. /***/ (function(module, exports, __webpack_require__) {
  13125. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13126. /** Used to stand-in for `undefined` hash values. */
  13127. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13128. /**
  13129. * Sets the hash `key` to `value`.
  13130. *
  13131. * @private
  13132. * @name set
  13133. * @memberOf Hash
  13134. * @param {string} key The key of the value to set.
  13135. * @param {*} value The value to set.
  13136. * @returns {Object} Returns the hash instance.
  13137. */
  13138. function hashSet(key, value) {
  13139. var data = this.__data__;
  13140. this.size += this.has(key) ? 0 : 1;
  13141. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  13142. return this;
  13143. }
  13144. module.exports = hashSet;
  13145. /***/ }),
  13146. /***/ "../../node_modules/lodash/_initCloneArray.js":
  13147. /*!******************************************************************!*\
  13148. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  13149. \******************************************************************/
  13150. /*! no static exports found */
  13151. /***/ (function(module, exports) {
  13152. /** Used for built-in method references. */
  13153. var objectProto = Object.prototype;
  13154. /** Used to check objects for own properties. */
  13155. var hasOwnProperty = objectProto.hasOwnProperty;
  13156. /**
  13157. * Initializes an array clone.
  13158. *
  13159. * @private
  13160. * @param {Array} array The array to clone.
  13161. * @returns {Array} Returns the initialized clone.
  13162. */
  13163. function initCloneArray(array) {
  13164. var length = array.length,
  13165. result = new array.constructor(length);
  13166. // Add properties assigned by `RegExp#exec`.
  13167. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  13168. result.index = array.index;
  13169. result.input = array.input;
  13170. }
  13171. return result;
  13172. }
  13173. module.exports = initCloneArray;
  13174. /***/ }),
  13175. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  13176. /*!******************************************************************!*\
  13177. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  13178. \******************************************************************/
  13179. /*! no static exports found */
  13180. /***/ (function(module, exports, __webpack_require__) {
  13181. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  13182. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  13183. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  13184. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  13185. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  13186. /** `Object#toString` result references. */
  13187. var boolTag = '[object Boolean]',
  13188. dateTag = '[object Date]',
  13189. mapTag = '[object Map]',
  13190. numberTag = '[object Number]',
  13191. regexpTag = '[object RegExp]',
  13192. setTag = '[object Set]',
  13193. stringTag = '[object String]',
  13194. symbolTag = '[object Symbol]';
  13195. var arrayBufferTag = '[object ArrayBuffer]',
  13196. dataViewTag = '[object DataView]',
  13197. float32Tag = '[object Float32Array]',
  13198. float64Tag = '[object Float64Array]',
  13199. int8Tag = '[object Int8Array]',
  13200. int16Tag = '[object Int16Array]',
  13201. int32Tag = '[object Int32Array]',
  13202. uint8Tag = '[object Uint8Array]',
  13203. uint8ClampedTag = '[object Uint8ClampedArray]',
  13204. uint16Tag = '[object Uint16Array]',
  13205. uint32Tag = '[object Uint32Array]';
  13206. /**
  13207. * Initializes an object clone based on its `toStringTag`.
  13208. *
  13209. * **Note:** This function only supports cloning values with tags of
  13210. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  13211. *
  13212. * @private
  13213. * @param {Object} object The object to clone.
  13214. * @param {string} tag The `toStringTag` of the object to clone.
  13215. * @param {boolean} [isDeep] Specify a deep clone.
  13216. * @returns {Object} Returns the initialized clone.
  13217. */
  13218. function initCloneByTag(object, tag, isDeep) {
  13219. var Ctor = object.constructor;
  13220. switch (tag) {
  13221. case arrayBufferTag:
  13222. return cloneArrayBuffer(object);
  13223. case boolTag:
  13224. case dateTag:
  13225. return new Ctor(+object);
  13226. case dataViewTag:
  13227. return cloneDataView(object, isDeep);
  13228. case float32Tag: case float64Tag:
  13229. case int8Tag: case int16Tag: case int32Tag:
  13230. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  13231. return cloneTypedArray(object, isDeep);
  13232. case mapTag:
  13233. return new Ctor;
  13234. case numberTag:
  13235. case stringTag:
  13236. return new Ctor(object);
  13237. case regexpTag:
  13238. return cloneRegExp(object);
  13239. case setTag:
  13240. return new Ctor;
  13241. case symbolTag:
  13242. return cloneSymbol(object);
  13243. }
  13244. }
  13245. module.exports = initCloneByTag;
  13246. /***/ }),
  13247. /***/ "../../node_modules/lodash/_initCloneObject.js":
  13248. /*!*******************************************************************!*\
  13249. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  13250. \*******************************************************************/
  13251. /*! no static exports found */
  13252. /***/ (function(module, exports, __webpack_require__) {
  13253. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  13254. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  13255. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  13256. /**
  13257. * Initializes an object clone.
  13258. *
  13259. * @private
  13260. * @param {Object} object The object to clone.
  13261. * @returns {Object} Returns the initialized clone.
  13262. */
  13263. function initCloneObject(object) {
  13264. return (typeof object.constructor == 'function' && !isPrototype(object))
  13265. ? baseCreate(getPrototype(object))
  13266. : {};
  13267. }
  13268. module.exports = initCloneObject;
  13269. /***/ }),
  13270. /***/ "../../node_modules/lodash/_isFlattenable.js":
  13271. /*!*****************************************************************!*\
  13272. !*** C:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  13273. \*****************************************************************/
  13274. /*! no static exports found */
  13275. /***/ (function(module, exports, __webpack_require__) {
  13276. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  13277. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  13278. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  13279. /** Built-in value references. */
  13280. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  13281. /**
  13282. * Checks if `value` is a flattenable `arguments` object or array.
  13283. *
  13284. * @private
  13285. * @param {*} value The value to check.
  13286. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  13287. */
  13288. function isFlattenable(value) {
  13289. return isArray(value) || isArguments(value) ||
  13290. !!(spreadableSymbol && value && value[spreadableSymbol]);
  13291. }
  13292. module.exports = isFlattenable;
  13293. /***/ }),
  13294. /***/ "../../node_modules/lodash/_isIndex.js":
  13295. /*!***********************************************************!*\
  13296. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  13297. \***********************************************************/
  13298. /*! no static exports found */
  13299. /***/ (function(module, exports) {
  13300. /** Used as references for various `Number` constants. */
  13301. var MAX_SAFE_INTEGER = 9007199254740991;
  13302. /** Used to detect unsigned integer values. */
  13303. var reIsUint = /^(?:0|[1-9]\d*)$/;
  13304. /**
  13305. * Checks if `value` is a valid array-like index.
  13306. *
  13307. * @private
  13308. * @param {*} value The value to check.
  13309. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  13310. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  13311. */
  13312. function isIndex(value, length) {
  13313. var type = typeof value;
  13314. length = length == null ? MAX_SAFE_INTEGER : length;
  13315. return !!length &&
  13316. (type == 'number' ||
  13317. (type != 'symbol' && reIsUint.test(value))) &&
  13318. (value > -1 && value % 1 == 0 && value < length);
  13319. }
  13320. module.exports = isIndex;
  13321. /***/ }),
  13322. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  13323. /*!******************************************************************!*\
  13324. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  13325. \******************************************************************/
  13326. /*! no static exports found */
  13327. /***/ (function(module, exports, __webpack_require__) {
  13328. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  13329. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  13330. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  13331. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13332. /**
  13333. * Checks if the given arguments are from an iteratee call.
  13334. *
  13335. * @private
  13336. * @param {*} value The potential iteratee value argument.
  13337. * @param {*} index The potential iteratee index or key argument.
  13338. * @param {*} object The potential iteratee object argument.
  13339. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  13340. * else `false`.
  13341. */
  13342. function isIterateeCall(value, index, object) {
  13343. if (!isObject(object)) {
  13344. return false;
  13345. }
  13346. var type = typeof index;
  13347. if (type == 'number'
  13348. ? (isArrayLike(object) && isIndex(index, object.length))
  13349. : (type == 'string' && index in object)
  13350. ) {
  13351. return eq(object[index], value);
  13352. }
  13353. return false;
  13354. }
  13355. module.exports = isIterateeCall;
  13356. /***/ }),
  13357. /***/ "../../node_modules/lodash/_isKey.js":
  13358. /*!*********************************************************!*\
  13359. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  13360. \*********************************************************/
  13361. /*! no static exports found */
  13362. /***/ (function(module, exports, __webpack_require__) {
  13363. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  13364. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  13365. /** Used to match property names within property paths. */
  13366. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  13367. reIsPlainProp = /^\w*$/;
  13368. /**
  13369. * Checks if `value` is a property name and not a property path.
  13370. *
  13371. * @private
  13372. * @param {*} value The value to check.
  13373. * @param {Object} [object] The object to query keys on.
  13374. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  13375. */
  13376. function isKey(value, object) {
  13377. if (isArray(value)) {
  13378. return false;
  13379. }
  13380. var type = typeof value;
  13381. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  13382. value == null || isSymbol(value)) {
  13383. return true;
  13384. }
  13385. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  13386. (object != null && value in Object(object));
  13387. }
  13388. module.exports = isKey;
  13389. /***/ }),
  13390. /***/ "../../node_modules/lodash/_isKeyable.js":
  13391. /*!*************************************************************!*\
  13392. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  13393. \*************************************************************/
  13394. /*! no static exports found */
  13395. /***/ (function(module, exports) {
  13396. /**
  13397. * Checks if `value` is suitable for use as unique object key.
  13398. *
  13399. * @private
  13400. * @param {*} value The value to check.
  13401. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  13402. */
  13403. function isKeyable(value) {
  13404. var type = typeof value;
  13405. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  13406. ? (value !== '__proto__')
  13407. : (value === null);
  13408. }
  13409. module.exports = isKeyable;
  13410. /***/ }),
  13411. /***/ "../../node_modules/lodash/_isMasked.js":
  13412. /*!************************************************************!*\
  13413. !*** C:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  13414. \************************************************************/
  13415. /*! no static exports found */
  13416. /***/ (function(module, exports, __webpack_require__) {
  13417. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  13418. /** Used to detect methods masquerading as native. */
  13419. var maskSrcKey = (function() {
  13420. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  13421. return uid ? ('Symbol(src)_1.' + uid) : '';
  13422. }());
  13423. /**
  13424. * Checks if `func` has its source masked.
  13425. *
  13426. * @private
  13427. * @param {Function} func The function to check.
  13428. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13429. */
  13430. function isMasked(func) {
  13431. return !!maskSrcKey && (maskSrcKey in func);
  13432. }
  13433. module.exports = isMasked;
  13434. /***/ }),
  13435. /***/ "../../node_modules/lodash/_isPrototype.js":
  13436. /*!***************************************************************!*\
  13437. !*** C:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  13438. \***************************************************************/
  13439. /*! no static exports found */
  13440. /***/ (function(module, exports) {
  13441. /** Used for built-in method references. */
  13442. var objectProto = Object.prototype;
  13443. /**
  13444. * Checks if `value` is likely a prototype object.
  13445. *
  13446. * @private
  13447. * @param {*} value The value to check.
  13448. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13449. */
  13450. function isPrototype(value) {
  13451. var Ctor = value && value.constructor,
  13452. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13453. return value === proto;
  13454. }
  13455. module.exports = isPrototype;
  13456. /***/ }),
  13457. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  13458. /*!**********************************************************************!*\
  13459. !*** C:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  13460. \**********************************************************************/
  13461. /*! no static exports found */
  13462. /***/ (function(module, exports, __webpack_require__) {
  13463. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13464. /**
  13465. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  13466. *
  13467. * @private
  13468. * @param {*} value The value to check.
  13469. * @returns {boolean} Returns `true` if `value` if suitable for strict
  13470. * equality comparisons, else `false`.
  13471. */
  13472. function isStrictComparable(value) {
  13473. return value === value && !isObject(value);
  13474. }
  13475. module.exports = isStrictComparable;
  13476. /***/ }),
  13477. /***/ "../../node_modules/lodash/_listCacheClear.js":
  13478. /*!******************************************************************!*\
  13479. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  13480. \******************************************************************/
  13481. /*! no static exports found */
  13482. /***/ (function(module, exports) {
  13483. /**
  13484. * Removes all key-value entries from the list cache.
  13485. *
  13486. * @private
  13487. * @name clear
  13488. * @memberOf ListCache
  13489. */
  13490. function listCacheClear() {
  13491. this.__data__ = [];
  13492. this.size = 0;
  13493. }
  13494. module.exports = listCacheClear;
  13495. /***/ }),
  13496. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  13497. /*!*******************************************************************!*\
  13498. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  13499. \*******************************************************************/
  13500. /*! no static exports found */
  13501. /***/ (function(module, exports, __webpack_require__) {
  13502. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13503. /** Used for built-in method references. */
  13504. var arrayProto = Array.prototype;
  13505. /** Built-in value references. */
  13506. var splice = arrayProto.splice;
  13507. /**
  13508. * Removes `key` and its value from the list cache.
  13509. *
  13510. * @private
  13511. * @name delete
  13512. * @memberOf ListCache
  13513. * @param {string} key The key of the value to remove.
  13514. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13515. */
  13516. function listCacheDelete(key) {
  13517. var data = this.__data__,
  13518. index = assocIndexOf(data, key);
  13519. if (index < 0) {
  13520. return false;
  13521. }
  13522. var lastIndex = data.length - 1;
  13523. if (index == lastIndex) {
  13524. data.pop();
  13525. } else {
  13526. splice.call(data, index, 1);
  13527. }
  13528. --this.size;
  13529. return true;
  13530. }
  13531. module.exports = listCacheDelete;
  13532. /***/ }),
  13533. /***/ "../../node_modules/lodash/_listCacheGet.js":
  13534. /*!****************************************************************!*\
  13535. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  13536. \****************************************************************/
  13537. /*! no static exports found */
  13538. /***/ (function(module, exports, __webpack_require__) {
  13539. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13540. /**
  13541. * Gets the list cache value for `key`.
  13542. *
  13543. * @private
  13544. * @name get
  13545. * @memberOf ListCache
  13546. * @param {string} key The key of the value to get.
  13547. * @returns {*} Returns the entry value.
  13548. */
  13549. function listCacheGet(key) {
  13550. var data = this.__data__,
  13551. index = assocIndexOf(data, key);
  13552. return index < 0 ? undefined : data[index][1];
  13553. }
  13554. module.exports = listCacheGet;
  13555. /***/ }),
  13556. /***/ "../../node_modules/lodash/_listCacheHas.js":
  13557. /*!****************************************************************!*\
  13558. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  13559. \****************************************************************/
  13560. /*! no static exports found */
  13561. /***/ (function(module, exports, __webpack_require__) {
  13562. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13563. /**
  13564. * Checks if a list cache value for `key` exists.
  13565. *
  13566. * @private
  13567. * @name has
  13568. * @memberOf ListCache
  13569. * @param {string} key The key of the entry to check.
  13570. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13571. */
  13572. function listCacheHas(key) {
  13573. return assocIndexOf(this.__data__, key) > -1;
  13574. }
  13575. module.exports = listCacheHas;
  13576. /***/ }),
  13577. /***/ "../../node_modules/lodash/_listCacheSet.js":
  13578. /*!****************************************************************!*\
  13579. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  13580. \****************************************************************/
  13581. /*! no static exports found */
  13582. /***/ (function(module, exports, __webpack_require__) {
  13583. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13584. /**
  13585. * Sets the list cache `key` to `value`.
  13586. *
  13587. * @private
  13588. * @name set
  13589. * @memberOf ListCache
  13590. * @param {string} key The key of the value to set.
  13591. * @param {*} value The value to set.
  13592. * @returns {Object} Returns the list cache instance.
  13593. */
  13594. function listCacheSet(key, value) {
  13595. var data = this.__data__,
  13596. index = assocIndexOf(data, key);
  13597. if (index < 0) {
  13598. ++this.size;
  13599. data.push([key, value]);
  13600. } else {
  13601. data[index][1] = value;
  13602. }
  13603. return this;
  13604. }
  13605. module.exports = listCacheSet;
  13606. /***/ }),
  13607. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  13608. /*!*****************************************************************!*\
  13609. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  13610. \*****************************************************************/
  13611. /*! no static exports found */
  13612. /***/ (function(module, exports, __webpack_require__) {
  13613. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  13614. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13615. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  13616. /**
  13617. * Removes all key-value entries from the map.
  13618. *
  13619. * @private
  13620. * @name clear
  13621. * @memberOf MapCache
  13622. */
  13623. function mapCacheClear() {
  13624. this.size = 0;
  13625. this.__data__ = {
  13626. 'hash': new Hash,
  13627. 'map': new (Map || ListCache),
  13628. 'string': new Hash
  13629. };
  13630. }
  13631. module.exports = mapCacheClear;
  13632. /***/ }),
  13633. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  13634. /*!******************************************************************!*\
  13635. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  13636. \******************************************************************/
  13637. /*! no static exports found */
  13638. /***/ (function(module, exports, __webpack_require__) {
  13639. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13640. /**
  13641. * Removes `key` and its value from the map.
  13642. *
  13643. * @private
  13644. * @name delete
  13645. * @memberOf MapCache
  13646. * @param {string} key The key of the value to remove.
  13647. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13648. */
  13649. function mapCacheDelete(key) {
  13650. var result = getMapData(this, key)['delete'](key);
  13651. this.size -= result ? 1 : 0;
  13652. return result;
  13653. }
  13654. module.exports = mapCacheDelete;
  13655. /***/ }),
  13656. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  13657. /*!***************************************************************!*\
  13658. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  13659. \***************************************************************/
  13660. /*! no static exports found */
  13661. /***/ (function(module, exports, __webpack_require__) {
  13662. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13663. /**
  13664. * Gets the map value for `key`.
  13665. *
  13666. * @private
  13667. * @name get
  13668. * @memberOf MapCache
  13669. * @param {string} key The key of the value to get.
  13670. * @returns {*} Returns the entry value.
  13671. */
  13672. function mapCacheGet(key) {
  13673. return getMapData(this, key).get(key);
  13674. }
  13675. module.exports = mapCacheGet;
  13676. /***/ }),
  13677. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  13678. /*!***************************************************************!*\
  13679. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  13680. \***************************************************************/
  13681. /*! no static exports found */
  13682. /***/ (function(module, exports, __webpack_require__) {
  13683. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13684. /**
  13685. * Checks if a map value for `key` exists.
  13686. *
  13687. * @private
  13688. * @name has
  13689. * @memberOf MapCache
  13690. * @param {string} key The key of the entry to check.
  13691. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13692. */
  13693. function mapCacheHas(key) {
  13694. return getMapData(this, key).has(key);
  13695. }
  13696. module.exports = mapCacheHas;
  13697. /***/ }),
  13698. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  13699. /*!***************************************************************!*\
  13700. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  13701. \***************************************************************/
  13702. /*! no static exports found */
  13703. /***/ (function(module, exports, __webpack_require__) {
  13704. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13705. /**
  13706. * Sets the map `key` to `value`.
  13707. *
  13708. * @private
  13709. * @name set
  13710. * @memberOf MapCache
  13711. * @param {string} key The key of the value to set.
  13712. * @param {*} value The value to set.
  13713. * @returns {Object} Returns the map cache instance.
  13714. */
  13715. function mapCacheSet(key, value) {
  13716. var data = getMapData(this, key),
  13717. size = data.size;
  13718. data.set(key, value);
  13719. this.size += data.size == size ? 0 : 1;
  13720. return this;
  13721. }
  13722. module.exports = mapCacheSet;
  13723. /***/ }),
  13724. /***/ "../../node_modules/lodash/_mapToArray.js":
  13725. /*!**************************************************************!*\
  13726. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  13727. \**************************************************************/
  13728. /*! no static exports found */
  13729. /***/ (function(module, exports) {
  13730. /**
  13731. * Converts `map` to its key-value pairs.
  13732. *
  13733. * @private
  13734. * @param {Object} map The map to convert.
  13735. * @returns {Array} Returns the key-value pairs.
  13736. */
  13737. function mapToArray(map) {
  13738. var index = -1,
  13739. result = Array(map.size);
  13740. map.forEach(function(value, key) {
  13741. result[++index] = [key, value];
  13742. });
  13743. return result;
  13744. }
  13745. module.exports = mapToArray;
  13746. /***/ }),
  13747. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  13748. /*!***************************************************************************!*\
  13749. !*** C:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  13750. \***************************************************************************/
  13751. /*! no static exports found */
  13752. /***/ (function(module, exports) {
  13753. /**
  13754. * A specialized version of `matchesProperty` for source values suitable
  13755. * for strict equality comparisons, i.e. `===`.
  13756. *
  13757. * @private
  13758. * @param {string} key The key of the property to get.
  13759. * @param {*} srcValue The value to match.
  13760. * @returns {Function} Returns the new spec function.
  13761. */
  13762. function matchesStrictComparable(key, srcValue) {
  13763. return function(object) {
  13764. if (object == null) {
  13765. return false;
  13766. }
  13767. return object[key] === srcValue &&
  13768. (srcValue !== undefined || (key in Object(object)));
  13769. };
  13770. }
  13771. module.exports = matchesStrictComparable;
  13772. /***/ }),
  13773. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  13774. /*!*****************************************************************!*\
  13775. !*** C:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  13776. \*****************************************************************/
  13777. /*! no static exports found */
  13778. /***/ (function(module, exports, __webpack_require__) {
  13779. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  13780. /** Used as the maximum memoize cache size. */
  13781. var MAX_MEMOIZE_SIZE = 500;
  13782. /**
  13783. * A specialized version of `_.memoize` which clears the memoized function's
  13784. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  13785. *
  13786. * @private
  13787. * @param {Function} func The function to have its output memoized.
  13788. * @returns {Function} Returns the new memoized function.
  13789. */
  13790. function memoizeCapped(func) {
  13791. var result = memoize(func, function(key) {
  13792. if (cache.size === MAX_MEMOIZE_SIZE) {
  13793. cache.clear();
  13794. }
  13795. return key;
  13796. });
  13797. var cache = result.cache;
  13798. return result;
  13799. }
  13800. module.exports = memoizeCapped;
  13801. /***/ }),
  13802. /***/ "../../node_modules/lodash/_nativeCreate.js":
  13803. /*!****************************************************************!*\
  13804. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  13805. \****************************************************************/
  13806. /*! no static exports found */
  13807. /***/ (function(module, exports, __webpack_require__) {
  13808. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13809. /* Built-in method references that are verified to be native. */
  13810. var nativeCreate = getNative(Object, 'create');
  13811. module.exports = nativeCreate;
  13812. /***/ }),
  13813. /***/ "../../node_modules/lodash/_nativeKeys.js":
  13814. /*!**************************************************************!*\
  13815. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  13816. \**************************************************************/
  13817. /*! no static exports found */
  13818. /***/ (function(module, exports, __webpack_require__) {
  13819. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13820. /* Built-in method references for those with the same name as other `lodash` methods. */
  13821. var nativeKeys = overArg(Object.keys, Object);
  13822. module.exports = nativeKeys;
  13823. /***/ }),
  13824. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  13825. /*!****************************************************************!*\
  13826. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  13827. \****************************************************************/
  13828. /*! no static exports found */
  13829. /***/ (function(module, exports) {
  13830. /**
  13831. * This function is like
  13832. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13833. * except that it includes inherited enumerable properties.
  13834. *
  13835. * @private
  13836. * @param {Object} object The object to query.
  13837. * @returns {Array} Returns the array of property names.
  13838. */
  13839. function nativeKeysIn(object) {
  13840. var result = [];
  13841. if (object != null) {
  13842. for (var key in Object(object)) {
  13843. result.push(key);
  13844. }
  13845. }
  13846. return result;
  13847. }
  13848. module.exports = nativeKeysIn;
  13849. /***/ }),
  13850. /***/ "../../node_modules/lodash/_nodeUtil.js":
  13851. /*!************************************************************!*\
  13852. !*** C:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  13853. \************************************************************/
  13854. /*! no static exports found */
  13855. /***/ (function(module, exports, __webpack_require__) {
  13856. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13857. /** Detect free variable `exports`. */
  13858. var freeExports = true && exports && !exports.nodeType && exports;
  13859. /** Detect free variable `module`. */
  13860. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  13861. /** Detect the popular CommonJS extension `module.exports`. */
  13862. var moduleExports = freeModule && freeModule.exports === freeExports;
  13863. /** Detect free variable `process` from Node.js. */
  13864. var freeProcess = moduleExports && freeGlobal.process;
  13865. /** Used to access faster Node.js helpers. */
  13866. var nodeUtil = (function() {
  13867. try {
  13868. // Use `util.types` for Node.js 10+.
  13869. var types = freeModule && freeModule.require && freeModule.require('util').types;
  13870. if (types) {
  13871. return types;
  13872. }
  13873. // Legacy `process.binding('util')` for Node.js < 10.
  13874. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  13875. } catch (e) {}
  13876. }());
  13877. module.exports = nodeUtil;
  13878. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  13879. /***/ }),
  13880. /***/ "../../node_modules/lodash/_objectToString.js":
  13881. /*!******************************************************************!*\
  13882. !*** C:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  13883. \******************************************************************/
  13884. /*! no static exports found */
  13885. /***/ (function(module, exports) {
  13886. /** Used for built-in method references. */
  13887. var objectProto = Object.prototype;
  13888. /**
  13889. * Used to resolve the
  13890. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13891. * of values.
  13892. */
  13893. var nativeObjectToString = objectProto.toString;
  13894. /**
  13895. * Converts `value` to a string using `Object.prototype.toString`.
  13896. *
  13897. * @private
  13898. * @param {*} value The value to convert.
  13899. * @returns {string} Returns the converted string.
  13900. */
  13901. function objectToString(value) {
  13902. return nativeObjectToString.call(value);
  13903. }
  13904. module.exports = objectToString;
  13905. /***/ }),
  13906. /***/ "../../node_modules/lodash/_overArg.js":
  13907. /*!***********************************************************!*\
  13908. !*** C:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  13909. \***********************************************************/
  13910. /*! no static exports found */
  13911. /***/ (function(module, exports) {
  13912. /**
  13913. * Creates a unary function that invokes `func` with its argument transformed.
  13914. *
  13915. * @private
  13916. * @param {Function} func The function to wrap.
  13917. * @param {Function} transform The argument transform.
  13918. * @returns {Function} Returns the new function.
  13919. */
  13920. function overArg(func, transform) {
  13921. return function(arg) {
  13922. return func(transform(arg));
  13923. };
  13924. }
  13925. module.exports = overArg;
  13926. /***/ }),
  13927. /***/ "../../node_modules/lodash/_overRest.js":
  13928. /*!************************************************************!*\
  13929. !*** C:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  13930. \************************************************************/
  13931. /*! no static exports found */
  13932. /***/ (function(module, exports, __webpack_require__) {
  13933. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  13934. /* Built-in method references for those with the same name as other `lodash` methods. */
  13935. var nativeMax = Math.max;
  13936. /**
  13937. * A specialized version of `baseRest` which transforms the rest array.
  13938. *
  13939. * @private
  13940. * @param {Function} func The function to apply a rest parameter to.
  13941. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13942. * @param {Function} transform The rest array transform.
  13943. * @returns {Function} Returns the new function.
  13944. */
  13945. function overRest(func, start, transform) {
  13946. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13947. return function() {
  13948. var args = arguments,
  13949. index = -1,
  13950. length = nativeMax(args.length - start, 0),
  13951. array = Array(length);
  13952. while (++index < length) {
  13953. array[index] = args[start + index];
  13954. }
  13955. index = -1;
  13956. var otherArgs = Array(start + 1);
  13957. while (++index < start) {
  13958. otherArgs[index] = args[index];
  13959. }
  13960. otherArgs[start] = transform(array);
  13961. return apply(func, this, otherArgs);
  13962. };
  13963. }
  13964. module.exports = overRest;
  13965. /***/ }),
  13966. /***/ "../../node_modules/lodash/_root.js":
  13967. /*!********************************************************!*\
  13968. !*** C:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  13969. \********************************************************/
  13970. /*! no static exports found */
  13971. /***/ (function(module, exports, __webpack_require__) {
  13972. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13973. /** Detect free variable `self`. */
  13974. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  13975. /** Used as a reference to the global object. */
  13976. var root = freeGlobal || freeSelf || Function('return this')();
  13977. module.exports = root;
  13978. /***/ }),
  13979. /***/ "../../node_modules/lodash/_safeGet.js":
  13980. /*!***********************************************************!*\
  13981. !*** C:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  13982. \***********************************************************/
  13983. /*! no static exports found */
  13984. /***/ (function(module, exports) {
  13985. /**
  13986. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  13987. *
  13988. * @private
  13989. * @param {Object} object The object to query.
  13990. * @param {string} key The key of the property to get.
  13991. * @returns {*} Returns the property value.
  13992. */
  13993. function safeGet(object, key) {
  13994. if (key === 'constructor' && typeof object[key] === 'function') {
  13995. return;
  13996. }
  13997. if (key == '__proto__') {
  13998. return;
  13999. }
  14000. return object[key];
  14001. }
  14002. module.exports = safeGet;
  14003. /***/ }),
  14004. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  14005. /*!***************************************************************!*\
  14006. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  14007. \***************************************************************/
  14008. /*! no static exports found */
  14009. /***/ (function(module, exports) {
  14010. /** Used to stand-in for `undefined` hash values. */
  14011. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  14012. /**
  14013. * Adds `value` to the array cache.
  14014. *
  14015. * @private
  14016. * @name add
  14017. * @memberOf SetCache
  14018. * @alias push
  14019. * @param {*} value The value to cache.
  14020. * @returns {Object} Returns the cache instance.
  14021. */
  14022. function setCacheAdd(value) {
  14023. this.__data__.set(value, HASH_UNDEFINED);
  14024. return this;
  14025. }
  14026. module.exports = setCacheAdd;
  14027. /***/ }),
  14028. /***/ "../../node_modules/lodash/_setCacheHas.js":
  14029. /*!***************************************************************!*\
  14030. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  14031. \***************************************************************/
  14032. /*! no static exports found */
  14033. /***/ (function(module, exports) {
  14034. /**
  14035. * Checks if `value` is in the array cache.
  14036. *
  14037. * @private
  14038. * @name has
  14039. * @memberOf SetCache
  14040. * @param {*} value The value to search for.
  14041. * @returns {number} Returns `true` if `value` is found, else `false`.
  14042. */
  14043. function setCacheHas(value) {
  14044. return this.__data__.has(value);
  14045. }
  14046. module.exports = setCacheHas;
  14047. /***/ }),
  14048. /***/ "../../node_modules/lodash/_setToArray.js":
  14049. /*!**************************************************************!*\
  14050. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  14051. \**************************************************************/
  14052. /*! no static exports found */
  14053. /***/ (function(module, exports) {
  14054. /**
  14055. * Converts `set` to an array of its values.
  14056. *
  14057. * @private
  14058. * @param {Object} set The set to convert.
  14059. * @returns {Array} Returns the values.
  14060. */
  14061. function setToArray(set) {
  14062. var index = -1,
  14063. result = Array(set.size);
  14064. set.forEach(function(value) {
  14065. result[++index] = value;
  14066. });
  14067. return result;
  14068. }
  14069. module.exports = setToArray;
  14070. /***/ }),
  14071. /***/ "../../node_modules/lodash/_setToString.js":
  14072. /*!***************************************************************!*\
  14073. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  14074. \***************************************************************/
  14075. /*! no static exports found */
  14076. /***/ (function(module, exports, __webpack_require__) {
  14077. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  14078. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  14079. /**
  14080. * Sets the `toString` method of `func` to return `string`.
  14081. *
  14082. * @private
  14083. * @param {Function} func The function to modify.
  14084. * @param {Function} string The `toString` result.
  14085. * @returns {Function} Returns `func`.
  14086. */
  14087. var setToString = shortOut(baseSetToString);
  14088. module.exports = setToString;
  14089. /***/ }),
  14090. /***/ "../../node_modules/lodash/_shortOut.js":
  14091. /*!************************************************************!*\
  14092. !*** C:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  14093. \************************************************************/
  14094. /*! no static exports found */
  14095. /***/ (function(module, exports) {
  14096. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  14097. var HOT_COUNT = 800,
  14098. HOT_SPAN = 16;
  14099. /* Built-in method references for those with the same name as other `lodash` methods. */
  14100. var nativeNow = Date.now;
  14101. /**
  14102. * Creates a function that'll short out and invoke `identity` instead
  14103. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  14104. * milliseconds.
  14105. *
  14106. * @private
  14107. * @param {Function} func The function to restrict.
  14108. * @returns {Function} Returns the new shortable function.
  14109. */
  14110. function shortOut(func) {
  14111. var count = 0,
  14112. lastCalled = 0;
  14113. return function() {
  14114. var stamp = nativeNow(),
  14115. remaining = HOT_SPAN - (stamp - lastCalled);
  14116. lastCalled = stamp;
  14117. if (remaining > 0) {
  14118. if (++count >= HOT_COUNT) {
  14119. return arguments[0];
  14120. }
  14121. } else {
  14122. count = 0;
  14123. }
  14124. return func.apply(undefined, arguments);
  14125. };
  14126. }
  14127. module.exports = shortOut;
  14128. /***/ }),
  14129. /***/ "../../node_modules/lodash/_stackClear.js":
  14130. /*!**************************************************************!*\
  14131. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  14132. \**************************************************************/
  14133. /*! no static exports found */
  14134. /***/ (function(module, exports, __webpack_require__) {
  14135. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  14136. /**
  14137. * Removes all key-value entries from the stack.
  14138. *
  14139. * @private
  14140. * @name clear
  14141. * @memberOf Stack
  14142. */
  14143. function stackClear() {
  14144. this.__data__ = new ListCache;
  14145. this.size = 0;
  14146. }
  14147. module.exports = stackClear;
  14148. /***/ }),
  14149. /***/ "../../node_modules/lodash/_stackDelete.js":
  14150. /*!***************************************************************!*\
  14151. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  14152. \***************************************************************/
  14153. /*! no static exports found */
  14154. /***/ (function(module, exports) {
  14155. /**
  14156. * Removes `key` and its value from the stack.
  14157. *
  14158. * @private
  14159. * @name delete
  14160. * @memberOf Stack
  14161. * @param {string} key The key of the value to remove.
  14162. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14163. */
  14164. function stackDelete(key) {
  14165. var data = this.__data__,
  14166. result = data['delete'](key);
  14167. this.size = data.size;
  14168. return result;
  14169. }
  14170. module.exports = stackDelete;
  14171. /***/ }),
  14172. /***/ "../../node_modules/lodash/_stackGet.js":
  14173. /*!************************************************************!*\
  14174. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  14175. \************************************************************/
  14176. /*! no static exports found */
  14177. /***/ (function(module, exports) {
  14178. /**
  14179. * Gets the stack value for `key`.
  14180. *
  14181. * @private
  14182. * @name get
  14183. * @memberOf Stack
  14184. * @param {string} key The key of the value to get.
  14185. * @returns {*} Returns the entry value.
  14186. */
  14187. function stackGet(key) {
  14188. return this.__data__.get(key);
  14189. }
  14190. module.exports = stackGet;
  14191. /***/ }),
  14192. /***/ "../../node_modules/lodash/_stackHas.js":
  14193. /*!************************************************************!*\
  14194. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  14195. \************************************************************/
  14196. /*! no static exports found */
  14197. /***/ (function(module, exports) {
  14198. /**
  14199. * Checks if a stack value for `key` exists.
  14200. *
  14201. * @private
  14202. * @name has
  14203. * @memberOf Stack
  14204. * @param {string} key The key of the entry to check.
  14205. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14206. */
  14207. function stackHas(key) {
  14208. return this.__data__.has(key);
  14209. }
  14210. module.exports = stackHas;
  14211. /***/ }),
  14212. /***/ "../../node_modules/lodash/_stackSet.js":
  14213. /*!************************************************************!*\
  14214. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  14215. \************************************************************/
  14216. /*! no static exports found */
  14217. /***/ (function(module, exports, __webpack_require__) {
  14218. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  14219. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  14220. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  14221. /** Used as the size to enable large array optimizations. */
  14222. var LARGE_ARRAY_SIZE = 200;
  14223. /**
  14224. * Sets the stack `key` to `value`.
  14225. *
  14226. * @private
  14227. * @name set
  14228. * @memberOf Stack
  14229. * @param {string} key The key of the value to set.
  14230. * @param {*} value The value to set.
  14231. * @returns {Object} Returns the stack cache instance.
  14232. */
  14233. function stackSet(key, value) {
  14234. var data = this.__data__;
  14235. if (data instanceof ListCache) {
  14236. var pairs = data.__data__;
  14237. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  14238. pairs.push([key, value]);
  14239. this.size = ++data.size;
  14240. return this;
  14241. }
  14242. data = this.__data__ = new MapCache(pairs);
  14243. }
  14244. data.set(key, value);
  14245. this.size = data.size;
  14246. return this;
  14247. }
  14248. module.exports = stackSet;
  14249. /***/ }),
  14250. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  14251. /*!*****************************************************************!*\
  14252. !*** C:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  14253. \*****************************************************************/
  14254. /*! no static exports found */
  14255. /***/ (function(module, exports) {
  14256. /**
  14257. * A specialized version of `_.indexOf` which performs strict equality
  14258. * comparisons of values, i.e. `===`.
  14259. *
  14260. * @private
  14261. * @param {Array} array The array to inspect.
  14262. * @param {*} value The value to search for.
  14263. * @param {number} fromIndex The index to search from.
  14264. * @returns {number} Returns the index of the matched value, else `-1`.
  14265. */
  14266. function strictIndexOf(array, value, fromIndex) {
  14267. var index = fromIndex - 1,
  14268. length = array.length;
  14269. while (++index < length) {
  14270. if (array[index] === value) {
  14271. return index;
  14272. }
  14273. }
  14274. return -1;
  14275. }
  14276. module.exports = strictIndexOf;
  14277. /***/ }),
  14278. /***/ "../../node_modules/lodash/_stringSize.js":
  14279. /*!**************************************************************!*\
  14280. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  14281. \**************************************************************/
  14282. /*! no static exports found */
  14283. /***/ (function(module, exports, __webpack_require__) {
  14284. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  14285. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  14286. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  14287. /**
  14288. * Gets the number of symbols in `string`.
  14289. *
  14290. * @private
  14291. * @param {string} string The string to inspect.
  14292. * @returns {number} Returns the string size.
  14293. */
  14294. function stringSize(string) {
  14295. return hasUnicode(string)
  14296. ? unicodeSize(string)
  14297. : asciiSize(string);
  14298. }
  14299. module.exports = stringSize;
  14300. /***/ }),
  14301. /***/ "../../node_modules/lodash/_stringToPath.js":
  14302. /*!****************************************************************!*\
  14303. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  14304. \****************************************************************/
  14305. /*! no static exports found */
  14306. /***/ (function(module, exports, __webpack_require__) {
  14307. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  14308. /** Used to match property names within property paths. */
  14309. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  14310. /** Used to match backslashes in property paths. */
  14311. var reEscapeChar = /\\(\\)?/g;
  14312. /**
  14313. * Converts `string` to a property path array.
  14314. *
  14315. * @private
  14316. * @param {string} string The string to convert.
  14317. * @returns {Array} Returns the property path array.
  14318. */
  14319. var stringToPath = memoizeCapped(function(string) {
  14320. var result = [];
  14321. if (string.charCodeAt(0) === 46 /* . */) {
  14322. result.push('');
  14323. }
  14324. string.replace(rePropName, function(match, number, quote, subString) {
  14325. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  14326. });
  14327. return result;
  14328. });
  14329. module.exports = stringToPath;
  14330. /***/ }),
  14331. /***/ "../../node_modules/lodash/_toKey.js":
  14332. /*!*********************************************************!*\
  14333. !*** C:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  14334. \*********************************************************/
  14335. /*! no static exports found */
  14336. /***/ (function(module, exports, __webpack_require__) {
  14337. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14338. /** Used as references for various `Number` constants. */
  14339. var INFINITY = 1 / 0;
  14340. /**
  14341. * Converts `value` to a string key if it's not a string or symbol.
  14342. *
  14343. * @private
  14344. * @param {*} value The value to inspect.
  14345. * @returns {string|symbol} Returns the key.
  14346. */
  14347. function toKey(value) {
  14348. if (typeof value == 'string' || isSymbol(value)) {
  14349. return value;
  14350. }
  14351. var result = (value + '');
  14352. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  14353. }
  14354. module.exports = toKey;
  14355. /***/ }),
  14356. /***/ "../../node_modules/lodash/_toSource.js":
  14357. /*!************************************************************!*\
  14358. !*** C:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  14359. \************************************************************/
  14360. /*! no static exports found */
  14361. /***/ (function(module, exports) {
  14362. /** Used for built-in method references. */
  14363. var funcProto = Function.prototype;
  14364. /** Used to resolve the decompiled source of functions. */
  14365. var funcToString = funcProto.toString;
  14366. /**
  14367. * Converts `func` to its source code.
  14368. *
  14369. * @private
  14370. * @param {Function} func The function to convert.
  14371. * @returns {string} Returns the source code.
  14372. */
  14373. function toSource(func) {
  14374. if (func != null) {
  14375. try {
  14376. return funcToString.call(func);
  14377. } catch (e) {}
  14378. try {
  14379. return (func + '');
  14380. } catch (e) {}
  14381. }
  14382. return '';
  14383. }
  14384. module.exports = toSource;
  14385. /***/ }),
  14386. /***/ "../../node_modules/lodash/_unicodeSize.js":
  14387. /*!***************************************************************!*\
  14388. !*** C:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  14389. \***************************************************************/
  14390. /*! no static exports found */
  14391. /***/ (function(module, exports) {
  14392. /** Used to compose unicode character classes. */
  14393. var rsAstralRange = '\\ud800-\\udfff',
  14394. rsComboMarksRange = '\\u0300-\\u036f',
  14395. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  14396. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  14397. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  14398. rsVarRange = '\\ufe0e\\ufe0f';
  14399. /** Used to compose unicode capture groups. */
  14400. var rsAstral = '[' + rsAstralRange + ']',
  14401. rsCombo = '[' + rsComboRange + ']',
  14402. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  14403. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  14404. rsNonAstral = '[^' + rsAstralRange + ']',
  14405. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  14406. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  14407. rsZWJ = '\\u200d';
  14408. /** Used to compose unicode regexes. */
  14409. var reOptMod = rsModifier + '?',
  14410. rsOptVar = '[' + rsVarRange + ']?',
  14411. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  14412. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  14413. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  14414. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  14415. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  14416. /**
  14417. * Gets the size of a Unicode `string`.
  14418. *
  14419. * @private
  14420. * @param {string} string The string inspect.
  14421. * @returns {number} Returns the string size.
  14422. */
  14423. function unicodeSize(string) {
  14424. var result = reUnicode.lastIndex = 0;
  14425. while (reUnicode.test(string)) {
  14426. ++result;
  14427. }
  14428. return result;
  14429. }
  14430. module.exports = unicodeSize;
  14431. /***/ }),
  14432. /***/ "../../node_modules/lodash/clone.js":
  14433. /*!********************************************************!*\
  14434. !*** C:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  14435. \********************************************************/
  14436. /*! no static exports found */
  14437. /***/ (function(module, exports, __webpack_require__) {
  14438. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14439. /** Used to compose bitmasks for cloning. */
  14440. var CLONE_SYMBOLS_FLAG = 4;
  14441. /**
  14442. * Creates a shallow clone of `value`.
  14443. *
  14444. * **Note:** This method is loosely based on the
  14445. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  14446. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  14447. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  14448. * arrays. The own enumerable properties of `arguments` objects are cloned
  14449. * as plain objects. An empty object is returned for uncloneable values such
  14450. * as error objects, functions, DOM nodes, and WeakMaps.
  14451. *
  14452. * @static
  14453. * @memberOf _
  14454. * @since 0.1.0
  14455. * @category Lang
  14456. * @param {*} value The value to clone.
  14457. * @returns {*} Returns the cloned value.
  14458. * @see _.cloneDeep
  14459. * @example
  14460. *
  14461. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14462. *
  14463. * var shallow = _.clone(objects);
  14464. * console.log(shallow[0] === objects[0]);
  14465. * // => true
  14466. */
  14467. function clone(value) {
  14468. return baseClone(value, CLONE_SYMBOLS_FLAG);
  14469. }
  14470. module.exports = clone;
  14471. /***/ }),
  14472. /***/ "../../node_modules/lodash/cloneDeep.js":
  14473. /*!************************************************************!*\
  14474. !*** C:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  14475. \************************************************************/
  14476. /*! no static exports found */
  14477. /***/ (function(module, exports, __webpack_require__) {
  14478. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14479. /** Used to compose bitmasks for cloning. */
  14480. var CLONE_DEEP_FLAG = 1,
  14481. CLONE_SYMBOLS_FLAG = 4;
  14482. /**
  14483. * This method is like `_.clone` except that it recursively clones `value`.
  14484. *
  14485. * @static
  14486. * @memberOf _
  14487. * @since 1.0.0
  14488. * @category Lang
  14489. * @param {*} value The value to recursively clone.
  14490. * @returns {*} Returns the deep cloned value.
  14491. * @see _.clone
  14492. * @example
  14493. *
  14494. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14495. *
  14496. * var deep = _.cloneDeep(objects);
  14497. * console.log(deep[0] === objects[0]);
  14498. * // => false
  14499. */
  14500. function cloneDeep(value) {
  14501. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  14502. }
  14503. module.exports = cloneDeep;
  14504. /***/ }),
  14505. /***/ "../../node_modules/lodash/constant.js":
  14506. /*!***********************************************************!*\
  14507. !*** C:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  14508. \***********************************************************/
  14509. /*! no static exports found */
  14510. /***/ (function(module, exports) {
  14511. /**
  14512. * Creates a function that returns `value`.
  14513. *
  14514. * @static
  14515. * @memberOf _
  14516. * @since 2.4.0
  14517. * @category Util
  14518. * @param {*} value The value to return from the new function.
  14519. * @returns {Function} Returns the new constant function.
  14520. * @example
  14521. *
  14522. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14523. *
  14524. * console.log(objects);
  14525. * // => [{ 'a': 1 }, { 'a': 1 }]
  14526. *
  14527. * console.log(objects[0] === objects[1]);
  14528. * // => true
  14529. */
  14530. function constant(value) {
  14531. return function() {
  14532. return value;
  14533. };
  14534. }
  14535. module.exports = constant;
  14536. /***/ }),
  14537. /***/ "../../node_modules/lodash/defaults.js":
  14538. /*!***********************************************************!*\
  14539. !*** C:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  14540. \***********************************************************/
  14541. /*! no static exports found */
  14542. /***/ (function(module, exports, __webpack_require__) {
  14543. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  14544. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14545. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  14546. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14547. /** Used for built-in method references. */
  14548. var objectProto = Object.prototype;
  14549. /** Used to check objects for own properties. */
  14550. var hasOwnProperty = objectProto.hasOwnProperty;
  14551. /**
  14552. * Assigns own and inherited enumerable string keyed properties of source
  14553. * objects to the destination object for all destination properties that
  14554. * resolve to `undefined`. Source objects are applied from left to right.
  14555. * Once a property is set, additional values of the same property are ignored.
  14556. *
  14557. * **Note:** This method mutates `object`.
  14558. *
  14559. * @static
  14560. * @since 0.1.0
  14561. * @memberOf _
  14562. * @category Object
  14563. * @param {Object} object The destination object.
  14564. * @param {...Object} [sources] The source objects.
  14565. * @returns {Object} Returns `object`.
  14566. * @see _.defaultsDeep
  14567. * @example
  14568. *
  14569. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  14570. * // => { 'a': 1, 'b': 2 }
  14571. */
  14572. var defaults = baseRest(function(object, sources) {
  14573. object = Object(object);
  14574. var index = -1;
  14575. var length = sources.length;
  14576. var guard = length > 2 ? sources[2] : undefined;
  14577. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  14578. length = 1;
  14579. }
  14580. while (++index < length) {
  14581. var source = sources[index];
  14582. var props = keysIn(source);
  14583. var propsIndex = -1;
  14584. var propsLength = props.length;
  14585. while (++propsIndex < propsLength) {
  14586. var key = props[propsIndex];
  14587. var value = object[key];
  14588. if (value === undefined ||
  14589. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  14590. object[key] = source[key];
  14591. }
  14592. }
  14593. }
  14594. return object;
  14595. });
  14596. module.exports = defaults;
  14597. /***/ }),
  14598. /***/ "../../node_modules/lodash/each.js":
  14599. /*!*******************************************************!*\
  14600. !*** C:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  14601. \*******************************************************/
  14602. /*! no static exports found */
  14603. /***/ (function(module, exports, __webpack_require__) {
  14604. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  14605. /***/ }),
  14606. /***/ "../../node_modules/lodash/eq.js":
  14607. /*!*****************************************************!*\
  14608. !*** C:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  14609. \*****************************************************/
  14610. /*! no static exports found */
  14611. /***/ (function(module, exports) {
  14612. /**
  14613. * Performs a
  14614. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14615. * comparison between two values to determine if they are equivalent.
  14616. *
  14617. * @static
  14618. * @memberOf _
  14619. * @since 4.0.0
  14620. * @category Lang
  14621. * @param {*} value The value to compare.
  14622. * @param {*} other The other value to compare.
  14623. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  14624. * @example
  14625. *
  14626. * var object = { 'a': 1 };
  14627. * var other = { 'a': 1 };
  14628. *
  14629. * _.eq(object, object);
  14630. * // => true
  14631. *
  14632. * _.eq(object, other);
  14633. * // => false
  14634. *
  14635. * _.eq('a', 'a');
  14636. * // => true
  14637. *
  14638. * _.eq('a', Object('a'));
  14639. * // => false
  14640. *
  14641. * _.eq(NaN, NaN);
  14642. * // => true
  14643. */
  14644. function eq(value, other) {
  14645. return value === other || (value !== value && other !== other);
  14646. }
  14647. module.exports = eq;
  14648. /***/ }),
  14649. /***/ "../../node_modules/lodash/filter.js":
  14650. /*!*********************************************************!*\
  14651. !*** C:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  14652. \*********************************************************/
  14653. /*! no static exports found */
  14654. /***/ (function(module, exports, __webpack_require__) {
  14655. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  14656. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  14657. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14658. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14659. /**
  14660. * Iterates over elements of `collection`, returning an array of all elements
  14661. * `predicate` returns truthy for. The predicate is invoked with three
  14662. * arguments: (value, index|key, collection).
  14663. *
  14664. * **Note:** Unlike `_.remove`, this method returns a new array.
  14665. *
  14666. * @static
  14667. * @memberOf _
  14668. * @since 0.1.0
  14669. * @category Collection
  14670. * @param {Array|Object} collection The collection to iterate over.
  14671. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14672. * @returns {Array} Returns the new filtered array.
  14673. * @see _.reject
  14674. * @example
  14675. *
  14676. * var users = [
  14677. * { 'user': 'barney', 'age': 36, 'active': true },
  14678. * { 'user': 'fred', 'age': 40, 'active': false }
  14679. * ];
  14680. *
  14681. * _.filter(users, function(o) { return !o.active; });
  14682. * // => objects for ['fred']
  14683. *
  14684. * // The `_.matches` iteratee shorthand.
  14685. * _.filter(users, { 'age': 36, 'active': true });
  14686. * // => objects for ['barney']
  14687. *
  14688. * // The `_.matchesProperty` iteratee shorthand.
  14689. * _.filter(users, ['active', false]);
  14690. * // => objects for ['fred']
  14691. *
  14692. * // The `_.property` iteratee shorthand.
  14693. * _.filter(users, 'active');
  14694. * // => objects for ['barney']
  14695. */
  14696. function filter(collection, predicate) {
  14697. var func = isArray(collection) ? arrayFilter : baseFilter;
  14698. return func(collection, baseIteratee(predicate, 3));
  14699. }
  14700. module.exports = filter;
  14701. /***/ }),
  14702. /***/ "../../node_modules/lodash/find.js":
  14703. /*!*******************************************************!*\
  14704. !*** C:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  14705. \*******************************************************/
  14706. /*! no static exports found */
  14707. /***/ (function(module, exports, __webpack_require__) {
  14708. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  14709. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  14710. /**
  14711. * Iterates over elements of `collection`, returning the first element
  14712. * `predicate` returns truthy for. The predicate is invoked with three
  14713. * arguments: (value, index|key, collection).
  14714. *
  14715. * @static
  14716. * @memberOf _
  14717. * @since 0.1.0
  14718. * @category Collection
  14719. * @param {Array|Object} collection The collection to inspect.
  14720. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14721. * @param {number} [fromIndex=0] The index to search from.
  14722. * @returns {*} Returns the matched element, else `undefined`.
  14723. * @example
  14724. *
  14725. * var users = [
  14726. * { 'user': 'barney', 'age': 36, 'active': true },
  14727. * { 'user': 'fred', 'age': 40, 'active': false },
  14728. * { 'user': 'pebbles', 'age': 1, 'active': true }
  14729. * ];
  14730. *
  14731. * _.find(users, function(o) { return o.age < 40; });
  14732. * // => object for 'barney'
  14733. *
  14734. * // The `_.matches` iteratee shorthand.
  14735. * _.find(users, { 'age': 1, 'active': true });
  14736. * // => object for 'pebbles'
  14737. *
  14738. * // The `_.matchesProperty` iteratee shorthand.
  14739. * _.find(users, ['active', false]);
  14740. * // => object for 'fred'
  14741. *
  14742. * // The `_.property` iteratee shorthand.
  14743. * _.find(users, 'active');
  14744. * // => object for 'barney'
  14745. */
  14746. var find = createFind(findIndex);
  14747. module.exports = find;
  14748. /***/ }),
  14749. /***/ "../../node_modules/lodash/findIndex.js":
  14750. /*!************************************************************!*\
  14751. !*** C:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  14752. \************************************************************/
  14753. /*! no static exports found */
  14754. /***/ (function(module, exports, __webpack_require__) {
  14755. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14756. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14757. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  14758. /* Built-in method references for those with the same name as other `lodash` methods. */
  14759. var nativeMax = Math.max;
  14760. /**
  14761. * This method is like `_.find` except that it returns the index of the first
  14762. * element `predicate` returns truthy for instead of the element itself.
  14763. *
  14764. * @static
  14765. * @memberOf _
  14766. * @since 1.1.0
  14767. * @category Array
  14768. * @param {Array} array The array to inspect.
  14769. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14770. * @param {number} [fromIndex=0] The index to search from.
  14771. * @returns {number} Returns the index of the found element, else `-1`.
  14772. * @example
  14773. *
  14774. * var users = [
  14775. * { 'user': 'barney', 'active': false },
  14776. * { 'user': 'fred', 'active': false },
  14777. * { 'user': 'pebbles', 'active': true }
  14778. * ];
  14779. *
  14780. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  14781. * // => 0
  14782. *
  14783. * // The `_.matches` iteratee shorthand.
  14784. * _.findIndex(users, { 'user': 'fred', 'active': false });
  14785. * // => 1
  14786. *
  14787. * // The `_.matchesProperty` iteratee shorthand.
  14788. * _.findIndex(users, ['active', false]);
  14789. * // => 0
  14790. *
  14791. * // The `_.property` iteratee shorthand.
  14792. * _.findIndex(users, 'active');
  14793. * // => 2
  14794. */
  14795. function findIndex(array, predicate, fromIndex) {
  14796. var length = array == null ? 0 : array.length;
  14797. if (!length) {
  14798. return -1;
  14799. }
  14800. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  14801. if (index < 0) {
  14802. index = nativeMax(length + index, 0);
  14803. }
  14804. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  14805. }
  14806. module.exports = findIndex;
  14807. /***/ }),
  14808. /***/ "../../node_modules/lodash/flatten.js":
  14809. /*!**********************************************************!*\
  14810. !*** C:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  14811. \**********************************************************/
  14812. /*! no static exports found */
  14813. /***/ (function(module, exports, __webpack_require__) {
  14814. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  14815. /**
  14816. * Flattens `array` a single level deep.
  14817. *
  14818. * @static
  14819. * @memberOf _
  14820. * @since 0.1.0
  14821. * @category Array
  14822. * @param {Array} array The array to flatten.
  14823. * @returns {Array} Returns the new flattened array.
  14824. * @example
  14825. *
  14826. * _.flatten([1, [2, [3, [4]], 5]]);
  14827. * // => [1, 2, [3, [4]], 5]
  14828. */
  14829. function flatten(array) {
  14830. var length = array == null ? 0 : array.length;
  14831. return length ? baseFlatten(array, 1) : [];
  14832. }
  14833. module.exports = flatten;
  14834. /***/ }),
  14835. /***/ "../../node_modules/lodash/forEach.js":
  14836. /*!**********************************************************!*\
  14837. !*** C:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  14838. \**********************************************************/
  14839. /*! no static exports found */
  14840. /***/ (function(module, exports, __webpack_require__) {
  14841. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14842. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  14843. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14844. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14845. /**
  14846. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  14847. * The iteratee is invoked with three arguments: (value, index|key, collection).
  14848. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14849. *
  14850. * **Note:** As with other "Collections" methods, objects with a "length"
  14851. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  14852. * or `_.forOwn` for object iteration.
  14853. *
  14854. * @static
  14855. * @memberOf _
  14856. * @since 0.1.0
  14857. * @alias each
  14858. * @category Collection
  14859. * @param {Array|Object} collection The collection to iterate over.
  14860. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14861. * @returns {Array|Object} Returns `collection`.
  14862. * @see _.forEachRight
  14863. * @example
  14864. *
  14865. * _.forEach([1, 2], function(value) {
  14866. * console.log(value);
  14867. * });
  14868. * // => Logs `1` then `2`.
  14869. *
  14870. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  14871. * console.log(key);
  14872. * });
  14873. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  14874. */
  14875. function forEach(collection, iteratee) {
  14876. var func = isArray(collection) ? arrayEach : baseEach;
  14877. return func(collection, castFunction(iteratee));
  14878. }
  14879. module.exports = forEach;
  14880. /***/ }),
  14881. /***/ "../../node_modules/lodash/forIn.js":
  14882. /*!********************************************************!*\
  14883. !*** C:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  14884. \********************************************************/
  14885. /*! no static exports found */
  14886. /***/ (function(module, exports, __webpack_require__) {
  14887. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14888. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14889. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14890. /**
  14891. * Iterates over own and inherited enumerable string keyed properties of an
  14892. * object and invokes `iteratee` for each property. The iteratee is invoked
  14893. * with three arguments: (value, key, object). Iteratee functions may exit
  14894. * iteration early by explicitly returning `false`.
  14895. *
  14896. * @static
  14897. * @memberOf _
  14898. * @since 0.3.0
  14899. * @category Object
  14900. * @param {Object} object The object to iterate over.
  14901. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14902. * @returns {Object} Returns `object`.
  14903. * @see _.forInRight
  14904. * @example
  14905. *
  14906. * function Foo() {
  14907. * this.a = 1;
  14908. * this.b = 2;
  14909. * }
  14910. *
  14911. * Foo.prototype.c = 3;
  14912. *
  14913. * _.forIn(new Foo, function(value, key) {
  14914. * console.log(key);
  14915. * });
  14916. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  14917. */
  14918. function forIn(object, iteratee) {
  14919. return object == null
  14920. ? object
  14921. : baseFor(object, castFunction(iteratee), keysIn);
  14922. }
  14923. module.exports = forIn;
  14924. /***/ }),
  14925. /***/ "../../node_modules/lodash/get.js":
  14926. /*!******************************************************!*\
  14927. !*** C:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  14928. \******************************************************/
  14929. /*! no static exports found */
  14930. /***/ (function(module, exports, __webpack_require__) {
  14931. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  14932. /**
  14933. * Gets the value at `path` of `object`. If the resolved value is
  14934. * `undefined`, the `defaultValue` is returned in its place.
  14935. *
  14936. * @static
  14937. * @memberOf _
  14938. * @since 3.7.0
  14939. * @category Object
  14940. * @param {Object} object The object to query.
  14941. * @param {Array|string} path The path of the property to get.
  14942. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  14943. * @returns {*} Returns the resolved value.
  14944. * @example
  14945. *
  14946. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  14947. *
  14948. * _.get(object, 'a[0].b.c');
  14949. * // => 3
  14950. *
  14951. * _.get(object, ['a', '0', 'b', 'c']);
  14952. * // => 3
  14953. *
  14954. * _.get(object, 'a.b.c', 'default');
  14955. * // => 'default'
  14956. */
  14957. function get(object, path, defaultValue) {
  14958. var result = object == null ? undefined : baseGet(object, path);
  14959. return result === undefined ? defaultValue : result;
  14960. }
  14961. module.exports = get;
  14962. /***/ }),
  14963. /***/ "../../node_modules/lodash/has.js":
  14964. /*!******************************************************!*\
  14965. !*** C:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  14966. \******************************************************/
  14967. /*! no static exports found */
  14968. /***/ (function(module, exports, __webpack_require__) {
  14969. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  14970. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14971. /**
  14972. * Checks if `path` is a direct property of `object`.
  14973. *
  14974. * @static
  14975. * @since 0.1.0
  14976. * @memberOf _
  14977. * @category Object
  14978. * @param {Object} object The object to query.
  14979. * @param {Array|string} path The path to check.
  14980. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14981. * @example
  14982. *
  14983. * var object = { 'a': { 'b': 2 } };
  14984. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  14985. *
  14986. * _.has(object, 'a');
  14987. * // => true
  14988. *
  14989. * _.has(object, 'a.b');
  14990. * // => true
  14991. *
  14992. * _.has(object, ['a', 'b']);
  14993. * // => true
  14994. *
  14995. * _.has(other, 'a');
  14996. * // => false
  14997. */
  14998. function has(object, path) {
  14999. return object != null && hasPath(object, path, baseHas);
  15000. }
  15001. module.exports = has;
  15002. /***/ }),
  15003. /***/ "../../node_modules/lodash/hasIn.js":
  15004. /*!********************************************************!*\
  15005. !*** C:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  15006. \********************************************************/
  15007. /*! no static exports found */
  15008. /***/ (function(module, exports, __webpack_require__) {
  15009. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  15010. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  15011. /**
  15012. * Checks if `path` is a direct or inherited property of `object`.
  15013. *
  15014. * @static
  15015. * @memberOf _
  15016. * @since 4.0.0
  15017. * @category Object
  15018. * @param {Object} object The object to query.
  15019. * @param {Array|string} path The path to check.
  15020. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  15021. * @example
  15022. *
  15023. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  15024. *
  15025. * _.hasIn(object, 'a');
  15026. * // => true
  15027. *
  15028. * _.hasIn(object, 'a.b');
  15029. * // => true
  15030. *
  15031. * _.hasIn(object, ['a', 'b']);
  15032. * // => true
  15033. *
  15034. * _.hasIn(object, 'b');
  15035. * // => false
  15036. */
  15037. function hasIn(object, path) {
  15038. return object != null && hasPath(object, path, baseHasIn);
  15039. }
  15040. module.exports = hasIn;
  15041. /***/ }),
  15042. /***/ "../../node_modules/lodash/identity.js":
  15043. /*!***********************************************************!*\
  15044. !*** C:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  15045. \***********************************************************/
  15046. /*! no static exports found */
  15047. /***/ (function(module, exports) {
  15048. /**
  15049. * This method returns the first argument it receives.
  15050. *
  15051. * @static
  15052. * @since 0.1.0
  15053. * @memberOf _
  15054. * @category Util
  15055. * @param {*} value Any value.
  15056. * @returns {*} Returns `value`.
  15057. * @example
  15058. *
  15059. * var object = { 'a': 1 };
  15060. *
  15061. * console.log(_.identity(object) === object);
  15062. * // => true
  15063. */
  15064. function identity(value) {
  15065. return value;
  15066. }
  15067. module.exports = identity;
  15068. /***/ }),
  15069. /***/ "../../node_modules/lodash/isArguments.js":
  15070. /*!**************************************************************!*\
  15071. !*** C:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  15072. \**************************************************************/
  15073. /*! no static exports found */
  15074. /***/ (function(module, exports, __webpack_require__) {
  15075. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  15076. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15077. /** Used for built-in method references. */
  15078. var objectProto = Object.prototype;
  15079. /** Used to check objects for own properties. */
  15080. var hasOwnProperty = objectProto.hasOwnProperty;
  15081. /** Built-in value references. */
  15082. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  15083. /**
  15084. * Checks if `value` is likely an `arguments` object.
  15085. *
  15086. * @static
  15087. * @memberOf _
  15088. * @since 0.1.0
  15089. * @category Lang
  15090. * @param {*} value The value to check.
  15091. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15092. * else `false`.
  15093. * @example
  15094. *
  15095. * _.isArguments(function() { return arguments; }());
  15096. * // => true
  15097. *
  15098. * _.isArguments([1, 2, 3]);
  15099. * // => false
  15100. */
  15101. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15102. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15103. !propertyIsEnumerable.call(value, 'callee');
  15104. };
  15105. module.exports = isArguments;
  15106. /***/ }),
  15107. /***/ "../../node_modules/lodash/isArray.js":
  15108. /*!**********************************************************!*\
  15109. !*** C:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  15110. \**********************************************************/
  15111. /*! no static exports found */
  15112. /***/ (function(module, exports) {
  15113. /**
  15114. * Checks if `value` is classified as an `Array` object.
  15115. *
  15116. * @static
  15117. * @memberOf _
  15118. * @since 0.1.0
  15119. * @category Lang
  15120. * @param {*} value The value to check.
  15121. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15122. * @example
  15123. *
  15124. * _.isArray([1, 2, 3]);
  15125. * // => true
  15126. *
  15127. * _.isArray(document.body.children);
  15128. * // => false
  15129. *
  15130. * _.isArray('abc');
  15131. * // => false
  15132. *
  15133. * _.isArray(_.noop);
  15134. * // => false
  15135. */
  15136. var isArray = Array.isArray;
  15137. module.exports = isArray;
  15138. /***/ }),
  15139. /***/ "../../node_modules/lodash/isArrayLike.js":
  15140. /*!**************************************************************!*\
  15141. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  15142. \**************************************************************/
  15143. /*! no static exports found */
  15144. /***/ (function(module, exports, __webpack_require__) {
  15145. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15146. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  15147. /**
  15148. * Checks if `value` is array-like. A value is considered array-like if it's
  15149. * not a function and has a `value.length` that's an integer greater than or
  15150. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15151. *
  15152. * @static
  15153. * @memberOf _
  15154. * @since 4.0.0
  15155. * @category Lang
  15156. * @param {*} value The value to check.
  15157. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15158. * @example
  15159. *
  15160. * _.isArrayLike([1, 2, 3]);
  15161. * // => true
  15162. *
  15163. * _.isArrayLike(document.body.children);
  15164. * // => true
  15165. *
  15166. * _.isArrayLike('abc');
  15167. * // => true
  15168. *
  15169. * _.isArrayLike(_.noop);
  15170. * // => false
  15171. */
  15172. function isArrayLike(value) {
  15173. return value != null && isLength(value.length) && !isFunction(value);
  15174. }
  15175. module.exports = isArrayLike;
  15176. /***/ }),
  15177. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  15178. /*!********************************************************************!*\
  15179. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  15180. \********************************************************************/
  15181. /*! no static exports found */
  15182. /***/ (function(module, exports, __webpack_require__) {
  15183. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15184. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15185. /**
  15186. * This method is like `_.isArrayLike` except that it also checks if `value`
  15187. * is an object.
  15188. *
  15189. * @static
  15190. * @memberOf _
  15191. * @since 4.0.0
  15192. * @category Lang
  15193. * @param {*} value The value to check.
  15194. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15195. * else `false`.
  15196. * @example
  15197. *
  15198. * _.isArrayLikeObject([1, 2, 3]);
  15199. * // => true
  15200. *
  15201. * _.isArrayLikeObject(document.body.children);
  15202. * // => true
  15203. *
  15204. * _.isArrayLikeObject('abc');
  15205. * // => false
  15206. *
  15207. * _.isArrayLikeObject(_.noop);
  15208. * // => false
  15209. */
  15210. function isArrayLikeObject(value) {
  15211. return isObjectLike(value) && isArrayLike(value);
  15212. }
  15213. module.exports = isArrayLikeObject;
  15214. /***/ }),
  15215. /***/ "../../node_modules/lodash/isBuffer.js":
  15216. /*!***********************************************************!*\
  15217. !*** C:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  15218. \***********************************************************/
  15219. /*! no static exports found */
  15220. /***/ (function(module, exports, __webpack_require__) {
  15221. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  15222. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  15223. /** Detect free variable `exports`. */
  15224. var freeExports = true && exports && !exports.nodeType && exports;
  15225. /** Detect free variable `module`. */
  15226. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  15227. /** Detect the popular CommonJS extension `module.exports`. */
  15228. var moduleExports = freeModule && freeModule.exports === freeExports;
  15229. /** Built-in value references. */
  15230. var Buffer = moduleExports ? root.Buffer : undefined;
  15231. /* Built-in method references for those with the same name as other `lodash` methods. */
  15232. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  15233. /**
  15234. * Checks if `value` is a buffer.
  15235. *
  15236. * @static
  15237. * @memberOf _
  15238. * @since 4.3.0
  15239. * @category Lang
  15240. * @param {*} value The value to check.
  15241. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15242. * @example
  15243. *
  15244. * _.isBuffer(new Buffer(2));
  15245. * // => true
  15246. *
  15247. * _.isBuffer(new Uint8Array(2));
  15248. * // => false
  15249. */
  15250. var isBuffer = nativeIsBuffer || stubFalse;
  15251. module.exports = isBuffer;
  15252. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  15253. /***/ }),
  15254. /***/ "../../node_modules/lodash/isEmpty.js":
  15255. /*!**********************************************************!*\
  15256. !*** C:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  15257. \**********************************************************/
  15258. /*! no static exports found */
  15259. /***/ (function(module, exports, __webpack_require__) {
  15260. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15261. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15262. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15263. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15264. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15265. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15266. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15267. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15268. /** `Object#toString` result references. */
  15269. var mapTag = '[object Map]',
  15270. setTag = '[object Set]';
  15271. /** Used for built-in method references. */
  15272. var objectProto = Object.prototype;
  15273. /** Used to check objects for own properties. */
  15274. var hasOwnProperty = objectProto.hasOwnProperty;
  15275. /**
  15276. * Checks if `value` is an empty object, collection, map, or set.
  15277. *
  15278. * Objects are considered empty if they have no own enumerable string keyed
  15279. * properties.
  15280. *
  15281. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15282. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15283. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15284. *
  15285. * @static
  15286. * @memberOf _
  15287. * @since 0.1.0
  15288. * @category Lang
  15289. * @param {*} value The value to check.
  15290. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15291. * @example
  15292. *
  15293. * _.isEmpty(null);
  15294. * // => true
  15295. *
  15296. * _.isEmpty(true);
  15297. * // => true
  15298. *
  15299. * _.isEmpty(1);
  15300. * // => true
  15301. *
  15302. * _.isEmpty([1, 2, 3]);
  15303. * // => false
  15304. *
  15305. * _.isEmpty({ 'a': 1 });
  15306. * // => false
  15307. */
  15308. function isEmpty(value) {
  15309. if (value == null) {
  15310. return true;
  15311. }
  15312. if (isArrayLike(value) &&
  15313. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15314. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15315. return !value.length;
  15316. }
  15317. var tag = getTag(value);
  15318. if (tag == mapTag || tag == setTag) {
  15319. return !value.size;
  15320. }
  15321. if (isPrototype(value)) {
  15322. return !baseKeys(value).length;
  15323. }
  15324. for (var key in value) {
  15325. if (hasOwnProperty.call(value, key)) {
  15326. return false;
  15327. }
  15328. }
  15329. return true;
  15330. }
  15331. module.exports = isEmpty;
  15332. /***/ }),
  15333. /***/ "../../node_modules/lodash/isFunction.js":
  15334. /*!*************************************************************!*\
  15335. !*** C:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  15336. \*************************************************************/
  15337. /*! no static exports found */
  15338. /***/ (function(module, exports, __webpack_require__) {
  15339. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15340. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  15341. /** `Object#toString` result references. */
  15342. var asyncTag = '[object AsyncFunction]',
  15343. funcTag = '[object Function]',
  15344. genTag = '[object GeneratorFunction]',
  15345. proxyTag = '[object Proxy]';
  15346. /**
  15347. * Checks if `value` is classified as a `Function` object.
  15348. *
  15349. * @static
  15350. * @memberOf _
  15351. * @since 0.1.0
  15352. * @category Lang
  15353. * @param {*} value The value to check.
  15354. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15355. * @example
  15356. *
  15357. * _.isFunction(_);
  15358. * // => true
  15359. *
  15360. * _.isFunction(/abc/);
  15361. * // => false
  15362. */
  15363. function isFunction(value) {
  15364. if (!isObject(value)) {
  15365. return false;
  15366. }
  15367. // The use of `Object#toString` avoids issues with the `typeof` operator
  15368. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15369. var tag = baseGetTag(value);
  15370. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15371. }
  15372. module.exports = isFunction;
  15373. /***/ }),
  15374. /***/ "../../node_modules/lodash/isLength.js":
  15375. /*!***********************************************************!*\
  15376. !*** C:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  15377. \***********************************************************/
  15378. /*! no static exports found */
  15379. /***/ (function(module, exports) {
  15380. /** Used as references for various `Number` constants. */
  15381. var MAX_SAFE_INTEGER = 9007199254740991;
  15382. /**
  15383. * Checks if `value` is a valid array-like length.
  15384. *
  15385. * **Note:** This method is loosely based on
  15386. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15387. *
  15388. * @static
  15389. * @memberOf _
  15390. * @since 4.0.0
  15391. * @category Lang
  15392. * @param {*} value The value to check.
  15393. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15394. * @example
  15395. *
  15396. * _.isLength(3);
  15397. * // => true
  15398. *
  15399. * _.isLength(Number.MIN_VALUE);
  15400. * // => false
  15401. *
  15402. * _.isLength(Infinity);
  15403. * // => false
  15404. *
  15405. * _.isLength('3');
  15406. * // => false
  15407. */
  15408. function isLength(value) {
  15409. return typeof value == 'number' &&
  15410. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15411. }
  15412. module.exports = isLength;
  15413. /***/ }),
  15414. /***/ "../../node_modules/lodash/isMap.js":
  15415. /*!********************************************************!*\
  15416. !*** C:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  15417. \********************************************************/
  15418. /*! no static exports found */
  15419. /***/ (function(module, exports, __webpack_require__) {
  15420. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  15421. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15422. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15423. /* Node.js helper references. */
  15424. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  15425. /**
  15426. * Checks if `value` is classified as a `Map` object.
  15427. *
  15428. * @static
  15429. * @memberOf _
  15430. * @since 4.3.0
  15431. * @category Lang
  15432. * @param {*} value The value to check.
  15433. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15434. * @example
  15435. *
  15436. * _.isMap(new Map);
  15437. * // => true
  15438. *
  15439. * _.isMap(new WeakMap);
  15440. * // => false
  15441. */
  15442. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15443. module.exports = isMap;
  15444. /***/ }),
  15445. /***/ "../../node_modules/lodash/isObject.js":
  15446. /*!***********************************************************!*\
  15447. !*** C:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  15448. \***********************************************************/
  15449. /*! no static exports found */
  15450. /***/ (function(module, exports) {
  15451. /**
  15452. * Checks if `value` is the
  15453. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15454. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15455. *
  15456. * @static
  15457. * @memberOf _
  15458. * @since 0.1.0
  15459. * @category Lang
  15460. * @param {*} value The value to check.
  15461. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15462. * @example
  15463. *
  15464. * _.isObject({});
  15465. * // => true
  15466. *
  15467. * _.isObject([1, 2, 3]);
  15468. * // => true
  15469. *
  15470. * _.isObject(_.noop);
  15471. * // => true
  15472. *
  15473. * _.isObject(null);
  15474. * // => false
  15475. */
  15476. function isObject(value) {
  15477. var type = typeof value;
  15478. return value != null && (type == 'object' || type == 'function');
  15479. }
  15480. module.exports = isObject;
  15481. /***/ }),
  15482. /***/ "../../node_modules/lodash/isObjectLike.js":
  15483. /*!***************************************************************!*\
  15484. !*** C:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  15485. \***************************************************************/
  15486. /*! no static exports found */
  15487. /***/ (function(module, exports) {
  15488. /**
  15489. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15490. * and has a `typeof` result of "object".
  15491. *
  15492. * @static
  15493. * @memberOf _
  15494. * @since 4.0.0
  15495. * @category Lang
  15496. * @param {*} value The value to check.
  15497. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15498. * @example
  15499. *
  15500. * _.isObjectLike({});
  15501. * // => true
  15502. *
  15503. * _.isObjectLike([1, 2, 3]);
  15504. * // => true
  15505. *
  15506. * _.isObjectLike(_.noop);
  15507. * // => false
  15508. *
  15509. * _.isObjectLike(null);
  15510. * // => false
  15511. */
  15512. function isObjectLike(value) {
  15513. return value != null && typeof value == 'object';
  15514. }
  15515. module.exports = isObjectLike;
  15516. /***/ }),
  15517. /***/ "../../node_modules/lodash/isPlainObject.js":
  15518. /*!****************************************************************!*\
  15519. !*** C:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  15520. \****************************************************************/
  15521. /*! no static exports found */
  15522. /***/ (function(module, exports, __webpack_require__) {
  15523. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15524. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  15525. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15526. /** `Object#toString` result references. */
  15527. var objectTag = '[object Object]';
  15528. /** Used for built-in method references. */
  15529. var funcProto = Function.prototype,
  15530. objectProto = Object.prototype;
  15531. /** Used to resolve the decompiled source of functions. */
  15532. var funcToString = funcProto.toString;
  15533. /** Used to check objects for own properties. */
  15534. var hasOwnProperty = objectProto.hasOwnProperty;
  15535. /** Used to infer the `Object` constructor. */
  15536. var objectCtorString = funcToString.call(Object);
  15537. /**
  15538. * Checks if `value` is a plain object, that is, an object created by the
  15539. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  15540. *
  15541. * @static
  15542. * @memberOf _
  15543. * @since 0.8.0
  15544. * @category Lang
  15545. * @param {*} value The value to check.
  15546. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  15547. * @example
  15548. *
  15549. * function Foo() {
  15550. * this.a = 1;
  15551. * }
  15552. *
  15553. * _.isPlainObject(new Foo);
  15554. * // => false
  15555. *
  15556. * _.isPlainObject([1, 2, 3]);
  15557. * // => false
  15558. *
  15559. * _.isPlainObject({ 'x': 0, 'y': 0 });
  15560. * // => true
  15561. *
  15562. * _.isPlainObject(Object.create(null));
  15563. * // => true
  15564. */
  15565. function isPlainObject(value) {
  15566. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  15567. return false;
  15568. }
  15569. var proto = getPrototype(value);
  15570. if (proto === null) {
  15571. return true;
  15572. }
  15573. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  15574. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  15575. funcToString.call(Ctor) == objectCtorString;
  15576. }
  15577. module.exports = isPlainObject;
  15578. /***/ }),
  15579. /***/ "../../node_modules/lodash/isSet.js":
  15580. /*!********************************************************!*\
  15581. !*** C:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  15582. \********************************************************/
  15583. /*! no static exports found */
  15584. /***/ (function(module, exports, __webpack_require__) {
  15585. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  15586. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15587. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15588. /* Node.js helper references. */
  15589. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  15590. /**
  15591. * Checks if `value` is classified as a `Set` object.
  15592. *
  15593. * @static
  15594. * @memberOf _
  15595. * @since 4.3.0
  15596. * @category Lang
  15597. * @param {*} value The value to check.
  15598. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15599. * @example
  15600. *
  15601. * _.isSet(new Set);
  15602. * // => true
  15603. *
  15604. * _.isSet(new WeakSet);
  15605. * // => false
  15606. */
  15607. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  15608. module.exports = isSet;
  15609. /***/ }),
  15610. /***/ "../../node_modules/lodash/isString.js":
  15611. /*!***********************************************************!*\
  15612. !*** C:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  15613. \***********************************************************/
  15614. /*! no static exports found */
  15615. /***/ (function(module, exports, __webpack_require__) {
  15616. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15617. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15618. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15619. /** `Object#toString` result references. */
  15620. var stringTag = '[object String]';
  15621. /**
  15622. * Checks if `value` is classified as a `String` primitive or object.
  15623. *
  15624. * @static
  15625. * @since 0.1.0
  15626. * @memberOf _
  15627. * @category Lang
  15628. * @param {*} value The value to check.
  15629. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  15630. * @example
  15631. *
  15632. * _.isString('abc');
  15633. * // => true
  15634. *
  15635. * _.isString(1);
  15636. * // => false
  15637. */
  15638. function isString(value) {
  15639. return typeof value == 'string' ||
  15640. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  15641. }
  15642. module.exports = isString;
  15643. /***/ }),
  15644. /***/ "../../node_modules/lodash/isSymbol.js":
  15645. /*!***********************************************************!*\
  15646. !*** C:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  15647. \***********************************************************/
  15648. /*! no static exports found */
  15649. /***/ (function(module, exports, __webpack_require__) {
  15650. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15651. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15652. /** `Object#toString` result references. */
  15653. var symbolTag = '[object Symbol]';
  15654. /**
  15655. * Checks if `value` is classified as a `Symbol` primitive or object.
  15656. *
  15657. * @static
  15658. * @memberOf _
  15659. * @since 4.0.0
  15660. * @category Lang
  15661. * @param {*} value The value to check.
  15662. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  15663. * @example
  15664. *
  15665. * _.isSymbol(Symbol.iterator);
  15666. * // => true
  15667. *
  15668. * _.isSymbol('abc');
  15669. * // => false
  15670. */
  15671. function isSymbol(value) {
  15672. return typeof value == 'symbol' ||
  15673. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  15674. }
  15675. module.exports = isSymbol;
  15676. /***/ }),
  15677. /***/ "../../node_modules/lodash/isTypedArray.js":
  15678. /*!***************************************************************!*\
  15679. !*** C:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  15680. \***************************************************************/
  15681. /*! no static exports found */
  15682. /***/ (function(module, exports, __webpack_require__) {
  15683. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  15684. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15685. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15686. /* Node.js helper references. */
  15687. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  15688. /**
  15689. * Checks if `value` is classified as a typed array.
  15690. *
  15691. * @static
  15692. * @memberOf _
  15693. * @since 3.0.0
  15694. * @category Lang
  15695. * @param {*} value The value to check.
  15696. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15697. * @example
  15698. *
  15699. * _.isTypedArray(new Uint8Array);
  15700. * // => true
  15701. *
  15702. * _.isTypedArray([]);
  15703. * // => false
  15704. */
  15705. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  15706. module.exports = isTypedArray;
  15707. /***/ }),
  15708. /***/ "../../node_modules/lodash/isUndefined.js":
  15709. /*!**************************************************************!*\
  15710. !*** C:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  15711. \**************************************************************/
  15712. /*! no static exports found */
  15713. /***/ (function(module, exports) {
  15714. /**
  15715. * Checks if `value` is `undefined`.
  15716. *
  15717. * @static
  15718. * @since 0.1.0
  15719. * @memberOf _
  15720. * @category Lang
  15721. * @param {*} value The value to check.
  15722. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  15723. * @example
  15724. *
  15725. * _.isUndefined(void 0);
  15726. * // => true
  15727. *
  15728. * _.isUndefined(null);
  15729. * // => false
  15730. */
  15731. function isUndefined(value) {
  15732. return value === undefined;
  15733. }
  15734. module.exports = isUndefined;
  15735. /***/ }),
  15736. /***/ "../../node_modules/lodash/keys.js":
  15737. /*!*******************************************************!*\
  15738. !*** C:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  15739. \*******************************************************/
  15740. /*! no static exports found */
  15741. /***/ (function(module, exports, __webpack_require__) {
  15742. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15743. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15744. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15745. /**
  15746. * Creates an array of the own enumerable property names of `object`.
  15747. *
  15748. * **Note:** Non-object values are coerced to objects. See the
  15749. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  15750. * for more details.
  15751. *
  15752. * @static
  15753. * @since 0.1.0
  15754. * @memberOf _
  15755. * @category Object
  15756. * @param {Object} object The object to query.
  15757. * @returns {Array} Returns the array of property names.
  15758. * @example
  15759. *
  15760. * function Foo() {
  15761. * this.a = 1;
  15762. * this.b = 2;
  15763. * }
  15764. *
  15765. * Foo.prototype.c = 3;
  15766. *
  15767. * _.keys(new Foo);
  15768. * // => ['a', 'b'] (iteration order is not guaranteed)
  15769. *
  15770. * _.keys('hi');
  15771. * // => ['0', '1']
  15772. */
  15773. function keys(object) {
  15774. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  15775. }
  15776. module.exports = keys;
  15777. /***/ }),
  15778. /***/ "../../node_modules/lodash/keysIn.js":
  15779. /*!*********************************************************!*\
  15780. !*** C:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  15781. \*********************************************************/
  15782. /*! no static exports found */
  15783. /***/ (function(module, exports, __webpack_require__) {
  15784. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15785. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  15786. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15787. /**
  15788. * Creates an array of the own and inherited enumerable property names of `object`.
  15789. *
  15790. * **Note:** Non-object values are coerced to objects.
  15791. *
  15792. * @static
  15793. * @memberOf _
  15794. * @since 3.0.0
  15795. * @category Object
  15796. * @param {Object} object The object to query.
  15797. * @returns {Array} Returns the array of property names.
  15798. * @example
  15799. *
  15800. * function Foo() {
  15801. * this.a = 1;
  15802. * this.b = 2;
  15803. * }
  15804. *
  15805. * Foo.prototype.c = 3;
  15806. *
  15807. * _.keysIn(new Foo);
  15808. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  15809. */
  15810. function keysIn(object) {
  15811. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  15812. }
  15813. module.exports = keysIn;
  15814. /***/ }),
  15815. /***/ "../../node_modules/lodash/last.js":
  15816. /*!*******************************************************!*\
  15817. !*** C:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  15818. \*******************************************************/
  15819. /*! no static exports found */
  15820. /***/ (function(module, exports) {
  15821. /**
  15822. * Gets the last element of `array`.
  15823. *
  15824. * @static
  15825. * @memberOf _
  15826. * @since 0.1.0
  15827. * @category Array
  15828. * @param {Array} array The array to query.
  15829. * @returns {*} Returns the last element of `array`.
  15830. * @example
  15831. *
  15832. * _.last([1, 2, 3]);
  15833. * // => 3
  15834. */
  15835. function last(array) {
  15836. var length = array == null ? 0 : array.length;
  15837. return length ? array[length - 1] : undefined;
  15838. }
  15839. module.exports = last;
  15840. /***/ }),
  15841. /***/ "../../node_modules/lodash/lodash.js":
  15842. /*!*********************************************************!*\
  15843. !*** C:/Repos/Babylon.js/node_modules/lodash/lodash.js ***!
  15844. \*********************************************************/
  15845. /*! no static exports found */
  15846. /***/ (function(module, exports, __webpack_require__) {
  15847. /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
  15848. * @license
  15849. * Lodash <https://lodash.com/>
  15850. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  15851. * Released under MIT license <https://lodash.com/license>
  15852. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  15853. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  15854. */
  15855. ;(function() {
  15856. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  15857. var undefined;
  15858. /** Used as the semantic version number. */
  15859. var VERSION = '4.17.14';
  15860. /** Used as the size to enable large array optimizations. */
  15861. var LARGE_ARRAY_SIZE = 200;
  15862. /** Error message constants. */
  15863. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  15864. FUNC_ERROR_TEXT = 'Expected a function';
  15865. /** Used to stand-in for `undefined` hash values. */
  15866. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  15867. /** Used as the maximum memoize cache size. */
  15868. var MAX_MEMOIZE_SIZE = 500;
  15869. /** Used as the internal argument placeholder. */
  15870. var PLACEHOLDER = '__lodash_placeholder__';
  15871. /** Used to compose bitmasks for cloning. */
  15872. var CLONE_DEEP_FLAG = 1,
  15873. CLONE_FLAT_FLAG = 2,
  15874. CLONE_SYMBOLS_FLAG = 4;
  15875. /** Used to compose bitmasks for value comparisons. */
  15876. var COMPARE_PARTIAL_FLAG = 1,
  15877. COMPARE_UNORDERED_FLAG = 2;
  15878. /** Used to compose bitmasks for function metadata. */
  15879. var WRAP_BIND_FLAG = 1,
  15880. WRAP_BIND_KEY_FLAG = 2,
  15881. WRAP_CURRY_BOUND_FLAG = 4,
  15882. WRAP_CURRY_FLAG = 8,
  15883. WRAP_CURRY_RIGHT_FLAG = 16,
  15884. WRAP_PARTIAL_FLAG = 32,
  15885. WRAP_PARTIAL_RIGHT_FLAG = 64,
  15886. WRAP_ARY_FLAG = 128,
  15887. WRAP_REARG_FLAG = 256,
  15888. WRAP_FLIP_FLAG = 512;
  15889. /** Used as default options for `_.truncate`. */
  15890. var DEFAULT_TRUNC_LENGTH = 30,
  15891. DEFAULT_TRUNC_OMISSION = '...';
  15892. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  15893. var HOT_COUNT = 800,
  15894. HOT_SPAN = 16;
  15895. /** Used to indicate the type of lazy iteratees. */
  15896. var LAZY_FILTER_FLAG = 1,
  15897. LAZY_MAP_FLAG = 2,
  15898. LAZY_WHILE_FLAG = 3;
  15899. /** Used as references for various `Number` constants. */
  15900. var INFINITY = 1 / 0,
  15901. MAX_SAFE_INTEGER = 9007199254740991,
  15902. MAX_INTEGER = 1.7976931348623157e+308,
  15903. NAN = 0 / 0;
  15904. /** Used as references for the maximum length and index of an array. */
  15905. var MAX_ARRAY_LENGTH = 4294967295,
  15906. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  15907. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  15908. /** Used to associate wrap methods with their bit flags. */
  15909. var wrapFlags = [
  15910. ['ary', WRAP_ARY_FLAG],
  15911. ['bind', WRAP_BIND_FLAG],
  15912. ['bindKey', WRAP_BIND_KEY_FLAG],
  15913. ['curry', WRAP_CURRY_FLAG],
  15914. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  15915. ['flip', WRAP_FLIP_FLAG],
  15916. ['partial', WRAP_PARTIAL_FLAG],
  15917. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  15918. ['rearg', WRAP_REARG_FLAG]
  15919. ];
  15920. /** `Object#toString` result references. */
  15921. var argsTag = '[object Arguments]',
  15922. arrayTag = '[object Array]',
  15923. asyncTag = '[object AsyncFunction]',
  15924. boolTag = '[object Boolean]',
  15925. dateTag = '[object Date]',
  15926. domExcTag = '[object DOMException]',
  15927. errorTag = '[object Error]',
  15928. funcTag = '[object Function]',
  15929. genTag = '[object GeneratorFunction]',
  15930. mapTag = '[object Map]',
  15931. numberTag = '[object Number]',
  15932. nullTag = '[object Null]',
  15933. objectTag = '[object Object]',
  15934. promiseTag = '[object Promise]',
  15935. proxyTag = '[object Proxy]',
  15936. regexpTag = '[object RegExp]',
  15937. setTag = '[object Set]',
  15938. stringTag = '[object String]',
  15939. symbolTag = '[object Symbol]',
  15940. undefinedTag = '[object Undefined]',
  15941. weakMapTag = '[object WeakMap]',
  15942. weakSetTag = '[object WeakSet]';
  15943. var arrayBufferTag = '[object ArrayBuffer]',
  15944. dataViewTag = '[object DataView]',
  15945. float32Tag = '[object Float32Array]',
  15946. float64Tag = '[object Float64Array]',
  15947. int8Tag = '[object Int8Array]',
  15948. int16Tag = '[object Int16Array]',
  15949. int32Tag = '[object Int32Array]',
  15950. uint8Tag = '[object Uint8Array]',
  15951. uint8ClampedTag = '[object Uint8ClampedArray]',
  15952. uint16Tag = '[object Uint16Array]',
  15953. uint32Tag = '[object Uint32Array]';
  15954. /** Used to match empty string literals in compiled template source. */
  15955. var reEmptyStringLeading = /\b__p \+= '';/g,
  15956. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  15957. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  15958. /** Used to match HTML entities and HTML characters. */
  15959. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  15960. reUnescapedHtml = /[&<>"']/g,
  15961. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  15962. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  15963. /** Used to match template delimiters. */
  15964. var reEscape = /<%-([\s\S]+?)%>/g,
  15965. reEvaluate = /<%([\s\S]+?)%>/g,
  15966. reInterpolate = /<%=([\s\S]+?)%>/g;
  15967. /** Used to match property names within property paths. */
  15968. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  15969. reIsPlainProp = /^\w*$/,
  15970. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  15971. /**
  15972. * Used to match `RegExp`
  15973. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  15974. */
  15975. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  15976. reHasRegExpChar = RegExp(reRegExpChar.source);
  15977. /** Used to match leading and trailing whitespace. */
  15978. var reTrim = /^\s+|\s+$/g,
  15979. reTrimStart = /^\s+/,
  15980. reTrimEnd = /\s+$/;
  15981. /** Used to match wrap detail comments. */
  15982. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  15983. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  15984. reSplitDetails = /,? & /;
  15985. /** Used to match words composed of alphanumeric characters. */
  15986. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  15987. /** Used to match backslashes in property paths. */
  15988. var reEscapeChar = /\\(\\)?/g;
  15989. /**
  15990. * Used to match
  15991. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  15992. */
  15993. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  15994. /** Used to match `RegExp` flags from their coerced string values. */
  15995. var reFlags = /\w*$/;
  15996. /** Used to detect bad signed hexadecimal string values. */
  15997. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  15998. /** Used to detect binary string values. */
  15999. var reIsBinary = /^0b[01]+$/i;
  16000. /** Used to detect host constructors (Safari). */
  16001. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  16002. /** Used to detect octal string values. */
  16003. var reIsOctal = /^0o[0-7]+$/i;
  16004. /** Used to detect unsigned integer values. */
  16005. var reIsUint = /^(?:0|[1-9]\d*)$/;
  16006. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  16007. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  16008. /** Used to ensure capturing order of template delimiters. */
  16009. var reNoMatch = /($^)/;
  16010. /** Used to match unescaped characters in compiled string literals. */
  16011. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  16012. /** Used to compose unicode character classes. */
  16013. var rsAstralRange = '\\ud800-\\udfff',
  16014. rsComboMarksRange = '\\u0300-\\u036f',
  16015. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  16016. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  16017. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  16018. rsDingbatRange = '\\u2700-\\u27bf',
  16019. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  16020. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  16021. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  16022. rsPunctuationRange = '\\u2000-\\u206f',
  16023. 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',
  16024. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  16025. rsVarRange = '\\ufe0e\\ufe0f',
  16026. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  16027. /** Used to compose unicode capture groups. */
  16028. var rsApos = "['\u2019]",
  16029. rsAstral = '[' + rsAstralRange + ']',
  16030. rsBreak = '[' + rsBreakRange + ']',
  16031. rsCombo = '[' + rsComboRange + ']',
  16032. rsDigits = '\\d+',
  16033. rsDingbat = '[' + rsDingbatRange + ']',
  16034. rsLower = '[' + rsLowerRange + ']',
  16035. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  16036. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  16037. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  16038. rsNonAstral = '[^' + rsAstralRange + ']',
  16039. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  16040. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  16041. rsUpper = '[' + rsUpperRange + ']',
  16042. rsZWJ = '\\u200d';
  16043. /** Used to compose unicode regexes. */
  16044. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  16045. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  16046. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  16047. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  16048. reOptMod = rsModifier + '?',
  16049. rsOptVar = '[' + rsVarRange + ']?',
  16050. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  16051. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  16052. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  16053. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  16054. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  16055. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  16056. /** Used to match apostrophes. */
  16057. var reApos = RegExp(rsApos, 'g');
  16058. /**
  16059. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  16060. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  16061. */
  16062. var reComboMark = RegExp(rsCombo, 'g');
  16063. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  16064. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  16065. /** Used to match complex or compound words. */
  16066. var reUnicodeWord = RegExp([
  16067. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  16068. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  16069. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  16070. rsUpper + '+' + rsOptContrUpper,
  16071. rsOrdUpper,
  16072. rsOrdLower,
  16073. rsDigits,
  16074. rsEmoji
  16075. ].join('|'), 'g');
  16076. /** 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/). */
  16077. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  16078. /** Used to detect strings that need a more robust regexp to match words. */
  16079. 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 ]/;
  16080. /** Used to assign default `context` object properties. */
  16081. var contextProps = [
  16082. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  16083. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  16084. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  16085. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  16086. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  16087. ];
  16088. /** Used to make template sourceURLs easier to identify. */
  16089. var templateCounter = -1;
  16090. /** Used to identify `toStringTag` values of typed arrays. */
  16091. var typedArrayTags = {};
  16092. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  16093. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  16094. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  16095. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  16096. typedArrayTags[uint32Tag] = true;
  16097. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  16098. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  16099. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  16100. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  16101. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  16102. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  16103. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  16104. typedArrayTags[weakMapTag] = false;
  16105. /** Used to identify `toStringTag` values supported by `_.clone`. */
  16106. var cloneableTags = {};
  16107. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  16108. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  16109. cloneableTags[boolTag] = cloneableTags[dateTag] =
  16110. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  16111. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  16112. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  16113. cloneableTags[numberTag] = cloneableTags[objectTag] =
  16114. cloneableTags[regexpTag] = cloneableTags[setTag] =
  16115. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  16116. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  16117. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  16118. cloneableTags[errorTag] = cloneableTags[funcTag] =
  16119. cloneableTags[weakMapTag] = false;
  16120. /** Used to map Latin Unicode letters to basic Latin letters. */
  16121. var deburredLetters = {
  16122. // Latin-1 Supplement block.
  16123. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  16124. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  16125. '\xc7': 'C', '\xe7': 'c',
  16126. '\xd0': 'D', '\xf0': 'd',
  16127. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  16128. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  16129. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  16130. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  16131. '\xd1': 'N', '\xf1': 'n',
  16132. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  16133. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  16134. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  16135. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  16136. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  16137. '\xc6': 'Ae', '\xe6': 'ae',
  16138. '\xde': 'Th', '\xfe': 'th',
  16139. '\xdf': 'ss',
  16140. // Latin Extended-A block.
  16141. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  16142. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  16143. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  16144. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  16145. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  16146. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  16147. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  16148. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  16149. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  16150. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  16151. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  16152. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  16153. '\u0134': 'J', '\u0135': 'j',
  16154. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  16155. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  16156. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  16157. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  16158. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  16159. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  16160. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  16161. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  16162. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  16163. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  16164. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  16165. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  16166. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  16167. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  16168. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  16169. '\u0174': 'W', '\u0175': 'w',
  16170. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  16171. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  16172. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  16173. '\u0132': 'IJ', '\u0133': 'ij',
  16174. '\u0152': 'Oe', '\u0153': 'oe',
  16175. '\u0149': "'n", '\u017f': 's'
  16176. };
  16177. /** Used to map characters to HTML entities. */
  16178. var htmlEscapes = {
  16179. '&': '&amp;',
  16180. '<': '&lt;',
  16181. '>': '&gt;',
  16182. '"': '&quot;',
  16183. "'": '&#39;'
  16184. };
  16185. /** Used to map HTML entities to characters. */
  16186. var htmlUnescapes = {
  16187. '&amp;': '&',
  16188. '&lt;': '<',
  16189. '&gt;': '>',
  16190. '&quot;': '"',
  16191. '&#39;': "'"
  16192. };
  16193. /** Used to escape characters for inclusion in compiled string literals. */
  16194. var stringEscapes = {
  16195. '\\': '\\',
  16196. "'": "'",
  16197. '\n': 'n',
  16198. '\r': 'r',
  16199. '\u2028': 'u2028',
  16200. '\u2029': 'u2029'
  16201. };
  16202. /** Built-in method references without a dependency on `root`. */
  16203. var freeParseFloat = parseFloat,
  16204. freeParseInt = parseInt;
  16205. /** Detect free variable `global` from Node.js. */
  16206. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  16207. /** Detect free variable `self`. */
  16208. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  16209. /** Used as a reference to the global object. */
  16210. var root = freeGlobal || freeSelf || Function('return this')();
  16211. /** Detect free variable `exports`. */
  16212. var freeExports = true && exports && !exports.nodeType && exports;
  16213. /** Detect free variable `module`. */
  16214. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  16215. /** Detect the popular CommonJS extension `module.exports`. */
  16216. var moduleExports = freeModule && freeModule.exports === freeExports;
  16217. /** Detect free variable `process` from Node.js. */
  16218. var freeProcess = moduleExports && freeGlobal.process;
  16219. /** Used to access faster Node.js helpers. */
  16220. var nodeUtil = (function() {
  16221. try {
  16222. // Use `util.types` for Node.js 10+.
  16223. var types = freeModule && freeModule.require && freeModule.require('util').types;
  16224. if (types) {
  16225. return types;
  16226. }
  16227. // Legacy `process.binding('util')` for Node.js < 10.
  16228. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  16229. } catch (e) {}
  16230. }());
  16231. /* Node.js helper references. */
  16232. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  16233. nodeIsDate = nodeUtil && nodeUtil.isDate,
  16234. nodeIsMap = nodeUtil && nodeUtil.isMap,
  16235. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  16236. nodeIsSet = nodeUtil && nodeUtil.isSet,
  16237. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  16238. /*--------------------------------------------------------------------------*/
  16239. /**
  16240. * A faster alternative to `Function#apply`, this function invokes `func`
  16241. * with the `this` binding of `thisArg` and the arguments of `args`.
  16242. *
  16243. * @private
  16244. * @param {Function} func The function to invoke.
  16245. * @param {*} thisArg The `this` binding of `func`.
  16246. * @param {Array} args The arguments to invoke `func` with.
  16247. * @returns {*} Returns the result of `func`.
  16248. */
  16249. function apply(func, thisArg, args) {
  16250. switch (args.length) {
  16251. case 0: return func.call(thisArg);
  16252. case 1: return func.call(thisArg, args[0]);
  16253. case 2: return func.call(thisArg, args[0], args[1]);
  16254. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  16255. }
  16256. return func.apply(thisArg, args);
  16257. }
  16258. /**
  16259. * A specialized version of `baseAggregator` for arrays.
  16260. *
  16261. * @private
  16262. * @param {Array} [array] The array to iterate over.
  16263. * @param {Function} setter The function to set `accumulator` values.
  16264. * @param {Function} iteratee The iteratee to transform keys.
  16265. * @param {Object} accumulator The initial aggregated object.
  16266. * @returns {Function} Returns `accumulator`.
  16267. */
  16268. function arrayAggregator(array, setter, iteratee, accumulator) {
  16269. var index = -1,
  16270. length = array == null ? 0 : array.length;
  16271. while (++index < length) {
  16272. var value = array[index];
  16273. setter(accumulator, value, iteratee(value), array);
  16274. }
  16275. return accumulator;
  16276. }
  16277. /**
  16278. * A specialized version of `_.forEach` for arrays without support for
  16279. * iteratee shorthands.
  16280. *
  16281. * @private
  16282. * @param {Array} [array] The array to iterate over.
  16283. * @param {Function} iteratee The function invoked per iteration.
  16284. * @returns {Array} Returns `array`.
  16285. */
  16286. function arrayEach(array, iteratee) {
  16287. var index = -1,
  16288. length = array == null ? 0 : array.length;
  16289. while (++index < length) {
  16290. if (iteratee(array[index], index, array) === false) {
  16291. break;
  16292. }
  16293. }
  16294. return array;
  16295. }
  16296. /**
  16297. * A specialized version of `_.forEachRight` for arrays without support for
  16298. * iteratee shorthands.
  16299. *
  16300. * @private
  16301. * @param {Array} [array] The array to iterate over.
  16302. * @param {Function} iteratee The function invoked per iteration.
  16303. * @returns {Array} Returns `array`.
  16304. */
  16305. function arrayEachRight(array, iteratee) {
  16306. var length = array == null ? 0 : array.length;
  16307. while (length--) {
  16308. if (iteratee(array[length], length, array) === false) {
  16309. break;
  16310. }
  16311. }
  16312. return array;
  16313. }
  16314. /**
  16315. * A specialized version of `_.every` for arrays without support for
  16316. * iteratee shorthands.
  16317. *
  16318. * @private
  16319. * @param {Array} [array] The array to iterate over.
  16320. * @param {Function} predicate The function invoked per iteration.
  16321. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  16322. * else `false`.
  16323. */
  16324. function arrayEvery(array, predicate) {
  16325. var index = -1,
  16326. length = array == null ? 0 : array.length;
  16327. while (++index < length) {
  16328. if (!predicate(array[index], index, array)) {
  16329. return false;
  16330. }
  16331. }
  16332. return true;
  16333. }
  16334. /**
  16335. * A specialized version of `_.filter` for arrays without support for
  16336. * iteratee shorthands.
  16337. *
  16338. * @private
  16339. * @param {Array} [array] The array to iterate over.
  16340. * @param {Function} predicate The function invoked per iteration.
  16341. * @returns {Array} Returns the new filtered array.
  16342. */
  16343. function arrayFilter(array, predicate) {
  16344. var index = -1,
  16345. length = array == null ? 0 : array.length,
  16346. resIndex = 0,
  16347. result = [];
  16348. while (++index < length) {
  16349. var value = array[index];
  16350. if (predicate(value, index, array)) {
  16351. result[resIndex++] = value;
  16352. }
  16353. }
  16354. return result;
  16355. }
  16356. /**
  16357. * A specialized version of `_.includes` for arrays without support for
  16358. * specifying an index to search from.
  16359. *
  16360. * @private
  16361. * @param {Array} [array] The array to inspect.
  16362. * @param {*} target The value to search for.
  16363. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16364. */
  16365. function arrayIncludes(array, value) {
  16366. var length = array == null ? 0 : array.length;
  16367. return !!length && baseIndexOf(array, value, 0) > -1;
  16368. }
  16369. /**
  16370. * This function is like `arrayIncludes` except that it accepts a comparator.
  16371. *
  16372. * @private
  16373. * @param {Array} [array] The array to inspect.
  16374. * @param {*} target The value to search for.
  16375. * @param {Function} comparator The comparator invoked per element.
  16376. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16377. */
  16378. function arrayIncludesWith(array, value, comparator) {
  16379. var index = -1,
  16380. length = array == null ? 0 : array.length;
  16381. while (++index < length) {
  16382. if (comparator(value, array[index])) {
  16383. return true;
  16384. }
  16385. }
  16386. return false;
  16387. }
  16388. /**
  16389. * A specialized version of `_.map` for arrays without support for iteratee
  16390. * shorthands.
  16391. *
  16392. * @private
  16393. * @param {Array} [array] The array to iterate over.
  16394. * @param {Function} iteratee The function invoked per iteration.
  16395. * @returns {Array} Returns the new mapped array.
  16396. */
  16397. function arrayMap(array, iteratee) {
  16398. var index = -1,
  16399. length = array == null ? 0 : array.length,
  16400. result = Array(length);
  16401. while (++index < length) {
  16402. result[index] = iteratee(array[index], index, array);
  16403. }
  16404. return result;
  16405. }
  16406. /**
  16407. * Appends the elements of `values` to `array`.
  16408. *
  16409. * @private
  16410. * @param {Array} array The array to modify.
  16411. * @param {Array} values The values to append.
  16412. * @returns {Array} Returns `array`.
  16413. */
  16414. function arrayPush(array, values) {
  16415. var index = -1,
  16416. length = values.length,
  16417. offset = array.length;
  16418. while (++index < length) {
  16419. array[offset + index] = values[index];
  16420. }
  16421. return array;
  16422. }
  16423. /**
  16424. * A specialized version of `_.reduce` for arrays without support for
  16425. * iteratee shorthands.
  16426. *
  16427. * @private
  16428. * @param {Array} [array] The array to iterate over.
  16429. * @param {Function} iteratee The function invoked per iteration.
  16430. * @param {*} [accumulator] The initial value.
  16431. * @param {boolean} [initAccum] Specify using the first element of `array` as
  16432. * the initial value.
  16433. * @returns {*} Returns the accumulated value.
  16434. */
  16435. function arrayReduce(array, iteratee, accumulator, initAccum) {
  16436. var index = -1,
  16437. length = array == null ? 0 : array.length;
  16438. if (initAccum && length) {
  16439. accumulator = array[++index];
  16440. }
  16441. while (++index < length) {
  16442. accumulator = iteratee(accumulator, array[index], index, array);
  16443. }
  16444. return accumulator;
  16445. }
  16446. /**
  16447. * A specialized version of `_.reduceRight` for arrays without support for
  16448. * iteratee shorthands.
  16449. *
  16450. * @private
  16451. * @param {Array} [array] The array to iterate over.
  16452. * @param {Function} iteratee The function invoked per iteration.
  16453. * @param {*} [accumulator] The initial value.
  16454. * @param {boolean} [initAccum] Specify using the last element of `array` as
  16455. * the initial value.
  16456. * @returns {*} Returns the accumulated value.
  16457. */
  16458. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  16459. var length = array == null ? 0 : array.length;
  16460. if (initAccum && length) {
  16461. accumulator = array[--length];
  16462. }
  16463. while (length--) {
  16464. accumulator = iteratee(accumulator, array[length], length, array);
  16465. }
  16466. return accumulator;
  16467. }
  16468. /**
  16469. * A specialized version of `_.some` for arrays without support for iteratee
  16470. * shorthands.
  16471. *
  16472. * @private
  16473. * @param {Array} [array] The array to iterate over.
  16474. * @param {Function} predicate The function invoked per iteration.
  16475. * @returns {boolean} Returns `true` if any element passes the predicate check,
  16476. * else `false`.
  16477. */
  16478. function arraySome(array, predicate) {
  16479. var index = -1,
  16480. length = array == null ? 0 : array.length;
  16481. while (++index < length) {
  16482. if (predicate(array[index], index, array)) {
  16483. return true;
  16484. }
  16485. }
  16486. return false;
  16487. }
  16488. /**
  16489. * Gets the size of an ASCII `string`.
  16490. *
  16491. * @private
  16492. * @param {string} string The string inspect.
  16493. * @returns {number} Returns the string size.
  16494. */
  16495. var asciiSize = baseProperty('length');
  16496. /**
  16497. * Converts an ASCII `string` to an array.
  16498. *
  16499. * @private
  16500. * @param {string} string The string to convert.
  16501. * @returns {Array} Returns the converted array.
  16502. */
  16503. function asciiToArray(string) {
  16504. return string.split('');
  16505. }
  16506. /**
  16507. * Splits an ASCII `string` into an array of its words.
  16508. *
  16509. * @private
  16510. * @param {string} The string to inspect.
  16511. * @returns {Array} Returns the words of `string`.
  16512. */
  16513. function asciiWords(string) {
  16514. return string.match(reAsciiWord) || [];
  16515. }
  16516. /**
  16517. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  16518. * without support for iteratee shorthands, which iterates over `collection`
  16519. * using `eachFunc`.
  16520. *
  16521. * @private
  16522. * @param {Array|Object} collection The collection to inspect.
  16523. * @param {Function} predicate The function invoked per iteration.
  16524. * @param {Function} eachFunc The function to iterate over `collection`.
  16525. * @returns {*} Returns the found element or its key, else `undefined`.
  16526. */
  16527. function baseFindKey(collection, predicate, eachFunc) {
  16528. var result;
  16529. eachFunc(collection, function(value, key, collection) {
  16530. if (predicate(value, key, collection)) {
  16531. result = key;
  16532. return false;
  16533. }
  16534. });
  16535. return result;
  16536. }
  16537. /**
  16538. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  16539. * support for iteratee shorthands.
  16540. *
  16541. * @private
  16542. * @param {Array} array The array to inspect.
  16543. * @param {Function} predicate The function invoked per iteration.
  16544. * @param {number} fromIndex The index to search from.
  16545. * @param {boolean} [fromRight] Specify iterating from right to left.
  16546. * @returns {number} Returns the index of the matched value, else `-1`.
  16547. */
  16548. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  16549. var length = array.length,
  16550. index = fromIndex + (fromRight ? 1 : -1);
  16551. while ((fromRight ? index-- : ++index < length)) {
  16552. if (predicate(array[index], index, array)) {
  16553. return index;
  16554. }
  16555. }
  16556. return -1;
  16557. }
  16558. /**
  16559. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  16560. *
  16561. * @private
  16562. * @param {Array} array The array to inspect.
  16563. * @param {*} value The value to search for.
  16564. * @param {number} fromIndex The index to search from.
  16565. * @returns {number} Returns the index of the matched value, else `-1`.
  16566. */
  16567. function baseIndexOf(array, value, fromIndex) {
  16568. return value === value
  16569. ? strictIndexOf(array, value, fromIndex)
  16570. : baseFindIndex(array, baseIsNaN, fromIndex);
  16571. }
  16572. /**
  16573. * This function is like `baseIndexOf` except that it accepts a comparator.
  16574. *
  16575. * @private
  16576. * @param {Array} array The array to inspect.
  16577. * @param {*} value The value to search for.
  16578. * @param {number} fromIndex The index to search from.
  16579. * @param {Function} comparator The comparator invoked per element.
  16580. * @returns {number} Returns the index of the matched value, else `-1`.
  16581. */
  16582. function baseIndexOfWith(array, value, fromIndex, comparator) {
  16583. var index = fromIndex - 1,
  16584. length = array.length;
  16585. while (++index < length) {
  16586. if (comparator(array[index], value)) {
  16587. return index;
  16588. }
  16589. }
  16590. return -1;
  16591. }
  16592. /**
  16593. * The base implementation of `_.isNaN` without support for number objects.
  16594. *
  16595. * @private
  16596. * @param {*} value The value to check.
  16597. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  16598. */
  16599. function baseIsNaN(value) {
  16600. return value !== value;
  16601. }
  16602. /**
  16603. * The base implementation of `_.mean` and `_.meanBy` without support for
  16604. * iteratee shorthands.
  16605. *
  16606. * @private
  16607. * @param {Array} array The array to iterate over.
  16608. * @param {Function} iteratee The function invoked per iteration.
  16609. * @returns {number} Returns the mean.
  16610. */
  16611. function baseMean(array, iteratee) {
  16612. var length = array == null ? 0 : array.length;
  16613. return length ? (baseSum(array, iteratee) / length) : NAN;
  16614. }
  16615. /**
  16616. * The base implementation of `_.property` without support for deep paths.
  16617. *
  16618. * @private
  16619. * @param {string} key The key of the property to get.
  16620. * @returns {Function} Returns the new accessor function.
  16621. */
  16622. function baseProperty(key) {
  16623. return function(object) {
  16624. return object == null ? undefined : object[key];
  16625. };
  16626. }
  16627. /**
  16628. * The base implementation of `_.propertyOf` without support for deep paths.
  16629. *
  16630. * @private
  16631. * @param {Object} object The object to query.
  16632. * @returns {Function} Returns the new accessor function.
  16633. */
  16634. function basePropertyOf(object) {
  16635. return function(key) {
  16636. return object == null ? undefined : object[key];
  16637. };
  16638. }
  16639. /**
  16640. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  16641. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  16642. *
  16643. * @private
  16644. * @param {Array|Object} collection The collection to iterate over.
  16645. * @param {Function} iteratee The function invoked per iteration.
  16646. * @param {*} accumulator The initial value.
  16647. * @param {boolean} initAccum Specify using the first or last element of
  16648. * `collection` as the initial value.
  16649. * @param {Function} eachFunc The function to iterate over `collection`.
  16650. * @returns {*} Returns the accumulated value.
  16651. */
  16652. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  16653. eachFunc(collection, function(value, index, collection) {
  16654. accumulator = initAccum
  16655. ? (initAccum = false, value)
  16656. : iteratee(accumulator, value, index, collection);
  16657. });
  16658. return accumulator;
  16659. }
  16660. /**
  16661. * The base implementation of `_.sortBy` which uses `comparer` to define the
  16662. * sort order of `array` and replaces criteria objects with their corresponding
  16663. * values.
  16664. *
  16665. * @private
  16666. * @param {Array} array The array to sort.
  16667. * @param {Function} comparer The function to define sort order.
  16668. * @returns {Array} Returns `array`.
  16669. */
  16670. function baseSortBy(array, comparer) {
  16671. var length = array.length;
  16672. array.sort(comparer);
  16673. while (length--) {
  16674. array[length] = array[length].value;
  16675. }
  16676. return array;
  16677. }
  16678. /**
  16679. * The base implementation of `_.sum` and `_.sumBy` without support for
  16680. * iteratee shorthands.
  16681. *
  16682. * @private
  16683. * @param {Array} array The array to iterate over.
  16684. * @param {Function} iteratee The function invoked per iteration.
  16685. * @returns {number} Returns the sum.
  16686. */
  16687. function baseSum(array, iteratee) {
  16688. var result,
  16689. index = -1,
  16690. length = array.length;
  16691. while (++index < length) {
  16692. var current = iteratee(array[index]);
  16693. if (current !== undefined) {
  16694. result = result === undefined ? current : (result + current);
  16695. }
  16696. }
  16697. return result;
  16698. }
  16699. /**
  16700. * The base implementation of `_.times` without support for iteratee shorthands
  16701. * or max array length checks.
  16702. *
  16703. * @private
  16704. * @param {number} n The number of times to invoke `iteratee`.
  16705. * @param {Function} iteratee The function invoked per iteration.
  16706. * @returns {Array} Returns the array of results.
  16707. */
  16708. function baseTimes(n, iteratee) {
  16709. var index = -1,
  16710. result = Array(n);
  16711. while (++index < n) {
  16712. result[index] = iteratee(index);
  16713. }
  16714. return result;
  16715. }
  16716. /**
  16717. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  16718. * of key-value pairs for `object` corresponding to the property names of `props`.
  16719. *
  16720. * @private
  16721. * @param {Object} object The object to query.
  16722. * @param {Array} props The property names to get values for.
  16723. * @returns {Object} Returns the key-value pairs.
  16724. */
  16725. function baseToPairs(object, props) {
  16726. return arrayMap(props, function(key) {
  16727. return [key, object[key]];
  16728. });
  16729. }
  16730. /**
  16731. * The base implementation of `_.unary` without support for storing metadata.
  16732. *
  16733. * @private
  16734. * @param {Function} func The function to cap arguments for.
  16735. * @returns {Function} Returns the new capped function.
  16736. */
  16737. function baseUnary(func) {
  16738. return function(value) {
  16739. return func(value);
  16740. };
  16741. }
  16742. /**
  16743. * The base implementation of `_.values` and `_.valuesIn` which creates an
  16744. * array of `object` property values corresponding to the property names
  16745. * of `props`.
  16746. *
  16747. * @private
  16748. * @param {Object} object The object to query.
  16749. * @param {Array} props The property names to get values for.
  16750. * @returns {Object} Returns the array of property values.
  16751. */
  16752. function baseValues(object, props) {
  16753. return arrayMap(props, function(key) {
  16754. return object[key];
  16755. });
  16756. }
  16757. /**
  16758. * Checks if a `cache` value for `key` exists.
  16759. *
  16760. * @private
  16761. * @param {Object} cache The cache to query.
  16762. * @param {string} key The key of the entry to check.
  16763. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  16764. */
  16765. function cacheHas(cache, key) {
  16766. return cache.has(key);
  16767. }
  16768. /**
  16769. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  16770. * that is not found in the character symbols.
  16771. *
  16772. * @private
  16773. * @param {Array} strSymbols The string symbols to inspect.
  16774. * @param {Array} chrSymbols The character symbols to find.
  16775. * @returns {number} Returns the index of the first unmatched string symbol.
  16776. */
  16777. function charsStartIndex(strSymbols, chrSymbols) {
  16778. var index = -1,
  16779. length = strSymbols.length;
  16780. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16781. return index;
  16782. }
  16783. /**
  16784. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  16785. * that is not found in the character symbols.
  16786. *
  16787. * @private
  16788. * @param {Array} strSymbols The string symbols to inspect.
  16789. * @param {Array} chrSymbols The character symbols to find.
  16790. * @returns {number} Returns the index of the last unmatched string symbol.
  16791. */
  16792. function charsEndIndex(strSymbols, chrSymbols) {
  16793. var index = strSymbols.length;
  16794. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16795. return index;
  16796. }
  16797. /**
  16798. * Gets the number of `placeholder` occurrences in `array`.
  16799. *
  16800. * @private
  16801. * @param {Array} array The array to inspect.
  16802. * @param {*} placeholder The placeholder to search for.
  16803. * @returns {number} Returns the placeholder count.
  16804. */
  16805. function countHolders(array, placeholder) {
  16806. var length = array.length,
  16807. result = 0;
  16808. while (length--) {
  16809. if (array[length] === placeholder) {
  16810. ++result;
  16811. }
  16812. }
  16813. return result;
  16814. }
  16815. /**
  16816. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  16817. * letters to basic Latin letters.
  16818. *
  16819. * @private
  16820. * @param {string} letter The matched letter to deburr.
  16821. * @returns {string} Returns the deburred letter.
  16822. */
  16823. var deburrLetter = basePropertyOf(deburredLetters);
  16824. /**
  16825. * Used by `_.escape` to convert characters to HTML entities.
  16826. *
  16827. * @private
  16828. * @param {string} chr The matched character to escape.
  16829. * @returns {string} Returns the escaped character.
  16830. */
  16831. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  16832. /**
  16833. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  16834. *
  16835. * @private
  16836. * @param {string} chr The matched character to escape.
  16837. * @returns {string} Returns the escaped character.
  16838. */
  16839. function escapeStringChar(chr) {
  16840. return '\\' + stringEscapes[chr];
  16841. }
  16842. /**
  16843. * Gets the value at `key` of `object`.
  16844. *
  16845. * @private
  16846. * @param {Object} [object] The object to query.
  16847. * @param {string} key The key of the property to get.
  16848. * @returns {*} Returns the property value.
  16849. */
  16850. function getValue(object, key) {
  16851. return object == null ? undefined : object[key];
  16852. }
  16853. /**
  16854. * Checks if `string` contains Unicode symbols.
  16855. *
  16856. * @private
  16857. * @param {string} string The string to inspect.
  16858. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  16859. */
  16860. function hasUnicode(string) {
  16861. return reHasUnicode.test(string);
  16862. }
  16863. /**
  16864. * Checks if `string` contains a word composed of Unicode symbols.
  16865. *
  16866. * @private
  16867. * @param {string} string The string to inspect.
  16868. * @returns {boolean} Returns `true` if a word is found, else `false`.
  16869. */
  16870. function hasUnicodeWord(string) {
  16871. return reHasUnicodeWord.test(string);
  16872. }
  16873. /**
  16874. * Converts `iterator` to an array.
  16875. *
  16876. * @private
  16877. * @param {Object} iterator The iterator to convert.
  16878. * @returns {Array} Returns the converted array.
  16879. */
  16880. function iteratorToArray(iterator) {
  16881. var data,
  16882. result = [];
  16883. while (!(data = iterator.next()).done) {
  16884. result.push(data.value);
  16885. }
  16886. return result;
  16887. }
  16888. /**
  16889. * Converts `map` to its key-value pairs.
  16890. *
  16891. * @private
  16892. * @param {Object} map The map to convert.
  16893. * @returns {Array} Returns the key-value pairs.
  16894. */
  16895. function mapToArray(map) {
  16896. var index = -1,
  16897. result = Array(map.size);
  16898. map.forEach(function(value, key) {
  16899. result[++index] = [key, value];
  16900. });
  16901. return result;
  16902. }
  16903. /**
  16904. * Creates a unary function that invokes `func` with its argument transformed.
  16905. *
  16906. * @private
  16907. * @param {Function} func The function to wrap.
  16908. * @param {Function} transform The argument transform.
  16909. * @returns {Function} Returns the new function.
  16910. */
  16911. function overArg(func, transform) {
  16912. return function(arg) {
  16913. return func(transform(arg));
  16914. };
  16915. }
  16916. /**
  16917. * Replaces all `placeholder` elements in `array` with an internal placeholder
  16918. * and returns an array of their indexes.
  16919. *
  16920. * @private
  16921. * @param {Array} array The array to modify.
  16922. * @param {*} placeholder The placeholder to replace.
  16923. * @returns {Array} Returns the new array of placeholder indexes.
  16924. */
  16925. function replaceHolders(array, placeholder) {
  16926. var index = -1,
  16927. length = array.length,
  16928. resIndex = 0,
  16929. result = [];
  16930. while (++index < length) {
  16931. var value = array[index];
  16932. if (value === placeholder || value === PLACEHOLDER) {
  16933. array[index] = PLACEHOLDER;
  16934. result[resIndex++] = index;
  16935. }
  16936. }
  16937. return result;
  16938. }
  16939. /**
  16940. * Converts `set` to an array of its values.
  16941. *
  16942. * @private
  16943. * @param {Object} set The set to convert.
  16944. * @returns {Array} Returns the values.
  16945. */
  16946. function setToArray(set) {
  16947. var index = -1,
  16948. result = Array(set.size);
  16949. set.forEach(function(value) {
  16950. result[++index] = value;
  16951. });
  16952. return result;
  16953. }
  16954. /**
  16955. * Converts `set` to its value-value pairs.
  16956. *
  16957. * @private
  16958. * @param {Object} set The set to convert.
  16959. * @returns {Array} Returns the value-value pairs.
  16960. */
  16961. function setToPairs(set) {
  16962. var index = -1,
  16963. result = Array(set.size);
  16964. set.forEach(function(value) {
  16965. result[++index] = [value, value];
  16966. });
  16967. return result;
  16968. }
  16969. /**
  16970. * A specialized version of `_.indexOf` which performs strict equality
  16971. * comparisons of values, i.e. `===`.
  16972. *
  16973. * @private
  16974. * @param {Array} array The array to inspect.
  16975. * @param {*} value The value to search for.
  16976. * @param {number} fromIndex The index to search from.
  16977. * @returns {number} Returns the index of the matched value, else `-1`.
  16978. */
  16979. function strictIndexOf(array, value, fromIndex) {
  16980. var index = fromIndex - 1,
  16981. length = array.length;
  16982. while (++index < length) {
  16983. if (array[index] === value) {
  16984. return index;
  16985. }
  16986. }
  16987. return -1;
  16988. }
  16989. /**
  16990. * A specialized version of `_.lastIndexOf` which performs strict equality
  16991. * comparisons of values, i.e. `===`.
  16992. *
  16993. * @private
  16994. * @param {Array} array The array to inspect.
  16995. * @param {*} value The value to search for.
  16996. * @param {number} fromIndex The index to search from.
  16997. * @returns {number} Returns the index of the matched value, else `-1`.
  16998. */
  16999. function strictLastIndexOf(array, value, fromIndex) {
  17000. var index = fromIndex + 1;
  17001. while (index--) {
  17002. if (array[index] === value) {
  17003. return index;
  17004. }
  17005. }
  17006. return index;
  17007. }
  17008. /**
  17009. * Gets the number of symbols in `string`.
  17010. *
  17011. * @private
  17012. * @param {string} string The string to inspect.
  17013. * @returns {number} Returns the string size.
  17014. */
  17015. function stringSize(string) {
  17016. return hasUnicode(string)
  17017. ? unicodeSize(string)
  17018. : asciiSize(string);
  17019. }
  17020. /**
  17021. * Converts `string` to an array.
  17022. *
  17023. * @private
  17024. * @param {string} string The string to convert.
  17025. * @returns {Array} Returns the converted array.
  17026. */
  17027. function stringToArray(string) {
  17028. return hasUnicode(string)
  17029. ? unicodeToArray(string)
  17030. : asciiToArray(string);
  17031. }
  17032. /**
  17033. * Used by `_.unescape` to convert HTML entities to characters.
  17034. *
  17035. * @private
  17036. * @param {string} chr The matched character to unescape.
  17037. * @returns {string} Returns the unescaped character.
  17038. */
  17039. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  17040. /**
  17041. * Gets the size of a Unicode `string`.
  17042. *
  17043. * @private
  17044. * @param {string} string The string inspect.
  17045. * @returns {number} Returns the string size.
  17046. */
  17047. function unicodeSize(string) {
  17048. var result = reUnicode.lastIndex = 0;
  17049. while (reUnicode.test(string)) {
  17050. ++result;
  17051. }
  17052. return result;
  17053. }
  17054. /**
  17055. * Converts a Unicode `string` to an array.
  17056. *
  17057. * @private
  17058. * @param {string} string The string to convert.
  17059. * @returns {Array} Returns the converted array.
  17060. */
  17061. function unicodeToArray(string) {
  17062. return string.match(reUnicode) || [];
  17063. }
  17064. /**
  17065. * Splits a Unicode `string` into an array of its words.
  17066. *
  17067. * @private
  17068. * @param {string} The string to inspect.
  17069. * @returns {Array} Returns the words of `string`.
  17070. */
  17071. function unicodeWords(string) {
  17072. return string.match(reUnicodeWord) || [];
  17073. }
  17074. /*--------------------------------------------------------------------------*/
  17075. /**
  17076. * Create a new pristine `lodash` function using the `context` object.
  17077. *
  17078. * @static
  17079. * @memberOf _
  17080. * @since 1.1.0
  17081. * @category Util
  17082. * @param {Object} [context=root] The context object.
  17083. * @returns {Function} Returns a new `lodash` function.
  17084. * @example
  17085. *
  17086. * _.mixin({ 'foo': _.constant('foo') });
  17087. *
  17088. * var lodash = _.runInContext();
  17089. * lodash.mixin({ 'bar': lodash.constant('bar') });
  17090. *
  17091. * _.isFunction(_.foo);
  17092. * // => true
  17093. * _.isFunction(_.bar);
  17094. * // => false
  17095. *
  17096. * lodash.isFunction(lodash.foo);
  17097. * // => false
  17098. * lodash.isFunction(lodash.bar);
  17099. * // => true
  17100. *
  17101. * // Create a suped-up `defer` in Node.js.
  17102. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  17103. */
  17104. var runInContext = (function runInContext(context) {
  17105. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  17106. /** Built-in constructor references. */
  17107. var Array = context.Array,
  17108. Date = context.Date,
  17109. Error = context.Error,
  17110. Function = context.Function,
  17111. Math = context.Math,
  17112. Object = context.Object,
  17113. RegExp = context.RegExp,
  17114. String = context.String,
  17115. TypeError = context.TypeError;
  17116. /** Used for built-in method references. */
  17117. var arrayProto = Array.prototype,
  17118. funcProto = Function.prototype,
  17119. objectProto = Object.prototype;
  17120. /** Used to detect overreaching core-js shims. */
  17121. var coreJsData = context['__core-js_shared__'];
  17122. /** Used to resolve the decompiled source of functions. */
  17123. var funcToString = funcProto.toString;
  17124. /** Used to check objects for own properties. */
  17125. var hasOwnProperty = objectProto.hasOwnProperty;
  17126. /** Used to generate unique IDs. */
  17127. var idCounter = 0;
  17128. /** Used to detect methods masquerading as native. */
  17129. var maskSrcKey = (function() {
  17130. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  17131. return uid ? ('Symbol(src)_1.' + uid) : '';
  17132. }());
  17133. /**
  17134. * Used to resolve the
  17135. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  17136. * of values.
  17137. */
  17138. var nativeObjectToString = objectProto.toString;
  17139. /** Used to infer the `Object` constructor. */
  17140. var objectCtorString = funcToString.call(Object);
  17141. /** Used to restore the original `_` reference in `_.noConflict`. */
  17142. var oldDash = root._;
  17143. /** Used to detect if a method is native. */
  17144. var reIsNative = RegExp('^' +
  17145. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  17146. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  17147. );
  17148. /** Built-in value references. */
  17149. var Buffer = moduleExports ? context.Buffer : undefined,
  17150. Symbol = context.Symbol,
  17151. Uint8Array = context.Uint8Array,
  17152. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  17153. getPrototype = overArg(Object.getPrototypeOf, Object),
  17154. objectCreate = Object.create,
  17155. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  17156. splice = arrayProto.splice,
  17157. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  17158. symIterator = Symbol ? Symbol.iterator : undefined,
  17159. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  17160. var defineProperty = (function() {
  17161. try {
  17162. var func = getNative(Object, 'defineProperty');
  17163. func({}, '', {});
  17164. return func;
  17165. } catch (e) {}
  17166. }());
  17167. /** Mocked built-ins. */
  17168. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  17169. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  17170. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  17171. /* Built-in method references for those with the same name as other `lodash` methods. */
  17172. var nativeCeil = Math.ceil,
  17173. nativeFloor = Math.floor,
  17174. nativeGetSymbols = Object.getOwnPropertySymbols,
  17175. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  17176. nativeIsFinite = context.isFinite,
  17177. nativeJoin = arrayProto.join,
  17178. nativeKeys = overArg(Object.keys, Object),
  17179. nativeMax = Math.max,
  17180. nativeMin = Math.min,
  17181. nativeNow = Date.now,
  17182. nativeParseInt = context.parseInt,
  17183. nativeRandom = Math.random,
  17184. nativeReverse = arrayProto.reverse;
  17185. /* Built-in method references that are verified to be native. */
  17186. var DataView = getNative(context, 'DataView'),
  17187. Map = getNative(context, 'Map'),
  17188. Promise = getNative(context, 'Promise'),
  17189. Set = getNative(context, 'Set'),
  17190. WeakMap = getNative(context, 'WeakMap'),
  17191. nativeCreate = getNative(Object, 'create');
  17192. /** Used to store function metadata. */
  17193. var metaMap = WeakMap && new WeakMap;
  17194. /** Used to lookup unminified function names. */
  17195. var realNames = {};
  17196. /** Used to detect maps, sets, and weakmaps. */
  17197. var dataViewCtorString = toSource(DataView),
  17198. mapCtorString = toSource(Map),
  17199. promiseCtorString = toSource(Promise),
  17200. setCtorString = toSource(Set),
  17201. weakMapCtorString = toSource(WeakMap);
  17202. /** Used to convert symbols to primitives and strings. */
  17203. var symbolProto = Symbol ? Symbol.prototype : undefined,
  17204. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  17205. symbolToString = symbolProto ? symbolProto.toString : undefined;
  17206. /*------------------------------------------------------------------------*/
  17207. /**
  17208. * Creates a `lodash` object which wraps `value` to enable implicit method
  17209. * chain sequences. Methods that operate on and return arrays, collections,
  17210. * and functions can be chained together. Methods that retrieve a single value
  17211. * or may return a primitive value will automatically end the chain sequence
  17212. * and return the unwrapped value. Otherwise, the value must be unwrapped
  17213. * with `_#value`.
  17214. *
  17215. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  17216. * enabled using `_.chain`.
  17217. *
  17218. * The execution of chained methods is lazy, that is, it's deferred until
  17219. * `_#value` is implicitly or explicitly called.
  17220. *
  17221. * Lazy evaluation allows several methods to support shortcut fusion.
  17222. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  17223. * the creation of intermediate arrays and can greatly reduce the number of
  17224. * iteratee executions. Sections of a chain sequence qualify for shortcut
  17225. * fusion if the section is applied to an array and iteratees accept only
  17226. * one argument. The heuristic for whether a section qualifies for shortcut
  17227. * fusion is subject to change.
  17228. *
  17229. * Chaining is supported in custom builds as long as the `_#value` method is
  17230. * directly or indirectly included in the build.
  17231. *
  17232. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  17233. *
  17234. * The wrapper `Array` methods are:
  17235. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  17236. *
  17237. * The wrapper `String` methods are:
  17238. * `replace` and `split`
  17239. *
  17240. * The wrapper methods that support shortcut fusion are:
  17241. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  17242. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  17243. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  17244. *
  17245. * The chainable wrapper methods are:
  17246. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  17247. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  17248. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  17249. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  17250. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  17251. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  17252. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  17253. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  17254. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  17255. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  17256. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  17257. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  17258. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  17259. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  17260. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  17261. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  17262. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  17263. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  17264. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  17265. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  17266. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  17267. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  17268. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  17269. * `zipObject`, `zipObjectDeep`, and `zipWith`
  17270. *
  17271. * The wrapper methods that are **not** chainable by default are:
  17272. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  17273. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  17274. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  17275. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  17276. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  17277. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  17278. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  17279. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  17280. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  17281. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  17282. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  17283. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  17284. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  17285. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  17286. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  17287. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  17288. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  17289. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  17290. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  17291. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  17292. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  17293. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  17294. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  17295. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  17296. * `upperFirst`, `value`, and `words`
  17297. *
  17298. * @name _
  17299. * @constructor
  17300. * @category Seq
  17301. * @param {*} value The value to wrap in a `lodash` instance.
  17302. * @returns {Object} Returns the new `lodash` wrapper instance.
  17303. * @example
  17304. *
  17305. * function square(n) {
  17306. * return n * n;
  17307. * }
  17308. *
  17309. * var wrapped = _([1, 2, 3]);
  17310. *
  17311. * // Returns an unwrapped value.
  17312. * wrapped.reduce(_.add);
  17313. * // => 6
  17314. *
  17315. * // Returns a wrapped value.
  17316. * var squares = wrapped.map(square);
  17317. *
  17318. * _.isArray(squares);
  17319. * // => false
  17320. *
  17321. * _.isArray(squares.value());
  17322. * // => true
  17323. */
  17324. function lodash(value) {
  17325. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  17326. if (value instanceof LodashWrapper) {
  17327. return value;
  17328. }
  17329. if (hasOwnProperty.call(value, '__wrapped__')) {
  17330. return wrapperClone(value);
  17331. }
  17332. }
  17333. return new LodashWrapper(value);
  17334. }
  17335. /**
  17336. * The base implementation of `_.create` without support for assigning
  17337. * properties to the created object.
  17338. *
  17339. * @private
  17340. * @param {Object} proto The object to inherit from.
  17341. * @returns {Object} Returns the new object.
  17342. */
  17343. var baseCreate = (function() {
  17344. function object() {}
  17345. return function(proto) {
  17346. if (!isObject(proto)) {
  17347. return {};
  17348. }
  17349. if (objectCreate) {
  17350. return objectCreate(proto);
  17351. }
  17352. object.prototype = proto;
  17353. var result = new object;
  17354. object.prototype = undefined;
  17355. return result;
  17356. };
  17357. }());
  17358. /**
  17359. * The function whose prototype chain sequence wrappers inherit from.
  17360. *
  17361. * @private
  17362. */
  17363. function baseLodash() {
  17364. // No operation performed.
  17365. }
  17366. /**
  17367. * The base constructor for creating `lodash` wrapper objects.
  17368. *
  17369. * @private
  17370. * @param {*} value The value to wrap.
  17371. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  17372. */
  17373. function LodashWrapper(value, chainAll) {
  17374. this.__wrapped__ = value;
  17375. this.__actions__ = [];
  17376. this.__chain__ = !!chainAll;
  17377. this.__index__ = 0;
  17378. this.__values__ = undefined;
  17379. }
  17380. /**
  17381. * By default, the template delimiters used by lodash are like those in
  17382. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  17383. * following template settings to use alternative delimiters.
  17384. *
  17385. * @static
  17386. * @memberOf _
  17387. * @type {Object}
  17388. */
  17389. lodash.templateSettings = {
  17390. /**
  17391. * Used to detect `data` property values to be HTML-escaped.
  17392. *
  17393. * @memberOf _.templateSettings
  17394. * @type {RegExp}
  17395. */
  17396. 'escape': reEscape,
  17397. /**
  17398. * Used to detect code to be evaluated.
  17399. *
  17400. * @memberOf _.templateSettings
  17401. * @type {RegExp}
  17402. */
  17403. 'evaluate': reEvaluate,
  17404. /**
  17405. * Used to detect `data` property values to inject.
  17406. *
  17407. * @memberOf _.templateSettings
  17408. * @type {RegExp}
  17409. */
  17410. 'interpolate': reInterpolate,
  17411. /**
  17412. * Used to reference the data object in the template text.
  17413. *
  17414. * @memberOf _.templateSettings
  17415. * @type {string}
  17416. */
  17417. 'variable': '',
  17418. /**
  17419. * Used to import variables into the compiled template.
  17420. *
  17421. * @memberOf _.templateSettings
  17422. * @type {Object}
  17423. */
  17424. 'imports': {
  17425. /**
  17426. * A reference to the `lodash` function.
  17427. *
  17428. * @memberOf _.templateSettings.imports
  17429. * @type {Function}
  17430. */
  17431. '_': lodash
  17432. }
  17433. };
  17434. // Ensure wrappers are instances of `baseLodash`.
  17435. lodash.prototype = baseLodash.prototype;
  17436. lodash.prototype.constructor = lodash;
  17437. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  17438. LodashWrapper.prototype.constructor = LodashWrapper;
  17439. /*------------------------------------------------------------------------*/
  17440. /**
  17441. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  17442. *
  17443. * @private
  17444. * @constructor
  17445. * @param {*} value The value to wrap.
  17446. */
  17447. function LazyWrapper(value) {
  17448. this.__wrapped__ = value;
  17449. this.__actions__ = [];
  17450. this.__dir__ = 1;
  17451. this.__filtered__ = false;
  17452. this.__iteratees__ = [];
  17453. this.__takeCount__ = MAX_ARRAY_LENGTH;
  17454. this.__views__ = [];
  17455. }
  17456. /**
  17457. * Creates a clone of the lazy wrapper object.
  17458. *
  17459. * @private
  17460. * @name clone
  17461. * @memberOf LazyWrapper
  17462. * @returns {Object} Returns the cloned `LazyWrapper` object.
  17463. */
  17464. function lazyClone() {
  17465. var result = new LazyWrapper(this.__wrapped__);
  17466. result.__actions__ = copyArray(this.__actions__);
  17467. result.__dir__ = this.__dir__;
  17468. result.__filtered__ = this.__filtered__;
  17469. result.__iteratees__ = copyArray(this.__iteratees__);
  17470. result.__takeCount__ = this.__takeCount__;
  17471. result.__views__ = copyArray(this.__views__);
  17472. return result;
  17473. }
  17474. /**
  17475. * Reverses the direction of lazy iteration.
  17476. *
  17477. * @private
  17478. * @name reverse
  17479. * @memberOf LazyWrapper
  17480. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  17481. */
  17482. function lazyReverse() {
  17483. if (this.__filtered__) {
  17484. var result = new LazyWrapper(this);
  17485. result.__dir__ = -1;
  17486. result.__filtered__ = true;
  17487. } else {
  17488. result = this.clone();
  17489. result.__dir__ *= -1;
  17490. }
  17491. return result;
  17492. }
  17493. /**
  17494. * Extracts the unwrapped value from its lazy wrapper.
  17495. *
  17496. * @private
  17497. * @name value
  17498. * @memberOf LazyWrapper
  17499. * @returns {*} Returns the unwrapped value.
  17500. */
  17501. function lazyValue() {
  17502. var array = this.__wrapped__.value(),
  17503. dir = this.__dir__,
  17504. isArr = isArray(array),
  17505. isRight = dir < 0,
  17506. arrLength = isArr ? array.length : 0,
  17507. view = getView(0, arrLength, this.__views__),
  17508. start = view.start,
  17509. end = view.end,
  17510. length = end - start,
  17511. index = isRight ? end : (start - 1),
  17512. iteratees = this.__iteratees__,
  17513. iterLength = iteratees.length,
  17514. resIndex = 0,
  17515. takeCount = nativeMin(length, this.__takeCount__);
  17516. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  17517. return baseWrapperValue(array, this.__actions__);
  17518. }
  17519. var result = [];
  17520. outer:
  17521. while (length-- && resIndex < takeCount) {
  17522. index += dir;
  17523. var iterIndex = -1,
  17524. value = array[index];
  17525. while (++iterIndex < iterLength) {
  17526. var data = iteratees[iterIndex],
  17527. iteratee = data.iteratee,
  17528. type = data.type,
  17529. computed = iteratee(value);
  17530. if (type == LAZY_MAP_FLAG) {
  17531. value = computed;
  17532. } else if (!computed) {
  17533. if (type == LAZY_FILTER_FLAG) {
  17534. continue outer;
  17535. } else {
  17536. break outer;
  17537. }
  17538. }
  17539. }
  17540. result[resIndex++] = value;
  17541. }
  17542. return result;
  17543. }
  17544. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  17545. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  17546. LazyWrapper.prototype.constructor = LazyWrapper;
  17547. /*------------------------------------------------------------------------*/
  17548. /**
  17549. * Creates a hash object.
  17550. *
  17551. * @private
  17552. * @constructor
  17553. * @param {Array} [entries] The key-value pairs to cache.
  17554. */
  17555. function Hash(entries) {
  17556. var index = -1,
  17557. length = entries == null ? 0 : entries.length;
  17558. this.clear();
  17559. while (++index < length) {
  17560. var entry = entries[index];
  17561. this.set(entry[0], entry[1]);
  17562. }
  17563. }
  17564. /**
  17565. * Removes all key-value entries from the hash.
  17566. *
  17567. * @private
  17568. * @name clear
  17569. * @memberOf Hash
  17570. */
  17571. function hashClear() {
  17572. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  17573. this.size = 0;
  17574. }
  17575. /**
  17576. * Removes `key` and its value from the hash.
  17577. *
  17578. * @private
  17579. * @name delete
  17580. * @memberOf Hash
  17581. * @param {Object} hash The hash to modify.
  17582. * @param {string} key The key of the value to remove.
  17583. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17584. */
  17585. function hashDelete(key) {
  17586. var result = this.has(key) && delete this.__data__[key];
  17587. this.size -= result ? 1 : 0;
  17588. return result;
  17589. }
  17590. /**
  17591. * Gets the hash value for `key`.
  17592. *
  17593. * @private
  17594. * @name get
  17595. * @memberOf Hash
  17596. * @param {string} key The key of the value to get.
  17597. * @returns {*} Returns the entry value.
  17598. */
  17599. function hashGet(key) {
  17600. var data = this.__data__;
  17601. if (nativeCreate) {
  17602. var result = data[key];
  17603. return result === HASH_UNDEFINED ? undefined : result;
  17604. }
  17605. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  17606. }
  17607. /**
  17608. * Checks if a hash value for `key` exists.
  17609. *
  17610. * @private
  17611. * @name has
  17612. * @memberOf Hash
  17613. * @param {string} key The key of the entry to check.
  17614. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17615. */
  17616. function hashHas(key) {
  17617. var data = this.__data__;
  17618. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  17619. }
  17620. /**
  17621. * Sets the hash `key` to `value`.
  17622. *
  17623. * @private
  17624. * @name set
  17625. * @memberOf Hash
  17626. * @param {string} key The key of the value to set.
  17627. * @param {*} value The value to set.
  17628. * @returns {Object} Returns the hash instance.
  17629. */
  17630. function hashSet(key, value) {
  17631. var data = this.__data__;
  17632. this.size += this.has(key) ? 0 : 1;
  17633. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  17634. return this;
  17635. }
  17636. // Add methods to `Hash`.
  17637. Hash.prototype.clear = hashClear;
  17638. Hash.prototype['delete'] = hashDelete;
  17639. Hash.prototype.get = hashGet;
  17640. Hash.prototype.has = hashHas;
  17641. Hash.prototype.set = hashSet;
  17642. /*------------------------------------------------------------------------*/
  17643. /**
  17644. * Creates an list cache object.
  17645. *
  17646. * @private
  17647. * @constructor
  17648. * @param {Array} [entries] The key-value pairs to cache.
  17649. */
  17650. function ListCache(entries) {
  17651. var index = -1,
  17652. length = entries == null ? 0 : entries.length;
  17653. this.clear();
  17654. while (++index < length) {
  17655. var entry = entries[index];
  17656. this.set(entry[0], entry[1]);
  17657. }
  17658. }
  17659. /**
  17660. * Removes all key-value entries from the list cache.
  17661. *
  17662. * @private
  17663. * @name clear
  17664. * @memberOf ListCache
  17665. */
  17666. function listCacheClear() {
  17667. this.__data__ = [];
  17668. this.size = 0;
  17669. }
  17670. /**
  17671. * Removes `key` and its value from the list cache.
  17672. *
  17673. * @private
  17674. * @name delete
  17675. * @memberOf ListCache
  17676. * @param {string} key The key of the value to remove.
  17677. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17678. */
  17679. function listCacheDelete(key) {
  17680. var data = this.__data__,
  17681. index = assocIndexOf(data, key);
  17682. if (index < 0) {
  17683. return false;
  17684. }
  17685. var lastIndex = data.length - 1;
  17686. if (index == lastIndex) {
  17687. data.pop();
  17688. } else {
  17689. splice.call(data, index, 1);
  17690. }
  17691. --this.size;
  17692. return true;
  17693. }
  17694. /**
  17695. * Gets the list cache value for `key`.
  17696. *
  17697. * @private
  17698. * @name get
  17699. * @memberOf ListCache
  17700. * @param {string} key The key of the value to get.
  17701. * @returns {*} Returns the entry value.
  17702. */
  17703. function listCacheGet(key) {
  17704. var data = this.__data__,
  17705. index = assocIndexOf(data, key);
  17706. return index < 0 ? undefined : data[index][1];
  17707. }
  17708. /**
  17709. * Checks if a list cache value for `key` exists.
  17710. *
  17711. * @private
  17712. * @name has
  17713. * @memberOf ListCache
  17714. * @param {string} key The key of the entry to check.
  17715. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17716. */
  17717. function listCacheHas(key) {
  17718. return assocIndexOf(this.__data__, key) > -1;
  17719. }
  17720. /**
  17721. * Sets the list cache `key` to `value`.
  17722. *
  17723. * @private
  17724. * @name set
  17725. * @memberOf ListCache
  17726. * @param {string} key The key of the value to set.
  17727. * @param {*} value The value to set.
  17728. * @returns {Object} Returns the list cache instance.
  17729. */
  17730. function listCacheSet(key, value) {
  17731. var data = this.__data__,
  17732. index = assocIndexOf(data, key);
  17733. if (index < 0) {
  17734. ++this.size;
  17735. data.push([key, value]);
  17736. } else {
  17737. data[index][1] = value;
  17738. }
  17739. return this;
  17740. }
  17741. // Add methods to `ListCache`.
  17742. ListCache.prototype.clear = listCacheClear;
  17743. ListCache.prototype['delete'] = listCacheDelete;
  17744. ListCache.prototype.get = listCacheGet;
  17745. ListCache.prototype.has = listCacheHas;
  17746. ListCache.prototype.set = listCacheSet;
  17747. /*------------------------------------------------------------------------*/
  17748. /**
  17749. * Creates a map cache object to store key-value pairs.
  17750. *
  17751. * @private
  17752. * @constructor
  17753. * @param {Array} [entries] The key-value pairs to cache.
  17754. */
  17755. function MapCache(entries) {
  17756. var index = -1,
  17757. length = entries == null ? 0 : entries.length;
  17758. this.clear();
  17759. while (++index < length) {
  17760. var entry = entries[index];
  17761. this.set(entry[0], entry[1]);
  17762. }
  17763. }
  17764. /**
  17765. * Removes all key-value entries from the map.
  17766. *
  17767. * @private
  17768. * @name clear
  17769. * @memberOf MapCache
  17770. */
  17771. function mapCacheClear() {
  17772. this.size = 0;
  17773. this.__data__ = {
  17774. 'hash': new Hash,
  17775. 'map': new (Map || ListCache),
  17776. 'string': new Hash
  17777. };
  17778. }
  17779. /**
  17780. * Removes `key` and its value from the map.
  17781. *
  17782. * @private
  17783. * @name delete
  17784. * @memberOf MapCache
  17785. * @param {string} key The key of the value to remove.
  17786. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17787. */
  17788. function mapCacheDelete(key) {
  17789. var result = getMapData(this, key)['delete'](key);
  17790. this.size -= result ? 1 : 0;
  17791. return result;
  17792. }
  17793. /**
  17794. * Gets the map value for `key`.
  17795. *
  17796. * @private
  17797. * @name get
  17798. * @memberOf MapCache
  17799. * @param {string} key The key of the value to get.
  17800. * @returns {*} Returns the entry value.
  17801. */
  17802. function mapCacheGet(key) {
  17803. return getMapData(this, key).get(key);
  17804. }
  17805. /**
  17806. * Checks if a map value for `key` exists.
  17807. *
  17808. * @private
  17809. * @name has
  17810. * @memberOf MapCache
  17811. * @param {string} key The key of the entry to check.
  17812. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17813. */
  17814. function mapCacheHas(key) {
  17815. return getMapData(this, key).has(key);
  17816. }
  17817. /**
  17818. * Sets the map `key` to `value`.
  17819. *
  17820. * @private
  17821. * @name set
  17822. * @memberOf MapCache
  17823. * @param {string} key The key of the value to set.
  17824. * @param {*} value The value to set.
  17825. * @returns {Object} Returns the map cache instance.
  17826. */
  17827. function mapCacheSet(key, value) {
  17828. var data = getMapData(this, key),
  17829. size = data.size;
  17830. data.set(key, value);
  17831. this.size += data.size == size ? 0 : 1;
  17832. return this;
  17833. }
  17834. // Add methods to `MapCache`.
  17835. MapCache.prototype.clear = mapCacheClear;
  17836. MapCache.prototype['delete'] = mapCacheDelete;
  17837. MapCache.prototype.get = mapCacheGet;
  17838. MapCache.prototype.has = mapCacheHas;
  17839. MapCache.prototype.set = mapCacheSet;
  17840. /*------------------------------------------------------------------------*/
  17841. /**
  17842. *
  17843. * Creates an array cache object to store unique values.
  17844. *
  17845. * @private
  17846. * @constructor
  17847. * @param {Array} [values] The values to cache.
  17848. */
  17849. function SetCache(values) {
  17850. var index = -1,
  17851. length = values == null ? 0 : values.length;
  17852. this.__data__ = new MapCache;
  17853. while (++index < length) {
  17854. this.add(values[index]);
  17855. }
  17856. }
  17857. /**
  17858. * Adds `value` to the array cache.
  17859. *
  17860. * @private
  17861. * @name add
  17862. * @memberOf SetCache
  17863. * @alias push
  17864. * @param {*} value The value to cache.
  17865. * @returns {Object} Returns the cache instance.
  17866. */
  17867. function setCacheAdd(value) {
  17868. this.__data__.set(value, HASH_UNDEFINED);
  17869. return this;
  17870. }
  17871. /**
  17872. * Checks if `value` is in the array cache.
  17873. *
  17874. * @private
  17875. * @name has
  17876. * @memberOf SetCache
  17877. * @param {*} value The value to search for.
  17878. * @returns {number} Returns `true` if `value` is found, else `false`.
  17879. */
  17880. function setCacheHas(value) {
  17881. return this.__data__.has(value);
  17882. }
  17883. // Add methods to `SetCache`.
  17884. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  17885. SetCache.prototype.has = setCacheHas;
  17886. /*------------------------------------------------------------------------*/
  17887. /**
  17888. * Creates a stack cache object to store key-value pairs.
  17889. *
  17890. * @private
  17891. * @constructor
  17892. * @param {Array} [entries] The key-value pairs to cache.
  17893. */
  17894. function Stack(entries) {
  17895. var data = this.__data__ = new ListCache(entries);
  17896. this.size = data.size;
  17897. }
  17898. /**
  17899. * Removes all key-value entries from the stack.
  17900. *
  17901. * @private
  17902. * @name clear
  17903. * @memberOf Stack
  17904. */
  17905. function stackClear() {
  17906. this.__data__ = new ListCache;
  17907. this.size = 0;
  17908. }
  17909. /**
  17910. * Removes `key` and its value from the stack.
  17911. *
  17912. * @private
  17913. * @name delete
  17914. * @memberOf Stack
  17915. * @param {string} key The key of the value to remove.
  17916. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17917. */
  17918. function stackDelete(key) {
  17919. var data = this.__data__,
  17920. result = data['delete'](key);
  17921. this.size = data.size;
  17922. return result;
  17923. }
  17924. /**
  17925. * Gets the stack value for `key`.
  17926. *
  17927. * @private
  17928. * @name get
  17929. * @memberOf Stack
  17930. * @param {string} key The key of the value to get.
  17931. * @returns {*} Returns the entry value.
  17932. */
  17933. function stackGet(key) {
  17934. return this.__data__.get(key);
  17935. }
  17936. /**
  17937. * Checks if a stack value for `key` exists.
  17938. *
  17939. * @private
  17940. * @name has
  17941. * @memberOf Stack
  17942. * @param {string} key The key of the entry to check.
  17943. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17944. */
  17945. function stackHas(key) {
  17946. return this.__data__.has(key);
  17947. }
  17948. /**
  17949. * Sets the stack `key` to `value`.
  17950. *
  17951. * @private
  17952. * @name set
  17953. * @memberOf Stack
  17954. * @param {string} key The key of the value to set.
  17955. * @param {*} value The value to set.
  17956. * @returns {Object} Returns the stack cache instance.
  17957. */
  17958. function stackSet(key, value) {
  17959. var data = this.__data__;
  17960. if (data instanceof ListCache) {
  17961. var pairs = data.__data__;
  17962. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  17963. pairs.push([key, value]);
  17964. this.size = ++data.size;
  17965. return this;
  17966. }
  17967. data = this.__data__ = new MapCache(pairs);
  17968. }
  17969. data.set(key, value);
  17970. this.size = data.size;
  17971. return this;
  17972. }
  17973. // Add methods to `Stack`.
  17974. Stack.prototype.clear = stackClear;
  17975. Stack.prototype['delete'] = stackDelete;
  17976. Stack.prototype.get = stackGet;
  17977. Stack.prototype.has = stackHas;
  17978. Stack.prototype.set = stackSet;
  17979. /*------------------------------------------------------------------------*/
  17980. /**
  17981. * Creates an array of the enumerable property names of the array-like `value`.
  17982. *
  17983. * @private
  17984. * @param {*} value The value to query.
  17985. * @param {boolean} inherited Specify returning inherited property names.
  17986. * @returns {Array} Returns the array of property names.
  17987. */
  17988. function arrayLikeKeys(value, inherited) {
  17989. var isArr = isArray(value),
  17990. isArg = !isArr && isArguments(value),
  17991. isBuff = !isArr && !isArg && isBuffer(value),
  17992. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  17993. skipIndexes = isArr || isArg || isBuff || isType,
  17994. result = skipIndexes ? baseTimes(value.length, String) : [],
  17995. length = result.length;
  17996. for (var key in value) {
  17997. if ((inherited || hasOwnProperty.call(value, key)) &&
  17998. !(skipIndexes && (
  17999. // Safari 9 has enumerable `arguments.length` in strict mode.
  18000. key == 'length' ||
  18001. // Node.js 0.10 has enumerable non-index properties on buffers.
  18002. (isBuff && (key == 'offset' || key == 'parent')) ||
  18003. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  18004. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  18005. // Skip index properties.
  18006. isIndex(key, length)
  18007. ))) {
  18008. result.push(key);
  18009. }
  18010. }
  18011. return result;
  18012. }
  18013. /**
  18014. * A specialized version of `_.sample` for arrays.
  18015. *
  18016. * @private
  18017. * @param {Array} array The array to sample.
  18018. * @returns {*} Returns the random element.
  18019. */
  18020. function arraySample(array) {
  18021. var length = array.length;
  18022. return length ? array[baseRandom(0, length - 1)] : undefined;
  18023. }
  18024. /**
  18025. * A specialized version of `_.sampleSize` for arrays.
  18026. *
  18027. * @private
  18028. * @param {Array} array The array to sample.
  18029. * @param {number} n The number of elements to sample.
  18030. * @returns {Array} Returns the random elements.
  18031. */
  18032. function arraySampleSize(array, n) {
  18033. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  18034. }
  18035. /**
  18036. * A specialized version of `_.shuffle` for arrays.
  18037. *
  18038. * @private
  18039. * @param {Array} array The array to shuffle.
  18040. * @returns {Array} Returns the new shuffled array.
  18041. */
  18042. function arrayShuffle(array) {
  18043. return shuffleSelf(copyArray(array));
  18044. }
  18045. /**
  18046. * This function is like `assignValue` except that it doesn't assign
  18047. * `undefined` values.
  18048. *
  18049. * @private
  18050. * @param {Object} object The object to modify.
  18051. * @param {string} key The key of the property to assign.
  18052. * @param {*} value The value to assign.
  18053. */
  18054. function assignMergeValue(object, key, value) {
  18055. if ((value !== undefined && !eq(object[key], value)) ||
  18056. (value === undefined && !(key in object))) {
  18057. baseAssignValue(object, key, value);
  18058. }
  18059. }
  18060. /**
  18061. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  18062. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  18063. * for equality comparisons.
  18064. *
  18065. * @private
  18066. * @param {Object} object The object to modify.
  18067. * @param {string} key The key of the property to assign.
  18068. * @param {*} value The value to assign.
  18069. */
  18070. function assignValue(object, key, value) {
  18071. var objValue = object[key];
  18072. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  18073. (value === undefined && !(key in object))) {
  18074. baseAssignValue(object, key, value);
  18075. }
  18076. }
  18077. /**
  18078. * Gets the index at which the `key` is found in `array` of key-value pairs.
  18079. *
  18080. * @private
  18081. * @param {Array} array The array to inspect.
  18082. * @param {*} key The key to search for.
  18083. * @returns {number} Returns the index of the matched value, else `-1`.
  18084. */
  18085. function assocIndexOf(array, key) {
  18086. var length = array.length;
  18087. while (length--) {
  18088. if (eq(array[length][0], key)) {
  18089. return length;
  18090. }
  18091. }
  18092. return -1;
  18093. }
  18094. /**
  18095. * Aggregates elements of `collection` on `accumulator` with keys transformed
  18096. * by `iteratee` and values set by `setter`.
  18097. *
  18098. * @private
  18099. * @param {Array|Object} collection The collection to iterate over.
  18100. * @param {Function} setter The function to set `accumulator` values.
  18101. * @param {Function} iteratee The iteratee to transform keys.
  18102. * @param {Object} accumulator The initial aggregated object.
  18103. * @returns {Function} Returns `accumulator`.
  18104. */
  18105. function baseAggregator(collection, setter, iteratee, accumulator) {
  18106. baseEach(collection, function(value, key, collection) {
  18107. setter(accumulator, value, iteratee(value), collection);
  18108. });
  18109. return accumulator;
  18110. }
  18111. /**
  18112. * The base implementation of `_.assign` without support for multiple sources
  18113. * or `customizer` functions.
  18114. *
  18115. * @private
  18116. * @param {Object} object The destination object.
  18117. * @param {Object} source The source object.
  18118. * @returns {Object} Returns `object`.
  18119. */
  18120. function baseAssign(object, source) {
  18121. return object && copyObject(source, keys(source), object);
  18122. }
  18123. /**
  18124. * The base implementation of `_.assignIn` without support for multiple sources
  18125. * or `customizer` functions.
  18126. *
  18127. * @private
  18128. * @param {Object} object The destination object.
  18129. * @param {Object} source The source object.
  18130. * @returns {Object} Returns `object`.
  18131. */
  18132. function baseAssignIn(object, source) {
  18133. return object && copyObject(source, keysIn(source), object);
  18134. }
  18135. /**
  18136. * The base implementation of `assignValue` and `assignMergeValue` without
  18137. * value checks.
  18138. *
  18139. * @private
  18140. * @param {Object} object The object to modify.
  18141. * @param {string} key The key of the property to assign.
  18142. * @param {*} value The value to assign.
  18143. */
  18144. function baseAssignValue(object, key, value) {
  18145. if (key == '__proto__' && defineProperty) {
  18146. defineProperty(object, key, {
  18147. 'configurable': true,
  18148. 'enumerable': true,
  18149. 'value': value,
  18150. 'writable': true
  18151. });
  18152. } else {
  18153. object[key] = value;
  18154. }
  18155. }
  18156. /**
  18157. * The base implementation of `_.at` without support for individual paths.
  18158. *
  18159. * @private
  18160. * @param {Object} object The object to iterate over.
  18161. * @param {string[]} paths The property paths to pick.
  18162. * @returns {Array} Returns the picked elements.
  18163. */
  18164. function baseAt(object, paths) {
  18165. var index = -1,
  18166. length = paths.length,
  18167. result = Array(length),
  18168. skip = object == null;
  18169. while (++index < length) {
  18170. result[index] = skip ? undefined : get(object, paths[index]);
  18171. }
  18172. return result;
  18173. }
  18174. /**
  18175. * The base implementation of `_.clamp` which doesn't coerce arguments.
  18176. *
  18177. * @private
  18178. * @param {number} number The number to clamp.
  18179. * @param {number} [lower] The lower bound.
  18180. * @param {number} upper The upper bound.
  18181. * @returns {number} Returns the clamped number.
  18182. */
  18183. function baseClamp(number, lower, upper) {
  18184. if (number === number) {
  18185. if (upper !== undefined) {
  18186. number = number <= upper ? number : upper;
  18187. }
  18188. if (lower !== undefined) {
  18189. number = number >= lower ? number : lower;
  18190. }
  18191. }
  18192. return number;
  18193. }
  18194. /**
  18195. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  18196. * traversed objects.
  18197. *
  18198. * @private
  18199. * @param {*} value The value to clone.
  18200. * @param {boolean} bitmask The bitmask flags.
  18201. * 1 - Deep clone
  18202. * 2 - Flatten inherited properties
  18203. * 4 - Clone symbols
  18204. * @param {Function} [customizer] The function to customize cloning.
  18205. * @param {string} [key] The key of `value`.
  18206. * @param {Object} [object] The parent object of `value`.
  18207. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  18208. * @returns {*} Returns the cloned value.
  18209. */
  18210. function baseClone(value, bitmask, customizer, key, object, stack) {
  18211. var result,
  18212. isDeep = bitmask & CLONE_DEEP_FLAG,
  18213. isFlat = bitmask & CLONE_FLAT_FLAG,
  18214. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  18215. if (customizer) {
  18216. result = object ? customizer(value, key, object, stack) : customizer(value);
  18217. }
  18218. if (result !== undefined) {
  18219. return result;
  18220. }
  18221. if (!isObject(value)) {
  18222. return value;
  18223. }
  18224. var isArr = isArray(value);
  18225. if (isArr) {
  18226. result = initCloneArray(value);
  18227. if (!isDeep) {
  18228. return copyArray(value, result);
  18229. }
  18230. } else {
  18231. var tag = getTag(value),
  18232. isFunc = tag == funcTag || tag == genTag;
  18233. if (isBuffer(value)) {
  18234. return cloneBuffer(value, isDeep);
  18235. }
  18236. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  18237. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  18238. if (!isDeep) {
  18239. return isFlat
  18240. ? copySymbolsIn(value, baseAssignIn(result, value))
  18241. : copySymbols(value, baseAssign(result, value));
  18242. }
  18243. } else {
  18244. if (!cloneableTags[tag]) {
  18245. return object ? value : {};
  18246. }
  18247. result = initCloneByTag(value, tag, isDeep);
  18248. }
  18249. }
  18250. // Check for circular references and return its corresponding clone.
  18251. stack || (stack = new Stack);
  18252. var stacked = stack.get(value);
  18253. if (stacked) {
  18254. return stacked;
  18255. }
  18256. stack.set(value, result);
  18257. if (isSet(value)) {
  18258. value.forEach(function(subValue) {
  18259. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  18260. });
  18261. } else if (isMap(value)) {
  18262. value.forEach(function(subValue, key) {
  18263. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18264. });
  18265. }
  18266. var keysFunc = isFull
  18267. ? (isFlat ? getAllKeysIn : getAllKeys)
  18268. : (isFlat ? keysIn : keys);
  18269. var props = isArr ? undefined : keysFunc(value);
  18270. arrayEach(props || value, function(subValue, key) {
  18271. if (props) {
  18272. key = subValue;
  18273. subValue = value[key];
  18274. }
  18275. // Recursively populate clone (susceptible to call stack limits).
  18276. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18277. });
  18278. return result;
  18279. }
  18280. /**
  18281. * The base implementation of `_.conforms` which doesn't clone `source`.
  18282. *
  18283. * @private
  18284. * @param {Object} source The object of property predicates to conform to.
  18285. * @returns {Function} Returns the new spec function.
  18286. */
  18287. function baseConforms(source) {
  18288. var props = keys(source);
  18289. return function(object) {
  18290. return baseConformsTo(object, source, props);
  18291. };
  18292. }
  18293. /**
  18294. * The base implementation of `_.conformsTo` which accepts `props` to check.
  18295. *
  18296. * @private
  18297. * @param {Object} object The object to inspect.
  18298. * @param {Object} source The object of property predicates to conform to.
  18299. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  18300. */
  18301. function baseConformsTo(object, source, props) {
  18302. var length = props.length;
  18303. if (object == null) {
  18304. return !length;
  18305. }
  18306. object = Object(object);
  18307. while (length--) {
  18308. var key = props[length],
  18309. predicate = source[key],
  18310. value = object[key];
  18311. if ((value === undefined && !(key in object)) || !predicate(value)) {
  18312. return false;
  18313. }
  18314. }
  18315. return true;
  18316. }
  18317. /**
  18318. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  18319. * to provide to `func`.
  18320. *
  18321. * @private
  18322. * @param {Function} func The function to delay.
  18323. * @param {number} wait The number of milliseconds to delay invocation.
  18324. * @param {Array} args The arguments to provide to `func`.
  18325. * @returns {number|Object} Returns the timer id or timeout object.
  18326. */
  18327. function baseDelay(func, wait, args) {
  18328. if (typeof func != 'function') {
  18329. throw new TypeError(FUNC_ERROR_TEXT);
  18330. }
  18331. return setTimeout(function() { func.apply(undefined, args); }, wait);
  18332. }
  18333. /**
  18334. * The base implementation of methods like `_.difference` without support
  18335. * for excluding multiple arrays or iteratee shorthands.
  18336. *
  18337. * @private
  18338. * @param {Array} array The array to inspect.
  18339. * @param {Array} values The values to exclude.
  18340. * @param {Function} [iteratee] The iteratee invoked per element.
  18341. * @param {Function} [comparator] The comparator invoked per element.
  18342. * @returns {Array} Returns the new array of filtered values.
  18343. */
  18344. function baseDifference(array, values, iteratee, comparator) {
  18345. var index = -1,
  18346. includes = arrayIncludes,
  18347. isCommon = true,
  18348. length = array.length,
  18349. result = [],
  18350. valuesLength = values.length;
  18351. if (!length) {
  18352. return result;
  18353. }
  18354. if (iteratee) {
  18355. values = arrayMap(values, baseUnary(iteratee));
  18356. }
  18357. if (comparator) {
  18358. includes = arrayIncludesWith;
  18359. isCommon = false;
  18360. }
  18361. else if (values.length >= LARGE_ARRAY_SIZE) {
  18362. includes = cacheHas;
  18363. isCommon = false;
  18364. values = new SetCache(values);
  18365. }
  18366. outer:
  18367. while (++index < length) {
  18368. var value = array[index],
  18369. computed = iteratee == null ? value : iteratee(value);
  18370. value = (comparator || value !== 0) ? value : 0;
  18371. if (isCommon && computed === computed) {
  18372. var valuesIndex = valuesLength;
  18373. while (valuesIndex--) {
  18374. if (values[valuesIndex] === computed) {
  18375. continue outer;
  18376. }
  18377. }
  18378. result.push(value);
  18379. }
  18380. else if (!includes(values, computed, comparator)) {
  18381. result.push(value);
  18382. }
  18383. }
  18384. return result;
  18385. }
  18386. /**
  18387. * The base implementation of `_.forEach` without support for iteratee shorthands.
  18388. *
  18389. * @private
  18390. * @param {Array|Object} collection The collection to iterate over.
  18391. * @param {Function} iteratee The function invoked per iteration.
  18392. * @returns {Array|Object} Returns `collection`.
  18393. */
  18394. var baseEach = createBaseEach(baseForOwn);
  18395. /**
  18396. * The base implementation of `_.forEachRight` without support for iteratee shorthands.
  18397. *
  18398. * @private
  18399. * @param {Array|Object} collection The collection to iterate over.
  18400. * @param {Function} iteratee The function invoked per iteration.
  18401. * @returns {Array|Object} Returns `collection`.
  18402. */
  18403. var baseEachRight = createBaseEach(baseForOwnRight, true);
  18404. /**
  18405. * The base implementation of `_.every` without support for iteratee shorthands.
  18406. *
  18407. * @private
  18408. * @param {Array|Object} collection The collection to iterate over.
  18409. * @param {Function} predicate The function invoked per iteration.
  18410. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  18411. * else `false`
  18412. */
  18413. function baseEvery(collection, predicate) {
  18414. var result = true;
  18415. baseEach(collection, function(value, index, collection) {
  18416. result = !!predicate(value, index, collection);
  18417. return result;
  18418. });
  18419. return result;
  18420. }
  18421. /**
  18422. * The base implementation of methods like `_.max` and `_.min` which accepts a
  18423. * `comparator` to determine the extremum value.
  18424. *
  18425. * @private
  18426. * @param {Array} array The array to iterate over.
  18427. * @param {Function} iteratee The iteratee invoked per iteration.
  18428. * @param {Function} comparator The comparator used to compare values.
  18429. * @returns {*} Returns the extremum value.
  18430. */
  18431. function baseExtremum(array, iteratee, comparator) {
  18432. var index = -1,
  18433. length = array.length;
  18434. while (++index < length) {
  18435. var value = array[index],
  18436. current = iteratee(value);
  18437. if (current != null && (computed === undefined
  18438. ? (current === current && !isSymbol(current))
  18439. : comparator(current, computed)
  18440. )) {
  18441. var computed = current,
  18442. result = value;
  18443. }
  18444. }
  18445. return result;
  18446. }
  18447. /**
  18448. * The base implementation of `_.fill` without an iteratee call guard.
  18449. *
  18450. * @private
  18451. * @param {Array} array The array to fill.
  18452. * @param {*} value The value to fill `array` with.
  18453. * @param {number} [start=0] The start position.
  18454. * @param {number} [end=array.length] The end position.
  18455. * @returns {Array} Returns `array`.
  18456. */
  18457. function baseFill(array, value, start, end) {
  18458. var length = array.length;
  18459. start = toInteger(start);
  18460. if (start < 0) {
  18461. start = -start > length ? 0 : (length + start);
  18462. }
  18463. end = (end === undefined || end > length) ? length : toInteger(end);
  18464. if (end < 0) {
  18465. end += length;
  18466. }
  18467. end = start > end ? 0 : toLength(end);
  18468. while (start < end) {
  18469. array[start++] = value;
  18470. }
  18471. return array;
  18472. }
  18473. /**
  18474. * The base implementation of `_.filter` without support for iteratee shorthands.
  18475. *
  18476. * @private
  18477. * @param {Array|Object} collection The collection to iterate over.
  18478. * @param {Function} predicate The function invoked per iteration.
  18479. * @returns {Array} Returns the new filtered array.
  18480. */
  18481. function baseFilter(collection, predicate) {
  18482. var result = [];
  18483. baseEach(collection, function(value, index, collection) {
  18484. if (predicate(value, index, collection)) {
  18485. result.push(value);
  18486. }
  18487. });
  18488. return result;
  18489. }
  18490. /**
  18491. * The base implementation of `_.flatten` with support for restricting flattening.
  18492. *
  18493. * @private
  18494. * @param {Array} array The array to flatten.
  18495. * @param {number} depth The maximum recursion depth.
  18496. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  18497. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  18498. * @param {Array} [result=[]] The initial result value.
  18499. * @returns {Array} Returns the new flattened array.
  18500. */
  18501. function baseFlatten(array, depth, predicate, isStrict, result) {
  18502. var index = -1,
  18503. length = array.length;
  18504. predicate || (predicate = isFlattenable);
  18505. result || (result = []);
  18506. while (++index < length) {
  18507. var value = array[index];
  18508. if (depth > 0 && predicate(value)) {
  18509. if (depth > 1) {
  18510. // Recursively flatten arrays (susceptible to call stack limits).
  18511. baseFlatten(value, depth - 1, predicate, isStrict, result);
  18512. } else {
  18513. arrayPush(result, value);
  18514. }
  18515. } else if (!isStrict) {
  18516. result[result.length] = value;
  18517. }
  18518. }
  18519. return result;
  18520. }
  18521. /**
  18522. * The base implementation of `baseForOwn` which iterates over `object`
  18523. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  18524. * Iteratee functions may exit iteration early by explicitly returning `false`.
  18525. *
  18526. * @private
  18527. * @param {Object} object The object to iterate over.
  18528. * @param {Function} iteratee The function invoked per iteration.
  18529. * @param {Function} keysFunc The function to get the keys of `object`.
  18530. * @returns {Object} Returns `object`.
  18531. */
  18532. var baseFor = createBaseFor();
  18533. /**
  18534. * This function is like `baseFor` except that it iterates over properties
  18535. * in the opposite order.
  18536. *
  18537. * @private
  18538. * @param {Object} object The object to iterate over.
  18539. * @param {Function} iteratee The function invoked per iteration.
  18540. * @param {Function} keysFunc The function to get the keys of `object`.
  18541. * @returns {Object} Returns `object`.
  18542. */
  18543. var baseForRight = createBaseFor(true);
  18544. /**
  18545. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  18546. *
  18547. * @private
  18548. * @param {Object} object The object to iterate over.
  18549. * @param {Function} iteratee The function invoked per iteration.
  18550. * @returns {Object} Returns `object`.
  18551. */
  18552. function baseForOwn(object, iteratee) {
  18553. return object && baseFor(object, iteratee, keys);
  18554. }
  18555. /**
  18556. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  18557. *
  18558. * @private
  18559. * @param {Object} object The object to iterate over.
  18560. * @param {Function} iteratee The function invoked per iteration.
  18561. * @returns {Object} Returns `object`.
  18562. */
  18563. function baseForOwnRight(object, iteratee) {
  18564. return object && baseForRight(object, iteratee, keys);
  18565. }
  18566. /**
  18567. * The base implementation of `_.functions` which creates an array of
  18568. * `object` function property names filtered from `props`.
  18569. *
  18570. * @private
  18571. * @param {Object} object The object to inspect.
  18572. * @param {Array} props The property names to filter.
  18573. * @returns {Array} Returns the function names.
  18574. */
  18575. function baseFunctions(object, props) {
  18576. return arrayFilter(props, function(key) {
  18577. return isFunction(object[key]);
  18578. });
  18579. }
  18580. /**
  18581. * The base implementation of `_.get` without support for default values.
  18582. *
  18583. * @private
  18584. * @param {Object} object The object to query.
  18585. * @param {Array|string} path The path of the property to get.
  18586. * @returns {*} Returns the resolved value.
  18587. */
  18588. function baseGet(object, path) {
  18589. path = castPath(path, object);
  18590. var index = 0,
  18591. length = path.length;
  18592. while (object != null && index < length) {
  18593. object = object[toKey(path[index++])];
  18594. }
  18595. return (index && index == length) ? object : undefined;
  18596. }
  18597. /**
  18598. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  18599. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  18600. * symbols of `object`.
  18601. *
  18602. * @private
  18603. * @param {Object} object The object to query.
  18604. * @param {Function} keysFunc The function to get the keys of `object`.
  18605. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  18606. * @returns {Array} Returns the array of property names and symbols.
  18607. */
  18608. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  18609. var result = keysFunc(object);
  18610. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  18611. }
  18612. /**
  18613. * The base implementation of `getTag` without fallbacks for buggy environments.
  18614. *
  18615. * @private
  18616. * @param {*} value The value to query.
  18617. * @returns {string} Returns the `toStringTag`.
  18618. */
  18619. function baseGetTag(value) {
  18620. if (value == null) {
  18621. return value === undefined ? undefinedTag : nullTag;
  18622. }
  18623. return (symToStringTag && symToStringTag in Object(value))
  18624. ? getRawTag(value)
  18625. : objectToString(value);
  18626. }
  18627. /**
  18628. * The base implementation of `_.gt` which doesn't coerce arguments.
  18629. *
  18630. * @private
  18631. * @param {*} value The value to compare.
  18632. * @param {*} other The other value to compare.
  18633. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  18634. * else `false`.
  18635. */
  18636. function baseGt(value, other) {
  18637. return value > other;
  18638. }
  18639. /**
  18640. * The base implementation of `_.has` without support for deep paths.
  18641. *
  18642. * @private
  18643. * @param {Object} [object] The object to query.
  18644. * @param {Array|string} key The key to check.
  18645. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18646. */
  18647. function baseHas(object, key) {
  18648. return object != null && hasOwnProperty.call(object, key);
  18649. }
  18650. /**
  18651. * The base implementation of `_.hasIn` without support for deep paths.
  18652. *
  18653. * @private
  18654. * @param {Object} [object] The object to query.
  18655. * @param {Array|string} key The key to check.
  18656. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18657. */
  18658. function baseHasIn(object, key) {
  18659. return object != null && key in Object(object);
  18660. }
  18661. /**
  18662. * The base implementation of `_.inRange` which doesn't coerce arguments.
  18663. *
  18664. * @private
  18665. * @param {number} number The number to check.
  18666. * @param {number} start The start of the range.
  18667. * @param {number} end The end of the range.
  18668. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  18669. */
  18670. function baseInRange(number, start, end) {
  18671. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  18672. }
  18673. /**
  18674. * The base implementation of methods like `_.intersection`, without support
  18675. * for iteratee shorthands, that accepts an array of arrays to inspect.
  18676. *
  18677. * @private
  18678. * @param {Array} arrays The arrays to inspect.
  18679. * @param {Function} [iteratee] The iteratee invoked per element.
  18680. * @param {Function} [comparator] The comparator invoked per element.
  18681. * @returns {Array} Returns the new array of shared values.
  18682. */
  18683. function baseIntersection(arrays, iteratee, comparator) {
  18684. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  18685. length = arrays[0].length,
  18686. othLength = arrays.length,
  18687. othIndex = othLength,
  18688. caches = Array(othLength),
  18689. maxLength = Infinity,
  18690. result = [];
  18691. while (othIndex--) {
  18692. var array = arrays[othIndex];
  18693. if (othIndex && iteratee) {
  18694. array = arrayMap(array, baseUnary(iteratee));
  18695. }
  18696. maxLength = nativeMin(array.length, maxLength);
  18697. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  18698. ? new SetCache(othIndex && array)
  18699. : undefined;
  18700. }
  18701. array = arrays[0];
  18702. var index = -1,
  18703. seen = caches[0];
  18704. outer:
  18705. while (++index < length && result.length < maxLength) {
  18706. var value = array[index],
  18707. computed = iteratee ? iteratee(value) : value;
  18708. value = (comparator || value !== 0) ? value : 0;
  18709. if (!(seen
  18710. ? cacheHas(seen, computed)
  18711. : includes(result, computed, comparator)
  18712. )) {
  18713. othIndex = othLength;
  18714. while (--othIndex) {
  18715. var cache = caches[othIndex];
  18716. if (!(cache
  18717. ? cacheHas(cache, computed)
  18718. : includes(arrays[othIndex], computed, comparator))
  18719. ) {
  18720. continue outer;
  18721. }
  18722. }
  18723. if (seen) {
  18724. seen.push(computed);
  18725. }
  18726. result.push(value);
  18727. }
  18728. }
  18729. return result;
  18730. }
  18731. /**
  18732. * The base implementation of `_.invert` and `_.invertBy` which inverts
  18733. * `object` with values transformed by `iteratee` and set by `setter`.
  18734. *
  18735. * @private
  18736. * @param {Object} object The object to iterate over.
  18737. * @param {Function} setter The function to set `accumulator` values.
  18738. * @param {Function} iteratee The iteratee to transform values.
  18739. * @param {Object} accumulator The initial inverted object.
  18740. * @returns {Function} Returns `accumulator`.
  18741. */
  18742. function baseInverter(object, setter, iteratee, accumulator) {
  18743. baseForOwn(object, function(value, key, object) {
  18744. setter(accumulator, iteratee(value), key, object);
  18745. });
  18746. return accumulator;
  18747. }
  18748. /**
  18749. * The base implementation of `_.invoke` without support for individual
  18750. * method arguments.
  18751. *
  18752. * @private
  18753. * @param {Object} object The object to query.
  18754. * @param {Array|string} path The path of the method to invoke.
  18755. * @param {Array} args The arguments to invoke the method with.
  18756. * @returns {*} Returns the result of the invoked method.
  18757. */
  18758. function baseInvoke(object, path, args) {
  18759. path = castPath(path, object);
  18760. object = parent(object, path);
  18761. var func = object == null ? object : object[toKey(last(path))];
  18762. return func == null ? undefined : apply(func, object, args);
  18763. }
  18764. /**
  18765. * The base implementation of `_.isArguments`.
  18766. *
  18767. * @private
  18768. * @param {*} value The value to check.
  18769. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  18770. */
  18771. function baseIsArguments(value) {
  18772. return isObjectLike(value) && baseGetTag(value) == argsTag;
  18773. }
  18774. /**
  18775. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  18776. *
  18777. * @private
  18778. * @param {*} value The value to check.
  18779. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  18780. */
  18781. function baseIsArrayBuffer(value) {
  18782. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  18783. }
  18784. /**
  18785. * The base implementation of `_.isDate` without Node.js optimizations.
  18786. *
  18787. * @private
  18788. * @param {*} value The value to check.
  18789. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  18790. */
  18791. function baseIsDate(value) {
  18792. return isObjectLike(value) && baseGetTag(value) == dateTag;
  18793. }
  18794. /**
  18795. * The base implementation of `_.isEqual` which supports partial comparisons
  18796. * and tracks traversed objects.
  18797. *
  18798. * @private
  18799. * @param {*} value The value to compare.
  18800. * @param {*} other The other value to compare.
  18801. * @param {boolean} bitmask The bitmask flags.
  18802. * 1 - Unordered comparison
  18803. * 2 - Partial comparison
  18804. * @param {Function} [customizer] The function to customize comparisons.
  18805. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  18806. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  18807. */
  18808. function baseIsEqual(value, other, bitmask, customizer, stack) {
  18809. if (value === other) {
  18810. return true;
  18811. }
  18812. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  18813. return value !== value && other !== other;
  18814. }
  18815. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  18816. }
  18817. /**
  18818. * A specialized version of `baseIsEqual` for arrays and objects which performs
  18819. * deep comparisons and tracks traversed objects enabling objects with circular
  18820. * references to be compared.
  18821. *
  18822. * @private
  18823. * @param {Object} object The object to compare.
  18824. * @param {Object} other The other object to compare.
  18825. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  18826. * @param {Function} customizer The function to customize comparisons.
  18827. * @param {Function} equalFunc The function to determine equivalents of values.
  18828. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  18829. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  18830. */
  18831. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  18832. var objIsArr = isArray(object),
  18833. othIsArr = isArray(other),
  18834. objTag = objIsArr ? arrayTag : getTag(object),
  18835. othTag = othIsArr ? arrayTag : getTag(other);
  18836. objTag = objTag == argsTag ? objectTag : objTag;
  18837. othTag = othTag == argsTag ? objectTag : othTag;
  18838. var objIsObj = objTag == objectTag,
  18839. othIsObj = othTag == objectTag,
  18840. isSameTag = objTag == othTag;
  18841. if (isSameTag && isBuffer(object)) {
  18842. if (!isBuffer(other)) {
  18843. return false;
  18844. }
  18845. objIsArr = true;
  18846. objIsObj = false;
  18847. }
  18848. if (isSameTag && !objIsObj) {
  18849. stack || (stack = new Stack);
  18850. return (objIsArr || isTypedArray(object))
  18851. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  18852. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  18853. }
  18854. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  18855. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  18856. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  18857. if (objIsWrapped || othIsWrapped) {
  18858. var objUnwrapped = objIsWrapped ? object.value() : object,
  18859. othUnwrapped = othIsWrapped ? other.value() : other;
  18860. stack || (stack = new Stack);
  18861. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  18862. }
  18863. }
  18864. if (!isSameTag) {
  18865. return false;
  18866. }
  18867. stack || (stack = new Stack);
  18868. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  18869. }
  18870. /**
  18871. * The base implementation of `_.isMap` without Node.js optimizations.
  18872. *
  18873. * @private
  18874. * @param {*} value The value to check.
  18875. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  18876. */
  18877. function baseIsMap(value) {
  18878. return isObjectLike(value) && getTag(value) == mapTag;
  18879. }
  18880. /**
  18881. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  18882. *
  18883. * @private
  18884. * @param {Object} object The object to inspect.
  18885. * @param {Object} source The object of property values to match.
  18886. * @param {Array} matchData The property names, values, and compare flags to match.
  18887. * @param {Function} [customizer] The function to customize comparisons.
  18888. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  18889. */
  18890. function baseIsMatch(object, source, matchData, customizer) {
  18891. var index = matchData.length,
  18892. length = index,
  18893. noCustomizer = !customizer;
  18894. if (object == null) {
  18895. return !length;
  18896. }
  18897. object = Object(object);
  18898. while (index--) {
  18899. var data = matchData[index];
  18900. if ((noCustomizer && data[2])
  18901. ? data[1] !== object[data[0]]
  18902. : !(data[0] in object)
  18903. ) {
  18904. return false;
  18905. }
  18906. }
  18907. while (++index < length) {
  18908. data = matchData[index];
  18909. var key = data[0],
  18910. objValue = object[key],
  18911. srcValue = data[1];
  18912. if (noCustomizer && data[2]) {
  18913. if (objValue === undefined && !(key in object)) {
  18914. return false;
  18915. }
  18916. } else {
  18917. var stack = new Stack;
  18918. if (customizer) {
  18919. var result = customizer(objValue, srcValue, key, object, source, stack);
  18920. }
  18921. if (!(result === undefined
  18922. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  18923. : result
  18924. )) {
  18925. return false;
  18926. }
  18927. }
  18928. }
  18929. return true;
  18930. }
  18931. /**
  18932. * The base implementation of `_.isNative` without bad shim checks.
  18933. *
  18934. * @private
  18935. * @param {*} value The value to check.
  18936. * @returns {boolean} Returns `true` if `value` is a native function,
  18937. * else `false`.
  18938. */
  18939. function baseIsNative(value) {
  18940. if (!isObject(value) || isMasked(value)) {
  18941. return false;
  18942. }
  18943. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  18944. return pattern.test(toSource(value));
  18945. }
  18946. /**
  18947. * The base implementation of `_.isRegExp` without Node.js optimizations.
  18948. *
  18949. * @private
  18950. * @param {*} value The value to check.
  18951. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  18952. */
  18953. function baseIsRegExp(value) {
  18954. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  18955. }
  18956. /**
  18957. * The base implementation of `_.isSet` without Node.js optimizations.
  18958. *
  18959. * @private
  18960. * @param {*} value The value to check.
  18961. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  18962. */
  18963. function baseIsSet(value) {
  18964. return isObjectLike(value) && getTag(value) == setTag;
  18965. }
  18966. /**
  18967. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  18968. *
  18969. * @private
  18970. * @param {*} value The value to check.
  18971. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  18972. */
  18973. function baseIsTypedArray(value) {
  18974. return isObjectLike(value) &&
  18975. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  18976. }
  18977. /**
  18978. * The base implementation of `_.iteratee`.
  18979. *
  18980. * @private
  18981. * @param {*} [value=_.identity] The value to convert to an iteratee.
  18982. * @returns {Function} Returns the iteratee.
  18983. */
  18984. function baseIteratee(value) {
  18985. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  18986. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  18987. if (typeof value == 'function') {
  18988. return value;
  18989. }
  18990. if (value == null) {
  18991. return identity;
  18992. }
  18993. if (typeof value == 'object') {
  18994. return isArray(value)
  18995. ? baseMatchesProperty(value[0], value[1])
  18996. : baseMatches(value);
  18997. }
  18998. return property(value);
  18999. }
  19000. /**
  19001. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  19002. *
  19003. * @private
  19004. * @param {Object} object The object to query.
  19005. * @returns {Array} Returns the array of property names.
  19006. */
  19007. function baseKeys(object) {
  19008. if (!isPrototype(object)) {
  19009. return nativeKeys(object);
  19010. }
  19011. var result = [];
  19012. for (var key in Object(object)) {
  19013. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  19014. result.push(key);
  19015. }
  19016. }
  19017. return result;
  19018. }
  19019. /**
  19020. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  19021. *
  19022. * @private
  19023. * @param {Object} object The object to query.
  19024. * @returns {Array} Returns the array of property names.
  19025. */
  19026. function baseKeysIn(object) {
  19027. if (!isObject(object)) {
  19028. return nativeKeysIn(object);
  19029. }
  19030. var isProto = isPrototype(object),
  19031. result = [];
  19032. for (var key in object) {
  19033. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  19034. result.push(key);
  19035. }
  19036. }
  19037. return result;
  19038. }
  19039. /**
  19040. * The base implementation of `_.lt` which doesn't coerce arguments.
  19041. *
  19042. * @private
  19043. * @param {*} value The value to compare.
  19044. * @param {*} other The other value to compare.
  19045. * @returns {boolean} Returns `true` if `value` is less than `other`,
  19046. * else `false`.
  19047. */
  19048. function baseLt(value, other) {
  19049. return value < other;
  19050. }
  19051. /**
  19052. * The base implementation of `_.map` without support for iteratee shorthands.
  19053. *
  19054. * @private
  19055. * @param {Array|Object} collection The collection to iterate over.
  19056. * @param {Function} iteratee The function invoked per iteration.
  19057. * @returns {Array} Returns the new mapped array.
  19058. */
  19059. function baseMap(collection, iteratee) {
  19060. var index = -1,
  19061. result = isArrayLike(collection) ? Array(collection.length) : [];
  19062. baseEach(collection, function(value, key, collection) {
  19063. result[++index] = iteratee(value, key, collection);
  19064. });
  19065. return result;
  19066. }
  19067. /**
  19068. * The base implementation of `_.matches` which doesn't clone `source`.
  19069. *
  19070. * @private
  19071. * @param {Object} source The object of property values to match.
  19072. * @returns {Function} Returns the new spec function.
  19073. */
  19074. function baseMatches(source) {
  19075. var matchData = getMatchData(source);
  19076. if (matchData.length == 1 && matchData[0][2]) {
  19077. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  19078. }
  19079. return function(object) {
  19080. return object === source || baseIsMatch(object, source, matchData);
  19081. };
  19082. }
  19083. /**
  19084. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  19085. *
  19086. * @private
  19087. * @param {string} path The path of the property to get.
  19088. * @param {*} srcValue The value to match.
  19089. * @returns {Function} Returns the new spec function.
  19090. */
  19091. function baseMatchesProperty(path, srcValue) {
  19092. if (isKey(path) && isStrictComparable(srcValue)) {
  19093. return matchesStrictComparable(toKey(path), srcValue);
  19094. }
  19095. return function(object) {
  19096. var objValue = get(object, path);
  19097. return (objValue === undefined && objValue === srcValue)
  19098. ? hasIn(object, path)
  19099. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  19100. };
  19101. }
  19102. /**
  19103. * The base implementation of `_.merge` without support for multiple sources.
  19104. *
  19105. * @private
  19106. * @param {Object} object The destination object.
  19107. * @param {Object} source The source object.
  19108. * @param {number} srcIndex The index of `source`.
  19109. * @param {Function} [customizer] The function to customize merged values.
  19110. * @param {Object} [stack] Tracks traversed source values and their merged
  19111. * counterparts.
  19112. */
  19113. function baseMerge(object, source, srcIndex, customizer, stack) {
  19114. if (object === source) {
  19115. return;
  19116. }
  19117. baseFor(source, function(srcValue, key) {
  19118. stack || (stack = new Stack);
  19119. if (isObject(srcValue)) {
  19120. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  19121. }
  19122. else {
  19123. var newValue = customizer
  19124. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  19125. : undefined;
  19126. if (newValue === undefined) {
  19127. newValue = srcValue;
  19128. }
  19129. assignMergeValue(object, key, newValue);
  19130. }
  19131. }, keysIn);
  19132. }
  19133. /**
  19134. * A specialized version of `baseMerge` for arrays and objects which performs
  19135. * deep merges and tracks traversed objects enabling objects with circular
  19136. * references to be merged.
  19137. *
  19138. * @private
  19139. * @param {Object} object The destination object.
  19140. * @param {Object} source The source object.
  19141. * @param {string} key The key of the value to merge.
  19142. * @param {number} srcIndex The index of `source`.
  19143. * @param {Function} mergeFunc The function to merge values.
  19144. * @param {Function} [customizer] The function to customize assigned values.
  19145. * @param {Object} [stack] Tracks traversed source values and their merged
  19146. * counterparts.
  19147. */
  19148. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  19149. var objValue = safeGet(object, key),
  19150. srcValue = safeGet(source, key),
  19151. stacked = stack.get(srcValue);
  19152. if (stacked) {
  19153. assignMergeValue(object, key, stacked);
  19154. return;
  19155. }
  19156. var newValue = customizer
  19157. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  19158. : undefined;
  19159. var isCommon = newValue === undefined;
  19160. if (isCommon) {
  19161. var isArr = isArray(srcValue),
  19162. isBuff = !isArr && isBuffer(srcValue),
  19163. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  19164. newValue = srcValue;
  19165. if (isArr || isBuff || isTyped) {
  19166. if (isArray(objValue)) {
  19167. newValue = objValue;
  19168. }
  19169. else if (isArrayLikeObject(objValue)) {
  19170. newValue = copyArray(objValue);
  19171. }
  19172. else if (isBuff) {
  19173. isCommon = false;
  19174. newValue = cloneBuffer(srcValue, true);
  19175. }
  19176. else if (isTyped) {
  19177. isCommon = false;
  19178. newValue = cloneTypedArray(srcValue, true);
  19179. }
  19180. else {
  19181. newValue = [];
  19182. }
  19183. }
  19184. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  19185. newValue = objValue;
  19186. if (isArguments(objValue)) {
  19187. newValue = toPlainObject(objValue);
  19188. }
  19189. else if (!isObject(objValue) || isFunction(objValue)) {
  19190. newValue = initCloneObject(srcValue);
  19191. }
  19192. }
  19193. else {
  19194. isCommon = false;
  19195. }
  19196. }
  19197. if (isCommon) {
  19198. // Recursively merge objects and arrays (susceptible to call stack limits).
  19199. stack.set(srcValue, newValue);
  19200. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  19201. stack['delete'](srcValue);
  19202. }
  19203. assignMergeValue(object, key, newValue);
  19204. }
  19205. /**
  19206. * The base implementation of `_.nth` which doesn't coerce arguments.
  19207. *
  19208. * @private
  19209. * @param {Array} array The array to query.
  19210. * @param {number} n The index of the element to return.
  19211. * @returns {*} Returns the nth element of `array`.
  19212. */
  19213. function baseNth(array, n) {
  19214. var length = array.length;
  19215. if (!length) {
  19216. return;
  19217. }
  19218. n += n < 0 ? length : 0;
  19219. return isIndex(n, length) ? array[n] : undefined;
  19220. }
  19221. /**
  19222. * The base implementation of `_.orderBy` without param guards.
  19223. *
  19224. * @private
  19225. * @param {Array|Object} collection The collection to iterate over.
  19226. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  19227. * @param {string[]} orders The sort orders of `iteratees`.
  19228. * @returns {Array} Returns the new sorted array.
  19229. */
  19230. function baseOrderBy(collection, iteratees, orders) {
  19231. var index = -1;
  19232. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  19233. var result = baseMap(collection, function(value, key, collection) {
  19234. var criteria = arrayMap(iteratees, function(iteratee) {
  19235. return iteratee(value);
  19236. });
  19237. return { 'criteria': criteria, 'index': ++index, 'value': value };
  19238. });
  19239. return baseSortBy(result, function(object, other) {
  19240. return compareMultiple(object, other, orders);
  19241. });
  19242. }
  19243. /**
  19244. * The base implementation of `_.pick` without support for individual
  19245. * property identifiers.
  19246. *
  19247. * @private
  19248. * @param {Object} object The source object.
  19249. * @param {string[]} paths The property paths to pick.
  19250. * @returns {Object} Returns the new object.
  19251. */
  19252. function basePick(object, paths) {
  19253. return basePickBy(object, paths, function(value, path) {
  19254. return hasIn(object, path);
  19255. });
  19256. }
  19257. /**
  19258. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  19259. *
  19260. * @private
  19261. * @param {Object} object The source object.
  19262. * @param {string[]} paths The property paths to pick.
  19263. * @param {Function} predicate The function invoked per property.
  19264. * @returns {Object} Returns the new object.
  19265. */
  19266. function basePickBy(object, paths, predicate) {
  19267. var index = -1,
  19268. length = paths.length,
  19269. result = {};
  19270. while (++index < length) {
  19271. var path = paths[index],
  19272. value = baseGet(object, path);
  19273. if (predicate(value, path)) {
  19274. baseSet(result, castPath(path, object), value);
  19275. }
  19276. }
  19277. return result;
  19278. }
  19279. /**
  19280. * A specialized version of `baseProperty` which supports deep paths.
  19281. *
  19282. * @private
  19283. * @param {Array|string} path The path of the property to get.
  19284. * @returns {Function} Returns the new accessor function.
  19285. */
  19286. function basePropertyDeep(path) {
  19287. return function(object) {
  19288. return baseGet(object, path);
  19289. };
  19290. }
  19291. /**
  19292. * The base implementation of `_.pullAllBy` without support for iteratee
  19293. * shorthands.
  19294. *
  19295. * @private
  19296. * @param {Array} array The array to modify.
  19297. * @param {Array} values The values to remove.
  19298. * @param {Function} [iteratee] The iteratee invoked per element.
  19299. * @param {Function} [comparator] The comparator invoked per element.
  19300. * @returns {Array} Returns `array`.
  19301. */
  19302. function basePullAll(array, values, iteratee, comparator) {
  19303. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  19304. index = -1,
  19305. length = values.length,
  19306. seen = array;
  19307. if (array === values) {
  19308. values = copyArray(values);
  19309. }
  19310. if (iteratee) {
  19311. seen = arrayMap(array, baseUnary(iteratee));
  19312. }
  19313. while (++index < length) {
  19314. var fromIndex = 0,
  19315. value = values[index],
  19316. computed = iteratee ? iteratee(value) : value;
  19317. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  19318. if (seen !== array) {
  19319. splice.call(seen, fromIndex, 1);
  19320. }
  19321. splice.call(array, fromIndex, 1);
  19322. }
  19323. }
  19324. return array;
  19325. }
  19326. /**
  19327. * The base implementation of `_.pullAt` without support for individual
  19328. * indexes or capturing the removed elements.
  19329. *
  19330. * @private
  19331. * @param {Array} array The array to modify.
  19332. * @param {number[]} indexes The indexes of elements to remove.
  19333. * @returns {Array} Returns `array`.
  19334. */
  19335. function basePullAt(array, indexes) {
  19336. var length = array ? indexes.length : 0,
  19337. lastIndex = length - 1;
  19338. while (length--) {
  19339. var index = indexes[length];
  19340. if (length == lastIndex || index !== previous) {
  19341. var previous = index;
  19342. if (isIndex(index)) {
  19343. splice.call(array, index, 1);
  19344. } else {
  19345. baseUnset(array, index);
  19346. }
  19347. }
  19348. }
  19349. return array;
  19350. }
  19351. /**
  19352. * The base implementation of `_.random` without support for returning
  19353. * floating-point numbers.
  19354. *
  19355. * @private
  19356. * @param {number} lower The lower bound.
  19357. * @param {number} upper The upper bound.
  19358. * @returns {number} Returns the random number.
  19359. */
  19360. function baseRandom(lower, upper) {
  19361. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  19362. }
  19363. /**
  19364. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  19365. * coerce arguments.
  19366. *
  19367. * @private
  19368. * @param {number} start The start of the range.
  19369. * @param {number} end The end of the range.
  19370. * @param {number} step The value to increment or decrement by.
  19371. * @param {boolean} [fromRight] Specify iterating from right to left.
  19372. * @returns {Array} Returns the range of numbers.
  19373. */
  19374. function baseRange(start, end, step, fromRight) {
  19375. var index = -1,
  19376. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  19377. result = Array(length);
  19378. while (length--) {
  19379. result[fromRight ? length : ++index] = start;
  19380. start += step;
  19381. }
  19382. return result;
  19383. }
  19384. /**
  19385. * The base implementation of `_.repeat` which doesn't coerce arguments.
  19386. *
  19387. * @private
  19388. * @param {string} string The string to repeat.
  19389. * @param {number} n The number of times to repeat the string.
  19390. * @returns {string} Returns the repeated string.
  19391. */
  19392. function baseRepeat(string, n) {
  19393. var result = '';
  19394. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  19395. return result;
  19396. }
  19397. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  19398. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  19399. do {
  19400. if (n % 2) {
  19401. result += string;
  19402. }
  19403. n = nativeFloor(n / 2);
  19404. if (n) {
  19405. string += string;
  19406. }
  19407. } while (n);
  19408. return result;
  19409. }
  19410. /**
  19411. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  19412. *
  19413. * @private
  19414. * @param {Function} func The function to apply a rest parameter to.
  19415. * @param {number} [start=func.length-1] The start position of the rest parameter.
  19416. * @returns {Function} Returns the new function.
  19417. */
  19418. function baseRest(func, start) {
  19419. return setToString(overRest(func, start, identity), func + '');
  19420. }
  19421. /**
  19422. * The base implementation of `_.sample`.
  19423. *
  19424. * @private
  19425. * @param {Array|Object} collection The collection to sample.
  19426. * @returns {*} Returns the random element.
  19427. */
  19428. function baseSample(collection) {
  19429. return arraySample(values(collection));
  19430. }
  19431. /**
  19432. * The base implementation of `_.sampleSize` without param guards.
  19433. *
  19434. * @private
  19435. * @param {Array|Object} collection The collection to sample.
  19436. * @param {number} n The number of elements to sample.
  19437. * @returns {Array} Returns the random elements.
  19438. */
  19439. function baseSampleSize(collection, n) {
  19440. var array = values(collection);
  19441. return shuffleSelf(array, baseClamp(n, 0, array.length));
  19442. }
  19443. /**
  19444. * The base implementation of `_.set`.
  19445. *
  19446. * @private
  19447. * @param {Object} object The object to modify.
  19448. * @param {Array|string} path The path of the property to set.
  19449. * @param {*} value The value to set.
  19450. * @param {Function} [customizer] The function to customize path creation.
  19451. * @returns {Object} Returns `object`.
  19452. */
  19453. function baseSet(object, path, value, customizer) {
  19454. if (!isObject(object)) {
  19455. return object;
  19456. }
  19457. path = castPath(path, object);
  19458. var index = -1,
  19459. length = path.length,
  19460. lastIndex = length - 1,
  19461. nested = object;
  19462. while (nested != null && ++index < length) {
  19463. var key = toKey(path[index]),
  19464. newValue = value;
  19465. if (index != lastIndex) {
  19466. var objValue = nested[key];
  19467. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  19468. if (newValue === undefined) {
  19469. newValue = isObject(objValue)
  19470. ? objValue
  19471. : (isIndex(path[index + 1]) ? [] : {});
  19472. }
  19473. }
  19474. assignValue(nested, key, newValue);
  19475. nested = nested[key];
  19476. }
  19477. return object;
  19478. }
  19479. /**
  19480. * The base implementation of `setData` without support for hot loop shorting.
  19481. *
  19482. * @private
  19483. * @param {Function} func The function to associate metadata with.
  19484. * @param {*} data The metadata.
  19485. * @returns {Function} Returns `func`.
  19486. */
  19487. var baseSetData = !metaMap ? identity : function(func, data) {
  19488. metaMap.set(func, data);
  19489. return func;
  19490. };
  19491. /**
  19492. * The base implementation of `setToString` without support for hot loop shorting.
  19493. *
  19494. * @private
  19495. * @param {Function} func The function to modify.
  19496. * @param {Function} string The `toString` result.
  19497. * @returns {Function} Returns `func`.
  19498. */
  19499. var baseSetToString = !defineProperty ? identity : function(func, string) {
  19500. return defineProperty(func, 'toString', {
  19501. 'configurable': true,
  19502. 'enumerable': false,
  19503. 'value': constant(string),
  19504. 'writable': true
  19505. });
  19506. };
  19507. /**
  19508. * The base implementation of `_.shuffle`.
  19509. *
  19510. * @private
  19511. * @param {Array|Object} collection The collection to shuffle.
  19512. * @returns {Array} Returns the new shuffled array.
  19513. */
  19514. function baseShuffle(collection) {
  19515. return shuffleSelf(values(collection));
  19516. }
  19517. /**
  19518. * The base implementation of `_.slice` without an iteratee call guard.
  19519. *
  19520. * @private
  19521. * @param {Array} array The array to slice.
  19522. * @param {number} [start=0] The start position.
  19523. * @param {number} [end=array.length] The end position.
  19524. * @returns {Array} Returns the slice of `array`.
  19525. */
  19526. function baseSlice(array, start, end) {
  19527. var index = -1,
  19528. length = array.length;
  19529. if (start < 0) {
  19530. start = -start > length ? 0 : (length + start);
  19531. }
  19532. end = end > length ? length : end;
  19533. if (end < 0) {
  19534. end += length;
  19535. }
  19536. length = start > end ? 0 : ((end - start) >>> 0);
  19537. start >>>= 0;
  19538. var result = Array(length);
  19539. while (++index < length) {
  19540. result[index] = array[index + start];
  19541. }
  19542. return result;
  19543. }
  19544. /**
  19545. * The base implementation of `_.some` without support for iteratee shorthands.
  19546. *
  19547. * @private
  19548. * @param {Array|Object} collection The collection to iterate over.
  19549. * @param {Function} predicate The function invoked per iteration.
  19550. * @returns {boolean} Returns `true` if any element passes the predicate check,
  19551. * else `false`.
  19552. */
  19553. function baseSome(collection, predicate) {
  19554. var result;
  19555. baseEach(collection, function(value, index, collection) {
  19556. result = predicate(value, index, collection);
  19557. return !result;
  19558. });
  19559. return !!result;
  19560. }
  19561. /**
  19562. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  19563. * performs a binary search of `array` to determine the index at which `value`
  19564. * should be inserted into `array` in order to maintain its sort order.
  19565. *
  19566. * @private
  19567. * @param {Array} array The sorted array to inspect.
  19568. * @param {*} value The value to evaluate.
  19569. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19570. * @returns {number} Returns the index at which `value` should be inserted
  19571. * into `array`.
  19572. */
  19573. function baseSortedIndex(array, value, retHighest) {
  19574. var low = 0,
  19575. high = array == null ? low : array.length;
  19576. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  19577. while (low < high) {
  19578. var mid = (low + high) >>> 1,
  19579. computed = array[mid];
  19580. if (computed !== null && !isSymbol(computed) &&
  19581. (retHighest ? (computed <= value) : (computed < value))) {
  19582. low = mid + 1;
  19583. } else {
  19584. high = mid;
  19585. }
  19586. }
  19587. return high;
  19588. }
  19589. return baseSortedIndexBy(array, value, identity, retHighest);
  19590. }
  19591. /**
  19592. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  19593. * which invokes `iteratee` for `value` and each element of `array` to compute
  19594. * their sort ranking. The iteratee is invoked with one argument; (value).
  19595. *
  19596. * @private
  19597. * @param {Array} array The sorted array to inspect.
  19598. * @param {*} value The value to evaluate.
  19599. * @param {Function} iteratee The iteratee invoked per element.
  19600. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19601. * @returns {number} Returns the index at which `value` should be inserted
  19602. * into `array`.
  19603. */
  19604. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  19605. value = iteratee(value);
  19606. var low = 0,
  19607. high = array == null ? 0 : array.length,
  19608. valIsNaN = value !== value,
  19609. valIsNull = value === null,
  19610. valIsSymbol = isSymbol(value),
  19611. valIsUndefined = value === undefined;
  19612. while (low < high) {
  19613. var mid = nativeFloor((low + high) / 2),
  19614. computed = iteratee(array[mid]),
  19615. othIsDefined = computed !== undefined,
  19616. othIsNull = computed === null,
  19617. othIsReflexive = computed === computed,
  19618. othIsSymbol = isSymbol(computed);
  19619. if (valIsNaN) {
  19620. var setLow = retHighest || othIsReflexive;
  19621. } else if (valIsUndefined) {
  19622. setLow = othIsReflexive && (retHighest || othIsDefined);
  19623. } else if (valIsNull) {
  19624. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  19625. } else if (valIsSymbol) {
  19626. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  19627. } else if (othIsNull || othIsSymbol) {
  19628. setLow = false;
  19629. } else {
  19630. setLow = retHighest ? (computed <= value) : (computed < value);
  19631. }
  19632. if (setLow) {
  19633. low = mid + 1;
  19634. } else {
  19635. high = mid;
  19636. }
  19637. }
  19638. return nativeMin(high, MAX_ARRAY_INDEX);
  19639. }
  19640. /**
  19641. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  19642. * support for iteratee shorthands.
  19643. *
  19644. * @private
  19645. * @param {Array} array The array to inspect.
  19646. * @param {Function} [iteratee] The iteratee invoked per element.
  19647. * @returns {Array} Returns the new duplicate free array.
  19648. */
  19649. function baseSortedUniq(array, iteratee) {
  19650. var index = -1,
  19651. length = array.length,
  19652. resIndex = 0,
  19653. result = [];
  19654. while (++index < length) {
  19655. var value = array[index],
  19656. computed = iteratee ? iteratee(value) : value;
  19657. if (!index || !eq(computed, seen)) {
  19658. var seen = computed;
  19659. result[resIndex++] = value === 0 ? 0 : value;
  19660. }
  19661. }
  19662. return result;
  19663. }
  19664. /**
  19665. * The base implementation of `_.toNumber` which doesn't ensure correct
  19666. * conversions of binary, hexadecimal, or octal string values.
  19667. *
  19668. * @private
  19669. * @param {*} value The value to process.
  19670. * @returns {number} Returns the number.
  19671. */
  19672. function baseToNumber(value) {
  19673. if (typeof value == 'number') {
  19674. return value;
  19675. }
  19676. if (isSymbol(value)) {
  19677. return NAN;
  19678. }
  19679. return +value;
  19680. }
  19681. /**
  19682. * The base implementation of `_.toString` which doesn't convert nullish
  19683. * values to empty strings.
  19684. *
  19685. * @private
  19686. * @param {*} value The value to process.
  19687. * @returns {string} Returns the string.
  19688. */
  19689. function baseToString(value) {
  19690. // Exit early for strings to avoid a performance hit in some environments.
  19691. if (typeof value == 'string') {
  19692. return value;
  19693. }
  19694. if (isArray(value)) {
  19695. // Recursively convert values (susceptible to call stack limits).
  19696. return arrayMap(value, baseToString) + '';
  19697. }
  19698. if (isSymbol(value)) {
  19699. return symbolToString ? symbolToString.call(value) : '';
  19700. }
  19701. var result = (value + '');
  19702. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  19703. }
  19704. /**
  19705. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  19706. *
  19707. * @private
  19708. * @param {Array} array The array to inspect.
  19709. * @param {Function} [iteratee] The iteratee invoked per element.
  19710. * @param {Function} [comparator] The comparator invoked per element.
  19711. * @returns {Array} Returns the new duplicate free array.
  19712. */
  19713. function baseUniq(array, iteratee, comparator) {
  19714. var index = -1,
  19715. includes = arrayIncludes,
  19716. length = array.length,
  19717. isCommon = true,
  19718. result = [],
  19719. seen = result;
  19720. if (comparator) {
  19721. isCommon = false;
  19722. includes = arrayIncludesWith;
  19723. }
  19724. else if (length >= LARGE_ARRAY_SIZE) {
  19725. var set = iteratee ? null : createSet(array);
  19726. if (set) {
  19727. return setToArray(set);
  19728. }
  19729. isCommon = false;
  19730. includes = cacheHas;
  19731. seen = new SetCache;
  19732. }
  19733. else {
  19734. seen = iteratee ? [] : result;
  19735. }
  19736. outer:
  19737. while (++index < length) {
  19738. var value = array[index],
  19739. computed = iteratee ? iteratee(value) : value;
  19740. value = (comparator || value !== 0) ? value : 0;
  19741. if (isCommon && computed === computed) {
  19742. var seenIndex = seen.length;
  19743. while (seenIndex--) {
  19744. if (seen[seenIndex] === computed) {
  19745. continue outer;
  19746. }
  19747. }
  19748. if (iteratee) {
  19749. seen.push(computed);
  19750. }
  19751. result.push(value);
  19752. }
  19753. else if (!includes(seen, computed, comparator)) {
  19754. if (seen !== result) {
  19755. seen.push(computed);
  19756. }
  19757. result.push(value);
  19758. }
  19759. }
  19760. return result;
  19761. }
  19762. /**
  19763. * The base implementation of `_.unset`.
  19764. *
  19765. * @private
  19766. * @param {Object} object The object to modify.
  19767. * @param {Array|string} path The property path to unset.
  19768. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  19769. */
  19770. function baseUnset(object, path) {
  19771. path = castPath(path, object);
  19772. object = parent(object, path);
  19773. return object == null || delete object[toKey(last(path))];
  19774. }
  19775. /**
  19776. * The base implementation of `_.update`.
  19777. *
  19778. * @private
  19779. * @param {Object} object The object to modify.
  19780. * @param {Array|string} path The path of the property to update.
  19781. * @param {Function} updater The function to produce the updated value.
  19782. * @param {Function} [customizer] The function to customize path creation.
  19783. * @returns {Object} Returns `object`.
  19784. */
  19785. function baseUpdate(object, path, updater, customizer) {
  19786. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  19787. }
  19788. /**
  19789. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  19790. * without support for iteratee shorthands.
  19791. *
  19792. * @private
  19793. * @param {Array} array The array to query.
  19794. * @param {Function} predicate The function invoked per iteration.
  19795. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  19796. * @param {boolean} [fromRight] Specify iterating from right to left.
  19797. * @returns {Array} Returns the slice of `array`.
  19798. */
  19799. function baseWhile(array, predicate, isDrop, fromRight) {
  19800. var length = array.length,
  19801. index = fromRight ? length : -1;
  19802. while ((fromRight ? index-- : ++index < length) &&
  19803. predicate(array[index], index, array)) {}
  19804. return isDrop
  19805. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  19806. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  19807. }
  19808. /**
  19809. * The base implementation of `wrapperValue` which returns the result of
  19810. * performing a sequence of actions on the unwrapped `value`, where each
  19811. * successive action is supplied the return value of the previous.
  19812. *
  19813. * @private
  19814. * @param {*} value The unwrapped value.
  19815. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  19816. * @returns {*} Returns the resolved value.
  19817. */
  19818. function baseWrapperValue(value, actions) {
  19819. var result = value;
  19820. if (result instanceof LazyWrapper) {
  19821. result = result.value();
  19822. }
  19823. return arrayReduce(actions, function(result, action) {
  19824. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  19825. }, result);
  19826. }
  19827. /**
  19828. * The base implementation of methods like `_.xor`, without support for
  19829. * iteratee shorthands, that accepts an array of arrays to inspect.
  19830. *
  19831. * @private
  19832. * @param {Array} arrays The arrays to inspect.
  19833. * @param {Function} [iteratee] The iteratee invoked per element.
  19834. * @param {Function} [comparator] The comparator invoked per element.
  19835. * @returns {Array} Returns the new array of values.
  19836. */
  19837. function baseXor(arrays, iteratee, comparator) {
  19838. var length = arrays.length;
  19839. if (length < 2) {
  19840. return length ? baseUniq(arrays[0]) : [];
  19841. }
  19842. var index = -1,
  19843. result = Array(length);
  19844. while (++index < length) {
  19845. var array = arrays[index],
  19846. othIndex = -1;
  19847. while (++othIndex < length) {
  19848. if (othIndex != index) {
  19849. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  19850. }
  19851. }
  19852. }
  19853. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  19854. }
  19855. /**
  19856. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  19857. *
  19858. * @private
  19859. * @param {Array} props The property identifiers.
  19860. * @param {Array} values The property values.
  19861. * @param {Function} assignFunc The function to assign values.
  19862. * @returns {Object} Returns the new object.
  19863. */
  19864. function baseZipObject(props, values, assignFunc) {
  19865. var index = -1,
  19866. length = props.length,
  19867. valsLength = values.length,
  19868. result = {};
  19869. while (++index < length) {
  19870. var value = index < valsLength ? values[index] : undefined;
  19871. assignFunc(result, props[index], value);
  19872. }
  19873. return result;
  19874. }
  19875. /**
  19876. * Casts `value` to an empty array if it's not an array like object.
  19877. *
  19878. * @private
  19879. * @param {*} value The value to inspect.
  19880. * @returns {Array|Object} Returns the cast array-like object.
  19881. */
  19882. function castArrayLikeObject(value) {
  19883. return isArrayLikeObject(value) ? value : [];
  19884. }
  19885. /**
  19886. * Casts `value` to `identity` if it's not a function.
  19887. *
  19888. * @private
  19889. * @param {*} value The value to inspect.
  19890. * @returns {Function} Returns cast function.
  19891. */
  19892. function castFunction(value) {
  19893. return typeof value == 'function' ? value : identity;
  19894. }
  19895. /**
  19896. * Casts `value` to a path array if it's not one.
  19897. *
  19898. * @private
  19899. * @param {*} value The value to inspect.
  19900. * @param {Object} [object] The object to query keys on.
  19901. * @returns {Array} Returns the cast property path array.
  19902. */
  19903. function castPath(value, object) {
  19904. if (isArray(value)) {
  19905. return value;
  19906. }
  19907. return isKey(value, object) ? [value] : stringToPath(toString(value));
  19908. }
  19909. /**
  19910. * A `baseRest` alias which can be replaced with `identity` by module
  19911. * replacement plugins.
  19912. *
  19913. * @private
  19914. * @type {Function}
  19915. * @param {Function} func The function to apply a rest parameter to.
  19916. * @returns {Function} Returns the new function.
  19917. */
  19918. var castRest = baseRest;
  19919. /**
  19920. * Casts `array` to a slice if it's needed.
  19921. *
  19922. * @private
  19923. * @param {Array} array The array to inspect.
  19924. * @param {number} start The start position.
  19925. * @param {number} [end=array.length] The end position.
  19926. * @returns {Array} Returns the cast slice.
  19927. */
  19928. function castSlice(array, start, end) {
  19929. var length = array.length;
  19930. end = end === undefined ? length : end;
  19931. return (!start && end >= length) ? array : baseSlice(array, start, end);
  19932. }
  19933. /**
  19934. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  19935. *
  19936. * @private
  19937. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  19938. */
  19939. var clearTimeout = ctxClearTimeout || function(id) {
  19940. return root.clearTimeout(id);
  19941. };
  19942. /**
  19943. * Creates a clone of `buffer`.
  19944. *
  19945. * @private
  19946. * @param {Buffer} buffer The buffer to clone.
  19947. * @param {boolean} [isDeep] Specify a deep clone.
  19948. * @returns {Buffer} Returns the cloned buffer.
  19949. */
  19950. function cloneBuffer(buffer, isDeep) {
  19951. if (isDeep) {
  19952. return buffer.slice();
  19953. }
  19954. var length = buffer.length,
  19955. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  19956. buffer.copy(result);
  19957. return result;
  19958. }
  19959. /**
  19960. * Creates a clone of `arrayBuffer`.
  19961. *
  19962. * @private
  19963. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  19964. * @returns {ArrayBuffer} Returns the cloned array buffer.
  19965. */
  19966. function cloneArrayBuffer(arrayBuffer) {
  19967. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  19968. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  19969. return result;
  19970. }
  19971. /**
  19972. * Creates a clone of `dataView`.
  19973. *
  19974. * @private
  19975. * @param {Object} dataView The data view to clone.
  19976. * @param {boolean} [isDeep] Specify a deep clone.
  19977. * @returns {Object} Returns the cloned data view.
  19978. */
  19979. function cloneDataView(dataView, isDeep) {
  19980. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  19981. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  19982. }
  19983. /**
  19984. * Creates a clone of `regexp`.
  19985. *
  19986. * @private
  19987. * @param {Object} regexp The regexp to clone.
  19988. * @returns {Object} Returns the cloned regexp.
  19989. */
  19990. function cloneRegExp(regexp) {
  19991. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  19992. result.lastIndex = regexp.lastIndex;
  19993. return result;
  19994. }
  19995. /**
  19996. * Creates a clone of the `symbol` object.
  19997. *
  19998. * @private
  19999. * @param {Object} symbol The symbol object to clone.
  20000. * @returns {Object} Returns the cloned symbol object.
  20001. */
  20002. function cloneSymbol(symbol) {
  20003. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  20004. }
  20005. /**
  20006. * Creates a clone of `typedArray`.
  20007. *
  20008. * @private
  20009. * @param {Object} typedArray The typed array to clone.
  20010. * @param {boolean} [isDeep] Specify a deep clone.
  20011. * @returns {Object} Returns the cloned typed array.
  20012. */
  20013. function cloneTypedArray(typedArray, isDeep) {
  20014. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  20015. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  20016. }
  20017. /**
  20018. * Compares values to sort them in ascending order.
  20019. *
  20020. * @private
  20021. * @param {*} value The value to compare.
  20022. * @param {*} other The other value to compare.
  20023. * @returns {number} Returns the sort order indicator for `value`.
  20024. */
  20025. function compareAscending(value, other) {
  20026. if (value !== other) {
  20027. var valIsDefined = value !== undefined,
  20028. valIsNull = value === null,
  20029. valIsReflexive = value === value,
  20030. valIsSymbol = isSymbol(value);
  20031. var othIsDefined = other !== undefined,
  20032. othIsNull = other === null,
  20033. othIsReflexive = other === other,
  20034. othIsSymbol = isSymbol(other);
  20035. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  20036. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  20037. (valIsNull && othIsDefined && othIsReflexive) ||
  20038. (!valIsDefined && othIsReflexive) ||
  20039. !valIsReflexive) {
  20040. return 1;
  20041. }
  20042. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  20043. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  20044. (othIsNull && valIsDefined && valIsReflexive) ||
  20045. (!othIsDefined && valIsReflexive) ||
  20046. !othIsReflexive) {
  20047. return -1;
  20048. }
  20049. }
  20050. return 0;
  20051. }
  20052. /**
  20053. * Used by `_.orderBy` to compare multiple properties of a value to another
  20054. * and stable sort them.
  20055. *
  20056. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  20057. * specify an order of "desc" for descending or "asc" for ascending sort order
  20058. * of corresponding values.
  20059. *
  20060. * @private
  20061. * @param {Object} object The object to compare.
  20062. * @param {Object} other The other object to compare.
  20063. * @param {boolean[]|string[]} orders The order to sort by for each property.
  20064. * @returns {number} Returns the sort order indicator for `object`.
  20065. */
  20066. function compareMultiple(object, other, orders) {
  20067. var index = -1,
  20068. objCriteria = object.criteria,
  20069. othCriteria = other.criteria,
  20070. length = objCriteria.length,
  20071. ordersLength = orders.length;
  20072. while (++index < length) {
  20073. var result = compareAscending(objCriteria[index], othCriteria[index]);
  20074. if (result) {
  20075. if (index >= ordersLength) {
  20076. return result;
  20077. }
  20078. var order = orders[index];
  20079. return result * (order == 'desc' ? -1 : 1);
  20080. }
  20081. }
  20082. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  20083. // that causes it, under certain circumstances, to provide the same value for
  20084. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  20085. // for more details.
  20086. //
  20087. // This also ensures a stable sort in V8 and other engines.
  20088. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  20089. return object.index - other.index;
  20090. }
  20091. /**
  20092. * Creates an array that is the composition of partially applied arguments,
  20093. * placeholders, and provided arguments into a single array of arguments.
  20094. *
  20095. * @private
  20096. * @param {Array} args The provided arguments.
  20097. * @param {Array} partials The arguments to prepend to those provided.
  20098. * @param {Array} holders The `partials` placeholder indexes.
  20099. * @params {boolean} [isCurried] Specify composing for a curried function.
  20100. * @returns {Array} Returns the new array of composed arguments.
  20101. */
  20102. function composeArgs(args, partials, holders, isCurried) {
  20103. var argsIndex = -1,
  20104. argsLength = args.length,
  20105. holdersLength = holders.length,
  20106. leftIndex = -1,
  20107. leftLength = partials.length,
  20108. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20109. result = Array(leftLength + rangeLength),
  20110. isUncurried = !isCurried;
  20111. while (++leftIndex < leftLength) {
  20112. result[leftIndex] = partials[leftIndex];
  20113. }
  20114. while (++argsIndex < holdersLength) {
  20115. if (isUncurried || argsIndex < argsLength) {
  20116. result[holders[argsIndex]] = args[argsIndex];
  20117. }
  20118. }
  20119. while (rangeLength--) {
  20120. result[leftIndex++] = args[argsIndex++];
  20121. }
  20122. return result;
  20123. }
  20124. /**
  20125. * This function is like `composeArgs` except that the arguments composition
  20126. * is tailored for `_.partialRight`.
  20127. *
  20128. * @private
  20129. * @param {Array} args The provided arguments.
  20130. * @param {Array} partials The arguments to append to those provided.
  20131. * @param {Array} holders The `partials` placeholder indexes.
  20132. * @params {boolean} [isCurried] Specify composing for a curried function.
  20133. * @returns {Array} Returns the new array of composed arguments.
  20134. */
  20135. function composeArgsRight(args, partials, holders, isCurried) {
  20136. var argsIndex = -1,
  20137. argsLength = args.length,
  20138. holdersIndex = -1,
  20139. holdersLength = holders.length,
  20140. rightIndex = -1,
  20141. rightLength = partials.length,
  20142. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20143. result = Array(rangeLength + rightLength),
  20144. isUncurried = !isCurried;
  20145. while (++argsIndex < rangeLength) {
  20146. result[argsIndex] = args[argsIndex];
  20147. }
  20148. var offset = argsIndex;
  20149. while (++rightIndex < rightLength) {
  20150. result[offset + rightIndex] = partials[rightIndex];
  20151. }
  20152. while (++holdersIndex < holdersLength) {
  20153. if (isUncurried || argsIndex < argsLength) {
  20154. result[offset + holders[holdersIndex]] = args[argsIndex++];
  20155. }
  20156. }
  20157. return result;
  20158. }
  20159. /**
  20160. * Copies the values of `source` to `array`.
  20161. *
  20162. * @private
  20163. * @param {Array} source The array to copy values from.
  20164. * @param {Array} [array=[]] The array to copy values to.
  20165. * @returns {Array} Returns `array`.
  20166. */
  20167. function copyArray(source, array) {
  20168. var index = -1,
  20169. length = source.length;
  20170. array || (array = Array(length));
  20171. while (++index < length) {
  20172. array[index] = source[index];
  20173. }
  20174. return array;
  20175. }
  20176. /**
  20177. * Copies properties of `source` to `object`.
  20178. *
  20179. * @private
  20180. * @param {Object} source The object to copy properties from.
  20181. * @param {Array} props The property identifiers to copy.
  20182. * @param {Object} [object={}] The object to copy properties to.
  20183. * @param {Function} [customizer] The function to customize copied values.
  20184. * @returns {Object} Returns `object`.
  20185. */
  20186. function copyObject(source, props, object, customizer) {
  20187. var isNew = !object;
  20188. object || (object = {});
  20189. var index = -1,
  20190. length = props.length;
  20191. while (++index < length) {
  20192. var key = props[index];
  20193. var newValue = customizer
  20194. ? customizer(object[key], source[key], key, object, source)
  20195. : undefined;
  20196. if (newValue === undefined) {
  20197. newValue = source[key];
  20198. }
  20199. if (isNew) {
  20200. baseAssignValue(object, key, newValue);
  20201. } else {
  20202. assignValue(object, key, newValue);
  20203. }
  20204. }
  20205. return object;
  20206. }
  20207. /**
  20208. * Copies own symbols of `source` to `object`.
  20209. *
  20210. * @private
  20211. * @param {Object} source The object to copy symbols from.
  20212. * @param {Object} [object={}] The object to copy symbols to.
  20213. * @returns {Object} Returns `object`.
  20214. */
  20215. function copySymbols(source, object) {
  20216. return copyObject(source, getSymbols(source), object);
  20217. }
  20218. /**
  20219. * Copies own and inherited symbols of `source` to `object`.
  20220. *
  20221. * @private
  20222. * @param {Object} source The object to copy symbols from.
  20223. * @param {Object} [object={}] The object to copy symbols to.
  20224. * @returns {Object} Returns `object`.
  20225. */
  20226. function copySymbolsIn(source, object) {
  20227. return copyObject(source, getSymbolsIn(source), object);
  20228. }
  20229. /**
  20230. * Creates a function like `_.groupBy`.
  20231. *
  20232. * @private
  20233. * @param {Function} setter The function to set accumulator values.
  20234. * @param {Function} [initializer] The accumulator object initializer.
  20235. * @returns {Function} Returns the new aggregator function.
  20236. */
  20237. function createAggregator(setter, initializer) {
  20238. return function(collection, iteratee) {
  20239. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  20240. accumulator = initializer ? initializer() : {};
  20241. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  20242. };
  20243. }
  20244. /**
  20245. * Creates a function like `_.assign`.
  20246. *
  20247. * @private
  20248. * @param {Function} assigner The function to assign values.
  20249. * @returns {Function} Returns the new assigner function.
  20250. */
  20251. function createAssigner(assigner) {
  20252. return baseRest(function(object, sources) {
  20253. var index = -1,
  20254. length = sources.length,
  20255. customizer = length > 1 ? sources[length - 1] : undefined,
  20256. guard = length > 2 ? sources[2] : undefined;
  20257. customizer = (assigner.length > 3 && typeof customizer == 'function')
  20258. ? (length--, customizer)
  20259. : undefined;
  20260. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  20261. customizer = length < 3 ? undefined : customizer;
  20262. length = 1;
  20263. }
  20264. object = Object(object);
  20265. while (++index < length) {
  20266. var source = sources[index];
  20267. if (source) {
  20268. assigner(object, source, index, customizer);
  20269. }
  20270. }
  20271. return object;
  20272. });
  20273. }
  20274. /**
  20275. * Creates a `baseEach` or `baseEachRight` function.
  20276. *
  20277. * @private
  20278. * @param {Function} eachFunc The function to iterate over a collection.
  20279. * @param {boolean} [fromRight] Specify iterating from right to left.
  20280. * @returns {Function} Returns the new base function.
  20281. */
  20282. function createBaseEach(eachFunc, fromRight) {
  20283. return function(collection, iteratee) {
  20284. if (collection == null) {
  20285. return collection;
  20286. }
  20287. if (!isArrayLike(collection)) {
  20288. return eachFunc(collection, iteratee);
  20289. }
  20290. var length = collection.length,
  20291. index = fromRight ? length : -1,
  20292. iterable = Object(collection);
  20293. while ((fromRight ? index-- : ++index < length)) {
  20294. if (iteratee(iterable[index], index, iterable) === false) {
  20295. break;
  20296. }
  20297. }
  20298. return collection;
  20299. };
  20300. }
  20301. /**
  20302. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  20303. *
  20304. * @private
  20305. * @param {boolean} [fromRight] Specify iterating from right to left.
  20306. * @returns {Function} Returns the new base function.
  20307. */
  20308. function createBaseFor(fromRight) {
  20309. return function(object, iteratee, keysFunc) {
  20310. var index = -1,
  20311. iterable = Object(object),
  20312. props = keysFunc(object),
  20313. length = props.length;
  20314. while (length--) {
  20315. var key = props[fromRight ? length : ++index];
  20316. if (iteratee(iterable[key], key, iterable) === false) {
  20317. break;
  20318. }
  20319. }
  20320. return object;
  20321. };
  20322. }
  20323. /**
  20324. * Creates a function that wraps `func` to invoke it with the optional `this`
  20325. * binding of `thisArg`.
  20326. *
  20327. * @private
  20328. * @param {Function} func The function to wrap.
  20329. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20330. * @param {*} [thisArg] The `this` binding of `func`.
  20331. * @returns {Function} Returns the new wrapped function.
  20332. */
  20333. function createBind(func, bitmask, thisArg) {
  20334. var isBind = bitmask & WRAP_BIND_FLAG,
  20335. Ctor = createCtor(func);
  20336. function wrapper() {
  20337. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20338. return fn.apply(isBind ? thisArg : this, arguments);
  20339. }
  20340. return wrapper;
  20341. }
  20342. /**
  20343. * Creates a function like `_.lowerFirst`.
  20344. *
  20345. * @private
  20346. * @param {string} methodName The name of the `String` case method to use.
  20347. * @returns {Function} Returns the new case function.
  20348. */
  20349. function createCaseFirst(methodName) {
  20350. return function(string) {
  20351. string = toString(string);
  20352. var strSymbols = hasUnicode(string)
  20353. ? stringToArray(string)
  20354. : undefined;
  20355. var chr = strSymbols
  20356. ? strSymbols[0]
  20357. : string.charAt(0);
  20358. var trailing = strSymbols
  20359. ? castSlice(strSymbols, 1).join('')
  20360. : string.slice(1);
  20361. return chr[methodName]() + trailing;
  20362. };
  20363. }
  20364. /**
  20365. * Creates a function like `_.camelCase`.
  20366. *
  20367. * @private
  20368. * @param {Function} callback The function to combine each word.
  20369. * @returns {Function} Returns the new compounder function.
  20370. */
  20371. function createCompounder(callback) {
  20372. return function(string) {
  20373. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  20374. };
  20375. }
  20376. /**
  20377. * Creates a function that produces an instance of `Ctor` regardless of
  20378. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  20379. *
  20380. * @private
  20381. * @param {Function} Ctor The constructor to wrap.
  20382. * @returns {Function} Returns the new wrapped function.
  20383. */
  20384. function createCtor(Ctor) {
  20385. return function() {
  20386. // Use a `switch` statement to work with class constructors. See
  20387. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  20388. // for more details.
  20389. var args = arguments;
  20390. switch (args.length) {
  20391. case 0: return new Ctor;
  20392. case 1: return new Ctor(args[0]);
  20393. case 2: return new Ctor(args[0], args[1]);
  20394. case 3: return new Ctor(args[0], args[1], args[2]);
  20395. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  20396. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  20397. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  20398. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  20399. }
  20400. var thisBinding = baseCreate(Ctor.prototype),
  20401. result = Ctor.apply(thisBinding, args);
  20402. // Mimic the constructor's `return` behavior.
  20403. // See https://es5.github.io/#x13.2.2 for more details.
  20404. return isObject(result) ? result : thisBinding;
  20405. };
  20406. }
  20407. /**
  20408. * Creates a function that wraps `func` to enable currying.
  20409. *
  20410. * @private
  20411. * @param {Function} func The function to wrap.
  20412. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20413. * @param {number} arity The arity of `func`.
  20414. * @returns {Function} Returns the new wrapped function.
  20415. */
  20416. function createCurry(func, bitmask, arity) {
  20417. var Ctor = createCtor(func);
  20418. function wrapper() {
  20419. var length = arguments.length,
  20420. args = Array(length),
  20421. index = length,
  20422. placeholder = getHolder(wrapper);
  20423. while (index--) {
  20424. args[index] = arguments[index];
  20425. }
  20426. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  20427. ? []
  20428. : replaceHolders(args, placeholder);
  20429. length -= holders.length;
  20430. if (length < arity) {
  20431. return createRecurry(
  20432. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  20433. args, holders, undefined, undefined, arity - length);
  20434. }
  20435. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20436. return apply(fn, this, args);
  20437. }
  20438. return wrapper;
  20439. }
  20440. /**
  20441. * Creates a `_.find` or `_.findLast` function.
  20442. *
  20443. * @private
  20444. * @param {Function} findIndexFunc The function to find the collection index.
  20445. * @returns {Function} Returns the new find function.
  20446. */
  20447. function createFind(findIndexFunc) {
  20448. return function(collection, predicate, fromIndex) {
  20449. var iterable = Object(collection);
  20450. if (!isArrayLike(collection)) {
  20451. var iteratee = getIteratee(predicate, 3);
  20452. collection = keys(collection);
  20453. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  20454. }
  20455. var index = findIndexFunc(collection, predicate, fromIndex);
  20456. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  20457. };
  20458. }
  20459. /**
  20460. * Creates a `_.flow` or `_.flowRight` function.
  20461. *
  20462. * @private
  20463. * @param {boolean} [fromRight] Specify iterating from right to left.
  20464. * @returns {Function} Returns the new flow function.
  20465. */
  20466. function createFlow(fromRight) {
  20467. return flatRest(function(funcs) {
  20468. var length = funcs.length,
  20469. index = length,
  20470. prereq = LodashWrapper.prototype.thru;
  20471. if (fromRight) {
  20472. funcs.reverse();
  20473. }
  20474. while (index--) {
  20475. var func = funcs[index];
  20476. if (typeof func != 'function') {
  20477. throw new TypeError(FUNC_ERROR_TEXT);
  20478. }
  20479. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  20480. var wrapper = new LodashWrapper([], true);
  20481. }
  20482. }
  20483. index = wrapper ? index : length;
  20484. while (++index < length) {
  20485. func = funcs[index];
  20486. var funcName = getFuncName(func),
  20487. data = funcName == 'wrapper' ? getData(func) : undefined;
  20488. if (data && isLaziable(data[0]) &&
  20489. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  20490. !data[4].length && data[9] == 1
  20491. ) {
  20492. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  20493. } else {
  20494. wrapper = (func.length == 1 && isLaziable(func))
  20495. ? wrapper[funcName]()
  20496. : wrapper.thru(func);
  20497. }
  20498. }
  20499. return function() {
  20500. var args = arguments,
  20501. value = args[0];
  20502. if (wrapper && args.length == 1 && isArray(value)) {
  20503. return wrapper.plant(value).value();
  20504. }
  20505. var index = 0,
  20506. result = length ? funcs[index].apply(this, args) : value;
  20507. while (++index < length) {
  20508. result = funcs[index].call(this, result);
  20509. }
  20510. return result;
  20511. };
  20512. });
  20513. }
  20514. /**
  20515. * Creates a function that wraps `func` to invoke it with optional `this`
  20516. * binding of `thisArg`, partial application, and currying.
  20517. *
  20518. * @private
  20519. * @param {Function|string} func The function or method name to wrap.
  20520. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20521. * @param {*} [thisArg] The `this` binding of `func`.
  20522. * @param {Array} [partials] The arguments to prepend to those provided to
  20523. * the new function.
  20524. * @param {Array} [holders] The `partials` placeholder indexes.
  20525. * @param {Array} [partialsRight] The arguments to append to those provided
  20526. * to the new function.
  20527. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  20528. * @param {Array} [argPos] The argument positions of the new function.
  20529. * @param {number} [ary] The arity cap of `func`.
  20530. * @param {number} [arity] The arity of `func`.
  20531. * @returns {Function} Returns the new wrapped function.
  20532. */
  20533. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  20534. var isAry = bitmask & WRAP_ARY_FLAG,
  20535. isBind = bitmask & WRAP_BIND_FLAG,
  20536. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  20537. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  20538. isFlip = bitmask & WRAP_FLIP_FLAG,
  20539. Ctor = isBindKey ? undefined : createCtor(func);
  20540. function wrapper() {
  20541. var length = arguments.length,
  20542. args = Array(length),
  20543. index = length;
  20544. while (index--) {
  20545. args[index] = arguments[index];
  20546. }
  20547. if (isCurried) {
  20548. var placeholder = getHolder(wrapper),
  20549. holdersCount = countHolders(args, placeholder);
  20550. }
  20551. if (partials) {
  20552. args = composeArgs(args, partials, holders, isCurried);
  20553. }
  20554. if (partialsRight) {
  20555. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  20556. }
  20557. length -= holdersCount;
  20558. if (isCurried && length < arity) {
  20559. var newHolders = replaceHolders(args, placeholder);
  20560. return createRecurry(
  20561. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  20562. args, newHolders, argPos, ary, arity - length
  20563. );
  20564. }
  20565. var thisBinding = isBind ? thisArg : this,
  20566. fn = isBindKey ? thisBinding[func] : func;
  20567. length = args.length;
  20568. if (argPos) {
  20569. args = reorder(args, argPos);
  20570. } else if (isFlip && length > 1) {
  20571. args.reverse();
  20572. }
  20573. if (isAry && ary < length) {
  20574. args.length = ary;
  20575. }
  20576. if (this && this !== root && this instanceof wrapper) {
  20577. fn = Ctor || createCtor(fn);
  20578. }
  20579. return fn.apply(thisBinding, args);
  20580. }
  20581. return wrapper;
  20582. }
  20583. /**
  20584. * Creates a function like `_.invertBy`.
  20585. *
  20586. * @private
  20587. * @param {Function} setter The function to set accumulator values.
  20588. * @param {Function} toIteratee The function to resolve iteratees.
  20589. * @returns {Function} Returns the new inverter function.
  20590. */
  20591. function createInverter(setter, toIteratee) {
  20592. return function(object, iteratee) {
  20593. return baseInverter(object, setter, toIteratee(iteratee), {});
  20594. };
  20595. }
  20596. /**
  20597. * Creates a function that performs a mathematical operation on two values.
  20598. *
  20599. * @private
  20600. * @param {Function} operator The function to perform the operation.
  20601. * @param {number} [defaultValue] The value used for `undefined` arguments.
  20602. * @returns {Function} Returns the new mathematical operation function.
  20603. */
  20604. function createMathOperation(operator, defaultValue) {
  20605. return function(value, other) {
  20606. var result;
  20607. if (value === undefined && other === undefined) {
  20608. return defaultValue;
  20609. }
  20610. if (value !== undefined) {
  20611. result = value;
  20612. }
  20613. if (other !== undefined) {
  20614. if (result === undefined) {
  20615. return other;
  20616. }
  20617. if (typeof value == 'string' || typeof other == 'string') {
  20618. value = baseToString(value);
  20619. other = baseToString(other);
  20620. } else {
  20621. value = baseToNumber(value);
  20622. other = baseToNumber(other);
  20623. }
  20624. result = operator(value, other);
  20625. }
  20626. return result;
  20627. };
  20628. }
  20629. /**
  20630. * Creates a function like `_.over`.
  20631. *
  20632. * @private
  20633. * @param {Function} arrayFunc The function to iterate over iteratees.
  20634. * @returns {Function} Returns the new over function.
  20635. */
  20636. function createOver(arrayFunc) {
  20637. return flatRest(function(iteratees) {
  20638. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  20639. return baseRest(function(args) {
  20640. var thisArg = this;
  20641. return arrayFunc(iteratees, function(iteratee) {
  20642. return apply(iteratee, thisArg, args);
  20643. });
  20644. });
  20645. });
  20646. }
  20647. /**
  20648. * Creates the padding for `string` based on `length`. The `chars` string
  20649. * is truncated if the number of characters exceeds `length`.
  20650. *
  20651. * @private
  20652. * @param {number} length The padding length.
  20653. * @param {string} [chars=' '] The string used as padding.
  20654. * @returns {string} Returns the padding for `string`.
  20655. */
  20656. function createPadding(length, chars) {
  20657. chars = chars === undefined ? ' ' : baseToString(chars);
  20658. var charsLength = chars.length;
  20659. if (charsLength < 2) {
  20660. return charsLength ? baseRepeat(chars, length) : chars;
  20661. }
  20662. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  20663. return hasUnicode(chars)
  20664. ? castSlice(stringToArray(result), 0, length).join('')
  20665. : result.slice(0, length);
  20666. }
  20667. /**
  20668. * Creates a function that wraps `func` to invoke it with the `this` binding
  20669. * of `thisArg` and `partials` prepended to the arguments it receives.
  20670. *
  20671. * @private
  20672. * @param {Function} func The function to wrap.
  20673. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20674. * @param {*} thisArg The `this` binding of `func`.
  20675. * @param {Array} partials The arguments to prepend to those provided to
  20676. * the new function.
  20677. * @returns {Function} Returns the new wrapped function.
  20678. */
  20679. function createPartial(func, bitmask, thisArg, partials) {
  20680. var isBind = bitmask & WRAP_BIND_FLAG,
  20681. Ctor = createCtor(func);
  20682. function wrapper() {
  20683. var argsIndex = -1,
  20684. argsLength = arguments.length,
  20685. leftIndex = -1,
  20686. leftLength = partials.length,
  20687. args = Array(leftLength + argsLength),
  20688. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20689. while (++leftIndex < leftLength) {
  20690. args[leftIndex] = partials[leftIndex];
  20691. }
  20692. while (argsLength--) {
  20693. args[leftIndex++] = arguments[++argsIndex];
  20694. }
  20695. return apply(fn, isBind ? thisArg : this, args);
  20696. }
  20697. return wrapper;
  20698. }
  20699. /**
  20700. * Creates a `_.range` or `_.rangeRight` function.
  20701. *
  20702. * @private
  20703. * @param {boolean} [fromRight] Specify iterating from right to left.
  20704. * @returns {Function} Returns the new range function.
  20705. */
  20706. function createRange(fromRight) {
  20707. return function(start, end, step) {
  20708. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  20709. end = step = undefined;
  20710. }
  20711. // Ensure the sign of `-0` is preserved.
  20712. start = toFinite(start);
  20713. if (end === undefined) {
  20714. end = start;
  20715. start = 0;
  20716. } else {
  20717. end = toFinite(end);
  20718. }
  20719. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  20720. return baseRange(start, end, step, fromRight);
  20721. };
  20722. }
  20723. /**
  20724. * Creates a function that performs a relational operation on two values.
  20725. *
  20726. * @private
  20727. * @param {Function} operator The function to perform the operation.
  20728. * @returns {Function} Returns the new relational operation function.
  20729. */
  20730. function createRelationalOperation(operator) {
  20731. return function(value, other) {
  20732. if (!(typeof value == 'string' && typeof other == 'string')) {
  20733. value = toNumber(value);
  20734. other = toNumber(other);
  20735. }
  20736. return operator(value, other);
  20737. };
  20738. }
  20739. /**
  20740. * Creates a function that wraps `func` to continue currying.
  20741. *
  20742. * @private
  20743. * @param {Function} func The function to wrap.
  20744. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20745. * @param {Function} wrapFunc The function to create the `func` wrapper.
  20746. * @param {*} placeholder The placeholder value.
  20747. * @param {*} [thisArg] The `this` binding of `func`.
  20748. * @param {Array} [partials] The arguments to prepend to those provided to
  20749. * the new function.
  20750. * @param {Array} [holders] The `partials` placeholder indexes.
  20751. * @param {Array} [argPos] The argument positions of the new function.
  20752. * @param {number} [ary] The arity cap of `func`.
  20753. * @param {number} [arity] The arity of `func`.
  20754. * @returns {Function} Returns the new wrapped function.
  20755. */
  20756. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  20757. var isCurry = bitmask & WRAP_CURRY_FLAG,
  20758. newHolders = isCurry ? holders : undefined,
  20759. newHoldersRight = isCurry ? undefined : holders,
  20760. newPartials = isCurry ? partials : undefined,
  20761. newPartialsRight = isCurry ? undefined : partials;
  20762. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  20763. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  20764. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  20765. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  20766. }
  20767. var newData = [
  20768. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  20769. newHoldersRight, argPos, ary, arity
  20770. ];
  20771. var result = wrapFunc.apply(undefined, newData);
  20772. if (isLaziable(func)) {
  20773. setData(result, newData);
  20774. }
  20775. result.placeholder = placeholder;
  20776. return setWrapToString(result, func, bitmask);
  20777. }
  20778. /**
  20779. * Creates a function like `_.round`.
  20780. *
  20781. * @private
  20782. * @param {string} methodName The name of the `Math` method to use when rounding.
  20783. * @returns {Function} Returns the new round function.
  20784. */
  20785. function createRound(methodName) {
  20786. var func = Math[methodName];
  20787. return function(number, precision) {
  20788. number = toNumber(number);
  20789. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  20790. if (precision && nativeIsFinite(number)) {
  20791. // Shift with exponential notation to avoid floating-point issues.
  20792. // See [MDN](https://mdn.io/round#Examples) for more details.
  20793. var pair = (toString(number) + 'e').split('e'),
  20794. value = func(pair[0] + 'e' + (+pair[1] + precision));
  20795. pair = (toString(value) + 'e').split('e');
  20796. return +(pair[0] + 'e' + (+pair[1] - precision));
  20797. }
  20798. return func(number);
  20799. };
  20800. }
  20801. /**
  20802. * Creates a set object of `values`.
  20803. *
  20804. * @private
  20805. * @param {Array} values The values to add to the set.
  20806. * @returns {Object} Returns the new set.
  20807. */
  20808. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  20809. return new Set(values);
  20810. };
  20811. /**
  20812. * Creates a `_.toPairs` or `_.toPairsIn` function.
  20813. *
  20814. * @private
  20815. * @param {Function} keysFunc The function to get the keys of a given object.
  20816. * @returns {Function} Returns the new pairs function.
  20817. */
  20818. function createToPairs(keysFunc) {
  20819. return function(object) {
  20820. var tag = getTag(object);
  20821. if (tag == mapTag) {
  20822. return mapToArray(object);
  20823. }
  20824. if (tag == setTag) {
  20825. return setToPairs(object);
  20826. }
  20827. return baseToPairs(object, keysFunc(object));
  20828. };
  20829. }
  20830. /**
  20831. * Creates a function that either curries or invokes `func` with optional
  20832. * `this` binding and partially applied arguments.
  20833. *
  20834. * @private
  20835. * @param {Function|string} func The function or method name to wrap.
  20836. * @param {number} bitmask The bitmask flags.
  20837. * 1 - `_.bind`
  20838. * 2 - `_.bindKey`
  20839. * 4 - `_.curry` or `_.curryRight` of a bound function
  20840. * 8 - `_.curry`
  20841. * 16 - `_.curryRight`
  20842. * 32 - `_.partial`
  20843. * 64 - `_.partialRight`
  20844. * 128 - `_.rearg`
  20845. * 256 - `_.ary`
  20846. * 512 - `_.flip`
  20847. * @param {*} [thisArg] The `this` binding of `func`.
  20848. * @param {Array} [partials] The arguments to be partially applied.
  20849. * @param {Array} [holders] The `partials` placeholder indexes.
  20850. * @param {Array} [argPos] The argument positions of the new function.
  20851. * @param {number} [ary] The arity cap of `func`.
  20852. * @param {number} [arity] The arity of `func`.
  20853. * @returns {Function} Returns the new wrapped function.
  20854. */
  20855. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  20856. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  20857. if (!isBindKey && typeof func != 'function') {
  20858. throw new TypeError(FUNC_ERROR_TEXT);
  20859. }
  20860. var length = partials ? partials.length : 0;
  20861. if (!length) {
  20862. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  20863. partials = holders = undefined;
  20864. }
  20865. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  20866. arity = arity === undefined ? arity : toInteger(arity);
  20867. length -= holders ? holders.length : 0;
  20868. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  20869. var partialsRight = partials,
  20870. holdersRight = holders;
  20871. partials = holders = undefined;
  20872. }
  20873. var data = isBindKey ? undefined : getData(func);
  20874. var newData = [
  20875. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  20876. argPos, ary, arity
  20877. ];
  20878. if (data) {
  20879. mergeData(newData, data);
  20880. }
  20881. func = newData[0];
  20882. bitmask = newData[1];
  20883. thisArg = newData[2];
  20884. partials = newData[3];
  20885. holders = newData[4];
  20886. arity = newData[9] = newData[9] === undefined
  20887. ? (isBindKey ? 0 : func.length)
  20888. : nativeMax(newData[9] - length, 0);
  20889. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  20890. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  20891. }
  20892. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  20893. var result = createBind(func, bitmask, thisArg);
  20894. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  20895. result = createCurry(func, bitmask, arity);
  20896. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  20897. result = createPartial(func, bitmask, thisArg, partials);
  20898. } else {
  20899. result = createHybrid.apply(undefined, newData);
  20900. }
  20901. var setter = data ? baseSetData : setData;
  20902. return setWrapToString(setter(result, newData), func, bitmask);
  20903. }
  20904. /**
  20905. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  20906. * of source objects to the destination object for all destination properties
  20907. * that resolve to `undefined`.
  20908. *
  20909. * @private
  20910. * @param {*} objValue The destination value.
  20911. * @param {*} srcValue The source value.
  20912. * @param {string} key The key of the property to assign.
  20913. * @param {Object} object The parent object of `objValue`.
  20914. * @returns {*} Returns the value to assign.
  20915. */
  20916. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  20917. if (objValue === undefined ||
  20918. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  20919. return srcValue;
  20920. }
  20921. return objValue;
  20922. }
  20923. /**
  20924. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  20925. * objects into destination objects that are passed thru.
  20926. *
  20927. * @private
  20928. * @param {*} objValue The destination value.
  20929. * @param {*} srcValue The source value.
  20930. * @param {string} key The key of the property to merge.
  20931. * @param {Object} object The parent object of `objValue`.
  20932. * @param {Object} source The parent object of `srcValue`.
  20933. * @param {Object} [stack] Tracks traversed source values and their merged
  20934. * counterparts.
  20935. * @returns {*} Returns the value to assign.
  20936. */
  20937. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  20938. if (isObject(objValue) && isObject(srcValue)) {
  20939. // Recursively merge objects and arrays (susceptible to call stack limits).
  20940. stack.set(srcValue, objValue);
  20941. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  20942. stack['delete'](srcValue);
  20943. }
  20944. return objValue;
  20945. }
  20946. /**
  20947. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  20948. * objects.
  20949. *
  20950. * @private
  20951. * @param {*} value The value to inspect.
  20952. * @param {string} key The key of the property to inspect.
  20953. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  20954. */
  20955. function customOmitClone(value) {
  20956. return isPlainObject(value) ? undefined : value;
  20957. }
  20958. /**
  20959. * A specialized version of `baseIsEqualDeep` for arrays with support for
  20960. * partial deep comparisons.
  20961. *
  20962. * @private
  20963. * @param {Array} array The array to compare.
  20964. * @param {Array} other The other array to compare.
  20965. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  20966. * @param {Function} customizer The function to customize comparisons.
  20967. * @param {Function} equalFunc The function to determine equivalents of values.
  20968. * @param {Object} stack Tracks traversed `array` and `other` objects.
  20969. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  20970. */
  20971. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  20972. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  20973. arrLength = array.length,
  20974. othLength = other.length;
  20975. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  20976. return false;
  20977. }
  20978. // Assume cyclic values are equal.
  20979. var stacked = stack.get(array);
  20980. if (stacked && stack.get(other)) {
  20981. return stacked == other;
  20982. }
  20983. var index = -1,
  20984. result = true,
  20985. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  20986. stack.set(array, other);
  20987. stack.set(other, array);
  20988. // Ignore non-index properties.
  20989. while (++index < arrLength) {
  20990. var arrValue = array[index],
  20991. othValue = other[index];
  20992. if (customizer) {
  20993. var compared = isPartial
  20994. ? customizer(othValue, arrValue, index, other, array, stack)
  20995. : customizer(arrValue, othValue, index, array, other, stack);
  20996. }
  20997. if (compared !== undefined) {
  20998. if (compared) {
  20999. continue;
  21000. }
  21001. result = false;
  21002. break;
  21003. }
  21004. // Recursively compare arrays (susceptible to call stack limits).
  21005. if (seen) {
  21006. if (!arraySome(other, function(othValue, othIndex) {
  21007. if (!cacheHas(seen, othIndex) &&
  21008. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  21009. return seen.push(othIndex);
  21010. }
  21011. })) {
  21012. result = false;
  21013. break;
  21014. }
  21015. } else if (!(
  21016. arrValue === othValue ||
  21017. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  21018. )) {
  21019. result = false;
  21020. break;
  21021. }
  21022. }
  21023. stack['delete'](array);
  21024. stack['delete'](other);
  21025. return result;
  21026. }
  21027. /**
  21028. * A specialized version of `baseIsEqualDeep` for comparing objects of
  21029. * the same `toStringTag`.
  21030. *
  21031. * **Note:** This function only supports comparing values with tags of
  21032. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  21033. *
  21034. * @private
  21035. * @param {Object} object The object to compare.
  21036. * @param {Object} other The other object to compare.
  21037. * @param {string} tag The `toStringTag` of the objects to compare.
  21038. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21039. * @param {Function} customizer The function to customize comparisons.
  21040. * @param {Function} equalFunc The function to determine equivalents of values.
  21041. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21042. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21043. */
  21044. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  21045. switch (tag) {
  21046. case dataViewTag:
  21047. if ((object.byteLength != other.byteLength) ||
  21048. (object.byteOffset != other.byteOffset)) {
  21049. return false;
  21050. }
  21051. object = object.buffer;
  21052. other = other.buffer;
  21053. case arrayBufferTag:
  21054. if ((object.byteLength != other.byteLength) ||
  21055. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  21056. return false;
  21057. }
  21058. return true;
  21059. case boolTag:
  21060. case dateTag:
  21061. case numberTag:
  21062. // Coerce booleans to `1` or `0` and dates to milliseconds.
  21063. // Invalid dates are coerced to `NaN`.
  21064. return eq(+object, +other);
  21065. case errorTag:
  21066. return object.name == other.name && object.message == other.message;
  21067. case regexpTag:
  21068. case stringTag:
  21069. // Coerce regexes to strings and treat strings, primitives and objects,
  21070. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  21071. // for more details.
  21072. return object == (other + '');
  21073. case mapTag:
  21074. var convert = mapToArray;
  21075. case setTag:
  21076. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  21077. convert || (convert = setToArray);
  21078. if (object.size != other.size && !isPartial) {
  21079. return false;
  21080. }
  21081. // Assume cyclic values are equal.
  21082. var stacked = stack.get(object);
  21083. if (stacked) {
  21084. return stacked == other;
  21085. }
  21086. bitmask |= COMPARE_UNORDERED_FLAG;
  21087. // Recursively compare objects (susceptible to call stack limits).
  21088. stack.set(object, other);
  21089. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  21090. stack['delete'](object);
  21091. return result;
  21092. case symbolTag:
  21093. if (symbolValueOf) {
  21094. return symbolValueOf.call(object) == symbolValueOf.call(other);
  21095. }
  21096. }
  21097. return false;
  21098. }
  21099. /**
  21100. * A specialized version of `baseIsEqualDeep` for objects with support for
  21101. * partial deep comparisons.
  21102. *
  21103. * @private
  21104. * @param {Object} object The object to compare.
  21105. * @param {Object} other The other object to compare.
  21106. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21107. * @param {Function} customizer The function to customize comparisons.
  21108. * @param {Function} equalFunc The function to determine equivalents of values.
  21109. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21110. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21111. */
  21112. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  21113. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  21114. objProps = getAllKeys(object),
  21115. objLength = objProps.length,
  21116. othProps = getAllKeys(other),
  21117. othLength = othProps.length;
  21118. if (objLength != othLength && !isPartial) {
  21119. return false;
  21120. }
  21121. var index = objLength;
  21122. while (index--) {
  21123. var key = objProps[index];
  21124. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  21125. return false;
  21126. }
  21127. }
  21128. // Assume cyclic values are equal.
  21129. var stacked = stack.get(object);
  21130. if (stacked && stack.get(other)) {
  21131. return stacked == other;
  21132. }
  21133. var result = true;
  21134. stack.set(object, other);
  21135. stack.set(other, object);
  21136. var skipCtor = isPartial;
  21137. while (++index < objLength) {
  21138. key = objProps[index];
  21139. var objValue = object[key],
  21140. othValue = other[key];
  21141. if (customizer) {
  21142. var compared = isPartial
  21143. ? customizer(othValue, objValue, key, other, object, stack)
  21144. : customizer(objValue, othValue, key, object, other, stack);
  21145. }
  21146. // Recursively compare objects (susceptible to call stack limits).
  21147. if (!(compared === undefined
  21148. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  21149. : compared
  21150. )) {
  21151. result = false;
  21152. break;
  21153. }
  21154. skipCtor || (skipCtor = key == 'constructor');
  21155. }
  21156. if (result && !skipCtor) {
  21157. var objCtor = object.constructor,
  21158. othCtor = other.constructor;
  21159. // Non `Object` object instances with different constructors are not equal.
  21160. if (objCtor != othCtor &&
  21161. ('constructor' in object && 'constructor' in other) &&
  21162. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  21163. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  21164. result = false;
  21165. }
  21166. }
  21167. stack['delete'](object);
  21168. stack['delete'](other);
  21169. return result;
  21170. }
  21171. /**
  21172. * A specialized version of `baseRest` which flattens the rest array.
  21173. *
  21174. * @private
  21175. * @param {Function} func The function to apply a rest parameter to.
  21176. * @returns {Function} Returns the new function.
  21177. */
  21178. function flatRest(func) {
  21179. return setToString(overRest(func, undefined, flatten), func + '');
  21180. }
  21181. /**
  21182. * Creates an array of own enumerable property names and symbols of `object`.
  21183. *
  21184. * @private
  21185. * @param {Object} object The object to query.
  21186. * @returns {Array} Returns the array of property names and symbols.
  21187. */
  21188. function getAllKeys(object) {
  21189. return baseGetAllKeys(object, keys, getSymbols);
  21190. }
  21191. /**
  21192. * Creates an array of own and inherited enumerable property names and
  21193. * symbols of `object`.
  21194. *
  21195. * @private
  21196. * @param {Object} object The object to query.
  21197. * @returns {Array} Returns the array of property names and symbols.
  21198. */
  21199. function getAllKeysIn(object) {
  21200. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  21201. }
  21202. /**
  21203. * Gets metadata for `func`.
  21204. *
  21205. * @private
  21206. * @param {Function} func The function to query.
  21207. * @returns {*} Returns the metadata for `func`.
  21208. */
  21209. var getData = !metaMap ? noop : function(func) {
  21210. return metaMap.get(func);
  21211. };
  21212. /**
  21213. * Gets the name of `func`.
  21214. *
  21215. * @private
  21216. * @param {Function} func The function to query.
  21217. * @returns {string} Returns the function name.
  21218. */
  21219. function getFuncName(func) {
  21220. var result = (func.name + ''),
  21221. array = realNames[result],
  21222. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  21223. while (length--) {
  21224. var data = array[length],
  21225. otherFunc = data.func;
  21226. if (otherFunc == null || otherFunc == func) {
  21227. return data.name;
  21228. }
  21229. }
  21230. return result;
  21231. }
  21232. /**
  21233. * Gets the argument placeholder value for `func`.
  21234. *
  21235. * @private
  21236. * @param {Function} func The function to inspect.
  21237. * @returns {*} Returns the placeholder value.
  21238. */
  21239. function getHolder(func) {
  21240. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  21241. return object.placeholder;
  21242. }
  21243. /**
  21244. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  21245. * this function returns the custom method, otherwise it returns `baseIteratee`.
  21246. * If arguments are provided, the chosen function is invoked with them and
  21247. * its result is returned.
  21248. *
  21249. * @private
  21250. * @param {*} [value] The value to convert to an iteratee.
  21251. * @param {number} [arity] The arity of the created iteratee.
  21252. * @returns {Function} Returns the chosen function or its result.
  21253. */
  21254. function getIteratee() {
  21255. var result = lodash.iteratee || iteratee;
  21256. result = result === iteratee ? baseIteratee : result;
  21257. return arguments.length ? result(arguments[0], arguments[1]) : result;
  21258. }
  21259. /**
  21260. * Gets the data for `map`.
  21261. *
  21262. * @private
  21263. * @param {Object} map The map to query.
  21264. * @param {string} key The reference key.
  21265. * @returns {*} Returns the map data.
  21266. */
  21267. function getMapData(map, key) {
  21268. var data = map.__data__;
  21269. return isKeyable(key)
  21270. ? data[typeof key == 'string' ? 'string' : 'hash']
  21271. : data.map;
  21272. }
  21273. /**
  21274. * Gets the property names, values, and compare flags of `object`.
  21275. *
  21276. * @private
  21277. * @param {Object} object The object to query.
  21278. * @returns {Array} Returns the match data of `object`.
  21279. */
  21280. function getMatchData(object) {
  21281. var result = keys(object),
  21282. length = result.length;
  21283. while (length--) {
  21284. var key = result[length],
  21285. value = object[key];
  21286. result[length] = [key, value, isStrictComparable(value)];
  21287. }
  21288. return result;
  21289. }
  21290. /**
  21291. * Gets the native function at `key` of `object`.
  21292. *
  21293. * @private
  21294. * @param {Object} object The object to query.
  21295. * @param {string} key The key of the method to get.
  21296. * @returns {*} Returns the function if it's native, else `undefined`.
  21297. */
  21298. function getNative(object, key) {
  21299. var value = getValue(object, key);
  21300. return baseIsNative(value) ? value : undefined;
  21301. }
  21302. /**
  21303. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  21304. *
  21305. * @private
  21306. * @param {*} value The value to query.
  21307. * @returns {string} Returns the raw `toStringTag`.
  21308. */
  21309. function getRawTag(value) {
  21310. var isOwn = hasOwnProperty.call(value, symToStringTag),
  21311. tag = value[symToStringTag];
  21312. try {
  21313. value[symToStringTag] = undefined;
  21314. var unmasked = true;
  21315. } catch (e) {}
  21316. var result = nativeObjectToString.call(value);
  21317. if (unmasked) {
  21318. if (isOwn) {
  21319. value[symToStringTag] = tag;
  21320. } else {
  21321. delete value[symToStringTag];
  21322. }
  21323. }
  21324. return result;
  21325. }
  21326. /**
  21327. * Creates an array of the own enumerable symbols of `object`.
  21328. *
  21329. * @private
  21330. * @param {Object} object The object to query.
  21331. * @returns {Array} Returns the array of symbols.
  21332. */
  21333. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  21334. if (object == null) {
  21335. return [];
  21336. }
  21337. object = Object(object);
  21338. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  21339. return propertyIsEnumerable.call(object, symbol);
  21340. });
  21341. };
  21342. /**
  21343. * Creates an array of the own and inherited enumerable symbols of `object`.
  21344. *
  21345. * @private
  21346. * @param {Object} object The object to query.
  21347. * @returns {Array} Returns the array of symbols.
  21348. */
  21349. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  21350. var result = [];
  21351. while (object) {
  21352. arrayPush(result, getSymbols(object));
  21353. object = getPrototype(object);
  21354. }
  21355. return result;
  21356. };
  21357. /**
  21358. * Gets the `toStringTag` of `value`.
  21359. *
  21360. * @private
  21361. * @param {*} value The value to query.
  21362. * @returns {string} Returns the `toStringTag`.
  21363. */
  21364. var getTag = baseGetTag;
  21365. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  21366. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  21367. (Map && getTag(new Map) != mapTag) ||
  21368. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  21369. (Set && getTag(new Set) != setTag) ||
  21370. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  21371. getTag = function(value) {
  21372. var result = baseGetTag(value),
  21373. Ctor = result == objectTag ? value.constructor : undefined,
  21374. ctorString = Ctor ? toSource(Ctor) : '';
  21375. if (ctorString) {
  21376. switch (ctorString) {
  21377. case dataViewCtorString: return dataViewTag;
  21378. case mapCtorString: return mapTag;
  21379. case promiseCtorString: return promiseTag;
  21380. case setCtorString: return setTag;
  21381. case weakMapCtorString: return weakMapTag;
  21382. }
  21383. }
  21384. return result;
  21385. };
  21386. }
  21387. /**
  21388. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  21389. *
  21390. * @private
  21391. * @param {number} start The start of the view.
  21392. * @param {number} end The end of the view.
  21393. * @param {Array} transforms The transformations to apply to the view.
  21394. * @returns {Object} Returns an object containing the `start` and `end`
  21395. * positions of the view.
  21396. */
  21397. function getView(start, end, transforms) {
  21398. var index = -1,
  21399. length = transforms.length;
  21400. while (++index < length) {
  21401. var data = transforms[index],
  21402. size = data.size;
  21403. switch (data.type) {
  21404. case 'drop': start += size; break;
  21405. case 'dropRight': end -= size; break;
  21406. case 'take': end = nativeMin(end, start + size); break;
  21407. case 'takeRight': start = nativeMax(start, end - size); break;
  21408. }
  21409. }
  21410. return { 'start': start, 'end': end };
  21411. }
  21412. /**
  21413. * Extracts wrapper details from the `source` body comment.
  21414. *
  21415. * @private
  21416. * @param {string} source The source to inspect.
  21417. * @returns {Array} Returns the wrapper details.
  21418. */
  21419. function getWrapDetails(source) {
  21420. var match = source.match(reWrapDetails);
  21421. return match ? match[1].split(reSplitDetails) : [];
  21422. }
  21423. /**
  21424. * Checks if `path` exists on `object`.
  21425. *
  21426. * @private
  21427. * @param {Object} object The object to query.
  21428. * @param {Array|string} path The path to check.
  21429. * @param {Function} hasFunc The function to check properties.
  21430. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  21431. */
  21432. function hasPath(object, path, hasFunc) {
  21433. path = castPath(path, object);
  21434. var index = -1,
  21435. length = path.length,
  21436. result = false;
  21437. while (++index < length) {
  21438. var key = toKey(path[index]);
  21439. if (!(result = object != null && hasFunc(object, key))) {
  21440. break;
  21441. }
  21442. object = object[key];
  21443. }
  21444. if (result || ++index != length) {
  21445. return result;
  21446. }
  21447. length = object == null ? 0 : object.length;
  21448. return !!length && isLength(length) && isIndex(key, length) &&
  21449. (isArray(object) || isArguments(object));
  21450. }
  21451. /**
  21452. * Initializes an array clone.
  21453. *
  21454. * @private
  21455. * @param {Array} array The array to clone.
  21456. * @returns {Array} Returns the initialized clone.
  21457. */
  21458. function initCloneArray(array) {
  21459. var length = array.length,
  21460. result = new array.constructor(length);
  21461. // Add properties assigned by `RegExp#exec`.
  21462. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  21463. result.index = array.index;
  21464. result.input = array.input;
  21465. }
  21466. return result;
  21467. }
  21468. /**
  21469. * Initializes an object clone.
  21470. *
  21471. * @private
  21472. * @param {Object} object The object to clone.
  21473. * @returns {Object} Returns the initialized clone.
  21474. */
  21475. function initCloneObject(object) {
  21476. return (typeof object.constructor == 'function' && !isPrototype(object))
  21477. ? baseCreate(getPrototype(object))
  21478. : {};
  21479. }
  21480. /**
  21481. * Initializes an object clone based on its `toStringTag`.
  21482. *
  21483. * **Note:** This function only supports cloning values with tags of
  21484. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  21485. *
  21486. * @private
  21487. * @param {Object} object The object to clone.
  21488. * @param {string} tag The `toStringTag` of the object to clone.
  21489. * @param {boolean} [isDeep] Specify a deep clone.
  21490. * @returns {Object} Returns the initialized clone.
  21491. */
  21492. function initCloneByTag(object, tag, isDeep) {
  21493. var Ctor = object.constructor;
  21494. switch (tag) {
  21495. case arrayBufferTag:
  21496. return cloneArrayBuffer(object);
  21497. case boolTag:
  21498. case dateTag:
  21499. return new Ctor(+object);
  21500. case dataViewTag:
  21501. return cloneDataView(object, isDeep);
  21502. case float32Tag: case float64Tag:
  21503. case int8Tag: case int16Tag: case int32Tag:
  21504. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  21505. return cloneTypedArray(object, isDeep);
  21506. case mapTag:
  21507. return new Ctor;
  21508. case numberTag:
  21509. case stringTag:
  21510. return new Ctor(object);
  21511. case regexpTag:
  21512. return cloneRegExp(object);
  21513. case setTag:
  21514. return new Ctor;
  21515. case symbolTag:
  21516. return cloneSymbol(object);
  21517. }
  21518. }
  21519. /**
  21520. * Inserts wrapper `details` in a comment at the top of the `source` body.
  21521. *
  21522. * @private
  21523. * @param {string} source The source to modify.
  21524. * @returns {Array} details The details to insert.
  21525. * @returns {string} Returns the modified source.
  21526. */
  21527. function insertWrapDetails(source, details) {
  21528. var length = details.length;
  21529. if (!length) {
  21530. return source;
  21531. }
  21532. var lastIndex = length - 1;
  21533. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  21534. details = details.join(length > 2 ? ', ' : ' ');
  21535. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  21536. }
  21537. /**
  21538. * Checks if `value` is a flattenable `arguments` object or array.
  21539. *
  21540. * @private
  21541. * @param {*} value The value to check.
  21542. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  21543. */
  21544. function isFlattenable(value) {
  21545. return isArray(value) || isArguments(value) ||
  21546. !!(spreadableSymbol && value && value[spreadableSymbol]);
  21547. }
  21548. /**
  21549. * Checks if `value` is a valid array-like index.
  21550. *
  21551. * @private
  21552. * @param {*} value The value to check.
  21553. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  21554. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  21555. */
  21556. function isIndex(value, length) {
  21557. var type = typeof value;
  21558. length = length == null ? MAX_SAFE_INTEGER : length;
  21559. return !!length &&
  21560. (type == 'number' ||
  21561. (type != 'symbol' && reIsUint.test(value))) &&
  21562. (value > -1 && value % 1 == 0 && value < length);
  21563. }
  21564. /**
  21565. * Checks if the given arguments are from an iteratee call.
  21566. *
  21567. * @private
  21568. * @param {*} value The potential iteratee value argument.
  21569. * @param {*} index The potential iteratee index or key argument.
  21570. * @param {*} object The potential iteratee object argument.
  21571. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  21572. * else `false`.
  21573. */
  21574. function isIterateeCall(value, index, object) {
  21575. if (!isObject(object)) {
  21576. return false;
  21577. }
  21578. var type = typeof index;
  21579. if (type == 'number'
  21580. ? (isArrayLike(object) && isIndex(index, object.length))
  21581. : (type == 'string' && index in object)
  21582. ) {
  21583. return eq(object[index], value);
  21584. }
  21585. return false;
  21586. }
  21587. /**
  21588. * Checks if `value` is a property name and not a property path.
  21589. *
  21590. * @private
  21591. * @param {*} value The value to check.
  21592. * @param {Object} [object] The object to query keys on.
  21593. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  21594. */
  21595. function isKey(value, object) {
  21596. if (isArray(value)) {
  21597. return false;
  21598. }
  21599. var type = typeof value;
  21600. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  21601. value == null || isSymbol(value)) {
  21602. return true;
  21603. }
  21604. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  21605. (object != null && value in Object(object));
  21606. }
  21607. /**
  21608. * Checks if `value` is suitable for use as unique object key.
  21609. *
  21610. * @private
  21611. * @param {*} value The value to check.
  21612. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  21613. */
  21614. function isKeyable(value) {
  21615. var type = typeof value;
  21616. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  21617. ? (value !== '__proto__')
  21618. : (value === null);
  21619. }
  21620. /**
  21621. * Checks if `func` has a lazy counterpart.
  21622. *
  21623. * @private
  21624. * @param {Function} func The function to check.
  21625. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  21626. * else `false`.
  21627. */
  21628. function isLaziable(func) {
  21629. var funcName = getFuncName(func),
  21630. other = lodash[funcName];
  21631. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  21632. return false;
  21633. }
  21634. if (func === other) {
  21635. return true;
  21636. }
  21637. var data = getData(other);
  21638. return !!data && func === data[0];
  21639. }
  21640. /**
  21641. * Checks if `func` has its source masked.
  21642. *
  21643. * @private
  21644. * @param {Function} func The function to check.
  21645. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  21646. */
  21647. function isMasked(func) {
  21648. return !!maskSrcKey && (maskSrcKey in func);
  21649. }
  21650. /**
  21651. * Checks if `func` is capable of being masked.
  21652. *
  21653. * @private
  21654. * @param {*} value The value to check.
  21655. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  21656. */
  21657. var isMaskable = coreJsData ? isFunction : stubFalse;
  21658. /**
  21659. * Checks if `value` is likely a prototype object.
  21660. *
  21661. * @private
  21662. * @param {*} value The value to check.
  21663. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  21664. */
  21665. function isPrototype(value) {
  21666. var Ctor = value && value.constructor,
  21667. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  21668. return value === proto;
  21669. }
  21670. /**
  21671. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  21672. *
  21673. * @private
  21674. * @param {*} value The value to check.
  21675. * @returns {boolean} Returns `true` if `value` if suitable for strict
  21676. * equality comparisons, else `false`.
  21677. */
  21678. function isStrictComparable(value) {
  21679. return value === value && !isObject(value);
  21680. }
  21681. /**
  21682. * A specialized version of `matchesProperty` for source values suitable
  21683. * for strict equality comparisons, i.e. `===`.
  21684. *
  21685. * @private
  21686. * @param {string} key The key of the property to get.
  21687. * @param {*} srcValue The value to match.
  21688. * @returns {Function} Returns the new spec function.
  21689. */
  21690. function matchesStrictComparable(key, srcValue) {
  21691. return function(object) {
  21692. if (object == null) {
  21693. return false;
  21694. }
  21695. return object[key] === srcValue &&
  21696. (srcValue !== undefined || (key in Object(object)));
  21697. };
  21698. }
  21699. /**
  21700. * A specialized version of `_.memoize` which clears the memoized function's
  21701. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  21702. *
  21703. * @private
  21704. * @param {Function} func The function to have its output memoized.
  21705. * @returns {Function} Returns the new memoized function.
  21706. */
  21707. function memoizeCapped(func) {
  21708. var result = memoize(func, function(key) {
  21709. if (cache.size === MAX_MEMOIZE_SIZE) {
  21710. cache.clear();
  21711. }
  21712. return key;
  21713. });
  21714. var cache = result.cache;
  21715. return result;
  21716. }
  21717. /**
  21718. * Merges the function metadata of `source` into `data`.
  21719. *
  21720. * Merging metadata reduces the number of wrappers used to invoke a function.
  21721. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  21722. * may be applied regardless of execution order. Methods like `_.ary` and
  21723. * `_.rearg` modify function arguments, making the order in which they are
  21724. * executed important, preventing the merging of metadata. However, we make
  21725. * an exception for a safe combined case where curried functions have `_.ary`
  21726. * and or `_.rearg` applied.
  21727. *
  21728. * @private
  21729. * @param {Array} data The destination metadata.
  21730. * @param {Array} source The source metadata.
  21731. * @returns {Array} Returns `data`.
  21732. */
  21733. function mergeData(data, source) {
  21734. var bitmask = data[1],
  21735. srcBitmask = source[1],
  21736. newBitmask = bitmask | srcBitmask,
  21737. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  21738. var isCombo =
  21739. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  21740. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  21741. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  21742. // Exit early if metadata can't be merged.
  21743. if (!(isCommon || isCombo)) {
  21744. return data;
  21745. }
  21746. // Use source `thisArg` if available.
  21747. if (srcBitmask & WRAP_BIND_FLAG) {
  21748. data[2] = source[2];
  21749. // Set when currying a bound function.
  21750. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  21751. }
  21752. // Compose partial arguments.
  21753. var value = source[3];
  21754. if (value) {
  21755. var partials = data[3];
  21756. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  21757. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  21758. }
  21759. // Compose partial right arguments.
  21760. value = source[5];
  21761. if (value) {
  21762. partials = data[5];
  21763. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  21764. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  21765. }
  21766. // Use source `argPos` if available.
  21767. value = source[7];
  21768. if (value) {
  21769. data[7] = value;
  21770. }
  21771. // Use source `ary` if it's smaller.
  21772. if (srcBitmask & WRAP_ARY_FLAG) {
  21773. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  21774. }
  21775. // Use source `arity` if one is not provided.
  21776. if (data[9] == null) {
  21777. data[9] = source[9];
  21778. }
  21779. // Use source `func` and merge bitmasks.
  21780. data[0] = source[0];
  21781. data[1] = newBitmask;
  21782. return data;
  21783. }
  21784. /**
  21785. * This function is like
  21786. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  21787. * except that it includes inherited enumerable properties.
  21788. *
  21789. * @private
  21790. * @param {Object} object The object to query.
  21791. * @returns {Array} Returns the array of property names.
  21792. */
  21793. function nativeKeysIn(object) {
  21794. var result = [];
  21795. if (object != null) {
  21796. for (var key in Object(object)) {
  21797. result.push(key);
  21798. }
  21799. }
  21800. return result;
  21801. }
  21802. /**
  21803. * Converts `value` to a string using `Object.prototype.toString`.
  21804. *
  21805. * @private
  21806. * @param {*} value The value to convert.
  21807. * @returns {string} Returns the converted string.
  21808. */
  21809. function objectToString(value) {
  21810. return nativeObjectToString.call(value);
  21811. }
  21812. /**
  21813. * A specialized version of `baseRest` which transforms the rest array.
  21814. *
  21815. * @private
  21816. * @param {Function} func The function to apply a rest parameter to.
  21817. * @param {number} [start=func.length-1] The start position of the rest parameter.
  21818. * @param {Function} transform The rest array transform.
  21819. * @returns {Function} Returns the new function.
  21820. */
  21821. function overRest(func, start, transform) {
  21822. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  21823. return function() {
  21824. var args = arguments,
  21825. index = -1,
  21826. length = nativeMax(args.length - start, 0),
  21827. array = Array(length);
  21828. while (++index < length) {
  21829. array[index] = args[start + index];
  21830. }
  21831. index = -1;
  21832. var otherArgs = Array(start + 1);
  21833. while (++index < start) {
  21834. otherArgs[index] = args[index];
  21835. }
  21836. otherArgs[start] = transform(array);
  21837. return apply(func, this, otherArgs);
  21838. };
  21839. }
  21840. /**
  21841. * Gets the parent value at `path` of `object`.
  21842. *
  21843. * @private
  21844. * @param {Object} object The object to query.
  21845. * @param {Array} path The path to get the parent value of.
  21846. * @returns {*} Returns the parent value.
  21847. */
  21848. function parent(object, path) {
  21849. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  21850. }
  21851. /**
  21852. * Reorder `array` according to the specified indexes where the element at
  21853. * the first index is assigned as the first element, the element at
  21854. * the second index is assigned as the second element, and so on.
  21855. *
  21856. * @private
  21857. * @param {Array} array The array to reorder.
  21858. * @param {Array} indexes The arranged array indexes.
  21859. * @returns {Array} Returns `array`.
  21860. */
  21861. function reorder(array, indexes) {
  21862. var arrLength = array.length,
  21863. length = nativeMin(indexes.length, arrLength),
  21864. oldArray = copyArray(array);
  21865. while (length--) {
  21866. var index = indexes[length];
  21867. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  21868. }
  21869. return array;
  21870. }
  21871. /**
  21872. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  21873. *
  21874. * @private
  21875. * @param {Object} object The object to query.
  21876. * @param {string} key The key of the property to get.
  21877. * @returns {*} Returns the property value.
  21878. */
  21879. function safeGet(object, key) {
  21880. if (key === 'constructor' && typeof object[key] === 'function') {
  21881. return;
  21882. }
  21883. if (key == '__proto__') {
  21884. return;
  21885. }
  21886. return object[key];
  21887. }
  21888. /**
  21889. * Sets metadata for `func`.
  21890. *
  21891. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  21892. * period of time, it will trip its breaker and transition to an identity
  21893. * function to avoid garbage collection pauses in V8. See
  21894. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  21895. * for more details.
  21896. *
  21897. * @private
  21898. * @param {Function} func The function to associate metadata with.
  21899. * @param {*} data The metadata.
  21900. * @returns {Function} Returns `func`.
  21901. */
  21902. var setData = shortOut(baseSetData);
  21903. /**
  21904. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  21905. *
  21906. * @private
  21907. * @param {Function} func The function to delay.
  21908. * @param {number} wait The number of milliseconds to delay invocation.
  21909. * @returns {number|Object} Returns the timer id or timeout object.
  21910. */
  21911. var setTimeout = ctxSetTimeout || function(func, wait) {
  21912. return root.setTimeout(func, wait);
  21913. };
  21914. /**
  21915. * Sets the `toString` method of `func` to return `string`.
  21916. *
  21917. * @private
  21918. * @param {Function} func The function to modify.
  21919. * @param {Function} string The `toString` result.
  21920. * @returns {Function} Returns `func`.
  21921. */
  21922. var setToString = shortOut(baseSetToString);
  21923. /**
  21924. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  21925. * with wrapper details in a comment at the top of the source body.
  21926. *
  21927. * @private
  21928. * @param {Function} wrapper The function to modify.
  21929. * @param {Function} reference The reference function.
  21930. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  21931. * @returns {Function} Returns `wrapper`.
  21932. */
  21933. function setWrapToString(wrapper, reference, bitmask) {
  21934. var source = (reference + '');
  21935. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  21936. }
  21937. /**
  21938. * Creates a function that'll short out and invoke `identity` instead
  21939. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  21940. * milliseconds.
  21941. *
  21942. * @private
  21943. * @param {Function} func The function to restrict.
  21944. * @returns {Function} Returns the new shortable function.
  21945. */
  21946. function shortOut(func) {
  21947. var count = 0,
  21948. lastCalled = 0;
  21949. return function() {
  21950. var stamp = nativeNow(),
  21951. remaining = HOT_SPAN - (stamp - lastCalled);
  21952. lastCalled = stamp;
  21953. if (remaining > 0) {
  21954. if (++count >= HOT_COUNT) {
  21955. return arguments[0];
  21956. }
  21957. } else {
  21958. count = 0;
  21959. }
  21960. return func.apply(undefined, arguments);
  21961. };
  21962. }
  21963. /**
  21964. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  21965. *
  21966. * @private
  21967. * @param {Array} array The array to shuffle.
  21968. * @param {number} [size=array.length] The size of `array`.
  21969. * @returns {Array} Returns `array`.
  21970. */
  21971. function shuffleSelf(array, size) {
  21972. var index = -1,
  21973. length = array.length,
  21974. lastIndex = length - 1;
  21975. size = size === undefined ? length : size;
  21976. while (++index < size) {
  21977. var rand = baseRandom(index, lastIndex),
  21978. value = array[rand];
  21979. array[rand] = array[index];
  21980. array[index] = value;
  21981. }
  21982. array.length = size;
  21983. return array;
  21984. }
  21985. /**
  21986. * Converts `string` to a property path array.
  21987. *
  21988. * @private
  21989. * @param {string} string The string to convert.
  21990. * @returns {Array} Returns the property path array.
  21991. */
  21992. var stringToPath = memoizeCapped(function(string) {
  21993. var result = [];
  21994. if (string.charCodeAt(0) === 46 /* . */) {
  21995. result.push('');
  21996. }
  21997. string.replace(rePropName, function(match, number, quote, subString) {
  21998. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  21999. });
  22000. return result;
  22001. });
  22002. /**
  22003. * Converts `value` to a string key if it's not a string or symbol.
  22004. *
  22005. * @private
  22006. * @param {*} value The value to inspect.
  22007. * @returns {string|symbol} Returns the key.
  22008. */
  22009. function toKey(value) {
  22010. if (typeof value == 'string' || isSymbol(value)) {
  22011. return value;
  22012. }
  22013. var result = (value + '');
  22014. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  22015. }
  22016. /**
  22017. * Converts `func` to its source code.
  22018. *
  22019. * @private
  22020. * @param {Function} func The function to convert.
  22021. * @returns {string} Returns the source code.
  22022. */
  22023. function toSource(func) {
  22024. if (func != null) {
  22025. try {
  22026. return funcToString.call(func);
  22027. } catch (e) {}
  22028. try {
  22029. return (func + '');
  22030. } catch (e) {}
  22031. }
  22032. return '';
  22033. }
  22034. /**
  22035. * Updates wrapper `details` based on `bitmask` flags.
  22036. *
  22037. * @private
  22038. * @returns {Array} details The details to modify.
  22039. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  22040. * @returns {Array} Returns `details`.
  22041. */
  22042. function updateWrapDetails(details, bitmask) {
  22043. arrayEach(wrapFlags, function(pair) {
  22044. var value = '_.' + pair[0];
  22045. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  22046. details.push(value);
  22047. }
  22048. });
  22049. return details.sort();
  22050. }
  22051. /**
  22052. * Creates a clone of `wrapper`.
  22053. *
  22054. * @private
  22055. * @param {Object} wrapper The wrapper to clone.
  22056. * @returns {Object} Returns the cloned wrapper.
  22057. */
  22058. function wrapperClone(wrapper) {
  22059. if (wrapper instanceof LazyWrapper) {
  22060. return wrapper.clone();
  22061. }
  22062. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  22063. result.__actions__ = copyArray(wrapper.__actions__);
  22064. result.__index__ = wrapper.__index__;
  22065. result.__values__ = wrapper.__values__;
  22066. return result;
  22067. }
  22068. /*------------------------------------------------------------------------*/
  22069. /**
  22070. * Creates an array of elements split into groups the length of `size`.
  22071. * If `array` can't be split evenly, the final chunk will be the remaining
  22072. * elements.
  22073. *
  22074. * @static
  22075. * @memberOf _
  22076. * @since 3.0.0
  22077. * @category Array
  22078. * @param {Array} array The array to process.
  22079. * @param {number} [size=1] The length of each chunk
  22080. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22081. * @returns {Array} Returns the new array of chunks.
  22082. * @example
  22083. *
  22084. * _.chunk(['a', 'b', 'c', 'd'], 2);
  22085. * // => [['a', 'b'], ['c', 'd']]
  22086. *
  22087. * _.chunk(['a', 'b', 'c', 'd'], 3);
  22088. * // => [['a', 'b', 'c'], ['d']]
  22089. */
  22090. function chunk(array, size, guard) {
  22091. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  22092. size = 1;
  22093. } else {
  22094. size = nativeMax(toInteger(size), 0);
  22095. }
  22096. var length = array == null ? 0 : array.length;
  22097. if (!length || size < 1) {
  22098. return [];
  22099. }
  22100. var index = 0,
  22101. resIndex = 0,
  22102. result = Array(nativeCeil(length / size));
  22103. while (index < length) {
  22104. result[resIndex++] = baseSlice(array, index, (index += size));
  22105. }
  22106. return result;
  22107. }
  22108. /**
  22109. * Creates an array with all falsey values removed. The values `false`, `null`,
  22110. * `0`, `""`, `undefined`, and `NaN` are falsey.
  22111. *
  22112. * @static
  22113. * @memberOf _
  22114. * @since 0.1.0
  22115. * @category Array
  22116. * @param {Array} array The array to compact.
  22117. * @returns {Array} Returns the new array of filtered values.
  22118. * @example
  22119. *
  22120. * _.compact([0, 1, false, 2, '', 3]);
  22121. * // => [1, 2, 3]
  22122. */
  22123. function compact(array) {
  22124. var index = -1,
  22125. length = array == null ? 0 : array.length,
  22126. resIndex = 0,
  22127. result = [];
  22128. while (++index < length) {
  22129. var value = array[index];
  22130. if (value) {
  22131. result[resIndex++] = value;
  22132. }
  22133. }
  22134. return result;
  22135. }
  22136. /**
  22137. * Creates a new array concatenating `array` with any additional arrays
  22138. * and/or values.
  22139. *
  22140. * @static
  22141. * @memberOf _
  22142. * @since 4.0.0
  22143. * @category Array
  22144. * @param {Array} array The array to concatenate.
  22145. * @param {...*} [values] The values to concatenate.
  22146. * @returns {Array} Returns the new concatenated array.
  22147. * @example
  22148. *
  22149. * var array = [1];
  22150. * var other = _.concat(array, 2, [3], [[4]]);
  22151. *
  22152. * console.log(other);
  22153. * // => [1, 2, 3, [4]]
  22154. *
  22155. * console.log(array);
  22156. * // => [1]
  22157. */
  22158. function concat() {
  22159. var length = arguments.length;
  22160. if (!length) {
  22161. return [];
  22162. }
  22163. var args = Array(length - 1),
  22164. array = arguments[0],
  22165. index = length;
  22166. while (index--) {
  22167. args[index - 1] = arguments[index];
  22168. }
  22169. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  22170. }
  22171. /**
  22172. * Creates an array of `array` values not included in the other given arrays
  22173. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22174. * for equality comparisons. The order and references of result values are
  22175. * determined by the first array.
  22176. *
  22177. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  22178. *
  22179. * @static
  22180. * @memberOf _
  22181. * @since 0.1.0
  22182. * @category Array
  22183. * @param {Array} array The array to inspect.
  22184. * @param {...Array} [values] The values to exclude.
  22185. * @returns {Array} Returns the new array of filtered values.
  22186. * @see _.without, _.xor
  22187. * @example
  22188. *
  22189. * _.difference([2, 1], [2, 3]);
  22190. * // => [1]
  22191. */
  22192. var difference = baseRest(function(array, values) {
  22193. return isArrayLikeObject(array)
  22194. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  22195. : [];
  22196. });
  22197. /**
  22198. * This method is like `_.difference` except that it accepts `iteratee` which
  22199. * is invoked for each element of `array` and `values` to generate the criterion
  22200. * by which they're compared. The order and references of result values are
  22201. * determined by the first array. The iteratee is invoked with one argument:
  22202. * (value).
  22203. *
  22204. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  22205. *
  22206. * @static
  22207. * @memberOf _
  22208. * @since 4.0.0
  22209. * @category Array
  22210. * @param {Array} array The array to inspect.
  22211. * @param {...Array} [values] The values to exclude.
  22212. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22213. * @returns {Array} Returns the new array of filtered values.
  22214. * @example
  22215. *
  22216. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22217. * // => [1.2]
  22218. *
  22219. * // The `_.property` iteratee shorthand.
  22220. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  22221. * // => [{ 'x': 2 }]
  22222. */
  22223. var differenceBy = baseRest(function(array, values) {
  22224. var iteratee = last(values);
  22225. if (isArrayLikeObject(iteratee)) {
  22226. iteratee = undefined;
  22227. }
  22228. return isArrayLikeObject(array)
  22229. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  22230. : [];
  22231. });
  22232. /**
  22233. * This method is like `_.difference` except that it accepts `comparator`
  22234. * which is invoked to compare elements of `array` to `values`. The order and
  22235. * references of result values are determined by the first array. The comparator
  22236. * is invoked with two arguments: (arrVal, othVal).
  22237. *
  22238. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  22239. *
  22240. * @static
  22241. * @memberOf _
  22242. * @since 4.0.0
  22243. * @category Array
  22244. * @param {Array} array The array to inspect.
  22245. * @param {...Array} [values] The values to exclude.
  22246. * @param {Function} [comparator] The comparator invoked per element.
  22247. * @returns {Array} Returns the new array of filtered values.
  22248. * @example
  22249. *
  22250. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22251. *
  22252. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  22253. * // => [{ 'x': 2, 'y': 1 }]
  22254. */
  22255. var differenceWith = baseRest(function(array, values) {
  22256. var comparator = last(values);
  22257. if (isArrayLikeObject(comparator)) {
  22258. comparator = undefined;
  22259. }
  22260. return isArrayLikeObject(array)
  22261. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  22262. : [];
  22263. });
  22264. /**
  22265. * Creates a slice of `array` with `n` elements dropped from the beginning.
  22266. *
  22267. * @static
  22268. * @memberOf _
  22269. * @since 0.5.0
  22270. * @category Array
  22271. * @param {Array} array The array to query.
  22272. * @param {number} [n=1] The number of elements to drop.
  22273. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22274. * @returns {Array} Returns the slice of `array`.
  22275. * @example
  22276. *
  22277. * _.drop([1, 2, 3]);
  22278. * // => [2, 3]
  22279. *
  22280. * _.drop([1, 2, 3], 2);
  22281. * // => [3]
  22282. *
  22283. * _.drop([1, 2, 3], 5);
  22284. * // => []
  22285. *
  22286. * _.drop([1, 2, 3], 0);
  22287. * // => [1, 2, 3]
  22288. */
  22289. function drop(array, n, guard) {
  22290. var length = array == null ? 0 : array.length;
  22291. if (!length) {
  22292. return [];
  22293. }
  22294. n = (guard || n === undefined) ? 1 : toInteger(n);
  22295. return baseSlice(array, n < 0 ? 0 : n, length);
  22296. }
  22297. /**
  22298. * Creates a slice of `array` with `n` elements dropped from the end.
  22299. *
  22300. * @static
  22301. * @memberOf _
  22302. * @since 3.0.0
  22303. * @category Array
  22304. * @param {Array} array The array to query.
  22305. * @param {number} [n=1] The number of elements to drop.
  22306. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22307. * @returns {Array} Returns the slice of `array`.
  22308. * @example
  22309. *
  22310. * _.dropRight([1, 2, 3]);
  22311. * // => [1, 2]
  22312. *
  22313. * _.dropRight([1, 2, 3], 2);
  22314. * // => [1]
  22315. *
  22316. * _.dropRight([1, 2, 3], 5);
  22317. * // => []
  22318. *
  22319. * _.dropRight([1, 2, 3], 0);
  22320. * // => [1, 2, 3]
  22321. */
  22322. function dropRight(array, n, guard) {
  22323. var length = array == null ? 0 : array.length;
  22324. if (!length) {
  22325. return [];
  22326. }
  22327. n = (guard || n === undefined) ? 1 : toInteger(n);
  22328. n = length - n;
  22329. return baseSlice(array, 0, n < 0 ? 0 : n);
  22330. }
  22331. /**
  22332. * Creates a slice of `array` excluding elements dropped from the end.
  22333. * Elements are dropped until `predicate` returns falsey. The predicate is
  22334. * invoked with three arguments: (value, index, array).
  22335. *
  22336. * @static
  22337. * @memberOf _
  22338. * @since 3.0.0
  22339. * @category Array
  22340. * @param {Array} array The array to query.
  22341. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22342. * @returns {Array} Returns the slice of `array`.
  22343. * @example
  22344. *
  22345. * var users = [
  22346. * { 'user': 'barney', 'active': true },
  22347. * { 'user': 'fred', 'active': false },
  22348. * { 'user': 'pebbles', 'active': false }
  22349. * ];
  22350. *
  22351. * _.dropRightWhile(users, function(o) { return !o.active; });
  22352. * // => objects for ['barney']
  22353. *
  22354. * // The `_.matches` iteratee shorthand.
  22355. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  22356. * // => objects for ['barney', 'fred']
  22357. *
  22358. * // The `_.matchesProperty` iteratee shorthand.
  22359. * _.dropRightWhile(users, ['active', false]);
  22360. * // => objects for ['barney']
  22361. *
  22362. * // The `_.property` iteratee shorthand.
  22363. * _.dropRightWhile(users, 'active');
  22364. * // => objects for ['barney', 'fred', 'pebbles']
  22365. */
  22366. function dropRightWhile(array, predicate) {
  22367. return (array && array.length)
  22368. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  22369. : [];
  22370. }
  22371. /**
  22372. * Creates a slice of `array` excluding elements dropped from the beginning.
  22373. * Elements are dropped until `predicate` returns falsey. The predicate is
  22374. * invoked with three arguments: (value, index, array).
  22375. *
  22376. * @static
  22377. * @memberOf _
  22378. * @since 3.0.0
  22379. * @category Array
  22380. * @param {Array} array The array to query.
  22381. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22382. * @returns {Array} Returns the slice of `array`.
  22383. * @example
  22384. *
  22385. * var users = [
  22386. * { 'user': 'barney', 'active': false },
  22387. * { 'user': 'fred', 'active': false },
  22388. * { 'user': 'pebbles', 'active': true }
  22389. * ];
  22390. *
  22391. * _.dropWhile(users, function(o) { return !o.active; });
  22392. * // => objects for ['pebbles']
  22393. *
  22394. * // The `_.matches` iteratee shorthand.
  22395. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  22396. * // => objects for ['fred', 'pebbles']
  22397. *
  22398. * // The `_.matchesProperty` iteratee shorthand.
  22399. * _.dropWhile(users, ['active', false]);
  22400. * // => objects for ['pebbles']
  22401. *
  22402. * // The `_.property` iteratee shorthand.
  22403. * _.dropWhile(users, 'active');
  22404. * // => objects for ['barney', 'fred', 'pebbles']
  22405. */
  22406. function dropWhile(array, predicate) {
  22407. return (array && array.length)
  22408. ? baseWhile(array, getIteratee(predicate, 3), true)
  22409. : [];
  22410. }
  22411. /**
  22412. * Fills elements of `array` with `value` from `start` up to, but not
  22413. * including, `end`.
  22414. *
  22415. * **Note:** This method mutates `array`.
  22416. *
  22417. * @static
  22418. * @memberOf _
  22419. * @since 3.2.0
  22420. * @category Array
  22421. * @param {Array} array The array to fill.
  22422. * @param {*} value The value to fill `array` with.
  22423. * @param {number} [start=0] The start position.
  22424. * @param {number} [end=array.length] The end position.
  22425. * @returns {Array} Returns `array`.
  22426. * @example
  22427. *
  22428. * var array = [1, 2, 3];
  22429. *
  22430. * _.fill(array, 'a');
  22431. * console.log(array);
  22432. * // => ['a', 'a', 'a']
  22433. *
  22434. * _.fill(Array(3), 2);
  22435. * // => [2, 2, 2]
  22436. *
  22437. * _.fill([4, 6, 8, 10], '*', 1, 3);
  22438. * // => [4, '*', '*', 10]
  22439. */
  22440. function fill(array, value, start, end) {
  22441. var length = array == null ? 0 : array.length;
  22442. if (!length) {
  22443. return [];
  22444. }
  22445. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  22446. start = 0;
  22447. end = length;
  22448. }
  22449. return baseFill(array, value, start, end);
  22450. }
  22451. /**
  22452. * This method is like `_.find` except that it returns the index of the first
  22453. * element `predicate` returns truthy for instead of the element itself.
  22454. *
  22455. * @static
  22456. * @memberOf _
  22457. * @since 1.1.0
  22458. * @category Array
  22459. * @param {Array} array The array to inspect.
  22460. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22461. * @param {number} [fromIndex=0] The index to search from.
  22462. * @returns {number} Returns the index of the found element, else `-1`.
  22463. * @example
  22464. *
  22465. * var users = [
  22466. * { 'user': 'barney', 'active': false },
  22467. * { 'user': 'fred', 'active': false },
  22468. * { 'user': 'pebbles', 'active': true }
  22469. * ];
  22470. *
  22471. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  22472. * // => 0
  22473. *
  22474. * // The `_.matches` iteratee shorthand.
  22475. * _.findIndex(users, { 'user': 'fred', 'active': false });
  22476. * // => 1
  22477. *
  22478. * // The `_.matchesProperty` iteratee shorthand.
  22479. * _.findIndex(users, ['active', false]);
  22480. * // => 0
  22481. *
  22482. * // The `_.property` iteratee shorthand.
  22483. * _.findIndex(users, 'active');
  22484. * // => 2
  22485. */
  22486. function findIndex(array, predicate, fromIndex) {
  22487. var length = array == null ? 0 : array.length;
  22488. if (!length) {
  22489. return -1;
  22490. }
  22491. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22492. if (index < 0) {
  22493. index = nativeMax(length + index, 0);
  22494. }
  22495. return baseFindIndex(array, getIteratee(predicate, 3), index);
  22496. }
  22497. /**
  22498. * This method is like `_.findIndex` except that it iterates over elements
  22499. * of `collection` from right to left.
  22500. *
  22501. * @static
  22502. * @memberOf _
  22503. * @since 2.0.0
  22504. * @category Array
  22505. * @param {Array} array The array to inspect.
  22506. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22507. * @param {number} [fromIndex=array.length-1] The index to search from.
  22508. * @returns {number} Returns the index of the found element, else `-1`.
  22509. * @example
  22510. *
  22511. * var users = [
  22512. * { 'user': 'barney', 'active': true },
  22513. * { 'user': 'fred', 'active': false },
  22514. * { 'user': 'pebbles', 'active': false }
  22515. * ];
  22516. *
  22517. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  22518. * // => 2
  22519. *
  22520. * // The `_.matches` iteratee shorthand.
  22521. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  22522. * // => 0
  22523. *
  22524. * // The `_.matchesProperty` iteratee shorthand.
  22525. * _.findLastIndex(users, ['active', false]);
  22526. * // => 2
  22527. *
  22528. * // The `_.property` iteratee shorthand.
  22529. * _.findLastIndex(users, 'active');
  22530. * // => 0
  22531. */
  22532. function findLastIndex(array, predicate, fromIndex) {
  22533. var length = array == null ? 0 : array.length;
  22534. if (!length) {
  22535. return -1;
  22536. }
  22537. var index = length - 1;
  22538. if (fromIndex !== undefined) {
  22539. index = toInteger(fromIndex);
  22540. index = fromIndex < 0
  22541. ? nativeMax(length + index, 0)
  22542. : nativeMin(index, length - 1);
  22543. }
  22544. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  22545. }
  22546. /**
  22547. * Flattens `array` a single level deep.
  22548. *
  22549. * @static
  22550. * @memberOf _
  22551. * @since 0.1.0
  22552. * @category Array
  22553. * @param {Array} array The array to flatten.
  22554. * @returns {Array} Returns the new flattened array.
  22555. * @example
  22556. *
  22557. * _.flatten([1, [2, [3, [4]], 5]]);
  22558. * // => [1, 2, [3, [4]], 5]
  22559. */
  22560. function flatten(array) {
  22561. var length = array == null ? 0 : array.length;
  22562. return length ? baseFlatten(array, 1) : [];
  22563. }
  22564. /**
  22565. * Recursively flattens `array`.
  22566. *
  22567. * @static
  22568. * @memberOf _
  22569. * @since 3.0.0
  22570. * @category Array
  22571. * @param {Array} array The array to flatten.
  22572. * @returns {Array} Returns the new flattened array.
  22573. * @example
  22574. *
  22575. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  22576. * // => [1, 2, 3, 4, 5]
  22577. */
  22578. function flattenDeep(array) {
  22579. var length = array == null ? 0 : array.length;
  22580. return length ? baseFlatten(array, INFINITY) : [];
  22581. }
  22582. /**
  22583. * Recursively flatten `array` up to `depth` times.
  22584. *
  22585. * @static
  22586. * @memberOf _
  22587. * @since 4.4.0
  22588. * @category Array
  22589. * @param {Array} array The array to flatten.
  22590. * @param {number} [depth=1] The maximum recursion depth.
  22591. * @returns {Array} Returns the new flattened array.
  22592. * @example
  22593. *
  22594. * var array = [1, [2, [3, [4]], 5]];
  22595. *
  22596. * _.flattenDepth(array, 1);
  22597. * // => [1, 2, [3, [4]], 5]
  22598. *
  22599. * _.flattenDepth(array, 2);
  22600. * // => [1, 2, 3, [4], 5]
  22601. */
  22602. function flattenDepth(array, depth) {
  22603. var length = array == null ? 0 : array.length;
  22604. if (!length) {
  22605. return [];
  22606. }
  22607. depth = depth === undefined ? 1 : toInteger(depth);
  22608. return baseFlatten(array, depth);
  22609. }
  22610. /**
  22611. * The inverse of `_.toPairs`; this method returns an object composed
  22612. * from key-value `pairs`.
  22613. *
  22614. * @static
  22615. * @memberOf _
  22616. * @since 4.0.0
  22617. * @category Array
  22618. * @param {Array} pairs The key-value pairs.
  22619. * @returns {Object} Returns the new object.
  22620. * @example
  22621. *
  22622. * _.fromPairs([['a', 1], ['b', 2]]);
  22623. * // => { 'a': 1, 'b': 2 }
  22624. */
  22625. function fromPairs(pairs) {
  22626. var index = -1,
  22627. length = pairs == null ? 0 : pairs.length,
  22628. result = {};
  22629. while (++index < length) {
  22630. var pair = pairs[index];
  22631. result[pair[0]] = pair[1];
  22632. }
  22633. return result;
  22634. }
  22635. /**
  22636. * Gets the first element of `array`.
  22637. *
  22638. * @static
  22639. * @memberOf _
  22640. * @since 0.1.0
  22641. * @alias first
  22642. * @category Array
  22643. * @param {Array} array The array to query.
  22644. * @returns {*} Returns the first element of `array`.
  22645. * @example
  22646. *
  22647. * _.head([1, 2, 3]);
  22648. * // => 1
  22649. *
  22650. * _.head([]);
  22651. * // => undefined
  22652. */
  22653. function head(array) {
  22654. return (array && array.length) ? array[0] : undefined;
  22655. }
  22656. /**
  22657. * Gets the index at which the first occurrence of `value` is found in `array`
  22658. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22659. * for equality comparisons. If `fromIndex` is negative, it's used as the
  22660. * offset from the end of `array`.
  22661. *
  22662. * @static
  22663. * @memberOf _
  22664. * @since 0.1.0
  22665. * @category Array
  22666. * @param {Array} array The array to inspect.
  22667. * @param {*} value The value to search for.
  22668. * @param {number} [fromIndex=0] The index to search from.
  22669. * @returns {number} Returns the index of the matched value, else `-1`.
  22670. * @example
  22671. *
  22672. * _.indexOf([1, 2, 1, 2], 2);
  22673. * // => 1
  22674. *
  22675. * // Search from the `fromIndex`.
  22676. * _.indexOf([1, 2, 1, 2], 2, 2);
  22677. * // => 3
  22678. */
  22679. function indexOf(array, value, fromIndex) {
  22680. var length = array == null ? 0 : array.length;
  22681. if (!length) {
  22682. return -1;
  22683. }
  22684. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22685. if (index < 0) {
  22686. index = nativeMax(length + index, 0);
  22687. }
  22688. return baseIndexOf(array, value, index);
  22689. }
  22690. /**
  22691. * Gets all but the last element of `array`.
  22692. *
  22693. * @static
  22694. * @memberOf _
  22695. * @since 0.1.0
  22696. * @category Array
  22697. * @param {Array} array The array to query.
  22698. * @returns {Array} Returns the slice of `array`.
  22699. * @example
  22700. *
  22701. * _.initial([1, 2, 3]);
  22702. * // => [1, 2]
  22703. */
  22704. function initial(array) {
  22705. var length = array == null ? 0 : array.length;
  22706. return length ? baseSlice(array, 0, -1) : [];
  22707. }
  22708. /**
  22709. * Creates an array of unique values that are included in all given arrays
  22710. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22711. * for equality comparisons. The order and references of result values are
  22712. * determined by the first array.
  22713. *
  22714. * @static
  22715. * @memberOf _
  22716. * @since 0.1.0
  22717. * @category Array
  22718. * @param {...Array} [arrays] The arrays to inspect.
  22719. * @returns {Array} Returns the new array of intersecting values.
  22720. * @example
  22721. *
  22722. * _.intersection([2, 1], [2, 3]);
  22723. * // => [2]
  22724. */
  22725. var intersection = baseRest(function(arrays) {
  22726. var mapped = arrayMap(arrays, castArrayLikeObject);
  22727. return (mapped.length && mapped[0] === arrays[0])
  22728. ? baseIntersection(mapped)
  22729. : [];
  22730. });
  22731. /**
  22732. * This method is like `_.intersection` except that it accepts `iteratee`
  22733. * which is invoked for each element of each `arrays` to generate the criterion
  22734. * by which they're compared. The order and references of result values are
  22735. * determined by the first array. The iteratee is invoked with one argument:
  22736. * (value).
  22737. *
  22738. * @static
  22739. * @memberOf _
  22740. * @since 4.0.0
  22741. * @category Array
  22742. * @param {...Array} [arrays] The arrays to inspect.
  22743. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22744. * @returns {Array} Returns the new array of intersecting values.
  22745. * @example
  22746. *
  22747. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22748. * // => [2.1]
  22749. *
  22750. * // The `_.property` iteratee shorthand.
  22751. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  22752. * // => [{ 'x': 1 }]
  22753. */
  22754. var intersectionBy = baseRest(function(arrays) {
  22755. var iteratee = last(arrays),
  22756. mapped = arrayMap(arrays, castArrayLikeObject);
  22757. if (iteratee === last(mapped)) {
  22758. iteratee = undefined;
  22759. } else {
  22760. mapped.pop();
  22761. }
  22762. return (mapped.length && mapped[0] === arrays[0])
  22763. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  22764. : [];
  22765. });
  22766. /**
  22767. * This method is like `_.intersection` except that it accepts `comparator`
  22768. * which is invoked to compare elements of `arrays`. The order and references
  22769. * of result values are determined by the first array. The comparator is
  22770. * invoked with two arguments: (arrVal, othVal).
  22771. *
  22772. * @static
  22773. * @memberOf _
  22774. * @since 4.0.0
  22775. * @category Array
  22776. * @param {...Array} [arrays] The arrays to inspect.
  22777. * @param {Function} [comparator] The comparator invoked per element.
  22778. * @returns {Array} Returns the new array of intersecting values.
  22779. * @example
  22780. *
  22781. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22782. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  22783. *
  22784. * _.intersectionWith(objects, others, _.isEqual);
  22785. * // => [{ 'x': 1, 'y': 2 }]
  22786. */
  22787. var intersectionWith = baseRest(function(arrays) {
  22788. var comparator = last(arrays),
  22789. mapped = arrayMap(arrays, castArrayLikeObject);
  22790. comparator = typeof comparator == 'function' ? comparator : undefined;
  22791. if (comparator) {
  22792. mapped.pop();
  22793. }
  22794. return (mapped.length && mapped[0] === arrays[0])
  22795. ? baseIntersection(mapped, undefined, comparator)
  22796. : [];
  22797. });
  22798. /**
  22799. * Converts all elements in `array` into a string separated by `separator`.
  22800. *
  22801. * @static
  22802. * @memberOf _
  22803. * @since 4.0.0
  22804. * @category Array
  22805. * @param {Array} array The array to convert.
  22806. * @param {string} [separator=','] The element separator.
  22807. * @returns {string} Returns the joined string.
  22808. * @example
  22809. *
  22810. * _.join(['a', 'b', 'c'], '~');
  22811. * // => 'a~b~c'
  22812. */
  22813. function join(array, separator) {
  22814. return array == null ? '' : nativeJoin.call(array, separator);
  22815. }
  22816. /**
  22817. * Gets the last element of `array`.
  22818. *
  22819. * @static
  22820. * @memberOf _
  22821. * @since 0.1.0
  22822. * @category Array
  22823. * @param {Array} array The array to query.
  22824. * @returns {*} Returns the last element of `array`.
  22825. * @example
  22826. *
  22827. * _.last([1, 2, 3]);
  22828. * // => 3
  22829. */
  22830. function last(array) {
  22831. var length = array == null ? 0 : array.length;
  22832. return length ? array[length - 1] : undefined;
  22833. }
  22834. /**
  22835. * This method is like `_.indexOf` except that it iterates over elements of
  22836. * `array` from right to left.
  22837. *
  22838. * @static
  22839. * @memberOf _
  22840. * @since 0.1.0
  22841. * @category Array
  22842. * @param {Array} array The array to inspect.
  22843. * @param {*} value The value to search for.
  22844. * @param {number} [fromIndex=array.length-1] The index to search from.
  22845. * @returns {number} Returns the index of the matched value, else `-1`.
  22846. * @example
  22847. *
  22848. * _.lastIndexOf([1, 2, 1, 2], 2);
  22849. * // => 3
  22850. *
  22851. * // Search from the `fromIndex`.
  22852. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  22853. * // => 1
  22854. */
  22855. function lastIndexOf(array, value, fromIndex) {
  22856. var length = array == null ? 0 : array.length;
  22857. if (!length) {
  22858. return -1;
  22859. }
  22860. var index = length;
  22861. if (fromIndex !== undefined) {
  22862. index = toInteger(fromIndex);
  22863. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  22864. }
  22865. return value === value
  22866. ? strictLastIndexOf(array, value, index)
  22867. : baseFindIndex(array, baseIsNaN, index, true);
  22868. }
  22869. /**
  22870. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  22871. * element from the end is returned.
  22872. *
  22873. * @static
  22874. * @memberOf _
  22875. * @since 4.11.0
  22876. * @category Array
  22877. * @param {Array} array The array to query.
  22878. * @param {number} [n=0] The index of the element to return.
  22879. * @returns {*} Returns the nth element of `array`.
  22880. * @example
  22881. *
  22882. * var array = ['a', 'b', 'c', 'd'];
  22883. *
  22884. * _.nth(array, 1);
  22885. * // => 'b'
  22886. *
  22887. * _.nth(array, -2);
  22888. * // => 'c';
  22889. */
  22890. function nth(array, n) {
  22891. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  22892. }
  22893. /**
  22894. * Removes all given values from `array` using
  22895. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22896. * for equality comparisons.
  22897. *
  22898. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  22899. * to remove elements from an array by predicate.
  22900. *
  22901. * @static
  22902. * @memberOf _
  22903. * @since 2.0.0
  22904. * @category Array
  22905. * @param {Array} array The array to modify.
  22906. * @param {...*} [values] The values to remove.
  22907. * @returns {Array} Returns `array`.
  22908. * @example
  22909. *
  22910. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22911. *
  22912. * _.pull(array, 'a', 'c');
  22913. * console.log(array);
  22914. * // => ['b', 'b']
  22915. */
  22916. var pull = baseRest(pullAll);
  22917. /**
  22918. * This method is like `_.pull` except that it accepts an array of values to remove.
  22919. *
  22920. * **Note:** Unlike `_.difference`, this method mutates `array`.
  22921. *
  22922. * @static
  22923. * @memberOf _
  22924. * @since 4.0.0
  22925. * @category Array
  22926. * @param {Array} array The array to modify.
  22927. * @param {Array} values The values to remove.
  22928. * @returns {Array} Returns `array`.
  22929. * @example
  22930. *
  22931. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22932. *
  22933. * _.pullAll(array, ['a', 'c']);
  22934. * console.log(array);
  22935. * // => ['b', 'b']
  22936. */
  22937. function pullAll(array, values) {
  22938. return (array && array.length && values && values.length)
  22939. ? basePullAll(array, values)
  22940. : array;
  22941. }
  22942. /**
  22943. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  22944. * invoked for each element of `array` and `values` to generate the criterion
  22945. * by which they're compared. The iteratee is invoked with one argument: (value).
  22946. *
  22947. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  22948. *
  22949. * @static
  22950. * @memberOf _
  22951. * @since 4.0.0
  22952. * @category Array
  22953. * @param {Array} array The array to modify.
  22954. * @param {Array} values The values to remove.
  22955. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22956. * @returns {Array} Returns `array`.
  22957. * @example
  22958. *
  22959. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  22960. *
  22961. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  22962. * console.log(array);
  22963. * // => [{ 'x': 2 }]
  22964. */
  22965. function pullAllBy(array, values, iteratee) {
  22966. return (array && array.length && values && values.length)
  22967. ? basePullAll(array, values, getIteratee(iteratee, 2))
  22968. : array;
  22969. }
  22970. /**
  22971. * This method is like `_.pullAll` except that it accepts `comparator` which
  22972. * is invoked to compare elements of `array` to `values`. The comparator is
  22973. * invoked with two arguments: (arrVal, othVal).
  22974. *
  22975. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  22976. *
  22977. * @static
  22978. * @memberOf _
  22979. * @since 4.6.0
  22980. * @category Array
  22981. * @param {Array} array The array to modify.
  22982. * @param {Array} values The values to remove.
  22983. * @param {Function} [comparator] The comparator invoked per element.
  22984. * @returns {Array} Returns `array`.
  22985. * @example
  22986. *
  22987. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  22988. *
  22989. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  22990. * console.log(array);
  22991. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  22992. */
  22993. function pullAllWith(array, values, comparator) {
  22994. return (array && array.length && values && values.length)
  22995. ? basePullAll(array, values, undefined, comparator)
  22996. : array;
  22997. }
  22998. /**
  22999. * Removes elements from `array` corresponding to `indexes` and returns an
  23000. * array of removed elements.
  23001. *
  23002. * **Note:** Unlike `_.at`, this method mutates `array`.
  23003. *
  23004. * @static
  23005. * @memberOf _
  23006. * @since 3.0.0
  23007. * @category Array
  23008. * @param {Array} array The array to modify.
  23009. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  23010. * @returns {Array} Returns the new array of removed elements.
  23011. * @example
  23012. *
  23013. * var array = ['a', 'b', 'c', 'd'];
  23014. * var pulled = _.pullAt(array, [1, 3]);
  23015. *
  23016. * console.log(array);
  23017. * // => ['a', 'c']
  23018. *
  23019. * console.log(pulled);
  23020. * // => ['b', 'd']
  23021. */
  23022. var pullAt = flatRest(function(array, indexes) {
  23023. var length = array == null ? 0 : array.length,
  23024. result = baseAt(array, indexes);
  23025. basePullAt(array, arrayMap(indexes, function(index) {
  23026. return isIndex(index, length) ? +index : index;
  23027. }).sort(compareAscending));
  23028. return result;
  23029. });
  23030. /**
  23031. * Removes all elements from `array` that `predicate` returns truthy for
  23032. * and returns an array of the removed elements. The predicate is invoked
  23033. * with three arguments: (value, index, array).
  23034. *
  23035. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  23036. * to pull elements from an array by value.
  23037. *
  23038. * @static
  23039. * @memberOf _
  23040. * @since 2.0.0
  23041. * @category Array
  23042. * @param {Array} array The array to modify.
  23043. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23044. * @returns {Array} Returns the new array of removed elements.
  23045. * @example
  23046. *
  23047. * var array = [1, 2, 3, 4];
  23048. * var evens = _.remove(array, function(n) {
  23049. * return n % 2 == 0;
  23050. * });
  23051. *
  23052. * console.log(array);
  23053. * // => [1, 3]
  23054. *
  23055. * console.log(evens);
  23056. * // => [2, 4]
  23057. */
  23058. function remove(array, predicate) {
  23059. var result = [];
  23060. if (!(array && array.length)) {
  23061. return result;
  23062. }
  23063. var index = -1,
  23064. indexes = [],
  23065. length = array.length;
  23066. predicate = getIteratee(predicate, 3);
  23067. while (++index < length) {
  23068. var value = array[index];
  23069. if (predicate(value, index, array)) {
  23070. result.push(value);
  23071. indexes.push(index);
  23072. }
  23073. }
  23074. basePullAt(array, indexes);
  23075. return result;
  23076. }
  23077. /**
  23078. * Reverses `array` so that the first element becomes the last, the second
  23079. * element becomes the second to last, and so on.
  23080. *
  23081. * **Note:** This method mutates `array` and is based on
  23082. * [`Array#reverse`](https://mdn.io/Array/reverse).
  23083. *
  23084. * @static
  23085. * @memberOf _
  23086. * @since 4.0.0
  23087. * @category Array
  23088. * @param {Array} array The array to modify.
  23089. * @returns {Array} Returns `array`.
  23090. * @example
  23091. *
  23092. * var array = [1, 2, 3];
  23093. *
  23094. * _.reverse(array);
  23095. * // => [3, 2, 1]
  23096. *
  23097. * console.log(array);
  23098. * // => [3, 2, 1]
  23099. */
  23100. function reverse(array) {
  23101. return array == null ? array : nativeReverse.call(array);
  23102. }
  23103. /**
  23104. * Creates a slice of `array` from `start` up to, but not including, `end`.
  23105. *
  23106. * **Note:** This method is used instead of
  23107. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  23108. * returned.
  23109. *
  23110. * @static
  23111. * @memberOf _
  23112. * @since 3.0.0
  23113. * @category Array
  23114. * @param {Array} array The array to slice.
  23115. * @param {number} [start=0] The start position.
  23116. * @param {number} [end=array.length] The end position.
  23117. * @returns {Array} Returns the slice of `array`.
  23118. */
  23119. function slice(array, start, end) {
  23120. var length = array == null ? 0 : array.length;
  23121. if (!length) {
  23122. return [];
  23123. }
  23124. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  23125. start = 0;
  23126. end = length;
  23127. }
  23128. else {
  23129. start = start == null ? 0 : toInteger(start);
  23130. end = end === undefined ? length : toInteger(end);
  23131. }
  23132. return baseSlice(array, start, end);
  23133. }
  23134. /**
  23135. * Uses a binary search to determine the lowest index at which `value`
  23136. * should be inserted into `array` in order to maintain its sort order.
  23137. *
  23138. * @static
  23139. * @memberOf _
  23140. * @since 0.1.0
  23141. * @category Array
  23142. * @param {Array} array The sorted array to inspect.
  23143. * @param {*} value The value to evaluate.
  23144. * @returns {number} Returns the index at which `value` should be inserted
  23145. * into `array`.
  23146. * @example
  23147. *
  23148. * _.sortedIndex([30, 50], 40);
  23149. * // => 1
  23150. */
  23151. function sortedIndex(array, value) {
  23152. return baseSortedIndex(array, value);
  23153. }
  23154. /**
  23155. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  23156. * which is invoked for `value` and each element of `array` to compute their
  23157. * sort ranking. The iteratee is invoked with one argument: (value).
  23158. *
  23159. * @static
  23160. * @memberOf _
  23161. * @since 4.0.0
  23162. * @category Array
  23163. * @param {Array} array The sorted array to inspect.
  23164. * @param {*} value The value to evaluate.
  23165. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23166. * @returns {number} Returns the index at which `value` should be inserted
  23167. * into `array`.
  23168. * @example
  23169. *
  23170. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23171. *
  23172. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23173. * // => 0
  23174. *
  23175. * // The `_.property` iteratee shorthand.
  23176. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  23177. * // => 0
  23178. */
  23179. function sortedIndexBy(array, value, iteratee) {
  23180. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  23181. }
  23182. /**
  23183. * This method is like `_.indexOf` except that it performs a binary
  23184. * search on a sorted `array`.
  23185. *
  23186. * @static
  23187. * @memberOf _
  23188. * @since 4.0.0
  23189. * @category Array
  23190. * @param {Array} array The array to inspect.
  23191. * @param {*} value The value to search for.
  23192. * @returns {number} Returns the index of the matched value, else `-1`.
  23193. * @example
  23194. *
  23195. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  23196. * // => 1
  23197. */
  23198. function sortedIndexOf(array, value) {
  23199. var length = array == null ? 0 : array.length;
  23200. if (length) {
  23201. var index = baseSortedIndex(array, value);
  23202. if (index < length && eq(array[index], value)) {
  23203. return index;
  23204. }
  23205. }
  23206. return -1;
  23207. }
  23208. /**
  23209. * This method is like `_.sortedIndex` except that it returns the highest
  23210. * index at which `value` should be inserted into `array` in order to
  23211. * maintain its sort order.
  23212. *
  23213. * @static
  23214. * @memberOf _
  23215. * @since 3.0.0
  23216. * @category Array
  23217. * @param {Array} array The sorted array to inspect.
  23218. * @param {*} value The value to evaluate.
  23219. * @returns {number} Returns the index at which `value` should be inserted
  23220. * into `array`.
  23221. * @example
  23222. *
  23223. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  23224. * // => 4
  23225. */
  23226. function sortedLastIndex(array, value) {
  23227. return baseSortedIndex(array, value, true);
  23228. }
  23229. /**
  23230. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  23231. * which is invoked for `value` and each element of `array` to compute their
  23232. * sort ranking. The iteratee is invoked with one argument: (value).
  23233. *
  23234. * @static
  23235. * @memberOf _
  23236. * @since 4.0.0
  23237. * @category Array
  23238. * @param {Array} array The sorted array to inspect.
  23239. * @param {*} value The value to evaluate.
  23240. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23241. * @returns {number} Returns the index at which `value` should be inserted
  23242. * into `array`.
  23243. * @example
  23244. *
  23245. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23246. *
  23247. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23248. * // => 1
  23249. *
  23250. * // The `_.property` iteratee shorthand.
  23251. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  23252. * // => 1
  23253. */
  23254. function sortedLastIndexBy(array, value, iteratee) {
  23255. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  23256. }
  23257. /**
  23258. * This method is like `_.lastIndexOf` except that it performs a binary
  23259. * search on a sorted `array`.
  23260. *
  23261. * @static
  23262. * @memberOf _
  23263. * @since 4.0.0
  23264. * @category Array
  23265. * @param {Array} array The array to inspect.
  23266. * @param {*} value The value to search for.
  23267. * @returns {number} Returns the index of the matched value, else `-1`.
  23268. * @example
  23269. *
  23270. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  23271. * // => 3
  23272. */
  23273. function sortedLastIndexOf(array, value) {
  23274. var length = array == null ? 0 : array.length;
  23275. if (length) {
  23276. var index = baseSortedIndex(array, value, true) - 1;
  23277. if (eq(array[index], value)) {
  23278. return index;
  23279. }
  23280. }
  23281. return -1;
  23282. }
  23283. /**
  23284. * This method is like `_.uniq` except that it's designed and optimized
  23285. * for sorted arrays.
  23286. *
  23287. * @static
  23288. * @memberOf _
  23289. * @since 4.0.0
  23290. * @category Array
  23291. * @param {Array} array The array to inspect.
  23292. * @returns {Array} Returns the new duplicate free array.
  23293. * @example
  23294. *
  23295. * _.sortedUniq([1, 1, 2]);
  23296. * // => [1, 2]
  23297. */
  23298. function sortedUniq(array) {
  23299. return (array && array.length)
  23300. ? baseSortedUniq(array)
  23301. : [];
  23302. }
  23303. /**
  23304. * This method is like `_.uniqBy` except that it's designed and optimized
  23305. * for sorted arrays.
  23306. *
  23307. * @static
  23308. * @memberOf _
  23309. * @since 4.0.0
  23310. * @category Array
  23311. * @param {Array} array The array to inspect.
  23312. * @param {Function} [iteratee] The iteratee invoked per element.
  23313. * @returns {Array} Returns the new duplicate free array.
  23314. * @example
  23315. *
  23316. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  23317. * // => [1.1, 2.3]
  23318. */
  23319. function sortedUniqBy(array, iteratee) {
  23320. return (array && array.length)
  23321. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  23322. : [];
  23323. }
  23324. /**
  23325. * Gets all but the first element of `array`.
  23326. *
  23327. * @static
  23328. * @memberOf _
  23329. * @since 4.0.0
  23330. * @category Array
  23331. * @param {Array} array The array to query.
  23332. * @returns {Array} Returns the slice of `array`.
  23333. * @example
  23334. *
  23335. * _.tail([1, 2, 3]);
  23336. * // => [2, 3]
  23337. */
  23338. function tail(array) {
  23339. var length = array == null ? 0 : array.length;
  23340. return length ? baseSlice(array, 1, length) : [];
  23341. }
  23342. /**
  23343. * Creates a slice of `array` with `n` elements taken from the beginning.
  23344. *
  23345. * @static
  23346. * @memberOf _
  23347. * @since 0.1.0
  23348. * @category Array
  23349. * @param {Array} array The array to query.
  23350. * @param {number} [n=1] The number of elements to take.
  23351. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23352. * @returns {Array} Returns the slice of `array`.
  23353. * @example
  23354. *
  23355. * _.take([1, 2, 3]);
  23356. * // => [1]
  23357. *
  23358. * _.take([1, 2, 3], 2);
  23359. * // => [1, 2]
  23360. *
  23361. * _.take([1, 2, 3], 5);
  23362. * // => [1, 2, 3]
  23363. *
  23364. * _.take([1, 2, 3], 0);
  23365. * // => []
  23366. */
  23367. function take(array, n, guard) {
  23368. if (!(array && array.length)) {
  23369. return [];
  23370. }
  23371. n = (guard || n === undefined) ? 1 : toInteger(n);
  23372. return baseSlice(array, 0, n < 0 ? 0 : n);
  23373. }
  23374. /**
  23375. * Creates a slice of `array` with `n` elements taken from the end.
  23376. *
  23377. * @static
  23378. * @memberOf _
  23379. * @since 3.0.0
  23380. * @category Array
  23381. * @param {Array} array The array to query.
  23382. * @param {number} [n=1] The number of elements to take.
  23383. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23384. * @returns {Array} Returns the slice of `array`.
  23385. * @example
  23386. *
  23387. * _.takeRight([1, 2, 3]);
  23388. * // => [3]
  23389. *
  23390. * _.takeRight([1, 2, 3], 2);
  23391. * // => [2, 3]
  23392. *
  23393. * _.takeRight([1, 2, 3], 5);
  23394. * // => [1, 2, 3]
  23395. *
  23396. * _.takeRight([1, 2, 3], 0);
  23397. * // => []
  23398. */
  23399. function takeRight(array, n, guard) {
  23400. var length = array == null ? 0 : array.length;
  23401. if (!length) {
  23402. return [];
  23403. }
  23404. n = (guard || n === undefined) ? 1 : toInteger(n);
  23405. n = length - n;
  23406. return baseSlice(array, n < 0 ? 0 : n, length);
  23407. }
  23408. /**
  23409. * Creates a slice of `array` with elements taken from the end. Elements are
  23410. * taken until `predicate` returns falsey. The predicate is invoked with
  23411. * three arguments: (value, index, array).
  23412. *
  23413. * @static
  23414. * @memberOf _
  23415. * @since 3.0.0
  23416. * @category Array
  23417. * @param {Array} array The array to query.
  23418. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23419. * @returns {Array} Returns the slice of `array`.
  23420. * @example
  23421. *
  23422. * var users = [
  23423. * { 'user': 'barney', 'active': true },
  23424. * { 'user': 'fred', 'active': false },
  23425. * { 'user': 'pebbles', 'active': false }
  23426. * ];
  23427. *
  23428. * _.takeRightWhile(users, function(o) { return !o.active; });
  23429. * // => objects for ['fred', 'pebbles']
  23430. *
  23431. * // The `_.matches` iteratee shorthand.
  23432. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  23433. * // => objects for ['pebbles']
  23434. *
  23435. * // The `_.matchesProperty` iteratee shorthand.
  23436. * _.takeRightWhile(users, ['active', false]);
  23437. * // => objects for ['fred', 'pebbles']
  23438. *
  23439. * // The `_.property` iteratee shorthand.
  23440. * _.takeRightWhile(users, 'active');
  23441. * // => []
  23442. */
  23443. function takeRightWhile(array, predicate) {
  23444. return (array && array.length)
  23445. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  23446. : [];
  23447. }
  23448. /**
  23449. * Creates a slice of `array` with elements taken from the beginning. Elements
  23450. * are taken until `predicate` returns falsey. The predicate is invoked with
  23451. * three arguments: (value, index, array).
  23452. *
  23453. * @static
  23454. * @memberOf _
  23455. * @since 3.0.0
  23456. * @category Array
  23457. * @param {Array} array The array to query.
  23458. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23459. * @returns {Array} Returns the slice of `array`.
  23460. * @example
  23461. *
  23462. * var users = [
  23463. * { 'user': 'barney', 'active': false },
  23464. * { 'user': 'fred', 'active': false },
  23465. * { 'user': 'pebbles', 'active': true }
  23466. * ];
  23467. *
  23468. * _.takeWhile(users, function(o) { return !o.active; });
  23469. * // => objects for ['barney', 'fred']
  23470. *
  23471. * // The `_.matches` iteratee shorthand.
  23472. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  23473. * // => objects for ['barney']
  23474. *
  23475. * // The `_.matchesProperty` iteratee shorthand.
  23476. * _.takeWhile(users, ['active', false]);
  23477. * // => objects for ['barney', 'fred']
  23478. *
  23479. * // The `_.property` iteratee shorthand.
  23480. * _.takeWhile(users, 'active');
  23481. * // => []
  23482. */
  23483. function takeWhile(array, predicate) {
  23484. return (array && array.length)
  23485. ? baseWhile(array, getIteratee(predicate, 3))
  23486. : [];
  23487. }
  23488. /**
  23489. * Creates an array of unique values, in order, from all given arrays using
  23490. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23491. * for equality comparisons.
  23492. *
  23493. * @static
  23494. * @memberOf _
  23495. * @since 0.1.0
  23496. * @category Array
  23497. * @param {...Array} [arrays] The arrays to inspect.
  23498. * @returns {Array} Returns the new array of combined values.
  23499. * @example
  23500. *
  23501. * _.union([2], [1, 2]);
  23502. * // => [2, 1]
  23503. */
  23504. var union = baseRest(function(arrays) {
  23505. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  23506. });
  23507. /**
  23508. * This method is like `_.union` except that it accepts `iteratee` which is
  23509. * invoked for each element of each `arrays` to generate the criterion by
  23510. * which uniqueness is computed. Result values are chosen from the first
  23511. * array in which the value occurs. The iteratee is invoked with one argument:
  23512. * (value).
  23513. *
  23514. * @static
  23515. * @memberOf _
  23516. * @since 4.0.0
  23517. * @category Array
  23518. * @param {...Array} [arrays] The arrays to inspect.
  23519. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23520. * @returns {Array} Returns the new array of combined values.
  23521. * @example
  23522. *
  23523. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  23524. * // => [2.1, 1.2]
  23525. *
  23526. * // The `_.property` iteratee shorthand.
  23527. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23528. * // => [{ 'x': 1 }, { 'x': 2 }]
  23529. */
  23530. var unionBy = baseRest(function(arrays) {
  23531. var iteratee = last(arrays);
  23532. if (isArrayLikeObject(iteratee)) {
  23533. iteratee = undefined;
  23534. }
  23535. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  23536. });
  23537. /**
  23538. * This method is like `_.union` except that it accepts `comparator` which
  23539. * is invoked to compare elements of `arrays`. Result values are chosen from
  23540. * the first array in which the value occurs. The comparator is invoked
  23541. * with two arguments: (arrVal, othVal).
  23542. *
  23543. * @static
  23544. * @memberOf _
  23545. * @since 4.0.0
  23546. * @category Array
  23547. * @param {...Array} [arrays] The arrays to inspect.
  23548. * @param {Function} [comparator] The comparator invoked per element.
  23549. * @returns {Array} Returns the new array of combined values.
  23550. * @example
  23551. *
  23552. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23553. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23554. *
  23555. * _.unionWith(objects, others, _.isEqual);
  23556. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23557. */
  23558. var unionWith = baseRest(function(arrays) {
  23559. var comparator = last(arrays);
  23560. comparator = typeof comparator == 'function' ? comparator : undefined;
  23561. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  23562. });
  23563. /**
  23564. * Creates a duplicate-free version of an array, using
  23565. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23566. * for equality comparisons, in which only the first occurrence of each element
  23567. * is kept. The order of result values is determined by the order they occur
  23568. * in the array.
  23569. *
  23570. * @static
  23571. * @memberOf _
  23572. * @since 0.1.0
  23573. * @category Array
  23574. * @param {Array} array The array to inspect.
  23575. * @returns {Array} Returns the new duplicate free array.
  23576. * @example
  23577. *
  23578. * _.uniq([2, 1, 2]);
  23579. * // => [2, 1]
  23580. */
  23581. function uniq(array) {
  23582. return (array && array.length) ? baseUniq(array) : [];
  23583. }
  23584. /**
  23585. * This method is like `_.uniq` except that it accepts `iteratee` which is
  23586. * invoked for each element in `array` to generate the criterion by which
  23587. * uniqueness is computed. The order of result values is determined by the
  23588. * order they occur in the array. The iteratee is invoked with one argument:
  23589. * (value).
  23590. *
  23591. * @static
  23592. * @memberOf _
  23593. * @since 4.0.0
  23594. * @category Array
  23595. * @param {Array} array The array to inspect.
  23596. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23597. * @returns {Array} Returns the new duplicate free array.
  23598. * @example
  23599. *
  23600. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  23601. * // => [2.1, 1.2]
  23602. *
  23603. * // The `_.property` iteratee shorthand.
  23604. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  23605. * // => [{ 'x': 1 }, { 'x': 2 }]
  23606. */
  23607. function uniqBy(array, iteratee) {
  23608. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  23609. }
  23610. /**
  23611. * This method is like `_.uniq` except that it accepts `comparator` which
  23612. * is invoked to compare elements of `array`. The order of result values is
  23613. * determined by the order they occur in the array.The comparator is invoked
  23614. * with two arguments: (arrVal, othVal).
  23615. *
  23616. * @static
  23617. * @memberOf _
  23618. * @since 4.0.0
  23619. * @category Array
  23620. * @param {Array} array The array to inspect.
  23621. * @param {Function} [comparator] The comparator invoked per element.
  23622. * @returns {Array} Returns the new duplicate free array.
  23623. * @example
  23624. *
  23625. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23626. *
  23627. * _.uniqWith(objects, _.isEqual);
  23628. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  23629. */
  23630. function uniqWith(array, comparator) {
  23631. comparator = typeof comparator == 'function' ? comparator : undefined;
  23632. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  23633. }
  23634. /**
  23635. * This method is like `_.zip` except that it accepts an array of grouped
  23636. * elements and creates an array regrouping the elements to their pre-zip
  23637. * configuration.
  23638. *
  23639. * @static
  23640. * @memberOf _
  23641. * @since 1.2.0
  23642. * @category Array
  23643. * @param {Array} array The array of grouped elements to process.
  23644. * @returns {Array} Returns the new array of regrouped elements.
  23645. * @example
  23646. *
  23647. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  23648. * // => [['a', 1, true], ['b', 2, false]]
  23649. *
  23650. * _.unzip(zipped);
  23651. * // => [['a', 'b'], [1, 2], [true, false]]
  23652. */
  23653. function unzip(array) {
  23654. if (!(array && array.length)) {
  23655. return [];
  23656. }
  23657. var length = 0;
  23658. array = arrayFilter(array, function(group) {
  23659. if (isArrayLikeObject(group)) {
  23660. length = nativeMax(group.length, length);
  23661. return true;
  23662. }
  23663. });
  23664. return baseTimes(length, function(index) {
  23665. return arrayMap(array, baseProperty(index));
  23666. });
  23667. }
  23668. /**
  23669. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  23670. * how regrouped values should be combined. The iteratee is invoked with the
  23671. * elements of each group: (...group).
  23672. *
  23673. * @static
  23674. * @memberOf _
  23675. * @since 3.8.0
  23676. * @category Array
  23677. * @param {Array} array The array of grouped elements to process.
  23678. * @param {Function} [iteratee=_.identity] The function to combine
  23679. * regrouped values.
  23680. * @returns {Array} Returns the new array of regrouped elements.
  23681. * @example
  23682. *
  23683. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  23684. * // => [[1, 10, 100], [2, 20, 200]]
  23685. *
  23686. * _.unzipWith(zipped, _.add);
  23687. * // => [3, 30, 300]
  23688. */
  23689. function unzipWith(array, iteratee) {
  23690. if (!(array && array.length)) {
  23691. return [];
  23692. }
  23693. var result = unzip(array);
  23694. if (iteratee == null) {
  23695. return result;
  23696. }
  23697. return arrayMap(result, function(group) {
  23698. return apply(iteratee, undefined, group);
  23699. });
  23700. }
  23701. /**
  23702. * Creates an array excluding all given values using
  23703. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23704. * for equality comparisons.
  23705. *
  23706. * **Note:** Unlike `_.pull`, this method returns a new array.
  23707. *
  23708. * @static
  23709. * @memberOf _
  23710. * @since 0.1.0
  23711. * @category Array
  23712. * @param {Array} array The array to inspect.
  23713. * @param {...*} [values] The values to exclude.
  23714. * @returns {Array} Returns the new array of filtered values.
  23715. * @see _.difference, _.xor
  23716. * @example
  23717. *
  23718. * _.without([2, 1, 2, 3], 1, 2);
  23719. * // => [3]
  23720. */
  23721. var without = baseRest(function(array, values) {
  23722. return isArrayLikeObject(array)
  23723. ? baseDifference(array, values)
  23724. : [];
  23725. });
  23726. /**
  23727. * Creates an array of unique values that is the
  23728. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  23729. * of the given arrays. The order of result values is determined by the order
  23730. * they occur in the arrays.
  23731. *
  23732. * @static
  23733. * @memberOf _
  23734. * @since 2.4.0
  23735. * @category Array
  23736. * @param {...Array} [arrays] The arrays to inspect.
  23737. * @returns {Array} Returns the new array of filtered values.
  23738. * @see _.difference, _.without
  23739. * @example
  23740. *
  23741. * _.xor([2, 1], [2, 3]);
  23742. * // => [1, 3]
  23743. */
  23744. var xor = baseRest(function(arrays) {
  23745. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  23746. });
  23747. /**
  23748. * This method is like `_.xor` except that it accepts `iteratee` which is
  23749. * invoked for each element of each `arrays` to generate the criterion by
  23750. * which by which they're compared. The order of result values is determined
  23751. * by the order they occur in the arrays. The iteratee is invoked with one
  23752. * argument: (value).
  23753. *
  23754. * @static
  23755. * @memberOf _
  23756. * @since 4.0.0
  23757. * @category Array
  23758. * @param {...Array} [arrays] The arrays to inspect.
  23759. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23760. * @returns {Array} Returns the new array of filtered values.
  23761. * @example
  23762. *
  23763. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  23764. * // => [1.2, 3.4]
  23765. *
  23766. * // The `_.property` iteratee shorthand.
  23767. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23768. * // => [{ 'x': 2 }]
  23769. */
  23770. var xorBy = baseRest(function(arrays) {
  23771. var iteratee = last(arrays);
  23772. if (isArrayLikeObject(iteratee)) {
  23773. iteratee = undefined;
  23774. }
  23775. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  23776. });
  23777. /**
  23778. * This method is like `_.xor` except that it accepts `comparator` which is
  23779. * invoked to compare elements of `arrays`. The order of result values is
  23780. * determined by the order they occur in the arrays. The comparator is invoked
  23781. * with two arguments: (arrVal, othVal).
  23782. *
  23783. * @static
  23784. * @memberOf _
  23785. * @since 4.0.0
  23786. * @category Array
  23787. * @param {...Array} [arrays] The arrays to inspect.
  23788. * @param {Function} [comparator] The comparator invoked per element.
  23789. * @returns {Array} Returns the new array of filtered values.
  23790. * @example
  23791. *
  23792. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23793. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23794. *
  23795. * _.xorWith(objects, others, _.isEqual);
  23796. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23797. */
  23798. var xorWith = baseRest(function(arrays) {
  23799. var comparator = last(arrays);
  23800. comparator = typeof comparator == 'function' ? comparator : undefined;
  23801. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  23802. });
  23803. /**
  23804. * Creates an array of grouped elements, the first of which contains the
  23805. * first elements of the given arrays, the second of which contains the
  23806. * second elements of the given arrays, and so on.
  23807. *
  23808. * @static
  23809. * @memberOf _
  23810. * @since 0.1.0
  23811. * @category Array
  23812. * @param {...Array} [arrays] The arrays to process.
  23813. * @returns {Array} Returns the new array of grouped elements.
  23814. * @example
  23815. *
  23816. * _.zip(['a', 'b'], [1, 2], [true, false]);
  23817. * // => [['a', 1, true], ['b', 2, false]]
  23818. */
  23819. var zip = baseRest(unzip);
  23820. /**
  23821. * This method is like `_.fromPairs` except that it accepts two arrays,
  23822. * one of property identifiers and one of corresponding values.
  23823. *
  23824. * @static
  23825. * @memberOf _
  23826. * @since 0.4.0
  23827. * @category Array
  23828. * @param {Array} [props=[]] The property identifiers.
  23829. * @param {Array} [values=[]] The property values.
  23830. * @returns {Object} Returns the new object.
  23831. * @example
  23832. *
  23833. * _.zipObject(['a', 'b'], [1, 2]);
  23834. * // => { 'a': 1, 'b': 2 }
  23835. */
  23836. function zipObject(props, values) {
  23837. return baseZipObject(props || [], values || [], assignValue);
  23838. }
  23839. /**
  23840. * This method is like `_.zipObject` except that it supports property paths.
  23841. *
  23842. * @static
  23843. * @memberOf _
  23844. * @since 4.1.0
  23845. * @category Array
  23846. * @param {Array} [props=[]] The property identifiers.
  23847. * @param {Array} [values=[]] The property values.
  23848. * @returns {Object} Returns the new object.
  23849. * @example
  23850. *
  23851. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  23852. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  23853. */
  23854. function zipObjectDeep(props, values) {
  23855. return baseZipObject(props || [], values || [], baseSet);
  23856. }
  23857. /**
  23858. * This method is like `_.zip` except that it accepts `iteratee` to specify
  23859. * how grouped values should be combined. The iteratee is invoked with the
  23860. * elements of each group: (...group).
  23861. *
  23862. * @static
  23863. * @memberOf _
  23864. * @since 3.8.0
  23865. * @category Array
  23866. * @param {...Array} [arrays] The arrays to process.
  23867. * @param {Function} [iteratee=_.identity] The function to combine
  23868. * grouped values.
  23869. * @returns {Array} Returns the new array of grouped elements.
  23870. * @example
  23871. *
  23872. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  23873. * return a + b + c;
  23874. * });
  23875. * // => [111, 222]
  23876. */
  23877. var zipWith = baseRest(function(arrays) {
  23878. var length = arrays.length,
  23879. iteratee = length > 1 ? arrays[length - 1] : undefined;
  23880. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  23881. return unzipWith(arrays, iteratee);
  23882. });
  23883. /*------------------------------------------------------------------------*/
  23884. /**
  23885. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  23886. * chain sequences enabled. The result of such sequences must be unwrapped
  23887. * with `_#value`.
  23888. *
  23889. * @static
  23890. * @memberOf _
  23891. * @since 1.3.0
  23892. * @category Seq
  23893. * @param {*} value The value to wrap.
  23894. * @returns {Object} Returns the new `lodash` wrapper instance.
  23895. * @example
  23896. *
  23897. * var users = [
  23898. * { 'user': 'barney', 'age': 36 },
  23899. * { 'user': 'fred', 'age': 40 },
  23900. * { 'user': 'pebbles', 'age': 1 }
  23901. * ];
  23902. *
  23903. * var youngest = _
  23904. * .chain(users)
  23905. * .sortBy('age')
  23906. * .map(function(o) {
  23907. * return o.user + ' is ' + o.age;
  23908. * })
  23909. * .head()
  23910. * .value();
  23911. * // => 'pebbles is 1'
  23912. */
  23913. function chain(value) {
  23914. var result = lodash(value);
  23915. result.__chain__ = true;
  23916. return result;
  23917. }
  23918. /**
  23919. * This method invokes `interceptor` and returns `value`. The interceptor
  23920. * is invoked with one argument; (value). The purpose of this method is to
  23921. * "tap into" a method chain sequence in order to modify intermediate results.
  23922. *
  23923. * @static
  23924. * @memberOf _
  23925. * @since 0.1.0
  23926. * @category Seq
  23927. * @param {*} value The value to provide to `interceptor`.
  23928. * @param {Function} interceptor The function to invoke.
  23929. * @returns {*} Returns `value`.
  23930. * @example
  23931. *
  23932. * _([1, 2, 3])
  23933. * .tap(function(array) {
  23934. * // Mutate input array.
  23935. * array.pop();
  23936. * })
  23937. * .reverse()
  23938. * .value();
  23939. * // => [2, 1]
  23940. */
  23941. function tap(value, interceptor) {
  23942. interceptor(value);
  23943. return value;
  23944. }
  23945. /**
  23946. * This method is like `_.tap` except that it returns the result of `interceptor`.
  23947. * The purpose of this method is to "pass thru" values replacing intermediate
  23948. * results in a method chain sequence.
  23949. *
  23950. * @static
  23951. * @memberOf _
  23952. * @since 3.0.0
  23953. * @category Seq
  23954. * @param {*} value The value to provide to `interceptor`.
  23955. * @param {Function} interceptor The function to invoke.
  23956. * @returns {*} Returns the result of `interceptor`.
  23957. * @example
  23958. *
  23959. * _(' abc ')
  23960. * .chain()
  23961. * .trim()
  23962. * .thru(function(value) {
  23963. * return [value];
  23964. * })
  23965. * .value();
  23966. * // => ['abc']
  23967. */
  23968. function thru(value, interceptor) {
  23969. return interceptor(value);
  23970. }
  23971. /**
  23972. * This method is the wrapper version of `_.at`.
  23973. *
  23974. * @name at
  23975. * @memberOf _
  23976. * @since 1.0.0
  23977. * @category Seq
  23978. * @param {...(string|string[])} [paths] The property paths to pick.
  23979. * @returns {Object} Returns the new `lodash` wrapper instance.
  23980. * @example
  23981. *
  23982. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  23983. *
  23984. * _(object).at(['a[0].b.c', 'a[1]']).value();
  23985. * // => [3, 4]
  23986. */
  23987. var wrapperAt = flatRest(function(paths) {
  23988. var length = paths.length,
  23989. start = length ? paths[0] : 0,
  23990. value = this.__wrapped__,
  23991. interceptor = function(object) { return baseAt(object, paths); };
  23992. if (length > 1 || this.__actions__.length ||
  23993. !(value instanceof LazyWrapper) || !isIndex(start)) {
  23994. return this.thru(interceptor);
  23995. }
  23996. value = value.slice(start, +start + (length ? 1 : 0));
  23997. value.__actions__.push({
  23998. 'func': thru,
  23999. 'args': [interceptor],
  24000. 'thisArg': undefined
  24001. });
  24002. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  24003. if (length && !array.length) {
  24004. array.push(undefined);
  24005. }
  24006. return array;
  24007. });
  24008. });
  24009. /**
  24010. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  24011. *
  24012. * @name chain
  24013. * @memberOf _
  24014. * @since 0.1.0
  24015. * @category Seq
  24016. * @returns {Object} Returns the new `lodash` wrapper instance.
  24017. * @example
  24018. *
  24019. * var users = [
  24020. * { 'user': 'barney', 'age': 36 },
  24021. * { 'user': 'fred', 'age': 40 }
  24022. * ];
  24023. *
  24024. * // A sequence without explicit chaining.
  24025. * _(users).head();
  24026. * // => { 'user': 'barney', 'age': 36 }
  24027. *
  24028. * // A sequence with explicit chaining.
  24029. * _(users)
  24030. * .chain()
  24031. * .head()
  24032. * .pick('user')
  24033. * .value();
  24034. * // => { 'user': 'barney' }
  24035. */
  24036. function wrapperChain() {
  24037. return chain(this);
  24038. }
  24039. /**
  24040. * Executes the chain sequence and returns the wrapped result.
  24041. *
  24042. * @name commit
  24043. * @memberOf _
  24044. * @since 3.2.0
  24045. * @category Seq
  24046. * @returns {Object} Returns the new `lodash` wrapper instance.
  24047. * @example
  24048. *
  24049. * var array = [1, 2];
  24050. * var wrapped = _(array).push(3);
  24051. *
  24052. * console.log(array);
  24053. * // => [1, 2]
  24054. *
  24055. * wrapped = wrapped.commit();
  24056. * console.log(array);
  24057. * // => [1, 2, 3]
  24058. *
  24059. * wrapped.last();
  24060. * // => 3
  24061. *
  24062. * console.log(array);
  24063. * // => [1, 2, 3]
  24064. */
  24065. function wrapperCommit() {
  24066. return new LodashWrapper(this.value(), this.__chain__);
  24067. }
  24068. /**
  24069. * Gets the next value on a wrapped object following the
  24070. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  24071. *
  24072. * @name next
  24073. * @memberOf _
  24074. * @since 4.0.0
  24075. * @category Seq
  24076. * @returns {Object} Returns the next iterator value.
  24077. * @example
  24078. *
  24079. * var wrapped = _([1, 2]);
  24080. *
  24081. * wrapped.next();
  24082. * // => { 'done': false, 'value': 1 }
  24083. *
  24084. * wrapped.next();
  24085. * // => { 'done': false, 'value': 2 }
  24086. *
  24087. * wrapped.next();
  24088. * // => { 'done': true, 'value': undefined }
  24089. */
  24090. function wrapperNext() {
  24091. if (this.__values__ === undefined) {
  24092. this.__values__ = toArray(this.value());
  24093. }
  24094. var done = this.__index__ >= this.__values__.length,
  24095. value = done ? undefined : this.__values__[this.__index__++];
  24096. return { 'done': done, 'value': value };
  24097. }
  24098. /**
  24099. * Enables the wrapper to be iterable.
  24100. *
  24101. * @name Symbol.iterator
  24102. * @memberOf _
  24103. * @since 4.0.0
  24104. * @category Seq
  24105. * @returns {Object} Returns the wrapper object.
  24106. * @example
  24107. *
  24108. * var wrapped = _([1, 2]);
  24109. *
  24110. * wrapped[Symbol.iterator]() === wrapped;
  24111. * // => true
  24112. *
  24113. * Array.from(wrapped);
  24114. * // => [1, 2]
  24115. */
  24116. function wrapperToIterator() {
  24117. return this;
  24118. }
  24119. /**
  24120. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  24121. *
  24122. * @name plant
  24123. * @memberOf _
  24124. * @since 3.2.0
  24125. * @category Seq
  24126. * @param {*} value The value to plant.
  24127. * @returns {Object} Returns the new `lodash` wrapper instance.
  24128. * @example
  24129. *
  24130. * function square(n) {
  24131. * return n * n;
  24132. * }
  24133. *
  24134. * var wrapped = _([1, 2]).map(square);
  24135. * var other = wrapped.plant([3, 4]);
  24136. *
  24137. * other.value();
  24138. * // => [9, 16]
  24139. *
  24140. * wrapped.value();
  24141. * // => [1, 4]
  24142. */
  24143. function wrapperPlant(value) {
  24144. var result,
  24145. parent = this;
  24146. while (parent instanceof baseLodash) {
  24147. var clone = wrapperClone(parent);
  24148. clone.__index__ = 0;
  24149. clone.__values__ = undefined;
  24150. if (result) {
  24151. previous.__wrapped__ = clone;
  24152. } else {
  24153. result = clone;
  24154. }
  24155. var previous = clone;
  24156. parent = parent.__wrapped__;
  24157. }
  24158. previous.__wrapped__ = value;
  24159. return result;
  24160. }
  24161. /**
  24162. * This method is the wrapper version of `_.reverse`.
  24163. *
  24164. * **Note:** This method mutates the wrapped array.
  24165. *
  24166. * @name reverse
  24167. * @memberOf _
  24168. * @since 0.1.0
  24169. * @category Seq
  24170. * @returns {Object} Returns the new `lodash` wrapper instance.
  24171. * @example
  24172. *
  24173. * var array = [1, 2, 3];
  24174. *
  24175. * _(array).reverse().value()
  24176. * // => [3, 2, 1]
  24177. *
  24178. * console.log(array);
  24179. * // => [3, 2, 1]
  24180. */
  24181. function wrapperReverse() {
  24182. var value = this.__wrapped__;
  24183. if (value instanceof LazyWrapper) {
  24184. var wrapped = value;
  24185. if (this.__actions__.length) {
  24186. wrapped = new LazyWrapper(this);
  24187. }
  24188. wrapped = wrapped.reverse();
  24189. wrapped.__actions__.push({
  24190. 'func': thru,
  24191. 'args': [reverse],
  24192. 'thisArg': undefined
  24193. });
  24194. return new LodashWrapper(wrapped, this.__chain__);
  24195. }
  24196. return this.thru(reverse);
  24197. }
  24198. /**
  24199. * Executes the chain sequence to resolve the unwrapped value.
  24200. *
  24201. * @name value
  24202. * @memberOf _
  24203. * @since 0.1.0
  24204. * @alias toJSON, valueOf
  24205. * @category Seq
  24206. * @returns {*} Returns the resolved unwrapped value.
  24207. * @example
  24208. *
  24209. * _([1, 2, 3]).value();
  24210. * // => [1, 2, 3]
  24211. */
  24212. function wrapperValue() {
  24213. return baseWrapperValue(this.__wrapped__, this.__actions__);
  24214. }
  24215. /*------------------------------------------------------------------------*/
  24216. /**
  24217. * Creates an object composed of keys generated from the results of running
  24218. * each element of `collection` thru `iteratee`. The corresponding value of
  24219. * each key is the number of times the key was returned by `iteratee`. The
  24220. * iteratee is invoked with one argument: (value).
  24221. *
  24222. * @static
  24223. * @memberOf _
  24224. * @since 0.5.0
  24225. * @category Collection
  24226. * @param {Array|Object} collection The collection to iterate over.
  24227. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24228. * @returns {Object} Returns the composed aggregate object.
  24229. * @example
  24230. *
  24231. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  24232. * // => { '4': 1, '6': 2 }
  24233. *
  24234. * // The `_.property` iteratee shorthand.
  24235. * _.countBy(['one', 'two', 'three'], 'length');
  24236. * // => { '3': 2, '5': 1 }
  24237. */
  24238. var countBy = createAggregator(function(result, value, key) {
  24239. if (hasOwnProperty.call(result, key)) {
  24240. ++result[key];
  24241. } else {
  24242. baseAssignValue(result, key, 1);
  24243. }
  24244. });
  24245. /**
  24246. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  24247. * Iteration is stopped once `predicate` returns falsey. The predicate is
  24248. * invoked with three arguments: (value, index|key, collection).
  24249. *
  24250. * **Note:** This method returns `true` for
  24251. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  24252. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  24253. * elements of empty collections.
  24254. *
  24255. * @static
  24256. * @memberOf _
  24257. * @since 0.1.0
  24258. * @category Collection
  24259. * @param {Array|Object} collection The collection to iterate over.
  24260. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24261. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24262. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  24263. * else `false`.
  24264. * @example
  24265. *
  24266. * _.every([true, 1, null, 'yes'], Boolean);
  24267. * // => false
  24268. *
  24269. * var users = [
  24270. * { 'user': 'barney', 'age': 36, 'active': false },
  24271. * { 'user': 'fred', 'age': 40, 'active': false }
  24272. * ];
  24273. *
  24274. * // The `_.matches` iteratee shorthand.
  24275. * _.every(users, { 'user': 'barney', 'active': false });
  24276. * // => false
  24277. *
  24278. * // The `_.matchesProperty` iteratee shorthand.
  24279. * _.every(users, ['active', false]);
  24280. * // => true
  24281. *
  24282. * // The `_.property` iteratee shorthand.
  24283. * _.every(users, 'active');
  24284. * // => false
  24285. */
  24286. function every(collection, predicate, guard) {
  24287. var func = isArray(collection) ? arrayEvery : baseEvery;
  24288. if (guard && isIterateeCall(collection, predicate, guard)) {
  24289. predicate = undefined;
  24290. }
  24291. return func(collection, getIteratee(predicate, 3));
  24292. }
  24293. /**
  24294. * Iterates over elements of `collection`, returning an array of all elements
  24295. * `predicate` returns truthy for. The predicate is invoked with three
  24296. * arguments: (value, index|key, collection).
  24297. *
  24298. * **Note:** Unlike `_.remove`, this method returns a new array.
  24299. *
  24300. * @static
  24301. * @memberOf _
  24302. * @since 0.1.0
  24303. * @category Collection
  24304. * @param {Array|Object} collection The collection to iterate over.
  24305. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24306. * @returns {Array} Returns the new filtered array.
  24307. * @see _.reject
  24308. * @example
  24309. *
  24310. * var users = [
  24311. * { 'user': 'barney', 'age': 36, 'active': true },
  24312. * { 'user': 'fred', 'age': 40, 'active': false }
  24313. * ];
  24314. *
  24315. * _.filter(users, function(o) { return !o.active; });
  24316. * // => objects for ['fred']
  24317. *
  24318. * // The `_.matches` iteratee shorthand.
  24319. * _.filter(users, { 'age': 36, 'active': true });
  24320. * // => objects for ['barney']
  24321. *
  24322. * // The `_.matchesProperty` iteratee shorthand.
  24323. * _.filter(users, ['active', false]);
  24324. * // => objects for ['fred']
  24325. *
  24326. * // The `_.property` iteratee shorthand.
  24327. * _.filter(users, 'active');
  24328. * // => objects for ['barney']
  24329. */
  24330. function filter(collection, predicate) {
  24331. var func = isArray(collection) ? arrayFilter : baseFilter;
  24332. return func(collection, getIteratee(predicate, 3));
  24333. }
  24334. /**
  24335. * Iterates over elements of `collection`, returning the first element
  24336. * `predicate` returns truthy for. The predicate is invoked with three
  24337. * arguments: (value, index|key, collection).
  24338. *
  24339. * @static
  24340. * @memberOf _
  24341. * @since 0.1.0
  24342. * @category Collection
  24343. * @param {Array|Object} collection The collection to inspect.
  24344. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24345. * @param {number} [fromIndex=0] The index to search from.
  24346. * @returns {*} Returns the matched element, else `undefined`.
  24347. * @example
  24348. *
  24349. * var users = [
  24350. * { 'user': 'barney', 'age': 36, 'active': true },
  24351. * { 'user': 'fred', 'age': 40, 'active': false },
  24352. * { 'user': 'pebbles', 'age': 1, 'active': true }
  24353. * ];
  24354. *
  24355. * _.find(users, function(o) { return o.age < 40; });
  24356. * // => object for 'barney'
  24357. *
  24358. * // The `_.matches` iteratee shorthand.
  24359. * _.find(users, { 'age': 1, 'active': true });
  24360. * // => object for 'pebbles'
  24361. *
  24362. * // The `_.matchesProperty` iteratee shorthand.
  24363. * _.find(users, ['active', false]);
  24364. * // => object for 'fred'
  24365. *
  24366. * // The `_.property` iteratee shorthand.
  24367. * _.find(users, 'active');
  24368. * // => object for 'barney'
  24369. */
  24370. var find = createFind(findIndex);
  24371. /**
  24372. * This method is like `_.find` except that it iterates over elements of
  24373. * `collection` from right to left.
  24374. *
  24375. * @static
  24376. * @memberOf _
  24377. * @since 2.0.0
  24378. * @category Collection
  24379. * @param {Array|Object} collection The collection to inspect.
  24380. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24381. * @param {number} [fromIndex=collection.length-1] The index to search from.
  24382. * @returns {*} Returns the matched element, else `undefined`.
  24383. * @example
  24384. *
  24385. * _.findLast([1, 2, 3, 4], function(n) {
  24386. * return n % 2 == 1;
  24387. * });
  24388. * // => 3
  24389. */
  24390. var findLast = createFind(findLastIndex);
  24391. /**
  24392. * Creates a flattened array of values by running each element in `collection`
  24393. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  24394. * with three arguments: (value, index|key, collection).
  24395. *
  24396. * @static
  24397. * @memberOf _
  24398. * @since 4.0.0
  24399. * @category Collection
  24400. * @param {Array|Object} collection The collection to iterate over.
  24401. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24402. * @returns {Array} Returns the new flattened array.
  24403. * @example
  24404. *
  24405. * function duplicate(n) {
  24406. * return [n, n];
  24407. * }
  24408. *
  24409. * _.flatMap([1, 2], duplicate);
  24410. * // => [1, 1, 2, 2]
  24411. */
  24412. function flatMap(collection, iteratee) {
  24413. return baseFlatten(map(collection, iteratee), 1);
  24414. }
  24415. /**
  24416. * This method is like `_.flatMap` except that it recursively flattens the
  24417. * mapped results.
  24418. *
  24419. * @static
  24420. * @memberOf _
  24421. * @since 4.7.0
  24422. * @category Collection
  24423. * @param {Array|Object} collection The collection to iterate over.
  24424. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24425. * @returns {Array} Returns the new flattened array.
  24426. * @example
  24427. *
  24428. * function duplicate(n) {
  24429. * return [[[n, n]]];
  24430. * }
  24431. *
  24432. * _.flatMapDeep([1, 2], duplicate);
  24433. * // => [1, 1, 2, 2]
  24434. */
  24435. function flatMapDeep(collection, iteratee) {
  24436. return baseFlatten(map(collection, iteratee), INFINITY);
  24437. }
  24438. /**
  24439. * This method is like `_.flatMap` except that it recursively flattens the
  24440. * mapped results up to `depth` times.
  24441. *
  24442. * @static
  24443. * @memberOf _
  24444. * @since 4.7.0
  24445. * @category Collection
  24446. * @param {Array|Object} collection The collection to iterate over.
  24447. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24448. * @param {number} [depth=1] The maximum recursion depth.
  24449. * @returns {Array} Returns the new flattened array.
  24450. * @example
  24451. *
  24452. * function duplicate(n) {
  24453. * return [[[n, n]]];
  24454. * }
  24455. *
  24456. * _.flatMapDepth([1, 2], duplicate, 2);
  24457. * // => [[1, 1], [2, 2]]
  24458. */
  24459. function flatMapDepth(collection, iteratee, depth) {
  24460. depth = depth === undefined ? 1 : toInteger(depth);
  24461. return baseFlatten(map(collection, iteratee), depth);
  24462. }
  24463. /**
  24464. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  24465. * The iteratee is invoked with three arguments: (value, index|key, collection).
  24466. * Iteratee functions may exit iteration early by explicitly returning `false`.
  24467. *
  24468. * **Note:** As with other "Collections" methods, objects with a "length"
  24469. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  24470. * or `_.forOwn` for object iteration.
  24471. *
  24472. * @static
  24473. * @memberOf _
  24474. * @since 0.1.0
  24475. * @alias each
  24476. * @category Collection
  24477. * @param {Array|Object} collection The collection to iterate over.
  24478. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24479. * @returns {Array|Object} Returns `collection`.
  24480. * @see _.forEachRight
  24481. * @example
  24482. *
  24483. * _.forEach([1, 2], function(value) {
  24484. * console.log(value);
  24485. * });
  24486. * // => Logs `1` then `2`.
  24487. *
  24488. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  24489. * console.log(key);
  24490. * });
  24491. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  24492. */
  24493. function forEach(collection, iteratee) {
  24494. var func = isArray(collection) ? arrayEach : baseEach;
  24495. return func(collection, getIteratee(iteratee, 3));
  24496. }
  24497. /**
  24498. * This method is like `_.forEach` except that it iterates over elements of
  24499. * `collection` from right to left.
  24500. *
  24501. * @static
  24502. * @memberOf _
  24503. * @since 2.0.0
  24504. * @alias eachRight
  24505. * @category Collection
  24506. * @param {Array|Object} collection The collection to iterate over.
  24507. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24508. * @returns {Array|Object} Returns `collection`.
  24509. * @see _.forEach
  24510. * @example
  24511. *
  24512. * _.forEachRight([1, 2], function(value) {
  24513. * console.log(value);
  24514. * });
  24515. * // => Logs `2` then `1`.
  24516. */
  24517. function forEachRight(collection, iteratee) {
  24518. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  24519. return func(collection, getIteratee(iteratee, 3));
  24520. }
  24521. /**
  24522. * Creates an object composed of keys generated from the results of running
  24523. * each element of `collection` thru `iteratee`. The order of grouped values
  24524. * is determined by the order they occur in `collection`. The corresponding
  24525. * value of each key is an array of elements responsible for generating the
  24526. * key. The iteratee is invoked with one argument: (value).
  24527. *
  24528. * @static
  24529. * @memberOf _
  24530. * @since 0.1.0
  24531. * @category Collection
  24532. * @param {Array|Object} collection The collection to iterate over.
  24533. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24534. * @returns {Object} Returns the composed aggregate object.
  24535. * @example
  24536. *
  24537. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  24538. * // => { '4': [4.2], '6': [6.1, 6.3] }
  24539. *
  24540. * // The `_.property` iteratee shorthand.
  24541. * _.groupBy(['one', 'two', 'three'], 'length');
  24542. * // => { '3': ['one', 'two'], '5': ['three'] }
  24543. */
  24544. var groupBy = createAggregator(function(result, value, key) {
  24545. if (hasOwnProperty.call(result, key)) {
  24546. result[key].push(value);
  24547. } else {
  24548. baseAssignValue(result, key, [value]);
  24549. }
  24550. });
  24551. /**
  24552. * Checks if `value` is in `collection`. If `collection` is a string, it's
  24553. * checked for a substring of `value`, otherwise
  24554. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  24555. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  24556. * the offset from the end of `collection`.
  24557. *
  24558. * @static
  24559. * @memberOf _
  24560. * @since 0.1.0
  24561. * @category Collection
  24562. * @param {Array|Object|string} collection The collection to inspect.
  24563. * @param {*} value The value to search for.
  24564. * @param {number} [fromIndex=0] The index to search from.
  24565. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24566. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  24567. * @example
  24568. *
  24569. * _.includes([1, 2, 3], 1);
  24570. * // => true
  24571. *
  24572. * _.includes([1, 2, 3], 1, 2);
  24573. * // => false
  24574. *
  24575. * _.includes({ 'a': 1, 'b': 2 }, 1);
  24576. * // => true
  24577. *
  24578. * _.includes('abcd', 'bc');
  24579. * // => true
  24580. */
  24581. function includes(collection, value, fromIndex, guard) {
  24582. collection = isArrayLike(collection) ? collection : values(collection);
  24583. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  24584. var length = collection.length;
  24585. if (fromIndex < 0) {
  24586. fromIndex = nativeMax(length + fromIndex, 0);
  24587. }
  24588. return isString(collection)
  24589. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  24590. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  24591. }
  24592. /**
  24593. * Invokes the method at `path` of each element in `collection`, returning
  24594. * an array of the results of each invoked method. Any additional arguments
  24595. * are provided to each invoked method. If `path` is a function, it's invoked
  24596. * for, and `this` bound to, each element in `collection`.
  24597. *
  24598. * @static
  24599. * @memberOf _
  24600. * @since 4.0.0
  24601. * @category Collection
  24602. * @param {Array|Object} collection The collection to iterate over.
  24603. * @param {Array|Function|string} path The path of the method to invoke or
  24604. * the function invoked per iteration.
  24605. * @param {...*} [args] The arguments to invoke each method with.
  24606. * @returns {Array} Returns the array of results.
  24607. * @example
  24608. *
  24609. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  24610. * // => [[1, 5, 7], [1, 2, 3]]
  24611. *
  24612. * _.invokeMap([123, 456], String.prototype.split, '');
  24613. * // => [['1', '2', '3'], ['4', '5', '6']]
  24614. */
  24615. var invokeMap = baseRest(function(collection, path, args) {
  24616. var index = -1,
  24617. isFunc = typeof path == 'function',
  24618. result = isArrayLike(collection) ? Array(collection.length) : [];
  24619. baseEach(collection, function(value) {
  24620. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  24621. });
  24622. return result;
  24623. });
  24624. /**
  24625. * Creates an object composed of keys generated from the results of running
  24626. * each element of `collection` thru `iteratee`. The corresponding value of
  24627. * each key is the last element responsible for generating the key. The
  24628. * iteratee is invoked with one argument: (value).
  24629. *
  24630. * @static
  24631. * @memberOf _
  24632. * @since 4.0.0
  24633. * @category Collection
  24634. * @param {Array|Object} collection The collection to iterate over.
  24635. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24636. * @returns {Object} Returns the composed aggregate object.
  24637. * @example
  24638. *
  24639. * var array = [
  24640. * { 'dir': 'left', 'code': 97 },
  24641. * { 'dir': 'right', 'code': 100 }
  24642. * ];
  24643. *
  24644. * _.keyBy(array, function(o) {
  24645. * return String.fromCharCode(o.code);
  24646. * });
  24647. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  24648. *
  24649. * _.keyBy(array, 'dir');
  24650. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  24651. */
  24652. var keyBy = createAggregator(function(result, value, key) {
  24653. baseAssignValue(result, key, value);
  24654. });
  24655. /**
  24656. * Creates an array of values by running each element in `collection` thru
  24657. * `iteratee`. The iteratee is invoked with three arguments:
  24658. * (value, index|key, collection).
  24659. *
  24660. * Many lodash methods are guarded to work as iteratees for methods like
  24661. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  24662. *
  24663. * The guarded methods are:
  24664. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  24665. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  24666. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  24667. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  24668. *
  24669. * @static
  24670. * @memberOf _
  24671. * @since 0.1.0
  24672. * @category Collection
  24673. * @param {Array|Object} collection The collection to iterate over.
  24674. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24675. * @returns {Array} Returns the new mapped array.
  24676. * @example
  24677. *
  24678. * function square(n) {
  24679. * return n * n;
  24680. * }
  24681. *
  24682. * _.map([4, 8], square);
  24683. * // => [16, 64]
  24684. *
  24685. * _.map({ 'a': 4, 'b': 8 }, square);
  24686. * // => [16, 64] (iteration order is not guaranteed)
  24687. *
  24688. * var users = [
  24689. * { 'user': 'barney' },
  24690. * { 'user': 'fred' }
  24691. * ];
  24692. *
  24693. * // The `_.property` iteratee shorthand.
  24694. * _.map(users, 'user');
  24695. * // => ['barney', 'fred']
  24696. */
  24697. function map(collection, iteratee) {
  24698. var func = isArray(collection) ? arrayMap : baseMap;
  24699. return func(collection, getIteratee(iteratee, 3));
  24700. }
  24701. /**
  24702. * This method is like `_.sortBy` except that it allows specifying the sort
  24703. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  24704. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  24705. * descending or "asc" for ascending sort order of corresponding values.
  24706. *
  24707. * @static
  24708. * @memberOf _
  24709. * @since 4.0.0
  24710. * @category Collection
  24711. * @param {Array|Object} collection The collection to iterate over.
  24712. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  24713. * The iteratees to sort by.
  24714. * @param {string[]} [orders] The sort orders of `iteratees`.
  24715. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24716. * @returns {Array} Returns the new sorted array.
  24717. * @example
  24718. *
  24719. * var users = [
  24720. * { 'user': 'fred', 'age': 48 },
  24721. * { 'user': 'barney', 'age': 34 },
  24722. * { 'user': 'fred', 'age': 40 },
  24723. * { 'user': 'barney', 'age': 36 }
  24724. * ];
  24725. *
  24726. * // Sort by `user` in ascending order and by `age` in descending order.
  24727. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  24728. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  24729. */
  24730. function orderBy(collection, iteratees, orders, guard) {
  24731. if (collection == null) {
  24732. return [];
  24733. }
  24734. if (!isArray(iteratees)) {
  24735. iteratees = iteratees == null ? [] : [iteratees];
  24736. }
  24737. orders = guard ? undefined : orders;
  24738. if (!isArray(orders)) {
  24739. orders = orders == null ? [] : [orders];
  24740. }
  24741. return baseOrderBy(collection, iteratees, orders);
  24742. }
  24743. /**
  24744. * Creates an array of elements split into two groups, the first of which
  24745. * contains elements `predicate` returns truthy for, the second of which
  24746. * contains elements `predicate` returns falsey for. The predicate is
  24747. * invoked with one argument: (value).
  24748. *
  24749. * @static
  24750. * @memberOf _
  24751. * @since 3.0.0
  24752. * @category Collection
  24753. * @param {Array|Object} collection The collection to iterate over.
  24754. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24755. * @returns {Array} Returns the array of grouped elements.
  24756. * @example
  24757. *
  24758. * var users = [
  24759. * { 'user': 'barney', 'age': 36, 'active': false },
  24760. * { 'user': 'fred', 'age': 40, 'active': true },
  24761. * { 'user': 'pebbles', 'age': 1, 'active': false }
  24762. * ];
  24763. *
  24764. * _.partition(users, function(o) { return o.active; });
  24765. * // => objects for [['fred'], ['barney', 'pebbles']]
  24766. *
  24767. * // The `_.matches` iteratee shorthand.
  24768. * _.partition(users, { 'age': 1, 'active': false });
  24769. * // => objects for [['pebbles'], ['barney', 'fred']]
  24770. *
  24771. * // The `_.matchesProperty` iteratee shorthand.
  24772. * _.partition(users, ['active', false]);
  24773. * // => objects for [['barney', 'pebbles'], ['fred']]
  24774. *
  24775. * // The `_.property` iteratee shorthand.
  24776. * _.partition(users, 'active');
  24777. * // => objects for [['fred'], ['barney', 'pebbles']]
  24778. */
  24779. var partition = createAggregator(function(result, value, key) {
  24780. result[key ? 0 : 1].push(value);
  24781. }, function() { return [[], []]; });
  24782. /**
  24783. * Reduces `collection` to a value which is the accumulated result of running
  24784. * each element in `collection` thru `iteratee`, where each successive
  24785. * invocation is supplied the return value of the previous. If `accumulator`
  24786. * is not given, the first element of `collection` is used as the initial
  24787. * value. The iteratee is invoked with four arguments:
  24788. * (accumulator, value, index|key, collection).
  24789. *
  24790. * Many lodash methods are guarded to work as iteratees for methods like
  24791. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  24792. *
  24793. * The guarded methods are:
  24794. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  24795. * and `sortBy`
  24796. *
  24797. * @static
  24798. * @memberOf _
  24799. * @since 0.1.0
  24800. * @category Collection
  24801. * @param {Array|Object} collection The collection to iterate over.
  24802. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24803. * @param {*} [accumulator] The initial value.
  24804. * @returns {*} Returns the accumulated value.
  24805. * @see _.reduceRight
  24806. * @example
  24807. *
  24808. * _.reduce([1, 2], function(sum, n) {
  24809. * return sum + n;
  24810. * }, 0);
  24811. * // => 3
  24812. *
  24813. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  24814. * (result[value] || (result[value] = [])).push(key);
  24815. * return result;
  24816. * }, {});
  24817. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  24818. */
  24819. function reduce(collection, iteratee, accumulator) {
  24820. var func = isArray(collection) ? arrayReduce : baseReduce,
  24821. initAccum = arguments.length < 3;
  24822. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  24823. }
  24824. /**
  24825. * This method is like `_.reduce` except that it iterates over elements of
  24826. * `collection` from right to left.
  24827. *
  24828. * @static
  24829. * @memberOf _
  24830. * @since 0.1.0
  24831. * @category Collection
  24832. * @param {Array|Object} collection The collection to iterate over.
  24833. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24834. * @param {*} [accumulator] The initial value.
  24835. * @returns {*} Returns the accumulated value.
  24836. * @see _.reduce
  24837. * @example
  24838. *
  24839. * var array = [[0, 1], [2, 3], [4, 5]];
  24840. *
  24841. * _.reduceRight(array, function(flattened, other) {
  24842. * return flattened.concat(other);
  24843. * }, []);
  24844. * // => [4, 5, 2, 3, 0, 1]
  24845. */
  24846. function reduceRight(collection, iteratee, accumulator) {
  24847. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  24848. initAccum = arguments.length < 3;
  24849. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  24850. }
  24851. /**
  24852. * The opposite of `_.filter`; this method returns the elements of `collection`
  24853. * that `predicate` does **not** return truthy for.
  24854. *
  24855. * @static
  24856. * @memberOf _
  24857. * @since 0.1.0
  24858. * @category Collection
  24859. * @param {Array|Object} collection The collection to iterate over.
  24860. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24861. * @returns {Array} Returns the new filtered array.
  24862. * @see _.filter
  24863. * @example
  24864. *
  24865. * var users = [
  24866. * { 'user': 'barney', 'age': 36, 'active': false },
  24867. * { 'user': 'fred', 'age': 40, 'active': true }
  24868. * ];
  24869. *
  24870. * _.reject(users, function(o) { return !o.active; });
  24871. * // => objects for ['fred']
  24872. *
  24873. * // The `_.matches` iteratee shorthand.
  24874. * _.reject(users, { 'age': 40, 'active': true });
  24875. * // => objects for ['barney']
  24876. *
  24877. * // The `_.matchesProperty` iteratee shorthand.
  24878. * _.reject(users, ['active', false]);
  24879. * // => objects for ['fred']
  24880. *
  24881. * // The `_.property` iteratee shorthand.
  24882. * _.reject(users, 'active');
  24883. * // => objects for ['barney']
  24884. */
  24885. function reject(collection, predicate) {
  24886. var func = isArray(collection) ? arrayFilter : baseFilter;
  24887. return func(collection, negate(getIteratee(predicate, 3)));
  24888. }
  24889. /**
  24890. * Gets a random element from `collection`.
  24891. *
  24892. * @static
  24893. * @memberOf _
  24894. * @since 2.0.0
  24895. * @category Collection
  24896. * @param {Array|Object} collection The collection to sample.
  24897. * @returns {*} Returns the random element.
  24898. * @example
  24899. *
  24900. * _.sample([1, 2, 3, 4]);
  24901. * // => 2
  24902. */
  24903. function sample(collection) {
  24904. var func = isArray(collection) ? arraySample : baseSample;
  24905. return func(collection);
  24906. }
  24907. /**
  24908. * Gets `n` random elements at unique keys from `collection` up to the
  24909. * size of `collection`.
  24910. *
  24911. * @static
  24912. * @memberOf _
  24913. * @since 4.0.0
  24914. * @category Collection
  24915. * @param {Array|Object} collection The collection to sample.
  24916. * @param {number} [n=1] The number of elements to sample.
  24917. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24918. * @returns {Array} Returns the random elements.
  24919. * @example
  24920. *
  24921. * _.sampleSize([1, 2, 3], 2);
  24922. * // => [3, 1]
  24923. *
  24924. * _.sampleSize([1, 2, 3], 4);
  24925. * // => [2, 3, 1]
  24926. */
  24927. function sampleSize(collection, n, guard) {
  24928. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  24929. n = 1;
  24930. } else {
  24931. n = toInteger(n);
  24932. }
  24933. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  24934. return func(collection, n);
  24935. }
  24936. /**
  24937. * Creates an array of shuffled values, using a version of the
  24938. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  24939. *
  24940. * @static
  24941. * @memberOf _
  24942. * @since 0.1.0
  24943. * @category Collection
  24944. * @param {Array|Object} collection The collection to shuffle.
  24945. * @returns {Array} Returns the new shuffled array.
  24946. * @example
  24947. *
  24948. * _.shuffle([1, 2, 3, 4]);
  24949. * // => [4, 1, 3, 2]
  24950. */
  24951. function shuffle(collection) {
  24952. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  24953. return func(collection);
  24954. }
  24955. /**
  24956. * Gets the size of `collection` by returning its length for array-like
  24957. * values or the number of own enumerable string keyed properties for objects.
  24958. *
  24959. * @static
  24960. * @memberOf _
  24961. * @since 0.1.0
  24962. * @category Collection
  24963. * @param {Array|Object|string} collection The collection to inspect.
  24964. * @returns {number} Returns the collection size.
  24965. * @example
  24966. *
  24967. * _.size([1, 2, 3]);
  24968. * // => 3
  24969. *
  24970. * _.size({ 'a': 1, 'b': 2 });
  24971. * // => 2
  24972. *
  24973. * _.size('pebbles');
  24974. * // => 7
  24975. */
  24976. function size(collection) {
  24977. if (collection == null) {
  24978. return 0;
  24979. }
  24980. if (isArrayLike(collection)) {
  24981. return isString(collection) ? stringSize(collection) : collection.length;
  24982. }
  24983. var tag = getTag(collection);
  24984. if (tag == mapTag || tag == setTag) {
  24985. return collection.size;
  24986. }
  24987. return baseKeys(collection).length;
  24988. }
  24989. /**
  24990. * Checks if `predicate` returns truthy for **any** element of `collection`.
  24991. * Iteration is stopped once `predicate` returns truthy. The predicate is
  24992. * invoked with three arguments: (value, index|key, collection).
  24993. *
  24994. * @static
  24995. * @memberOf _
  24996. * @since 0.1.0
  24997. * @category Collection
  24998. * @param {Array|Object} collection The collection to iterate over.
  24999. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  25000. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25001. * @returns {boolean} Returns `true` if any element passes the predicate check,
  25002. * else `false`.
  25003. * @example
  25004. *
  25005. * _.some([null, 0, 'yes', false], Boolean);
  25006. * // => true
  25007. *
  25008. * var users = [
  25009. * { 'user': 'barney', 'active': true },
  25010. * { 'user': 'fred', 'active': false }
  25011. * ];
  25012. *
  25013. * // The `_.matches` iteratee shorthand.
  25014. * _.some(users, { 'user': 'barney', 'active': false });
  25015. * // => false
  25016. *
  25017. * // The `_.matchesProperty` iteratee shorthand.
  25018. * _.some(users, ['active', false]);
  25019. * // => true
  25020. *
  25021. * // The `_.property` iteratee shorthand.
  25022. * _.some(users, 'active');
  25023. * // => true
  25024. */
  25025. function some(collection, predicate, guard) {
  25026. var func = isArray(collection) ? arraySome : baseSome;
  25027. if (guard && isIterateeCall(collection, predicate, guard)) {
  25028. predicate = undefined;
  25029. }
  25030. return func(collection, getIteratee(predicate, 3));
  25031. }
  25032. /**
  25033. * Creates an array of elements, sorted in ascending order by the results of
  25034. * running each element in a collection thru each iteratee. This method
  25035. * performs a stable sort, that is, it preserves the original sort order of
  25036. * equal elements. The iteratees are invoked with one argument: (value).
  25037. *
  25038. * @static
  25039. * @memberOf _
  25040. * @since 0.1.0
  25041. * @category Collection
  25042. * @param {Array|Object} collection The collection to iterate over.
  25043. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  25044. * The iteratees to sort by.
  25045. * @returns {Array} Returns the new sorted array.
  25046. * @example
  25047. *
  25048. * var users = [
  25049. * { 'user': 'fred', 'age': 48 },
  25050. * { 'user': 'barney', 'age': 36 },
  25051. * { 'user': 'fred', 'age': 40 },
  25052. * { 'user': 'barney', 'age': 34 }
  25053. * ];
  25054. *
  25055. * _.sortBy(users, [function(o) { return o.user; }]);
  25056. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  25057. *
  25058. * _.sortBy(users, ['user', 'age']);
  25059. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  25060. */
  25061. var sortBy = baseRest(function(collection, iteratees) {
  25062. if (collection == null) {
  25063. return [];
  25064. }
  25065. var length = iteratees.length;
  25066. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  25067. iteratees = [];
  25068. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  25069. iteratees = [iteratees[0]];
  25070. }
  25071. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  25072. });
  25073. /*------------------------------------------------------------------------*/
  25074. /**
  25075. * Gets the timestamp of the number of milliseconds that have elapsed since
  25076. * the Unix epoch (1 January 1970 00:00:00 UTC).
  25077. *
  25078. * @static
  25079. * @memberOf _
  25080. * @since 2.4.0
  25081. * @category Date
  25082. * @returns {number} Returns the timestamp.
  25083. * @example
  25084. *
  25085. * _.defer(function(stamp) {
  25086. * console.log(_.now() - stamp);
  25087. * }, _.now());
  25088. * // => Logs the number of milliseconds it took for the deferred invocation.
  25089. */
  25090. var now = ctxNow || function() {
  25091. return root.Date.now();
  25092. };
  25093. /*------------------------------------------------------------------------*/
  25094. /**
  25095. * The opposite of `_.before`; this method creates a function that invokes
  25096. * `func` once it's called `n` or more times.
  25097. *
  25098. * @static
  25099. * @memberOf _
  25100. * @since 0.1.0
  25101. * @category Function
  25102. * @param {number} n The number of calls before `func` is invoked.
  25103. * @param {Function} func The function to restrict.
  25104. * @returns {Function} Returns the new restricted function.
  25105. * @example
  25106. *
  25107. * var saves = ['profile', 'settings'];
  25108. *
  25109. * var done = _.after(saves.length, function() {
  25110. * console.log('done saving!');
  25111. * });
  25112. *
  25113. * _.forEach(saves, function(type) {
  25114. * asyncSave({ 'type': type, 'complete': done });
  25115. * });
  25116. * // => Logs 'done saving!' after the two async saves have completed.
  25117. */
  25118. function after(n, func) {
  25119. if (typeof func != 'function') {
  25120. throw new TypeError(FUNC_ERROR_TEXT);
  25121. }
  25122. n = toInteger(n);
  25123. return function() {
  25124. if (--n < 1) {
  25125. return func.apply(this, arguments);
  25126. }
  25127. };
  25128. }
  25129. /**
  25130. * Creates a function that invokes `func`, with up to `n` arguments,
  25131. * ignoring any additional arguments.
  25132. *
  25133. * @static
  25134. * @memberOf _
  25135. * @since 3.0.0
  25136. * @category Function
  25137. * @param {Function} func The function to cap arguments for.
  25138. * @param {number} [n=func.length] The arity cap.
  25139. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25140. * @returns {Function} Returns the new capped function.
  25141. * @example
  25142. *
  25143. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  25144. * // => [6, 8, 10]
  25145. */
  25146. function ary(func, n, guard) {
  25147. n = guard ? undefined : n;
  25148. n = (func && n == null) ? func.length : n;
  25149. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  25150. }
  25151. /**
  25152. * Creates a function that invokes `func`, with the `this` binding and arguments
  25153. * of the created function, while it's called less than `n` times. Subsequent
  25154. * calls to the created function return the result of the last `func` invocation.
  25155. *
  25156. * @static
  25157. * @memberOf _
  25158. * @since 3.0.0
  25159. * @category Function
  25160. * @param {number} n The number of calls at which `func` is no longer invoked.
  25161. * @param {Function} func The function to restrict.
  25162. * @returns {Function} Returns the new restricted function.
  25163. * @example
  25164. *
  25165. * jQuery(element).on('click', _.before(5, addContactToList));
  25166. * // => Allows adding up to 4 contacts to the list.
  25167. */
  25168. function before(n, func) {
  25169. var result;
  25170. if (typeof func != 'function') {
  25171. throw new TypeError(FUNC_ERROR_TEXT);
  25172. }
  25173. n = toInteger(n);
  25174. return function() {
  25175. if (--n > 0) {
  25176. result = func.apply(this, arguments);
  25177. }
  25178. if (n <= 1) {
  25179. func = undefined;
  25180. }
  25181. return result;
  25182. };
  25183. }
  25184. /**
  25185. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  25186. * and `partials` prepended to the arguments it receives.
  25187. *
  25188. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  25189. * may be used as a placeholder for partially applied arguments.
  25190. *
  25191. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  25192. * property of bound functions.
  25193. *
  25194. * @static
  25195. * @memberOf _
  25196. * @since 0.1.0
  25197. * @category Function
  25198. * @param {Function} func The function to bind.
  25199. * @param {*} thisArg The `this` binding of `func`.
  25200. * @param {...*} [partials] The arguments to be partially applied.
  25201. * @returns {Function} Returns the new bound function.
  25202. * @example
  25203. *
  25204. * function greet(greeting, punctuation) {
  25205. * return greeting + ' ' + this.user + punctuation;
  25206. * }
  25207. *
  25208. * var object = { 'user': 'fred' };
  25209. *
  25210. * var bound = _.bind(greet, object, 'hi');
  25211. * bound('!');
  25212. * // => 'hi fred!'
  25213. *
  25214. * // Bound with placeholders.
  25215. * var bound = _.bind(greet, object, _, '!');
  25216. * bound('hi');
  25217. * // => 'hi fred!'
  25218. */
  25219. var bind = baseRest(function(func, thisArg, partials) {
  25220. var bitmask = WRAP_BIND_FLAG;
  25221. if (partials.length) {
  25222. var holders = replaceHolders(partials, getHolder(bind));
  25223. bitmask |= WRAP_PARTIAL_FLAG;
  25224. }
  25225. return createWrap(func, bitmask, thisArg, partials, holders);
  25226. });
  25227. /**
  25228. * Creates a function that invokes the method at `object[key]` with `partials`
  25229. * prepended to the arguments it receives.
  25230. *
  25231. * This method differs from `_.bind` by allowing bound functions to reference
  25232. * methods that may be redefined or don't yet exist. See
  25233. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  25234. * for more details.
  25235. *
  25236. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  25237. * builds, may be used as a placeholder for partially applied arguments.
  25238. *
  25239. * @static
  25240. * @memberOf _
  25241. * @since 0.10.0
  25242. * @category Function
  25243. * @param {Object} object The object to invoke the method on.
  25244. * @param {string} key The key of the method.
  25245. * @param {...*} [partials] The arguments to be partially applied.
  25246. * @returns {Function} Returns the new bound function.
  25247. * @example
  25248. *
  25249. * var object = {
  25250. * 'user': 'fred',
  25251. * 'greet': function(greeting, punctuation) {
  25252. * return greeting + ' ' + this.user + punctuation;
  25253. * }
  25254. * };
  25255. *
  25256. * var bound = _.bindKey(object, 'greet', 'hi');
  25257. * bound('!');
  25258. * // => 'hi fred!'
  25259. *
  25260. * object.greet = function(greeting, punctuation) {
  25261. * return greeting + 'ya ' + this.user + punctuation;
  25262. * };
  25263. *
  25264. * bound('!');
  25265. * // => 'hiya fred!'
  25266. *
  25267. * // Bound with placeholders.
  25268. * var bound = _.bindKey(object, 'greet', _, '!');
  25269. * bound('hi');
  25270. * // => 'hiya fred!'
  25271. */
  25272. var bindKey = baseRest(function(object, key, partials) {
  25273. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  25274. if (partials.length) {
  25275. var holders = replaceHolders(partials, getHolder(bindKey));
  25276. bitmask |= WRAP_PARTIAL_FLAG;
  25277. }
  25278. return createWrap(key, bitmask, object, partials, holders);
  25279. });
  25280. /**
  25281. * Creates a function that accepts arguments of `func` and either invokes
  25282. * `func` returning its result, if at least `arity` number of arguments have
  25283. * been provided, or returns a function that accepts the remaining `func`
  25284. * arguments, and so on. The arity of `func` may be specified if `func.length`
  25285. * is not sufficient.
  25286. *
  25287. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  25288. * may be used as a placeholder for provided arguments.
  25289. *
  25290. * **Note:** This method doesn't set the "length" property of curried functions.
  25291. *
  25292. * @static
  25293. * @memberOf _
  25294. * @since 2.0.0
  25295. * @category Function
  25296. * @param {Function} func The function to curry.
  25297. * @param {number} [arity=func.length] The arity of `func`.
  25298. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25299. * @returns {Function} Returns the new curried function.
  25300. * @example
  25301. *
  25302. * var abc = function(a, b, c) {
  25303. * return [a, b, c];
  25304. * };
  25305. *
  25306. * var curried = _.curry(abc);
  25307. *
  25308. * curried(1)(2)(3);
  25309. * // => [1, 2, 3]
  25310. *
  25311. * curried(1, 2)(3);
  25312. * // => [1, 2, 3]
  25313. *
  25314. * curried(1, 2, 3);
  25315. * // => [1, 2, 3]
  25316. *
  25317. * // Curried with placeholders.
  25318. * curried(1)(_, 3)(2);
  25319. * // => [1, 2, 3]
  25320. */
  25321. function curry(func, arity, guard) {
  25322. arity = guard ? undefined : arity;
  25323. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25324. result.placeholder = curry.placeholder;
  25325. return result;
  25326. }
  25327. /**
  25328. * This method is like `_.curry` except that arguments are applied to `func`
  25329. * in the manner of `_.partialRight` instead of `_.partial`.
  25330. *
  25331. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  25332. * builds, may be used as a placeholder for provided arguments.
  25333. *
  25334. * **Note:** This method doesn't set the "length" property of curried functions.
  25335. *
  25336. * @static
  25337. * @memberOf _
  25338. * @since 3.0.0
  25339. * @category Function
  25340. * @param {Function} func The function to curry.
  25341. * @param {number} [arity=func.length] The arity of `func`.
  25342. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25343. * @returns {Function} Returns the new curried function.
  25344. * @example
  25345. *
  25346. * var abc = function(a, b, c) {
  25347. * return [a, b, c];
  25348. * };
  25349. *
  25350. * var curried = _.curryRight(abc);
  25351. *
  25352. * curried(3)(2)(1);
  25353. * // => [1, 2, 3]
  25354. *
  25355. * curried(2, 3)(1);
  25356. * // => [1, 2, 3]
  25357. *
  25358. * curried(1, 2, 3);
  25359. * // => [1, 2, 3]
  25360. *
  25361. * // Curried with placeholders.
  25362. * curried(3)(1, _)(2);
  25363. * // => [1, 2, 3]
  25364. */
  25365. function curryRight(func, arity, guard) {
  25366. arity = guard ? undefined : arity;
  25367. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25368. result.placeholder = curryRight.placeholder;
  25369. return result;
  25370. }
  25371. /**
  25372. * Creates a debounced function that delays invoking `func` until after `wait`
  25373. * milliseconds have elapsed since the last time the debounced function was
  25374. * invoked. The debounced function comes with a `cancel` method to cancel
  25375. * delayed `func` invocations and a `flush` method to immediately invoke them.
  25376. * Provide `options` to indicate whether `func` should be invoked on the
  25377. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  25378. * with the last arguments provided to the debounced function. Subsequent
  25379. * calls to the debounced function return the result of the last `func`
  25380. * invocation.
  25381. *
  25382. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25383. * invoked on the trailing edge of the timeout only if the debounced function
  25384. * is invoked more than once during the `wait` timeout.
  25385. *
  25386. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25387. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25388. *
  25389. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25390. * for details over the differences between `_.debounce` and `_.throttle`.
  25391. *
  25392. * @static
  25393. * @memberOf _
  25394. * @since 0.1.0
  25395. * @category Function
  25396. * @param {Function} func The function to debounce.
  25397. * @param {number} [wait=0] The number of milliseconds to delay.
  25398. * @param {Object} [options={}] The options object.
  25399. * @param {boolean} [options.leading=false]
  25400. * Specify invoking on the leading edge of the timeout.
  25401. * @param {number} [options.maxWait]
  25402. * The maximum time `func` is allowed to be delayed before it's invoked.
  25403. * @param {boolean} [options.trailing=true]
  25404. * Specify invoking on the trailing edge of the timeout.
  25405. * @returns {Function} Returns the new debounced function.
  25406. * @example
  25407. *
  25408. * // Avoid costly calculations while the window size is in flux.
  25409. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  25410. *
  25411. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  25412. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  25413. * 'leading': true,
  25414. * 'trailing': false
  25415. * }));
  25416. *
  25417. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  25418. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  25419. * var source = new EventSource('/stream');
  25420. * jQuery(source).on('message', debounced);
  25421. *
  25422. * // Cancel the trailing debounced invocation.
  25423. * jQuery(window).on('popstate', debounced.cancel);
  25424. */
  25425. function debounce(func, wait, options) {
  25426. var lastArgs,
  25427. lastThis,
  25428. maxWait,
  25429. result,
  25430. timerId,
  25431. lastCallTime,
  25432. lastInvokeTime = 0,
  25433. leading = false,
  25434. maxing = false,
  25435. trailing = true;
  25436. if (typeof func != 'function') {
  25437. throw new TypeError(FUNC_ERROR_TEXT);
  25438. }
  25439. wait = toNumber(wait) || 0;
  25440. if (isObject(options)) {
  25441. leading = !!options.leading;
  25442. maxing = 'maxWait' in options;
  25443. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  25444. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25445. }
  25446. function invokeFunc(time) {
  25447. var args = lastArgs,
  25448. thisArg = lastThis;
  25449. lastArgs = lastThis = undefined;
  25450. lastInvokeTime = time;
  25451. result = func.apply(thisArg, args);
  25452. return result;
  25453. }
  25454. function leadingEdge(time) {
  25455. // Reset any `maxWait` timer.
  25456. lastInvokeTime = time;
  25457. // Start the timer for the trailing edge.
  25458. timerId = setTimeout(timerExpired, wait);
  25459. // Invoke the leading edge.
  25460. return leading ? invokeFunc(time) : result;
  25461. }
  25462. function remainingWait(time) {
  25463. var timeSinceLastCall = time - lastCallTime,
  25464. timeSinceLastInvoke = time - lastInvokeTime,
  25465. timeWaiting = wait - timeSinceLastCall;
  25466. return maxing
  25467. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  25468. : timeWaiting;
  25469. }
  25470. function shouldInvoke(time) {
  25471. var timeSinceLastCall = time - lastCallTime,
  25472. timeSinceLastInvoke = time - lastInvokeTime;
  25473. // Either this is the first call, activity has stopped and we're at the
  25474. // trailing edge, the system time has gone backwards and we're treating
  25475. // it as the trailing edge, or we've hit the `maxWait` limit.
  25476. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  25477. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  25478. }
  25479. function timerExpired() {
  25480. var time = now();
  25481. if (shouldInvoke(time)) {
  25482. return trailingEdge(time);
  25483. }
  25484. // Restart the timer.
  25485. timerId = setTimeout(timerExpired, remainingWait(time));
  25486. }
  25487. function trailingEdge(time) {
  25488. timerId = undefined;
  25489. // Only invoke if we have `lastArgs` which means `func` has been
  25490. // debounced at least once.
  25491. if (trailing && lastArgs) {
  25492. return invokeFunc(time);
  25493. }
  25494. lastArgs = lastThis = undefined;
  25495. return result;
  25496. }
  25497. function cancel() {
  25498. if (timerId !== undefined) {
  25499. clearTimeout(timerId);
  25500. }
  25501. lastInvokeTime = 0;
  25502. lastArgs = lastCallTime = lastThis = timerId = undefined;
  25503. }
  25504. function flush() {
  25505. return timerId === undefined ? result : trailingEdge(now());
  25506. }
  25507. function debounced() {
  25508. var time = now(),
  25509. isInvoking = shouldInvoke(time);
  25510. lastArgs = arguments;
  25511. lastThis = this;
  25512. lastCallTime = time;
  25513. if (isInvoking) {
  25514. if (timerId === undefined) {
  25515. return leadingEdge(lastCallTime);
  25516. }
  25517. if (maxing) {
  25518. // Handle invocations in a tight loop.
  25519. clearTimeout(timerId);
  25520. timerId = setTimeout(timerExpired, wait);
  25521. return invokeFunc(lastCallTime);
  25522. }
  25523. }
  25524. if (timerId === undefined) {
  25525. timerId = setTimeout(timerExpired, wait);
  25526. }
  25527. return result;
  25528. }
  25529. debounced.cancel = cancel;
  25530. debounced.flush = flush;
  25531. return debounced;
  25532. }
  25533. /**
  25534. * Defers invoking the `func` until the current call stack has cleared. Any
  25535. * additional arguments are provided to `func` when it's invoked.
  25536. *
  25537. * @static
  25538. * @memberOf _
  25539. * @since 0.1.0
  25540. * @category Function
  25541. * @param {Function} func The function to defer.
  25542. * @param {...*} [args] The arguments to invoke `func` with.
  25543. * @returns {number} Returns the timer id.
  25544. * @example
  25545. *
  25546. * _.defer(function(text) {
  25547. * console.log(text);
  25548. * }, 'deferred');
  25549. * // => Logs 'deferred' after one millisecond.
  25550. */
  25551. var defer = baseRest(function(func, args) {
  25552. return baseDelay(func, 1, args);
  25553. });
  25554. /**
  25555. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  25556. * provided to `func` when it's invoked.
  25557. *
  25558. * @static
  25559. * @memberOf _
  25560. * @since 0.1.0
  25561. * @category Function
  25562. * @param {Function} func The function to delay.
  25563. * @param {number} wait The number of milliseconds to delay invocation.
  25564. * @param {...*} [args] The arguments to invoke `func` with.
  25565. * @returns {number} Returns the timer id.
  25566. * @example
  25567. *
  25568. * _.delay(function(text) {
  25569. * console.log(text);
  25570. * }, 1000, 'later');
  25571. * // => Logs 'later' after one second.
  25572. */
  25573. var delay = baseRest(function(func, wait, args) {
  25574. return baseDelay(func, toNumber(wait) || 0, args);
  25575. });
  25576. /**
  25577. * Creates a function that invokes `func` with arguments reversed.
  25578. *
  25579. * @static
  25580. * @memberOf _
  25581. * @since 4.0.0
  25582. * @category Function
  25583. * @param {Function} func The function to flip arguments for.
  25584. * @returns {Function} Returns the new flipped function.
  25585. * @example
  25586. *
  25587. * var flipped = _.flip(function() {
  25588. * return _.toArray(arguments);
  25589. * });
  25590. *
  25591. * flipped('a', 'b', 'c', 'd');
  25592. * // => ['d', 'c', 'b', 'a']
  25593. */
  25594. function flip(func) {
  25595. return createWrap(func, WRAP_FLIP_FLAG);
  25596. }
  25597. /**
  25598. * Creates a function that memoizes the result of `func`. If `resolver` is
  25599. * provided, it determines the cache key for storing the result based on the
  25600. * arguments provided to the memoized function. By default, the first argument
  25601. * provided to the memoized function is used as the map cache key. The `func`
  25602. * is invoked with the `this` binding of the memoized function.
  25603. *
  25604. * **Note:** The cache is exposed as the `cache` property on the memoized
  25605. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  25606. * constructor with one whose instances implement the
  25607. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  25608. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  25609. *
  25610. * @static
  25611. * @memberOf _
  25612. * @since 0.1.0
  25613. * @category Function
  25614. * @param {Function} func The function to have its output memoized.
  25615. * @param {Function} [resolver] The function to resolve the cache key.
  25616. * @returns {Function} Returns the new memoized function.
  25617. * @example
  25618. *
  25619. * var object = { 'a': 1, 'b': 2 };
  25620. * var other = { 'c': 3, 'd': 4 };
  25621. *
  25622. * var values = _.memoize(_.values);
  25623. * values(object);
  25624. * // => [1, 2]
  25625. *
  25626. * values(other);
  25627. * // => [3, 4]
  25628. *
  25629. * object.a = 2;
  25630. * values(object);
  25631. * // => [1, 2]
  25632. *
  25633. * // Modify the result cache.
  25634. * values.cache.set(object, ['a', 'b']);
  25635. * values(object);
  25636. * // => ['a', 'b']
  25637. *
  25638. * // Replace `_.memoize.Cache`.
  25639. * _.memoize.Cache = WeakMap;
  25640. */
  25641. function memoize(func, resolver) {
  25642. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  25643. throw new TypeError(FUNC_ERROR_TEXT);
  25644. }
  25645. var memoized = function() {
  25646. var args = arguments,
  25647. key = resolver ? resolver.apply(this, args) : args[0],
  25648. cache = memoized.cache;
  25649. if (cache.has(key)) {
  25650. return cache.get(key);
  25651. }
  25652. var result = func.apply(this, args);
  25653. memoized.cache = cache.set(key, result) || cache;
  25654. return result;
  25655. };
  25656. memoized.cache = new (memoize.Cache || MapCache);
  25657. return memoized;
  25658. }
  25659. // Expose `MapCache`.
  25660. memoize.Cache = MapCache;
  25661. /**
  25662. * Creates a function that negates the result of the predicate `func`. The
  25663. * `func` predicate is invoked with the `this` binding and arguments of the
  25664. * created function.
  25665. *
  25666. * @static
  25667. * @memberOf _
  25668. * @since 3.0.0
  25669. * @category Function
  25670. * @param {Function} predicate The predicate to negate.
  25671. * @returns {Function} Returns the new negated function.
  25672. * @example
  25673. *
  25674. * function isEven(n) {
  25675. * return n % 2 == 0;
  25676. * }
  25677. *
  25678. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  25679. * // => [1, 3, 5]
  25680. */
  25681. function negate(predicate) {
  25682. if (typeof predicate != 'function') {
  25683. throw new TypeError(FUNC_ERROR_TEXT);
  25684. }
  25685. return function() {
  25686. var args = arguments;
  25687. switch (args.length) {
  25688. case 0: return !predicate.call(this);
  25689. case 1: return !predicate.call(this, args[0]);
  25690. case 2: return !predicate.call(this, args[0], args[1]);
  25691. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  25692. }
  25693. return !predicate.apply(this, args);
  25694. };
  25695. }
  25696. /**
  25697. * Creates a function that is restricted to invoking `func` once. Repeat calls
  25698. * to the function return the value of the first invocation. The `func` is
  25699. * invoked with the `this` binding and arguments of the created function.
  25700. *
  25701. * @static
  25702. * @memberOf _
  25703. * @since 0.1.0
  25704. * @category Function
  25705. * @param {Function} func The function to restrict.
  25706. * @returns {Function} Returns the new restricted function.
  25707. * @example
  25708. *
  25709. * var initialize = _.once(createApplication);
  25710. * initialize();
  25711. * initialize();
  25712. * // => `createApplication` is invoked once
  25713. */
  25714. function once(func) {
  25715. return before(2, func);
  25716. }
  25717. /**
  25718. * Creates a function that invokes `func` with its arguments transformed.
  25719. *
  25720. * @static
  25721. * @since 4.0.0
  25722. * @memberOf _
  25723. * @category Function
  25724. * @param {Function} func The function to wrap.
  25725. * @param {...(Function|Function[])} [transforms=[_.identity]]
  25726. * The argument transforms.
  25727. * @returns {Function} Returns the new function.
  25728. * @example
  25729. *
  25730. * function doubled(n) {
  25731. * return n * 2;
  25732. * }
  25733. *
  25734. * function square(n) {
  25735. * return n * n;
  25736. * }
  25737. *
  25738. * var func = _.overArgs(function(x, y) {
  25739. * return [x, y];
  25740. * }, [square, doubled]);
  25741. *
  25742. * func(9, 3);
  25743. * // => [81, 6]
  25744. *
  25745. * func(10, 5);
  25746. * // => [100, 10]
  25747. */
  25748. var overArgs = castRest(function(func, transforms) {
  25749. transforms = (transforms.length == 1 && isArray(transforms[0]))
  25750. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  25751. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  25752. var funcsLength = transforms.length;
  25753. return baseRest(function(args) {
  25754. var index = -1,
  25755. length = nativeMin(args.length, funcsLength);
  25756. while (++index < length) {
  25757. args[index] = transforms[index].call(this, args[index]);
  25758. }
  25759. return apply(func, this, args);
  25760. });
  25761. });
  25762. /**
  25763. * Creates a function that invokes `func` with `partials` prepended to the
  25764. * arguments it receives. This method is like `_.bind` except it does **not**
  25765. * alter the `this` binding.
  25766. *
  25767. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  25768. * builds, may be used as a placeholder for partially applied arguments.
  25769. *
  25770. * **Note:** This method doesn't set the "length" property of partially
  25771. * applied functions.
  25772. *
  25773. * @static
  25774. * @memberOf _
  25775. * @since 0.2.0
  25776. * @category Function
  25777. * @param {Function} func The function to partially apply arguments to.
  25778. * @param {...*} [partials] The arguments to be partially applied.
  25779. * @returns {Function} Returns the new partially applied function.
  25780. * @example
  25781. *
  25782. * function greet(greeting, name) {
  25783. * return greeting + ' ' + name;
  25784. * }
  25785. *
  25786. * var sayHelloTo = _.partial(greet, 'hello');
  25787. * sayHelloTo('fred');
  25788. * // => 'hello fred'
  25789. *
  25790. * // Partially applied with placeholders.
  25791. * var greetFred = _.partial(greet, _, 'fred');
  25792. * greetFred('hi');
  25793. * // => 'hi fred'
  25794. */
  25795. var partial = baseRest(function(func, partials) {
  25796. var holders = replaceHolders(partials, getHolder(partial));
  25797. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  25798. });
  25799. /**
  25800. * This method is like `_.partial` except that partially applied arguments
  25801. * are appended to the arguments it receives.
  25802. *
  25803. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  25804. * builds, may be used as a placeholder for partially applied arguments.
  25805. *
  25806. * **Note:** This method doesn't set the "length" property of partially
  25807. * applied functions.
  25808. *
  25809. * @static
  25810. * @memberOf _
  25811. * @since 1.0.0
  25812. * @category Function
  25813. * @param {Function} func The function to partially apply arguments to.
  25814. * @param {...*} [partials] The arguments to be partially applied.
  25815. * @returns {Function} Returns the new partially applied function.
  25816. * @example
  25817. *
  25818. * function greet(greeting, name) {
  25819. * return greeting + ' ' + name;
  25820. * }
  25821. *
  25822. * var greetFred = _.partialRight(greet, 'fred');
  25823. * greetFred('hi');
  25824. * // => 'hi fred'
  25825. *
  25826. * // Partially applied with placeholders.
  25827. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  25828. * sayHelloTo('fred');
  25829. * // => 'hello fred'
  25830. */
  25831. var partialRight = baseRest(function(func, partials) {
  25832. var holders = replaceHolders(partials, getHolder(partialRight));
  25833. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  25834. });
  25835. /**
  25836. * Creates a function that invokes `func` with arguments arranged according
  25837. * to the specified `indexes` where the argument value at the first index is
  25838. * provided as the first argument, the argument value at the second index is
  25839. * provided as the second argument, and so on.
  25840. *
  25841. * @static
  25842. * @memberOf _
  25843. * @since 3.0.0
  25844. * @category Function
  25845. * @param {Function} func The function to rearrange arguments for.
  25846. * @param {...(number|number[])} indexes The arranged argument indexes.
  25847. * @returns {Function} Returns the new function.
  25848. * @example
  25849. *
  25850. * var rearged = _.rearg(function(a, b, c) {
  25851. * return [a, b, c];
  25852. * }, [2, 0, 1]);
  25853. *
  25854. * rearged('b', 'c', 'a')
  25855. * // => ['a', 'b', 'c']
  25856. */
  25857. var rearg = flatRest(function(func, indexes) {
  25858. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  25859. });
  25860. /**
  25861. * Creates a function that invokes `func` with the `this` binding of the
  25862. * created function and arguments from `start` and beyond provided as
  25863. * an array.
  25864. *
  25865. * **Note:** This method is based on the
  25866. * [rest parameter](https://mdn.io/rest_parameters).
  25867. *
  25868. * @static
  25869. * @memberOf _
  25870. * @since 4.0.0
  25871. * @category Function
  25872. * @param {Function} func The function to apply a rest parameter to.
  25873. * @param {number} [start=func.length-1] The start position of the rest parameter.
  25874. * @returns {Function} Returns the new function.
  25875. * @example
  25876. *
  25877. * var say = _.rest(function(what, names) {
  25878. * return what + ' ' + _.initial(names).join(', ') +
  25879. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  25880. * });
  25881. *
  25882. * say('hello', 'fred', 'barney', 'pebbles');
  25883. * // => 'hello fred, barney, & pebbles'
  25884. */
  25885. function rest(func, start) {
  25886. if (typeof func != 'function') {
  25887. throw new TypeError(FUNC_ERROR_TEXT);
  25888. }
  25889. start = start === undefined ? start : toInteger(start);
  25890. return baseRest(func, start);
  25891. }
  25892. /**
  25893. * Creates a function that invokes `func` with the `this` binding of the
  25894. * create function and an array of arguments much like
  25895. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  25896. *
  25897. * **Note:** This method is based on the
  25898. * [spread operator](https://mdn.io/spread_operator).
  25899. *
  25900. * @static
  25901. * @memberOf _
  25902. * @since 3.2.0
  25903. * @category Function
  25904. * @param {Function} func The function to spread arguments over.
  25905. * @param {number} [start=0] The start position of the spread.
  25906. * @returns {Function} Returns the new function.
  25907. * @example
  25908. *
  25909. * var say = _.spread(function(who, what) {
  25910. * return who + ' says ' + what;
  25911. * });
  25912. *
  25913. * say(['fred', 'hello']);
  25914. * // => 'fred says hello'
  25915. *
  25916. * var numbers = Promise.all([
  25917. * Promise.resolve(40),
  25918. * Promise.resolve(36)
  25919. * ]);
  25920. *
  25921. * numbers.then(_.spread(function(x, y) {
  25922. * return x + y;
  25923. * }));
  25924. * // => a Promise of 76
  25925. */
  25926. function spread(func, start) {
  25927. if (typeof func != 'function') {
  25928. throw new TypeError(FUNC_ERROR_TEXT);
  25929. }
  25930. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  25931. return baseRest(function(args) {
  25932. var array = args[start],
  25933. otherArgs = castSlice(args, 0, start);
  25934. if (array) {
  25935. arrayPush(otherArgs, array);
  25936. }
  25937. return apply(func, this, otherArgs);
  25938. });
  25939. }
  25940. /**
  25941. * Creates a throttled function that only invokes `func` at most once per
  25942. * every `wait` milliseconds. The throttled function comes with a `cancel`
  25943. * method to cancel delayed `func` invocations and a `flush` method to
  25944. * immediately invoke them. Provide `options` to indicate whether `func`
  25945. * should be invoked on the leading and/or trailing edge of the `wait`
  25946. * timeout. The `func` is invoked with the last arguments provided to the
  25947. * throttled function. Subsequent calls to the throttled function return the
  25948. * result of the last `func` invocation.
  25949. *
  25950. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25951. * invoked on the trailing edge of the timeout only if the throttled function
  25952. * is invoked more than once during the `wait` timeout.
  25953. *
  25954. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25955. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25956. *
  25957. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25958. * for details over the differences between `_.throttle` and `_.debounce`.
  25959. *
  25960. * @static
  25961. * @memberOf _
  25962. * @since 0.1.0
  25963. * @category Function
  25964. * @param {Function} func The function to throttle.
  25965. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  25966. * @param {Object} [options={}] The options object.
  25967. * @param {boolean} [options.leading=true]
  25968. * Specify invoking on the leading edge of the timeout.
  25969. * @param {boolean} [options.trailing=true]
  25970. * Specify invoking on the trailing edge of the timeout.
  25971. * @returns {Function} Returns the new throttled function.
  25972. * @example
  25973. *
  25974. * // Avoid excessively updating the position while scrolling.
  25975. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  25976. *
  25977. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  25978. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  25979. * jQuery(element).on('click', throttled);
  25980. *
  25981. * // Cancel the trailing throttled invocation.
  25982. * jQuery(window).on('popstate', throttled.cancel);
  25983. */
  25984. function throttle(func, wait, options) {
  25985. var leading = true,
  25986. trailing = true;
  25987. if (typeof func != 'function') {
  25988. throw new TypeError(FUNC_ERROR_TEXT);
  25989. }
  25990. if (isObject(options)) {
  25991. leading = 'leading' in options ? !!options.leading : leading;
  25992. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25993. }
  25994. return debounce(func, wait, {
  25995. 'leading': leading,
  25996. 'maxWait': wait,
  25997. 'trailing': trailing
  25998. });
  25999. }
  26000. /**
  26001. * Creates a function that accepts up to one argument, ignoring any
  26002. * additional arguments.
  26003. *
  26004. * @static
  26005. * @memberOf _
  26006. * @since 4.0.0
  26007. * @category Function
  26008. * @param {Function} func The function to cap arguments for.
  26009. * @returns {Function} Returns the new capped function.
  26010. * @example
  26011. *
  26012. * _.map(['6', '8', '10'], _.unary(parseInt));
  26013. * // => [6, 8, 10]
  26014. */
  26015. function unary(func) {
  26016. return ary(func, 1);
  26017. }
  26018. /**
  26019. * Creates a function that provides `value` to `wrapper` as its first
  26020. * argument. Any additional arguments provided to the function are appended
  26021. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  26022. * binding of the created function.
  26023. *
  26024. * @static
  26025. * @memberOf _
  26026. * @since 0.1.0
  26027. * @category Function
  26028. * @param {*} value The value to wrap.
  26029. * @param {Function} [wrapper=identity] The wrapper function.
  26030. * @returns {Function} Returns the new function.
  26031. * @example
  26032. *
  26033. * var p = _.wrap(_.escape, function(func, text) {
  26034. * return '<p>' + func(text) + '</p>';
  26035. * });
  26036. *
  26037. * p('fred, barney, & pebbles');
  26038. * // => '<p>fred, barney, &amp; pebbles</p>'
  26039. */
  26040. function wrap(value, wrapper) {
  26041. return partial(castFunction(wrapper), value);
  26042. }
  26043. /*------------------------------------------------------------------------*/
  26044. /**
  26045. * Casts `value` as an array if it's not one.
  26046. *
  26047. * @static
  26048. * @memberOf _
  26049. * @since 4.4.0
  26050. * @category Lang
  26051. * @param {*} value The value to inspect.
  26052. * @returns {Array} Returns the cast array.
  26053. * @example
  26054. *
  26055. * _.castArray(1);
  26056. * // => [1]
  26057. *
  26058. * _.castArray({ 'a': 1 });
  26059. * // => [{ 'a': 1 }]
  26060. *
  26061. * _.castArray('abc');
  26062. * // => ['abc']
  26063. *
  26064. * _.castArray(null);
  26065. * // => [null]
  26066. *
  26067. * _.castArray(undefined);
  26068. * // => [undefined]
  26069. *
  26070. * _.castArray();
  26071. * // => []
  26072. *
  26073. * var array = [1, 2, 3];
  26074. * console.log(_.castArray(array) === array);
  26075. * // => true
  26076. */
  26077. function castArray() {
  26078. if (!arguments.length) {
  26079. return [];
  26080. }
  26081. var value = arguments[0];
  26082. return isArray(value) ? value : [value];
  26083. }
  26084. /**
  26085. * Creates a shallow clone of `value`.
  26086. *
  26087. * **Note:** This method is loosely based on the
  26088. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  26089. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  26090. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  26091. * arrays. The own enumerable properties of `arguments` objects are cloned
  26092. * as plain objects. An empty object is returned for uncloneable values such
  26093. * as error objects, functions, DOM nodes, and WeakMaps.
  26094. *
  26095. * @static
  26096. * @memberOf _
  26097. * @since 0.1.0
  26098. * @category Lang
  26099. * @param {*} value The value to clone.
  26100. * @returns {*} Returns the cloned value.
  26101. * @see _.cloneDeep
  26102. * @example
  26103. *
  26104. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26105. *
  26106. * var shallow = _.clone(objects);
  26107. * console.log(shallow[0] === objects[0]);
  26108. * // => true
  26109. */
  26110. function clone(value) {
  26111. return baseClone(value, CLONE_SYMBOLS_FLAG);
  26112. }
  26113. /**
  26114. * This method is like `_.clone` except that it accepts `customizer` which
  26115. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  26116. * cloning is handled by the method instead. The `customizer` is invoked with
  26117. * up to four arguments; (value [, index|key, object, stack]).
  26118. *
  26119. * @static
  26120. * @memberOf _
  26121. * @since 4.0.0
  26122. * @category Lang
  26123. * @param {*} value The value to clone.
  26124. * @param {Function} [customizer] The function to customize cloning.
  26125. * @returns {*} Returns the cloned value.
  26126. * @see _.cloneDeepWith
  26127. * @example
  26128. *
  26129. * function customizer(value) {
  26130. * if (_.isElement(value)) {
  26131. * return value.cloneNode(false);
  26132. * }
  26133. * }
  26134. *
  26135. * var el = _.cloneWith(document.body, customizer);
  26136. *
  26137. * console.log(el === document.body);
  26138. * // => false
  26139. * console.log(el.nodeName);
  26140. * // => 'BODY'
  26141. * console.log(el.childNodes.length);
  26142. * // => 0
  26143. */
  26144. function cloneWith(value, customizer) {
  26145. customizer = typeof customizer == 'function' ? customizer : undefined;
  26146. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  26147. }
  26148. /**
  26149. * This method is like `_.clone` except that it recursively clones `value`.
  26150. *
  26151. * @static
  26152. * @memberOf _
  26153. * @since 1.0.0
  26154. * @category Lang
  26155. * @param {*} value The value to recursively clone.
  26156. * @returns {*} Returns the deep cloned value.
  26157. * @see _.clone
  26158. * @example
  26159. *
  26160. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26161. *
  26162. * var deep = _.cloneDeep(objects);
  26163. * console.log(deep[0] === objects[0]);
  26164. * // => false
  26165. */
  26166. function cloneDeep(value) {
  26167. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  26168. }
  26169. /**
  26170. * This method is like `_.cloneWith` except that it recursively clones `value`.
  26171. *
  26172. * @static
  26173. * @memberOf _
  26174. * @since 4.0.0
  26175. * @category Lang
  26176. * @param {*} value The value to recursively clone.
  26177. * @param {Function} [customizer] The function to customize cloning.
  26178. * @returns {*} Returns the deep cloned value.
  26179. * @see _.cloneWith
  26180. * @example
  26181. *
  26182. * function customizer(value) {
  26183. * if (_.isElement(value)) {
  26184. * return value.cloneNode(true);
  26185. * }
  26186. * }
  26187. *
  26188. * var el = _.cloneDeepWith(document.body, customizer);
  26189. *
  26190. * console.log(el === document.body);
  26191. * // => false
  26192. * console.log(el.nodeName);
  26193. * // => 'BODY'
  26194. * console.log(el.childNodes.length);
  26195. * // => 20
  26196. */
  26197. function cloneDeepWith(value, customizer) {
  26198. customizer = typeof customizer == 'function' ? customizer : undefined;
  26199. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  26200. }
  26201. /**
  26202. * Checks if `object` conforms to `source` by invoking the predicate
  26203. * properties of `source` with the corresponding property values of `object`.
  26204. *
  26205. * **Note:** This method is equivalent to `_.conforms` when `source` is
  26206. * partially applied.
  26207. *
  26208. * @static
  26209. * @memberOf _
  26210. * @since 4.14.0
  26211. * @category Lang
  26212. * @param {Object} object The object to inspect.
  26213. * @param {Object} source The object of property predicates to conform to.
  26214. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  26215. * @example
  26216. *
  26217. * var object = { 'a': 1, 'b': 2 };
  26218. *
  26219. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  26220. * // => true
  26221. *
  26222. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  26223. * // => false
  26224. */
  26225. function conformsTo(object, source) {
  26226. return source == null || baseConformsTo(object, source, keys(source));
  26227. }
  26228. /**
  26229. * Performs a
  26230. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26231. * comparison between two values to determine if they are equivalent.
  26232. *
  26233. * @static
  26234. * @memberOf _
  26235. * @since 4.0.0
  26236. * @category Lang
  26237. * @param {*} value The value to compare.
  26238. * @param {*} other The other value to compare.
  26239. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26240. * @example
  26241. *
  26242. * var object = { 'a': 1 };
  26243. * var other = { 'a': 1 };
  26244. *
  26245. * _.eq(object, object);
  26246. * // => true
  26247. *
  26248. * _.eq(object, other);
  26249. * // => false
  26250. *
  26251. * _.eq('a', 'a');
  26252. * // => true
  26253. *
  26254. * _.eq('a', Object('a'));
  26255. * // => false
  26256. *
  26257. * _.eq(NaN, NaN);
  26258. * // => true
  26259. */
  26260. function eq(value, other) {
  26261. return value === other || (value !== value && other !== other);
  26262. }
  26263. /**
  26264. * Checks if `value` is greater than `other`.
  26265. *
  26266. * @static
  26267. * @memberOf _
  26268. * @since 3.9.0
  26269. * @category Lang
  26270. * @param {*} value The value to compare.
  26271. * @param {*} other The other value to compare.
  26272. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  26273. * else `false`.
  26274. * @see _.lt
  26275. * @example
  26276. *
  26277. * _.gt(3, 1);
  26278. * // => true
  26279. *
  26280. * _.gt(3, 3);
  26281. * // => false
  26282. *
  26283. * _.gt(1, 3);
  26284. * // => false
  26285. */
  26286. var gt = createRelationalOperation(baseGt);
  26287. /**
  26288. * Checks if `value` is greater than or equal to `other`.
  26289. *
  26290. * @static
  26291. * @memberOf _
  26292. * @since 3.9.0
  26293. * @category Lang
  26294. * @param {*} value The value to compare.
  26295. * @param {*} other The other value to compare.
  26296. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  26297. * `other`, else `false`.
  26298. * @see _.lte
  26299. * @example
  26300. *
  26301. * _.gte(3, 1);
  26302. * // => true
  26303. *
  26304. * _.gte(3, 3);
  26305. * // => true
  26306. *
  26307. * _.gte(1, 3);
  26308. * // => false
  26309. */
  26310. var gte = createRelationalOperation(function(value, other) {
  26311. return value >= other;
  26312. });
  26313. /**
  26314. * Checks if `value` is likely an `arguments` object.
  26315. *
  26316. * @static
  26317. * @memberOf _
  26318. * @since 0.1.0
  26319. * @category Lang
  26320. * @param {*} value The value to check.
  26321. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  26322. * else `false`.
  26323. * @example
  26324. *
  26325. * _.isArguments(function() { return arguments; }());
  26326. * // => true
  26327. *
  26328. * _.isArguments([1, 2, 3]);
  26329. * // => false
  26330. */
  26331. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  26332. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  26333. !propertyIsEnumerable.call(value, 'callee');
  26334. };
  26335. /**
  26336. * Checks if `value` is classified as an `Array` object.
  26337. *
  26338. * @static
  26339. * @memberOf _
  26340. * @since 0.1.0
  26341. * @category Lang
  26342. * @param {*} value The value to check.
  26343. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  26344. * @example
  26345. *
  26346. * _.isArray([1, 2, 3]);
  26347. * // => true
  26348. *
  26349. * _.isArray(document.body.children);
  26350. * // => false
  26351. *
  26352. * _.isArray('abc');
  26353. * // => false
  26354. *
  26355. * _.isArray(_.noop);
  26356. * // => false
  26357. */
  26358. var isArray = Array.isArray;
  26359. /**
  26360. * Checks if `value` is classified as an `ArrayBuffer` object.
  26361. *
  26362. * @static
  26363. * @memberOf _
  26364. * @since 4.3.0
  26365. * @category Lang
  26366. * @param {*} value The value to check.
  26367. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  26368. * @example
  26369. *
  26370. * _.isArrayBuffer(new ArrayBuffer(2));
  26371. * // => true
  26372. *
  26373. * _.isArrayBuffer(new Array(2));
  26374. * // => false
  26375. */
  26376. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  26377. /**
  26378. * Checks if `value` is array-like. A value is considered array-like if it's
  26379. * not a function and has a `value.length` that's an integer greater than or
  26380. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  26381. *
  26382. * @static
  26383. * @memberOf _
  26384. * @since 4.0.0
  26385. * @category Lang
  26386. * @param {*} value The value to check.
  26387. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  26388. * @example
  26389. *
  26390. * _.isArrayLike([1, 2, 3]);
  26391. * // => true
  26392. *
  26393. * _.isArrayLike(document.body.children);
  26394. * // => true
  26395. *
  26396. * _.isArrayLike('abc');
  26397. * // => true
  26398. *
  26399. * _.isArrayLike(_.noop);
  26400. * // => false
  26401. */
  26402. function isArrayLike(value) {
  26403. return value != null && isLength(value.length) && !isFunction(value);
  26404. }
  26405. /**
  26406. * This method is like `_.isArrayLike` except that it also checks if `value`
  26407. * is an object.
  26408. *
  26409. * @static
  26410. * @memberOf _
  26411. * @since 4.0.0
  26412. * @category Lang
  26413. * @param {*} value The value to check.
  26414. * @returns {boolean} Returns `true` if `value` is an array-like object,
  26415. * else `false`.
  26416. * @example
  26417. *
  26418. * _.isArrayLikeObject([1, 2, 3]);
  26419. * // => true
  26420. *
  26421. * _.isArrayLikeObject(document.body.children);
  26422. * // => true
  26423. *
  26424. * _.isArrayLikeObject('abc');
  26425. * // => false
  26426. *
  26427. * _.isArrayLikeObject(_.noop);
  26428. * // => false
  26429. */
  26430. function isArrayLikeObject(value) {
  26431. return isObjectLike(value) && isArrayLike(value);
  26432. }
  26433. /**
  26434. * Checks if `value` is classified as a boolean primitive or object.
  26435. *
  26436. * @static
  26437. * @memberOf _
  26438. * @since 0.1.0
  26439. * @category Lang
  26440. * @param {*} value The value to check.
  26441. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  26442. * @example
  26443. *
  26444. * _.isBoolean(false);
  26445. * // => true
  26446. *
  26447. * _.isBoolean(null);
  26448. * // => false
  26449. */
  26450. function isBoolean(value) {
  26451. return value === true || value === false ||
  26452. (isObjectLike(value) && baseGetTag(value) == boolTag);
  26453. }
  26454. /**
  26455. * Checks if `value` is a buffer.
  26456. *
  26457. * @static
  26458. * @memberOf _
  26459. * @since 4.3.0
  26460. * @category Lang
  26461. * @param {*} value The value to check.
  26462. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  26463. * @example
  26464. *
  26465. * _.isBuffer(new Buffer(2));
  26466. * // => true
  26467. *
  26468. * _.isBuffer(new Uint8Array(2));
  26469. * // => false
  26470. */
  26471. var isBuffer = nativeIsBuffer || stubFalse;
  26472. /**
  26473. * Checks if `value` is classified as a `Date` object.
  26474. *
  26475. * @static
  26476. * @memberOf _
  26477. * @since 0.1.0
  26478. * @category Lang
  26479. * @param {*} value The value to check.
  26480. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  26481. * @example
  26482. *
  26483. * _.isDate(new Date);
  26484. * // => true
  26485. *
  26486. * _.isDate('Mon April 23 2012');
  26487. * // => false
  26488. */
  26489. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  26490. /**
  26491. * Checks if `value` is likely a DOM element.
  26492. *
  26493. * @static
  26494. * @memberOf _
  26495. * @since 0.1.0
  26496. * @category Lang
  26497. * @param {*} value The value to check.
  26498. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  26499. * @example
  26500. *
  26501. * _.isElement(document.body);
  26502. * // => true
  26503. *
  26504. * _.isElement('<body>');
  26505. * // => false
  26506. */
  26507. function isElement(value) {
  26508. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  26509. }
  26510. /**
  26511. * Checks if `value` is an empty object, collection, map, or set.
  26512. *
  26513. * Objects are considered empty if they have no own enumerable string keyed
  26514. * properties.
  26515. *
  26516. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  26517. * jQuery-like collections are considered empty if they have a `length` of `0`.
  26518. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  26519. *
  26520. * @static
  26521. * @memberOf _
  26522. * @since 0.1.0
  26523. * @category Lang
  26524. * @param {*} value The value to check.
  26525. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  26526. * @example
  26527. *
  26528. * _.isEmpty(null);
  26529. * // => true
  26530. *
  26531. * _.isEmpty(true);
  26532. * // => true
  26533. *
  26534. * _.isEmpty(1);
  26535. * // => true
  26536. *
  26537. * _.isEmpty([1, 2, 3]);
  26538. * // => false
  26539. *
  26540. * _.isEmpty({ 'a': 1 });
  26541. * // => false
  26542. */
  26543. function isEmpty(value) {
  26544. if (value == null) {
  26545. return true;
  26546. }
  26547. if (isArrayLike(value) &&
  26548. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  26549. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  26550. return !value.length;
  26551. }
  26552. var tag = getTag(value);
  26553. if (tag == mapTag || tag == setTag) {
  26554. return !value.size;
  26555. }
  26556. if (isPrototype(value)) {
  26557. return !baseKeys(value).length;
  26558. }
  26559. for (var key in value) {
  26560. if (hasOwnProperty.call(value, key)) {
  26561. return false;
  26562. }
  26563. }
  26564. return true;
  26565. }
  26566. /**
  26567. * Performs a deep comparison between two values to determine if they are
  26568. * equivalent.
  26569. *
  26570. * **Note:** This method supports comparing arrays, array buffers, booleans,
  26571. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  26572. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  26573. * by their own, not inherited, enumerable properties. Functions and DOM
  26574. * nodes are compared by strict equality, i.e. `===`.
  26575. *
  26576. * @static
  26577. * @memberOf _
  26578. * @since 0.1.0
  26579. * @category Lang
  26580. * @param {*} value The value to compare.
  26581. * @param {*} other The other value to compare.
  26582. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26583. * @example
  26584. *
  26585. * var object = { 'a': 1 };
  26586. * var other = { 'a': 1 };
  26587. *
  26588. * _.isEqual(object, other);
  26589. * // => true
  26590. *
  26591. * object === other;
  26592. * // => false
  26593. */
  26594. function isEqual(value, other) {
  26595. return baseIsEqual(value, other);
  26596. }
  26597. /**
  26598. * This method is like `_.isEqual` except that it accepts `customizer` which
  26599. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26600. * are handled by the method instead. The `customizer` is invoked with up to
  26601. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  26602. *
  26603. * @static
  26604. * @memberOf _
  26605. * @since 4.0.0
  26606. * @category Lang
  26607. * @param {*} value The value to compare.
  26608. * @param {*} other The other value to compare.
  26609. * @param {Function} [customizer] The function to customize comparisons.
  26610. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26611. * @example
  26612. *
  26613. * function isGreeting(value) {
  26614. * return /^h(?:i|ello)$/.test(value);
  26615. * }
  26616. *
  26617. * function customizer(objValue, othValue) {
  26618. * if (isGreeting(objValue) && isGreeting(othValue)) {
  26619. * return true;
  26620. * }
  26621. * }
  26622. *
  26623. * var array = ['hello', 'goodbye'];
  26624. * var other = ['hi', 'goodbye'];
  26625. *
  26626. * _.isEqualWith(array, other, customizer);
  26627. * // => true
  26628. */
  26629. function isEqualWith(value, other, customizer) {
  26630. customizer = typeof customizer == 'function' ? customizer : undefined;
  26631. var result = customizer ? customizer(value, other) : undefined;
  26632. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  26633. }
  26634. /**
  26635. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  26636. * `SyntaxError`, `TypeError`, or `URIError` object.
  26637. *
  26638. * @static
  26639. * @memberOf _
  26640. * @since 3.0.0
  26641. * @category Lang
  26642. * @param {*} value The value to check.
  26643. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  26644. * @example
  26645. *
  26646. * _.isError(new Error);
  26647. * // => true
  26648. *
  26649. * _.isError(Error);
  26650. * // => false
  26651. */
  26652. function isError(value) {
  26653. if (!isObjectLike(value)) {
  26654. return false;
  26655. }
  26656. var tag = baseGetTag(value);
  26657. return tag == errorTag || tag == domExcTag ||
  26658. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  26659. }
  26660. /**
  26661. * Checks if `value` is a finite primitive number.
  26662. *
  26663. * **Note:** This method is based on
  26664. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  26665. *
  26666. * @static
  26667. * @memberOf _
  26668. * @since 0.1.0
  26669. * @category Lang
  26670. * @param {*} value The value to check.
  26671. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  26672. * @example
  26673. *
  26674. * _.isFinite(3);
  26675. * // => true
  26676. *
  26677. * _.isFinite(Number.MIN_VALUE);
  26678. * // => true
  26679. *
  26680. * _.isFinite(Infinity);
  26681. * // => false
  26682. *
  26683. * _.isFinite('3');
  26684. * // => false
  26685. */
  26686. function isFinite(value) {
  26687. return typeof value == 'number' && nativeIsFinite(value);
  26688. }
  26689. /**
  26690. * Checks if `value` is classified as a `Function` object.
  26691. *
  26692. * @static
  26693. * @memberOf _
  26694. * @since 0.1.0
  26695. * @category Lang
  26696. * @param {*} value The value to check.
  26697. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  26698. * @example
  26699. *
  26700. * _.isFunction(_);
  26701. * // => true
  26702. *
  26703. * _.isFunction(/abc/);
  26704. * // => false
  26705. */
  26706. function isFunction(value) {
  26707. if (!isObject(value)) {
  26708. return false;
  26709. }
  26710. // The use of `Object#toString` avoids issues with the `typeof` operator
  26711. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  26712. var tag = baseGetTag(value);
  26713. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  26714. }
  26715. /**
  26716. * Checks if `value` is an integer.
  26717. *
  26718. * **Note:** This method is based on
  26719. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  26720. *
  26721. * @static
  26722. * @memberOf _
  26723. * @since 4.0.0
  26724. * @category Lang
  26725. * @param {*} value The value to check.
  26726. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  26727. * @example
  26728. *
  26729. * _.isInteger(3);
  26730. * // => true
  26731. *
  26732. * _.isInteger(Number.MIN_VALUE);
  26733. * // => false
  26734. *
  26735. * _.isInteger(Infinity);
  26736. * // => false
  26737. *
  26738. * _.isInteger('3');
  26739. * // => false
  26740. */
  26741. function isInteger(value) {
  26742. return typeof value == 'number' && value == toInteger(value);
  26743. }
  26744. /**
  26745. * Checks if `value` is a valid array-like length.
  26746. *
  26747. * **Note:** This method is loosely based on
  26748. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  26749. *
  26750. * @static
  26751. * @memberOf _
  26752. * @since 4.0.0
  26753. * @category Lang
  26754. * @param {*} value The value to check.
  26755. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  26756. * @example
  26757. *
  26758. * _.isLength(3);
  26759. * // => true
  26760. *
  26761. * _.isLength(Number.MIN_VALUE);
  26762. * // => false
  26763. *
  26764. * _.isLength(Infinity);
  26765. * // => false
  26766. *
  26767. * _.isLength('3');
  26768. * // => false
  26769. */
  26770. function isLength(value) {
  26771. return typeof value == 'number' &&
  26772. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  26773. }
  26774. /**
  26775. * Checks if `value` is the
  26776. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  26777. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  26778. *
  26779. * @static
  26780. * @memberOf _
  26781. * @since 0.1.0
  26782. * @category Lang
  26783. * @param {*} value The value to check.
  26784. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  26785. * @example
  26786. *
  26787. * _.isObject({});
  26788. * // => true
  26789. *
  26790. * _.isObject([1, 2, 3]);
  26791. * // => true
  26792. *
  26793. * _.isObject(_.noop);
  26794. * // => true
  26795. *
  26796. * _.isObject(null);
  26797. * // => false
  26798. */
  26799. function isObject(value) {
  26800. var type = typeof value;
  26801. return value != null && (type == 'object' || type == 'function');
  26802. }
  26803. /**
  26804. * Checks if `value` is object-like. A value is object-like if it's not `null`
  26805. * and has a `typeof` result of "object".
  26806. *
  26807. * @static
  26808. * @memberOf _
  26809. * @since 4.0.0
  26810. * @category Lang
  26811. * @param {*} value The value to check.
  26812. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  26813. * @example
  26814. *
  26815. * _.isObjectLike({});
  26816. * // => true
  26817. *
  26818. * _.isObjectLike([1, 2, 3]);
  26819. * // => true
  26820. *
  26821. * _.isObjectLike(_.noop);
  26822. * // => false
  26823. *
  26824. * _.isObjectLike(null);
  26825. * // => false
  26826. */
  26827. function isObjectLike(value) {
  26828. return value != null && typeof value == 'object';
  26829. }
  26830. /**
  26831. * Checks if `value` is classified as a `Map` object.
  26832. *
  26833. * @static
  26834. * @memberOf _
  26835. * @since 4.3.0
  26836. * @category Lang
  26837. * @param {*} value The value to check.
  26838. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  26839. * @example
  26840. *
  26841. * _.isMap(new Map);
  26842. * // => true
  26843. *
  26844. * _.isMap(new WeakMap);
  26845. * // => false
  26846. */
  26847. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  26848. /**
  26849. * Performs a partial deep comparison between `object` and `source` to
  26850. * determine if `object` contains equivalent property values.
  26851. *
  26852. * **Note:** This method is equivalent to `_.matches` when `source` is
  26853. * partially applied.
  26854. *
  26855. * Partial comparisons will match empty array and empty object `source`
  26856. * values against any array or object value, respectively. See `_.isEqual`
  26857. * for a list of supported value comparisons.
  26858. *
  26859. * @static
  26860. * @memberOf _
  26861. * @since 3.0.0
  26862. * @category Lang
  26863. * @param {Object} object The object to inspect.
  26864. * @param {Object} source The object of property values to match.
  26865. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26866. * @example
  26867. *
  26868. * var object = { 'a': 1, 'b': 2 };
  26869. *
  26870. * _.isMatch(object, { 'b': 2 });
  26871. * // => true
  26872. *
  26873. * _.isMatch(object, { 'b': 1 });
  26874. * // => false
  26875. */
  26876. function isMatch(object, source) {
  26877. return object === source || baseIsMatch(object, source, getMatchData(source));
  26878. }
  26879. /**
  26880. * This method is like `_.isMatch` except that it accepts `customizer` which
  26881. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26882. * are handled by the method instead. The `customizer` is invoked with five
  26883. * arguments: (objValue, srcValue, index|key, object, source).
  26884. *
  26885. * @static
  26886. * @memberOf _
  26887. * @since 4.0.0
  26888. * @category Lang
  26889. * @param {Object} object The object to inspect.
  26890. * @param {Object} source The object of property values to match.
  26891. * @param {Function} [customizer] The function to customize comparisons.
  26892. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26893. * @example
  26894. *
  26895. * function isGreeting(value) {
  26896. * return /^h(?:i|ello)$/.test(value);
  26897. * }
  26898. *
  26899. * function customizer(objValue, srcValue) {
  26900. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  26901. * return true;
  26902. * }
  26903. * }
  26904. *
  26905. * var object = { 'greeting': 'hello' };
  26906. * var source = { 'greeting': 'hi' };
  26907. *
  26908. * _.isMatchWith(object, source, customizer);
  26909. * // => true
  26910. */
  26911. function isMatchWith(object, source, customizer) {
  26912. customizer = typeof customizer == 'function' ? customizer : undefined;
  26913. return baseIsMatch(object, source, getMatchData(source), customizer);
  26914. }
  26915. /**
  26916. * Checks if `value` is `NaN`.
  26917. *
  26918. * **Note:** This method is based on
  26919. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  26920. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  26921. * `undefined` and other non-number values.
  26922. *
  26923. * @static
  26924. * @memberOf _
  26925. * @since 0.1.0
  26926. * @category Lang
  26927. * @param {*} value The value to check.
  26928. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  26929. * @example
  26930. *
  26931. * _.isNaN(NaN);
  26932. * // => true
  26933. *
  26934. * _.isNaN(new Number(NaN));
  26935. * // => true
  26936. *
  26937. * isNaN(undefined);
  26938. * // => true
  26939. *
  26940. * _.isNaN(undefined);
  26941. * // => false
  26942. */
  26943. function isNaN(value) {
  26944. // An `NaN` primitive is the only value that is not equal to itself.
  26945. // Perform the `toStringTag` check first to avoid errors with some
  26946. // ActiveX objects in IE.
  26947. return isNumber(value) && value != +value;
  26948. }
  26949. /**
  26950. * Checks if `value` is a pristine native function.
  26951. *
  26952. * **Note:** This method can't reliably detect native functions in the presence
  26953. * of the core-js package because core-js circumvents this kind of detection.
  26954. * Despite multiple requests, the core-js maintainer has made it clear: any
  26955. * attempt to fix the detection will be obstructed. As a result, we're left
  26956. * with little choice but to throw an error. Unfortunately, this also affects
  26957. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  26958. * which rely on core-js.
  26959. *
  26960. * @static
  26961. * @memberOf _
  26962. * @since 3.0.0
  26963. * @category Lang
  26964. * @param {*} value The value to check.
  26965. * @returns {boolean} Returns `true` if `value` is a native function,
  26966. * else `false`.
  26967. * @example
  26968. *
  26969. * _.isNative(Array.prototype.push);
  26970. * // => true
  26971. *
  26972. * _.isNative(_);
  26973. * // => false
  26974. */
  26975. function isNative(value) {
  26976. if (isMaskable(value)) {
  26977. throw new Error(CORE_ERROR_TEXT);
  26978. }
  26979. return baseIsNative(value);
  26980. }
  26981. /**
  26982. * Checks if `value` is `null`.
  26983. *
  26984. * @static
  26985. * @memberOf _
  26986. * @since 0.1.0
  26987. * @category Lang
  26988. * @param {*} value The value to check.
  26989. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  26990. * @example
  26991. *
  26992. * _.isNull(null);
  26993. * // => true
  26994. *
  26995. * _.isNull(void 0);
  26996. * // => false
  26997. */
  26998. function isNull(value) {
  26999. return value === null;
  27000. }
  27001. /**
  27002. * Checks if `value` is `null` or `undefined`.
  27003. *
  27004. * @static
  27005. * @memberOf _
  27006. * @since 4.0.0
  27007. * @category Lang
  27008. * @param {*} value The value to check.
  27009. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  27010. * @example
  27011. *
  27012. * _.isNil(null);
  27013. * // => true
  27014. *
  27015. * _.isNil(void 0);
  27016. * // => true
  27017. *
  27018. * _.isNil(NaN);
  27019. * // => false
  27020. */
  27021. function isNil(value) {
  27022. return value == null;
  27023. }
  27024. /**
  27025. * Checks if `value` is classified as a `Number` primitive or object.
  27026. *
  27027. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  27028. * classified as numbers, use the `_.isFinite` method.
  27029. *
  27030. * @static
  27031. * @memberOf _
  27032. * @since 0.1.0
  27033. * @category Lang
  27034. * @param {*} value The value to check.
  27035. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  27036. * @example
  27037. *
  27038. * _.isNumber(3);
  27039. * // => true
  27040. *
  27041. * _.isNumber(Number.MIN_VALUE);
  27042. * // => true
  27043. *
  27044. * _.isNumber(Infinity);
  27045. * // => true
  27046. *
  27047. * _.isNumber('3');
  27048. * // => false
  27049. */
  27050. function isNumber(value) {
  27051. return typeof value == 'number' ||
  27052. (isObjectLike(value) && baseGetTag(value) == numberTag);
  27053. }
  27054. /**
  27055. * Checks if `value` is a plain object, that is, an object created by the
  27056. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  27057. *
  27058. * @static
  27059. * @memberOf _
  27060. * @since 0.8.0
  27061. * @category Lang
  27062. * @param {*} value The value to check.
  27063. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  27064. * @example
  27065. *
  27066. * function Foo() {
  27067. * this.a = 1;
  27068. * }
  27069. *
  27070. * _.isPlainObject(new Foo);
  27071. * // => false
  27072. *
  27073. * _.isPlainObject([1, 2, 3]);
  27074. * // => false
  27075. *
  27076. * _.isPlainObject({ 'x': 0, 'y': 0 });
  27077. * // => true
  27078. *
  27079. * _.isPlainObject(Object.create(null));
  27080. * // => true
  27081. */
  27082. function isPlainObject(value) {
  27083. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  27084. return false;
  27085. }
  27086. var proto = getPrototype(value);
  27087. if (proto === null) {
  27088. return true;
  27089. }
  27090. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  27091. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  27092. funcToString.call(Ctor) == objectCtorString;
  27093. }
  27094. /**
  27095. * Checks if `value` is classified as a `RegExp` object.
  27096. *
  27097. * @static
  27098. * @memberOf _
  27099. * @since 0.1.0
  27100. * @category Lang
  27101. * @param {*} value The value to check.
  27102. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  27103. * @example
  27104. *
  27105. * _.isRegExp(/abc/);
  27106. * // => true
  27107. *
  27108. * _.isRegExp('/abc/');
  27109. * // => false
  27110. */
  27111. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  27112. /**
  27113. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  27114. * double precision number which isn't the result of a rounded unsafe integer.
  27115. *
  27116. * **Note:** This method is based on
  27117. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  27118. *
  27119. * @static
  27120. * @memberOf _
  27121. * @since 4.0.0
  27122. * @category Lang
  27123. * @param {*} value The value to check.
  27124. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  27125. * @example
  27126. *
  27127. * _.isSafeInteger(3);
  27128. * // => true
  27129. *
  27130. * _.isSafeInteger(Number.MIN_VALUE);
  27131. * // => false
  27132. *
  27133. * _.isSafeInteger(Infinity);
  27134. * // => false
  27135. *
  27136. * _.isSafeInteger('3');
  27137. * // => false
  27138. */
  27139. function isSafeInteger(value) {
  27140. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  27141. }
  27142. /**
  27143. * Checks if `value` is classified as a `Set` object.
  27144. *
  27145. * @static
  27146. * @memberOf _
  27147. * @since 4.3.0
  27148. * @category Lang
  27149. * @param {*} value The value to check.
  27150. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  27151. * @example
  27152. *
  27153. * _.isSet(new Set);
  27154. * // => true
  27155. *
  27156. * _.isSet(new WeakSet);
  27157. * // => false
  27158. */
  27159. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  27160. /**
  27161. * Checks if `value` is classified as a `String` primitive or object.
  27162. *
  27163. * @static
  27164. * @since 0.1.0
  27165. * @memberOf _
  27166. * @category Lang
  27167. * @param {*} value The value to check.
  27168. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  27169. * @example
  27170. *
  27171. * _.isString('abc');
  27172. * // => true
  27173. *
  27174. * _.isString(1);
  27175. * // => false
  27176. */
  27177. function isString(value) {
  27178. return typeof value == 'string' ||
  27179. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  27180. }
  27181. /**
  27182. * Checks if `value` is classified as a `Symbol` primitive or object.
  27183. *
  27184. * @static
  27185. * @memberOf _
  27186. * @since 4.0.0
  27187. * @category Lang
  27188. * @param {*} value The value to check.
  27189. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  27190. * @example
  27191. *
  27192. * _.isSymbol(Symbol.iterator);
  27193. * // => true
  27194. *
  27195. * _.isSymbol('abc');
  27196. * // => false
  27197. */
  27198. function isSymbol(value) {
  27199. return typeof value == 'symbol' ||
  27200. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  27201. }
  27202. /**
  27203. * Checks if `value` is classified as a typed array.
  27204. *
  27205. * @static
  27206. * @memberOf _
  27207. * @since 3.0.0
  27208. * @category Lang
  27209. * @param {*} value The value to check.
  27210. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  27211. * @example
  27212. *
  27213. * _.isTypedArray(new Uint8Array);
  27214. * // => true
  27215. *
  27216. * _.isTypedArray([]);
  27217. * // => false
  27218. */
  27219. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  27220. /**
  27221. * Checks if `value` is `undefined`.
  27222. *
  27223. * @static
  27224. * @since 0.1.0
  27225. * @memberOf _
  27226. * @category Lang
  27227. * @param {*} value The value to check.
  27228. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  27229. * @example
  27230. *
  27231. * _.isUndefined(void 0);
  27232. * // => true
  27233. *
  27234. * _.isUndefined(null);
  27235. * // => false
  27236. */
  27237. function isUndefined(value) {
  27238. return value === undefined;
  27239. }
  27240. /**
  27241. * Checks if `value` is classified as a `WeakMap` object.
  27242. *
  27243. * @static
  27244. * @memberOf _
  27245. * @since 4.3.0
  27246. * @category Lang
  27247. * @param {*} value The value to check.
  27248. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  27249. * @example
  27250. *
  27251. * _.isWeakMap(new WeakMap);
  27252. * // => true
  27253. *
  27254. * _.isWeakMap(new Map);
  27255. * // => false
  27256. */
  27257. function isWeakMap(value) {
  27258. return isObjectLike(value) && getTag(value) == weakMapTag;
  27259. }
  27260. /**
  27261. * Checks if `value` is classified as a `WeakSet` object.
  27262. *
  27263. * @static
  27264. * @memberOf _
  27265. * @since 4.3.0
  27266. * @category Lang
  27267. * @param {*} value The value to check.
  27268. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  27269. * @example
  27270. *
  27271. * _.isWeakSet(new WeakSet);
  27272. * // => true
  27273. *
  27274. * _.isWeakSet(new Set);
  27275. * // => false
  27276. */
  27277. function isWeakSet(value) {
  27278. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  27279. }
  27280. /**
  27281. * Checks if `value` is less than `other`.
  27282. *
  27283. * @static
  27284. * @memberOf _
  27285. * @since 3.9.0
  27286. * @category Lang
  27287. * @param {*} value The value to compare.
  27288. * @param {*} other The other value to compare.
  27289. * @returns {boolean} Returns `true` if `value` is less than `other`,
  27290. * else `false`.
  27291. * @see _.gt
  27292. * @example
  27293. *
  27294. * _.lt(1, 3);
  27295. * // => true
  27296. *
  27297. * _.lt(3, 3);
  27298. * // => false
  27299. *
  27300. * _.lt(3, 1);
  27301. * // => false
  27302. */
  27303. var lt = createRelationalOperation(baseLt);
  27304. /**
  27305. * Checks if `value` is less than or equal to `other`.
  27306. *
  27307. * @static
  27308. * @memberOf _
  27309. * @since 3.9.0
  27310. * @category Lang
  27311. * @param {*} value The value to compare.
  27312. * @param {*} other The other value to compare.
  27313. * @returns {boolean} Returns `true` if `value` is less than or equal to
  27314. * `other`, else `false`.
  27315. * @see _.gte
  27316. * @example
  27317. *
  27318. * _.lte(1, 3);
  27319. * // => true
  27320. *
  27321. * _.lte(3, 3);
  27322. * // => true
  27323. *
  27324. * _.lte(3, 1);
  27325. * // => false
  27326. */
  27327. var lte = createRelationalOperation(function(value, other) {
  27328. return value <= other;
  27329. });
  27330. /**
  27331. * Converts `value` to an array.
  27332. *
  27333. * @static
  27334. * @since 0.1.0
  27335. * @memberOf _
  27336. * @category Lang
  27337. * @param {*} value The value to convert.
  27338. * @returns {Array} Returns the converted array.
  27339. * @example
  27340. *
  27341. * _.toArray({ 'a': 1, 'b': 2 });
  27342. * // => [1, 2]
  27343. *
  27344. * _.toArray('abc');
  27345. * // => ['a', 'b', 'c']
  27346. *
  27347. * _.toArray(1);
  27348. * // => []
  27349. *
  27350. * _.toArray(null);
  27351. * // => []
  27352. */
  27353. function toArray(value) {
  27354. if (!value) {
  27355. return [];
  27356. }
  27357. if (isArrayLike(value)) {
  27358. return isString(value) ? stringToArray(value) : copyArray(value);
  27359. }
  27360. if (symIterator && value[symIterator]) {
  27361. return iteratorToArray(value[symIterator]());
  27362. }
  27363. var tag = getTag(value),
  27364. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  27365. return func(value);
  27366. }
  27367. /**
  27368. * Converts `value` to a finite number.
  27369. *
  27370. * @static
  27371. * @memberOf _
  27372. * @since 4.12.0
  27373. * @category Lang
  27374. * @param {*} value The value to convert.
  27375. * @returns {number} Returns the converted number.
  27376. * @example
  27377. *
  27378. * _.toFinite(3.2);
  27379. * // => 3.2
  27380. *
  27381. * _.toFinite(Number.MIN_VALUE);
  27382. * // => 5e-324
  27383. *
  27384. * _.toFinite(Infinity);
  27385. * // => 1.7976931348623157e+308
  27386. *
  27387. * _.toFinite('3.2');
  27388. * // => 3.2
  27389. */
  27390. function toFinite(value) {
  27391. if (!value) {
  27392. return value === 0 ? value : 0;
  27393. }
  27394. value = toNumber(value);
  27395. if (value === INFINITY || value === -INFINITY) {
  27396. var sign = (value < 0 ? -1 : 1);
  27397. return sign * MAX_INTEGER;
  27398. }
  27399. return value === value ? value : 0;
  27400. }
  27401. /**
  27402. * Converts `value` to an integer.
  27403. *
  27404. * **Note:** This method is loosely based on
  27405. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  27406. *
  27407. * @static
  27408. * @memberOf _
  27409. * @since 4.0.0
  27410. * @category Lang
  27411. * @param {*} value The value to convert.
  27412. * @returns {number} Returns the converted integer.
  27413. * @example
  27414. *
  27415. * _.toInteger(3.2);
  27416. * // => 3
  27417. *
  27418. * _.toInteger(Number.MIN_VALUE);
  27419. * // => 0
  27420. *
  27421. * _.toInteger(Infinity);
  27422. * // => 1.7976931348623157e+308
  27423. *
  27424. * _.toInteger('3.2');
  27425. * // => 3
  27426. */
  27427. function toInteger(value) {
  27428. var result = toFinite(value),
  27429. remainder = result % 1;
  27430. return result === result ? (remainder ? result - remainder : result) : 0;
  27431. }
  27432. /**
  27433. * Converts `value` to an integer suitable for use as the length of an
  27434. * array-like object.
  27435. *
  27436. * **Note:** This method is based on
  27437. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  27438. *
  27439. * @static
  27440. * @memberOf _
  27441. * @since 4.0.0
  27442. * @category Lang
  27443. * @param {*} value The value to convert.
  27444. * @returns {number} Returns the converted integer.
  27445. * @example
  27446. *
  27447. * _.toLength(3.2);
  27448. * // => 3
  27449. *
  27450. * _.toLength(Number.MIN_VALUE);
  27451. * // => 0
  27452. *
  27453. * _.toLength(Infinity);
  27454. * // => 4294967295
  27455. *
  27456. * _.toLength('3.2');
  27457. * // => 3
  27458. */
  27459. function toLength(value) {
  27460. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  27461. }
  27462. /**
  27463. * Converts `value` to a number.
  27464. *
  27465. * @static
  27466. * @memberOf _
  27467. * @since 4.0.0
  27468. * @category Lang
  27469. * @param {*} value The value to process.
  27470. * @returns {number} Returns the number.
  27471. * @example
  27472. *
  27473. * _.toNumber(3.2);
  27474. * // => 3.2
  27475. *
  27476. * _.toNumber(Number.MIN_VALUE);
  27477. * // => 5e-324
  27478. *
  27479. * _.toNumber(Infinity);
  27480. * // => Infinity
  27481. *
  27482. * _.toNumber('3.2');
  27483. * // => 3.2
  27484. */
  27485. function toNumber(value) {
  27486. if (typeof value == 'number') {
  27487. return value;
  27488. }
  27489. if (isSymbol(value)) {
  27490. return NAN;
  27491. }
  27492. if (isObject(value)) {
  27493. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  27494. value = isObject(other) ? (other + '') : other;
  27495. }
  27496. if (typeof value != 'string') {
  27497. return value === 0 ? value : +value;
  27498. }
  27499. value = value.replace(reTrim, '');
  27500. var isBinary = reIsBinary.test(value);
  27501. return (isBinary || reIsOctal.test(value))
  27502. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  27503. : (reIsBadHex.test(value) ? NAN : +value);
  27504. }
  27505. /**
  27506. * Converts `value` to a plain object flattening inherited enumerable string
  27507. * keyed properties of `value` to own properties of the plain object.
  27508. *
  27509. * @static
  27510. * @memberOf _
  27511. * @since 3.0.0
  27512. * @category Lang
  27513. * @param {*} value The value to convert.
  27514. * @returns {Object} Returns the converted plain object.
  27515. * @example
  27516. *
  27517. * function Foo() {
  27518. * this.b = 2;
  27519. * }
  27520. *
  27521. * Foo.prototype.c = 3;
  27522. *
  27523. * _.assign({ 'a': 1 }, new Foo);
  27524. * // => { 'a': 1, 'b': 2 }
  27525. *
  27526. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  27527. * // => { 'a': 1, 'b': 2, 'c': 3 }
  27528. */
  27529. function toPlainObject(value) {
  27530. return copyObject(value, keysIn(value));
  27531. }
  27532. /**
  27533. * Converts `value` to a safe integer. A safe integer can be compared and
  27534. * represented correctly.
  27535. *
  27536. * @static
  27537. * @memberOf _
  27538. * @since 4.0.0
  27539. * @category Lang
  27540. * @param {*} value The value to convert.
  27541. * @returns {number} Returns the converted integer.
  27542. * @example
  27543. *
  27544. * _.toSafeInteger(3.2);
  27545. * // => 3
  27546. *
  27547. * _.toSafeInteger(Number.MIN_VALUE);
  27548. * // => 0
  27549. *
  27550. * _.toSafeInteger(Infinity);
  27551. * // => 9007199254740991
  27552. *
  27553. * _.toSafeInteger('3.2');
  27554. * // => 3
  27555. */
  27556. function toSafeInteger(value) {
  27557. return value
  27558. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  27559. : (value === 0 ? value : 0);
  27560. }
  27561. /**
  27562. * Converts `value` to a string. An empty string is returned for `null`
  27563. * and `undefined` values. The sign of `-0` is preserved.
  27564. *
  27565. * @static
  27566. * @memberOf _
  27567. * @since 4.0.0
  27568. * @category Lang
  27569. * @param {*} value The value to convert.
  27570. * @returns {string} Returns the converted string.
  27571. * @example
  27572. *
  27573. * _.toString(null);
  27574. * // => ''
  27575. *
  27576. * _.toString(-0);
  27577. * // => '-0'
  27578. *
  27579. * _.toString([1, 2, 3]);
  27580. * // => '1,2,3'
  27581. */
  27582. function toString(value) {
  27583. return value == null ? '' : baseToString(value);
  27584. }
  27585. /*------------------------------------------------------------------------*/
  27586. /**
  27587. * Assigns own enumerable string keyed properties of source objects to the
  27588. * destination object. Source objects are applied from left to right.
  27589. * Subsequent sources overwrite property assignments of previous sources.
  27590. *
  27591. * **Note:** This method mutates `object` and is loosely based on
  27592. * [`Object.assign`](https://mdn.io/Object/assign).
  27593. *
  27594. * @static
  27595. * @memberOf _
  27596. * @since 0.10.0
  27597. * @category Object
  27598. * @param {Object} object The destination object.
  27599. * @param {...Object} [sources] The source objects.
  27600. * @returns {Object} Returns `object`.
  27601. * @see _.assignIn
  27602. * @example
  27603. *
  27604. * function Foo() {
  27605. * this.a = 1;
  27606. * }
  27607. *
  27608. * function Bar() {
  27609. * this.c = 3;
  27610. * }
  27611. *
  27612. * Foo.prototype.b = 2;
  27613. * Bar.prototype.d = 4;
  27614. *
  27615. * _.assign({ 'a': 0 }, new Foo, new Bar);
  27616. * // => { 'a': 1, 'c': 3 }
  27617. */
  27618. var assign = createAssigner(function(object, source) {
  27619. if (isPrototype(source) || isArrayLike(source)) {
  27620. copyObject(source, keys(source), object);
  27621. return;
  27622. }
  27623. for (var key in source) {
  27624. if (hasOwnProperty.call(source, key)) {
  27625. assignValue(object, key, source[key]);
  27626. }
  27627. }
  27628. });
  27629. /**
  27630. * This method is like `_.assign` except that it iterates over own and
  27631. * inherited source properties.
  27632. *
  27633. * **Note:** This method mutates `object`.
  27634. *
  27635. * @static
  27636. * @memberOf _
  27637. * @since 4.0.0
  27638. * @alias extend
  27639. * @category Object
  27640. * @param {Object} object The destination object.
  27641. * @param {...Object} [sources] The source objects.
  27642. * @returns {Object} Returns `object`.
  27643. * @see _.assign
  27644. * @example
  27645. *
  27646. * function Foo() {
  27647. * this.a = 1;
  27648. * }
  27649. *
  27650. * function Bar() {
  27651. * this.c = 3;
  27652. * }
  27653. *
  27654. * Foo.prototype.b = 2;
  27655. * Bar.prototype.d = 4;
  27656. *
  27657. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  27658. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  27659. */
  27660. var assignIn = createAssigner(function(object, source) {
  27661. copyObject(source, keysIn(source), object);
  27662. });
  27663. /**
  27664. * This method is like `_.assignIn` except that it accepts `customizer`
  27665. * which is invoked to produce the assigned values. If `customizer` returns
  27666. * `undefined`, assignment is handled by the method instead. The `customizer`
  27667. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27668. *
  27669. * **Note:** This method mutates `object`.
  27670. *
  27671. * @static
  27672. * @memberOf _
  27673. * @since 4.0.0
  27674. * @alias extendWith
  27675. * @category Object
  27676. * @param {Object} object The destination object.
  27677. * @param {...Object} sources The source objects.
  27678. * @param {Function} [customizer] The function to customize assigned values.
  27679. * @returns {Object} Returns `object`.
  27680. * @see _.assignWith
  27681. * @example
  27682. *
  27683. * function customizer(objValue, srcValue) {
  27684. * return _.isUndefined(objValue) ? srcValue : objValue;
  27685. * }
  27686. *
  27687. * var defaults = _.partialRight(_.assignInWith, customizer);
  27688. *
  27689. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27690. * // => { 'a': 1, 'b': 2 }
  27691. */
  27692. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  27693. copyObject(source, keysIn(source), object, customizer);
  27694. });
  27695. /**
  27696. * This method is like `_.assign` except that it accepts `customizer`
  27697. * which is invoked to produce the assigned values. If `customizer` returns
  27698. * `undefined`, assignment is handled by the method instead. The `customizer`
  27699. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27700. *
  27701. * **Note:** This method mutates `object`.
  27702. *
  27703. * @static
  27704. * @memberOf _
  27705. * @since 4.0.0
  27706. * @category Object
  27707. * @param {Object} object The destination object.
  27708. * @param {...Object} sources The source objects.
  27709. * @param {Function} [customizer] The function to customize assigned values.
  27710. * @returns {Object} Returns `object`.
  27711. * @see _.assignInWith
  27712. * @example
  27713. *
  27714. * function customizer(objValue, srcValue) {
  27715. * return _.isUndefined(objValue) ? srcValue : objValue;
  27716. * }
  27717. *
  27718. * var defaults = _.partialRight(_.assignWith, customizer);
  27719. *
  27720. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27721. * // => { 'a': 1, 'b': 2 }
  27722. */
  27723. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  27724. copyObject(source, keys(source), object, customizer);
  27725. });
  27726. /**
  27727. * Creates an array of values corresponding to `paths` of `object`.
  27728. *
  27729. * @static
  27730. * @memberOf _
  27731. * @since 1.0.0
  27732. * @category Object
  27733. * @param {Object} object The object to iterate over.
  27734. * @param {...(string|string[])} [paths] The property paths to pick.
  27735. * @returns {Array} Returns the picked values.
  27736. * @example
  27737. *
  27738. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  27739. *
  27740. * _.at(object, ['a[0].b.c', 'a[1]']);
  27741. * // => [3, 4]
  27742. */
  27743. var at = flatRest(baseAt);
  27744. /**
  27745. * Creates an object that inherits from the `prototype` object. If a
  27746. * `properties` object is given, its own enumerable string keyed properties
  27747. * are assigned to the created object.
  27748. *
  27749. * @static
  27750. * @memberOf _
  27751. * @since 2.3.0
  27752. * @category Object
  27753. * @param {Object} prototype The object to inherit from.
  27754. * @param {Object} [properties] The properties to assign to the object.
  27755. * @returns {Object} Returns the new object.
  27756. * @example
  27757. *
  27758. * function Shape() {
  27759. * this.x = 0;
  27760. * this.y = 0;
  27761. * }
  27762. *
  27763. * function Circle() {
  27764. * Shape.call(this);
  27765. * }
  27766. *
  27767. * Circle.prototype = _.create(Shape.prototype, {
  27768. * 'constructor': Circle
  27769. * });
  27770. *
  27771. * var circle = new Circle;
  27772. * circle instanceof Circle;
  27773. * // => true
  27774. *
  27775. * circle instanceof Shape;
  27776. * // => true
  27777. */
  27778. function create(prototype, properties) {
  27779. var result = baseCreate(prototype);
  27780. return properties == null ? result : baseAssign(result, properties);
  27781. }
  27782. /**
  27783. * Assigns own and inherited enumerable string keyed properties of source
  27784. * objects to the destination object for all destination properties that
  27785. * resolve to `undefined`. Source objects are applied from left to right.
  27786. * Once a property is set, additional values of the same property are ignored.
  27787. *
  27788. * **Note:** This method mutates `object`.
  27789. *
  27790. * @static
  27791. * @since 0.1.0
  27792. * @memberOf _
  27793. * @category Object
  27794. * @param {Object} object The destination object.
  27795. * @param {...Object} [sources] The source objects.
  27796. * @returns {Object} Returns `object`.
  27797. * @see _.defaultsDeep
  27798. * @example
  27799. *
  27800. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27801. * // => { 'a': 1, 'b': 2 }
  27802. */
  27803. var defaults = baseRest(function(object, sources) {
  27804. object = Object(object);
  27805. var index = -1;
  27806. var length = sources.length;
  27807. var guard = length > 2 ? sources[2] : undefined;
  27808. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  27809. length = 1;
  27810. }
  27811. while (++index < length) {
  27812. var source = sources[index];
  27813. var props = keysIn(source);
  27814. var propsIndex = -1;
  27815. var propsLength = props.length;
  27816. while (++propsIndex < propsLength) {
  27817. var key = props[propsIndex];
  27818. var value = object[key];
  27819. if (value === undefined ||
  27820. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  27821. object[key] = source[key];
  27822. }
  27823. }
  27824. }
  27825. return object;
  27826. });
  27827. /**
  27828. * This method is like `_.defaults` except that it recursively assigns
  27829. * default properties.
  27830. *
  27831. * **Note:** This method mutates `object`.
  27832. *
  27833. * @static
  27834. * @memberOf _
  27835. * @since 3.10.0
  27836. * @category Object
  27837. * @param {Object} object The destination object.
  27838. * @param {...Object} [sources] The source objects.
  27839. * @returns {Object} Returns `object`.
  27840. * @see _.defaults
  27841. * @example
  27842. *
  27843. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  27844. * // => { 'a': { 'b': 2, 'c': 3 } }
  27845. */
  27846. var defaultsDeep = baseRest(function(args) {
  27847. args.push(undefined, customDefaultsMerge);
  27848. return apply(mergeWith, undefined, args);
  27849. });
  27850. /**
  27851. * This method is like `_.find` except that it returns the key of the first
  27852. * element `predicate` returns truthy for instead of the element itself.
  27853. *
  27854. * @static
  27855. * @memberOf _
  27856. * @since 1.1.0
  27857. * @category Object
  27858. * @param {Object} object The object to inspect.
  27859. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27860. * @returns {string|undefined} Returns the key of the matched element,
  27861. * else `undefined`.
  27862. * @example
  27863. *
  27864. * var users = {
  27865. * 'barney': { 'age': 36, 'active': true },
  27866. * 'fred': { 'age': 40, 'active': false },
  27867. * 'pebbles': { 'age': 1, 'active': true }
  27868. * };
  27869. *
  27870. * _.findKey(users, function(o) { return o.age < 40; });
  27871. * // => 'barney' (iteration order is not guaranteed)
  27872. *
  27873. * // The `_.matches` iteratee shorthand.
  27874. * _.findKey(users, { 'age': 1, 'active': true });
  27875. * // => 'pebbles'
  27876. *
  27877. * // The `_.matchesProperty` iteratee shorthand.
  27878. * _.findKey(users, ['active', false]);
  27879. * // => 'fred'
  27880. *
  27881. * // The `_.property` iteratee shorthand.
  27882. * _.findKey(users, 'active');
  27883. * // => 'barney'
  27884. */
  27885. function findKey(object, predicate) {
  27886. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  27887. }
  27888. /**
  27889. * This method is like `_.findKey` except that it iterates over elements of
  27890. * a collection in the opposite order.
  27891. *
  27892. * @static
  27893. * @memberOf _
  27894. * @since 2.0.0
  27895. * @category Object
  27896. * @param {Object} object The object to inspect.
  27897. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27898. * @returns {string|undefined} Returns the key of the matched element,
  27899. * else `undefined`.
  27900. * @example
  27901. *
  27902. * var users = {
  27903. * 'barney': { 'age': 36, 'active': true },
  27904. * 'fred': { 'age': 40, 'active': false },
  27905. * 'pebbles': { 'age': 1, 'active': true }
  27906. * };
  27907. *
  27908. * _.findLastKey(users, function(o) { return o.age < 40; });
  27909. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  27910. *
  27911. * // The `_.matches` iteratee shorthand.
  27912. * _.findLastKey(users, { 'age': 36, 'active': true });
  27913. * // => 'barney'
  27914. *
  27915. * // The `_.matchesProperty` iteratee shorthand.
  27916. * _.findLastKey(users, ['active', false]);
  27917. * // => 'fred'
  27918. *
  27919. * // The `_.property` iteratee shorthand.
  27920. * _.findLastKey(users, 'active');
  27921. * // => 'pebbles'
  27922. */
  27923. function findLastKey(object, predicate) {
  27924. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  27925. }
  27926. /**
  27927. * Iterates over own and inherited enumerable string keyed properties of an
  27928. * object and invokes `iteratee` for each property. The iteratee is invoked
  27929. * with three arguments: (value, key, object). Iteratee functions may exit
  27930. * iteration early by explicitly returning `false`.
  27931. *
  27932. * @static
  27933. * @memberOf _
  27934. * @since 0.3.0
  27935. * @category Object
  27936. * @param {Object} object The object to iterate over.
  27937. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27938. * @returns {Object} Returns `object`.
  27939. * @see _.forInRight
  27940. * @example
  27941. *
  27942. * function Foo() {
  27943. * this.a = 1;
  27944. * this.b = 2;
  27945. * }
  27946. *
  27947. * Foo.prototype.c = 3;
  27948. *
  27949. * _.forIn(new Foo, function(value, key) {
  27950. * console.log(key);
  27951. * });
  27952. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  27953. */
  27954. function forIn(object, iteratee) {
  27955. return object == null
  27956. ? object
  27957. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  27958. }
  27959. /**
  27960. * This method is like `_.forIn` except that it iterates over properties of
  27961. * `object` in the opposite order.
  27962. *
  27963. * @static
  27964. * @memberOf _
  27965. * @since 2.0.0
  27966. * @category Object
  27967. * @param {Object} object The object to iterate over.
  27968. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27969. * @returns {Object} Returns `object`.
  27970. * @see _.forIn
  27971. * @example
  27972. *
  27973. * function Foo() {
  27974. * this.a = 1;
  27975. * this.b = 2;
  27976. * }
  27977. *
  27978. * Foo.prototype.c = 3;
  27979. *
  27980. * _.forInRight(new Foo, function(value, key) {
  27981. * console.log(key);
  27982. * });
  27983. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  27984. */
  27985. function forInRight(object, iteratee) {
  27986. return object == null
  27987. ? object
  27988. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  27989. }
  27990. /**
  27991. * Iterates over own enumerable string keyed properties of an object and
  27992. * invokes `iteratee` for each property. The iteratee is invoked with three
  27993. * arguments: (value, key, object). Iteratee functions may exit iteration
  27994. * early by explicitly returning `false`.
  27995. *
  27996. * @static
  27997. * @memberOf _
  27998. * @since 0.3.0
  27999. * @category Object
  28000. * @param {Object} object The object to iterate over.
  28001. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28002. * @returns {Object} Returns `object`.
  28003. * @see _.forOwnRight
  28004. * @example
  28005. *
  28006. * function Foo() {
  28007. * this.a = 1;
  28008. * this.b = 2;
  28009. * }
  28010. *
  28011. * Foo.prototype.c = 3;
  28012. *
  28013. * _.forOwn(new Foo, function(value, key) {
  28014. * console.log(key);
  28015. * });
  28016. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  28017. */
  28018. function forOwn(object, iteratee) {
  28019. return object && baseForOwn(object, getIteratee(iteratee, 3));
  28020. }
  28021. /**
  28022. * This method is like `_.forOwn` except that it iterates over properties of
  28023. * `object` in the opposite order.
  28024. *
  28025. * @static
  28026. * @memberOf _
  28027. * @since 2.0.0
  28028. * @category Object
  28029. * @param {Object} object The object to iterate over.
  28030. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28031. * @returns {Object} Returns `object`.
  28032. * @see _.forOwn
  28033. * @example
  28034. *
  28035. * function Foo() {
  28036. * this.a = 1;
  28037. * this.b = 2;
  28038. * }
  28039. *
  28040. * Foo.prototype.c = 3;
  28041. *
  28042. * _.forOwnRight(new Foo, function(value, key) {
  28043. * console.log(key);
  28044. * });
  28045. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  28046. */
  28047. function forOwnRight(object, iteratee) {
  28048. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  28049. }
  28050. /**
  28051. * Creates an array of function property names from own enumerable properties
  28052. * of `object`.
  28053. *
  28054. * @static
  28055. * @since 0.1.0
  28056. * @memberOf _
  28057. * @category Object
  28058. * @param {Object} object The object to inspect.
  28059. * @returns {Array} Returns the function names.
  28060. * @see _.functionsIn
  28061. * @example
  28062. *
  28063. * function Foo() {
  28064. * this.a = _.constant('a');
  28065. * this.b = _.constant('b');
  28066. * }
  28067. *
  28068. * Foo.prototype.c = _.constant('c');
  28069. *
  28070. * _.functions(new Foo);
  28071. * // => ['a', 'b']
  28072. */
  28073. function functions(object) {
  28074. return object == null ? [] : baseFunctions(object, keys(object));
  28075. }
  28076. /**
  28077. * Creates an array of function property names from own and inherited
  28078. * enumerable properties of `object`.
  28079. *
  28080. * @static
  28081. * @memberOf _
  28082. * @since 4.0.0
  28083. * @category Object
  28084. * @param {Object} object The object to inspect.
  28085. * @returns {Array} Returns the function names.
  28086. * @see _.functions
  28087. * @example
  28088. *
  28089. * function Foo() {
  28090. * this.a = _.constant('a');
  28091. * this.b = _.constant('b');
  28092. * }
  28093. *
  28094. * Foo.prototype.c = _.constant('c');
  28095. *
  28096. * _.functionsIn(new Foo);
  28097. * // => ['a', 'b', 'c']
  28098. */
  28099. function functionsIn(object) {
  28100. return object == null ? [] : baseFunctions(object, keysIn(object));
  28101. }
  28102. /**
  28103. * Gets the value at `path` of `object`. If the resolved value is
  28104. * `undefined`, the `defaultValue` is returned in its place.
  28105. *
  28106. * @static
  28107. * @memberOf _
  28108. * @since 3.7.0
  28109. * @category Object
  28110. * @param {Object} object The object to query.
  28111. * @param {Array|string} path The path of the property to get.
  28112. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28113. * @returns {*} Returns the resolved value.
  28114. * @example
  28115. *
  28116. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28117. *
  28118. * _.get(object, 'a[0].b.c');
  28119. * // => 3
  28120. *
  28121. * _.get(object, ['a', '0', 'b', 'c']);
  28122. * // => 3
  28123. *
  28124. * _.get(object, 'a.b.c', 'default');
  28125. * // => 'default'
  28126. */
  28127. function get(object, path, defaultValue) {
  28128. var result = object == null ? undefined : baseGet(object, path);
  28129. return result === undefined ? defaultValue : result;
  28130. }
  28131. /**
  28132. * Checks if `path` is a direct property of `object`.
  28133. *
  28134. * @static
  28135. * @since 0.1.0
  28136. * @memberOf _
  28137. * @category Object
  28138. * @param {Object} object The object to query.
  28139. * @param {Array|string} path The path to check.
  28140. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28141. * @example
  28142. *
  28143. * var object = { 'a': { 'b': 2 } };
  28144. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  28145. *
  28146. * _.has(object, 'a');
  28147. * // => true
  28148. *
  28149. * _.has(object, 'a.b');
  28150. * // => true
  28151. *
  28152. * _.has(object, ['a', 'b']);
  28153. * // => true
  28154. *
  28155. * _.has(other, 'a');
  28156. * // => false
  28157. */
  28158. function has(object, path) {
  28159. return object != null && hasPath(object, path, baseHas);
  28160. }
  28161. /**
  28162. * Checks if `path` is a direct or inherited property of `object`.
  28163. *
  28164. * @static
  28165. * @memberOf _
  28166. * @since 4.0.0
  28167. * @category Object
  28168. * @param {Object} object The object to query.
  28169. * @param {Array|string} path The path to check.
  28170. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28171. * @example
  28172. *
  28173. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  28174. *
  28175. * _.hasIn(object, 'a');
  28176. * // => true
  28177. *
  28178. * _.hasIn(object, 'a.b');
  28179. * // => true
  28180. *
  28181. * _.hasIn(object, ['a', 'b']);
  28182. * // => true
  28183. *
  28184. * _.hasIn(object, 'b');
  28185. * // => false
  28186. */
  28187. function hasIn(object, path) {
  28188. return object != null && hasPath(object, path, baseHasIn);
  28189. }
  28190. /**
  28191. * Creates an object composed of the inverted keys and values of `object`.
  28192. * If `object` contains duplicate values, subsequent values overwrite
  28193. * property assignments of previous values.
  28194. *
  28195. * @static
  28196. * @memberOf _
  28197. * @since 0.7.0
  28198. * @category Object
  28199. * @param {Object} object The object to invert.
  28200. * @returns {Object} Returns the new inverted object.
  28201. * @example
  28202. *
  28203. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28204. *
  28205. * _.invert(object);
  28206. * // => { '1': 'c', '2': 'b' }
  28207. */
  28208. var invert = createInverter(function(result, value, key) {
  28209. if (value != null &&
  28210. typeof value.toString != 'function') {
  28211. value = nativeObjectToString.call(value);
  28212. }
  28213. result[value] = key;
  28214. }, constant(identity));
  28215. /**
  28216. * This method is like `_.invert` except that the inverted object is generated
  28217. * from the results of running each element of `object` thru `iteratee`. The
  28218. * corresponding inverted value of each inverted key is an array of keys
  28219. * responsible for generating the inverted value. The iteratee is invoked
  28220. * with one argument: (value).
  28221. *
  28222. * @static
  28223. * @memberOf _
  28224. * @since 4.1.0
  28225. * @category Object
  28226. * @param {Object} object The object to invert.
  28227. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  28228. * @returns {Object} Returns the new inverted object.
  28229. * @example
  28230. *
  28231. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28232. *
  28233. * _.invertBy(object);
  28234. * // => { '1': ['a', 'c'], '2': ['b'] }
  28235. *
  28236. * _.invertBy(object, function(value) {
  28237. * return 'group' + value;
  28238. * });
  28239. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  28240. */
  28241. var invertBy = createInverter(function(result, value, key) {
  28242. if (value != null &&
  28243. typeof value.toString != 'function') {
  28244. value = nativeObjectToString.call(value);
  28245. }
  28246. if (hasOwnProperty.call(result, value)) {
  28247. result[value].push(key);
  28248. } else {
  28249. result[value] = [key];
  28250. }
  28251. }, getIteratee);
  28252. /**
  28253. * Invokes the method at `path` of `object`.
  28254. *
  28255. * @static
  28256. * @memberOf _
  28257. * @since 4.0.0
  28258. * @category Object
  28259. * @param {Object} object The object to query.
  28260. * @param {Array|string} path The path of the method to invoke.
  28261. * @param {...*} [args] The arguments to invoke the method with.
  28262. * @returns {*} Returns the result of the invoked method.
  28263. * @example
  28264. *
  28265. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  28266. *
  28267. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  28268. * // => [2, 3]
  28269. */
  28270. var invoke = baseRest(baseInvoke);
  28271. /**
  28272. * Creates an array of the own enumerable property names of `object`.
  28273. *
  28274. * **Note:** Non-object values are coerced to objects. See the
  28275. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  28276. * for more details.
  28277. *
  28278. * @static
  28279. * @since 0.1.0
  28280. * @memberOf _
  28281. * @category Object
  28282. * @param {Object} object The object to query.
  28283. * @returns {Array} Returns the array of property names.
  28284. * @example
  28285. *
  28286. * function Foo() {
  28287. * this.a = 1;
  28288. * this.b = 2;
  28289. * }
  28290. *
  28291. * Foo.prototype.c = 3;
  28292. *
  28293. * _.keys(new Foo);
  28294. * // => ['a', 'b'] (iteration order is not guaranteed)
  28295. *
  28296. * _.keys('hi');
  28297. * // => ['0', '1']
  28298. */
  28299. function keys(object) {
  28300. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  28301. }
  28302. /**
  28303. * Creates an array of the own and inherited enumerable property names of `object`.
  28304. *
  28305. * **Note:** Non-object values are coerced to objects.
  28306. *
  28307. * @static
  28308. * @memberOf _
  28309. * @since 3.0.0
  28310. * @category Object
  28311. * @param {Object} object The object to query.
  28312. * @returns {Array} Returns the array of property names.
  28313. * @example
  28314. *
  28315. * function Foo() {
  28316. * this.a = 1;
  28317. * this.b = 2;
  28318. * }
  28319. *
  28320. * Foo.prototype.c = 3;
  28321. *
  28322. * _.keysIn(new Foo);
  28323. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  28324. */
  28325. function keysIn(object) {
  28326. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  28327. }
  28328. /**
  28329. * The opposite of `_.mapValues`; this method creates an object with the
  28330. * same values as `object` and keys generated by running each own enumerable
  28331. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  28332. * with three arguments: (value, key, object).
  28333. *
  28334. * @static
  28335. * @memberOf _
  28336. * @since 3.8.0
  28337. * @category Object
  28338. * @param {Object} object The object to iterate over.
  28339. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28340. * @returns {Object} Returns the new mapped object.
  28341. * @see _.mapValues
  28342. * @example
  28343. *
  28344. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  28345. * return key + value;
  28346. * });
  28347. * // => { 'a1': 1, 'b2': 2 }
  28348. */
  28349. function mapKeys(object, iteratee) {
  28350. var result = {};
  28351. iteratee = getIteratee(iteratee, 3);
  28352. baseForOwn(object, function(value, key, object) {
  28353. baseAssignValue(result, iteratee(value, key, object), value);
  28354. });
  28355. return result;
  28356. }
  28357. /**
  28358. * Creates an object with the same keys as `object` and values generated
  28359. * by running each own enumerable string keyed property of `object` thru
  28360. * `iteratee`. The iteratee is invoked with three arguments:
  28361. * (value, key, object).
  28362. *
  28363. * @static
  28364. * @memberOf _
  28365. * @since 2.4.0
  28366. * @category Object
  28367. * @param {Object} object The object to iterate over.
  28368. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28369. * @returns {Object} Returns the new mapped object.
  28370. * @see _.mapKeys
  28371. * @example
  28372. *
  28373. * var users = {
  28374. * 'fred': { 'user': 'fred', 'age': 40 },
  28375. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  28376. * };
  28377. *
  28378. * _.mapValues(users, function(o) { return o.age; });
  28379. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28380. *
  28381. * // The `_.property` iteratee shorthand.
  28382. * _.mapValues(users, 'age');
  28383. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28384. */
  28385. function mapValues(object, iteratee) {
  28386. var result = {};
  28387. iteratee = getIteratee(iteratee, 3);
  28388. baseForOwn(object, function(value, key, object) {
  28389. baseAssignValue(result, key, iteratee(value, key, object));
  28390. });
  28391. return result;
  28392. }
  28393. /**
  28394. * This method is like `_.assign` except that it recursively merges own and
  28395. * inherited enumerable string keyed properties of source objects into the
  28396. * destination object. Source properties that resolve to `undefined` are
  28397. * skipped if a destination value exists. Array and plain object properties
  28398. * are merged recursively. Other objects and value types are overridden by
  28399. * assignment. Source objects are applied from left to right. Subsequent
  28400. * sources overwrite property assignments of previous sources.
  28401. *
  28402. * **Note:** This method mutates `object`.
  28403. *
  28404. * @static
  28405. * @memberOf _
  28406. * @since 0.5.0
  28407. * @category Object
  28408. * @param {Object} object The destination object.
  28409. * @param {...Object} [sources] The source objects.
  28410. * @returns {Object} Returns `object`.
  28411. * @example
  28412. *
  28413. * var object = {
  28414. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  28415. * };
  28416. *
  28417. * var other = {
  28418. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  28419. * };
  28420. *
  28421. * _.merge(object, other);
  28422. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  28423. */
  28424. var merge = createAssigner(function(object, source, srcIndex) {
  28425. baseMerge(object, source, srcIndex);
  28426. });
  28427. /**
  28428. * This method is like `_.merge` except that it accepts `customizer` which
  28429. * is invoked to produce the merged values of the destination and source
  28430. * properties. If `customizer` returns `undefined`, merging is handled by the
  28431. * method instead. The `customizer` is invoked with six arguments:
  28432. * (objValue, srcValue, key, object, source, stack).
  28433. *
  28434. * **Note:** This method mutates `object`.
  28435. *
  28436. * @static
  28437. * @memberOf _
  28438. * @since 4.0.0
  28439. * @category Object
  28440. * @param {Object} object The destination object.
  28441. * @param {...Object} sources The source objects.
  28442. * @param {Function} customizer The function to customize assigned values.
  28443. * @returns {Object} Returns `object`.
  28444. * @example
  28445. *
  28446. * function customizer(objValue, srcValue) {
  28447. * if (_.isArray(objValue)) {
  28448. * return objValue.concat(srcValue);
  28449. * }
  28450. * }
  28451. *
  28452. * var object = { 'a': [1], 'b': [2] };
  28453. * var other = { 'a': [3], 'b': [4] };
  28454. *
  28455. * _.mergeWith(object, other, customizer);
  28456. * // => { 'a': [1, 3], 'b': [2, 4] }
  28457. */
  28458. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  28459. baseMerge(object, source, srcIndex, customizer);
  28460. });
  28461. /**
  28462. * The opposite of `_.pick`; this method creates an object composed of the
  28463. * own and inherited enumerable property paths of `object` that are not omitted.
  28464. *
  28465. * **Note:** This method is considerably slower than `_.pick`.
  28466. *
  28467. * @static
  28468. * @since 0.1.0
  28469. * @memberOf _
  28470. * @category Object
  28471. * @param {Object} object The source object.
  28472. * @param {...(string|string[])} [paths] The property paths to omit.
  28473. * @returns {Object} Returns the new object.
  28474. * @example
  28475. *
  28476. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28477. *
  28478. * _.omit(object, ['a', 'c']);
  28479. * // => { 'b': '2' }
  28480. */
  28481. var omit = flatRest(function(object, paths) {
  28482. var result = {};
  28483. if (object == null) {
  28484. return result;
  28485. }
  28486. var isDeep = false;
  28487. paths = arrayMap(paths, function(path) {
  28488. path = castPath(path, object);
  28489. isDeep || (isDeep = path.length > 1);
  28490. return path;
  28491. });
  28492. copyObject(object, getAllKeysIn(object), result);
  28493. if (isDeep) {
  28494. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  28495. }
  28496. var length = paths.length;
  28497. while (length--) {
  28498. baseUnset(result, paths[length]);
  28499. }
  28500. return result;
  28501. });
  28502. /**
  28503. * The opposite of `_.pickBy`; this method creates an object composed of
  28504. * the own and inherited enumerable string keyed properties of `object` that
  28505. * `predicate` doesn't return truthy for. The predicate is invoked with two
  28506. * arguments: (value, key).
  28507. *
  28508. * @static
  28509. * @memberOf _
  28510. * @since 4.0.0
  28511. * @category Object
  28512. * @param {Object} object The source object.
  28513. * @param {Function} [predicate=_.identity] The function invoked per property.
  28514. * @returns {Object} Returns the new object.
  28515. * @example
  28516. *
  28517. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28518. *
  28519. * _.omitBy(object, _.isNumber);
  28520. * // => { 'b': '2' }
  28521. */
  28522. function omitBy(object, predicate) {
  28523. return pickBy(object, negate(getIteratee(predicate)));
  28524. }
  28525. /**
  28526. * Creates an object composed of the picked `object` properties.
  28527. *
  28528. * @static
  28529. * @since 0.1.0
  28530. * @memberOf _
  28531. * @category Object
  28532. * @param {Object} object The source object.
  28533. * @param {...(string|string[])} [paths] The property paths to pick.
  28534. * @returns {Object} Returns the new object.
  28535. * @example
  28536. *
  28537. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28538. *
  28539. * _.pick(object, ['a', 'c']);
  28540. * // => { 'a': 1, 'c': 3 }
  28541. */
  28542. var pick = flatRest(function(object, paths) {
  28543. return object == null ? {} : basePick(object, paths);
  28544. });
  28545. /**
  28546. * Creates an object composed of the `object` properties `predicate` returns
  28547. * truthy for. The predicate is invoked with two arguments: (value, key).
  28548. *
  28549. * @static
  28550. * @memberOf _
  28551. * @since 4.0.0
  28552. * @category Object
  28553. * @param {Object} object The source object.
  28554. * @param {Function} [predicate=_.identity] The function invoked per property.
  28555. * @returns {Object} Returns the new object.
  28556. * @example
  28557. *
  28558. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28559. *
  28560. * _.pickBy(object, _.isNumber);
  28561. * // => { 'a': 1, 'c': 3 }
  28562. */
  28563. function pickBy(object, predicate) {
  28564. if (object == null) {
  28565. return {};
  28566. }
  28567. var props = arrayMap(getAllKeysIn(object), function(prop) {
  28568. return [prop];
  28569. });
  28570. predicate = getIteratee(predicate);
  28571. return basePickBy(object, props, function(value, path) {
  28572. return predicate(value, path[0]);
  28573. });
  28574. }
  28575. /**
  28576. * This method is like `_.get` except that if the resolved value is a
  28577. * function it's invoked with the `this` binding of its parent object and
  28578. * its result is returned.
  28579. *
  28580. * @static
  28581. * @since 0.1.0
  28582. * @memberOf _
  28583. * @category Object
  28584. * @param {Object} object The object to query.
  28585. * @param {Array|string} path The path of the property to resolve.
  28586. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28587. * @returns {*} Returns the resolved value.
  28588. * @example
  28589. *
  28590. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  28591. *
  28592. * _.result(object, 'a[0].b.c1');
  28593. * // => 3
  28594. *
  28595. * _.result(object, 'a[0].b.c2');
  28596. * // => 4
  28597. *
  28598. * _.result(object, 'a[0].b.c3', 'default');
  28599. * // => 'default'
  28600. *
  28601. * _.result(object, 'a[0].b.c3', _.constant('default'));
  28602. * // => 'default'
  28603. */
  28604. function result(object, path, defaultValue) {
  28605. path = castPath(path, object);
  28606. var index = -1,
  28607. length = path.length;
  28608. // Ensure the loop is entered when path is empty.
  28609. if (!length) {
  28610. length = 1;
  28611. object = undefined;
  28612. }
  28613. while (++index < length) {
  28614. var value = object == null ? undefined : object[toKey(path[index])];
  28615. if (value === undefined) {
  28616. index = length;
  28617. value = defaultValue;
  28618. }
  28619. object = isFunction(value) ? value.call(object) : value;
  28620. }
  28621. return object;
  28622. }
  28623. /**
  28624. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  28625. * it's created. Arrays are created for missing index properties while objects
  28626. * are created for all other missing properties. Use `_.setWith` to customize
  28627. * `path` creation.
  28628. *
  28629. * **Note:** This method mutates `object`.
  28630. *
  28631. * @static
  28632. * @memberOf _
  28633. * @since 3.7.0
  28634. * @category Object
  28635. * @param {Object} object The object to modify.
  28636. * @param {Array|string} path The path of the property to set.
  28637. * @param {*} value The value to set.
  28638. * @returns {Object} Returns `object`.
  28639. * @example
  28640. *
  28641. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28642. *
  28643. * _.set(object, 'a[0].b.c', 4);
  28644. * console.log(object.a[0].b.c);
  28645. * // => 4
  28646. *
  28647. * _.set(object, ['x', '0', 'y', 'z'], 5);
  28648. * console.log(object.x[0].y.z);
  28649. * // => 5
  28650. */
  28651. function set(object, path, value) {
  28652. return object == null ? object : baseSet(object, path, value);
  28653. }
  28654. /**
  28655. * This method is like `_.set` except that it accepts `customizer` which is
  28656. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28657. * path creation is handled by the method instead. The `customizer` is invoked
  28658. * with three arguments: (nsValue, key, nsObject).
  28659. *
  28660. * **Note:** This method mutates `object`.
  28661. *
  28662. * @static
  28663. * @memberOf _
  28664. * @since 4.0.0
  28665. * @category Object
  28666. * @param {Object} object The object to modify.
  28667. * @param {Array|string} path The path of the property to set.
  28668. * @param {*} value The value to set.
  28669. * @param {Function} [customizer] The function to customize assigned values.
  28670. * @returns {Object} Returns `object`.
  28671. * @example
  28672. *
  28673. * var object = {};
  28674. *
  28675. * _.setWith(object, '[0][1]', 'a', Object);
  28676. * // => { '0': { '1': 'a' } }
  28677. */
  28678. function setWith(object, path, value, customizer) {
  28679. customizer = typeof customizer == 'function' ? customizer : undefined;
  28680. return object == null ? object : baseSet(object, path, value, customizer);
  28681. }
  28682. /**
  28683. * Creates an array of own enumerable string keyed-value pairs for `object`
  28684. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  28685. * entries are returned.
  28686. *
  28687. * @static
  28688. * @memberOf _
  28689. * @since 4.0.0
  28690. * @alias entries
  28691. * @category Object
  28692. * @param {Object} object The object to query.
  28693. * @returns {Array} Returns the key-value pairs.
  28694. * @example
  28695. *
  28696. * function Foo() {
  28697. * this.a = 1;
  28698. * this.b = 2;
  28699. * }
  28700. *
  28701. * Foo.prototype.c = 3;
  28702. *
  28703. * _.toPairs(new Foo);
  28704. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  28705. */
  28706. var toPairs = createToPairs(keys);
  28707. /**
  28708. * Creates an array of own and inherited enumerable string keyed-value pairs
  28709. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  28710. * or set, its entries are returned.
  28711. *
  28712. * @static
  28713. * @memberOf _
  28714. * @since 4.0.0
  28715. * @alias entriesIn
  28716. * @category Object
  28717. * @param {Object} object The object to query.
  28718. * @returns {Array} Returns the key-value pairs.
  28719. * @example
  28720. *
  28721. * function Foo() {
  28722. * this.a = 1;
  28723. * this.b = 2;
  28724. * }
  28725. *
  28726. * Foo.prototype.c = 3;
  28727. *
  28728. * _.toPairsIn(new Foo);
  28729. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  28730. */
  28731. var toPairsIn = createToPairs(keysIn);
  28732. /**
  28733. * An alternative to `_.reduce`; this method transforms `object` to a new
  28734. * `accumulator` object which is the result of running each of its own
  28735. * enumerable string keyed properties thru `iteratee`, with each invocation
  28736. * potentially mutating the `accumulator` object. If `accumulator` is not
  28737. * provided, a new object with the same `[[Prototype]]` will be used. The
  28738. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  28739. * Iteratee functions may exit iteration early by explicitly returning `false`.
  28740. *
  28741. * @static
  28742. * @memberOf _
  28743. * @since 1.3.0
  28744. * @category Object
  28745. * @param {Object} object The object to iterate over.
  28746. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28747. * @param {*} [accumulator] The custom accumulator value.
  28748. * @returns {*} Returns the accumulated value.
  28749. * @example
  28750. *
  28751. * _.transform([2, 3, 4], function(result, n) {
  28752. * result.push(n *= n);
  28753. * return n % 2 == 0;
  28754. * }, []);
  28755. * // => [4, 9]
  28756. *
  28757. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  28758. * (result[value] || (result[value] = [])).push(key);
  28759. * }, {});
  28760. * // => { '1': ['a', 'c'], '2': ['b'] }
  28761. */
  28762. function transform(object, iteratee, accumulator) {
  28763. var isArr = isArray(object),
  28764. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  28765. iteratee = getIteratee(iteratee, 4);
  28766. if (accumulator == null) {
  28767. var Ctor = object && object.constructor;
  28768. if (isArrLike) {
  28769. accumulator = isArr ? new Ctor : [];
  28770. }
  28771. else if (isObject(object)) {
  28772. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  28773. }
  28774. else {
  28775. accumulator = {};
  28776. }
  28777. }
  28778. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  28779. return iteratee(accumulator, value, index, object);
  28780. });
  28781. return accumulator;
  28782. }
  28783. /**
  28784. * Removes the property at `path` of `object`.
  28785. *
  28786. * **Note:** This method mutates `object`.
  28787. *
  28788. * @static
  28789. * @memberOf _
  28790. * @since 4.0.0
  28791. * @category Object
  28792. * @param {Object} object The object to modify.
  28793. * @param {Array|string} path The path of the property to unset.
  28794. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  28795. * @example
  28796. *
  28797. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  28798. * _.unset(object, 'a[0].b.c');
  28799. * // => true
  28800. *
  28801. * console.log(object);
  28802. * // => { 'a': [{ 'b': {} }] };
  28803. *
  28804. * _.unset(object, ['a', '0', 'b', 'c']);
  28805. * // => true
  28806. *
  28807. * console.log(object);
  28808. * // => { 'a': [{ 'b': {} }] };
  28809. */
  28810. function unset(object, path) {
  28811. return object == null ? true : baseUnset(object, path);
  28812. }
  28813. /**
  28814. * This method is like `_.set` except that accepts `updater` to produce the
  28815. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  28816. * is invoked with one argument: (value).
  28817. *
  28818. * **Note:** This method mutates `object`.
  28819. *
  28820. * @static
  28821. * @memberOf _
  28822. * @since 4.6.0
  28823. * @category Object
  28824. * @param {Object} object The object to modify.
  28825. * @param {Array|string} path The path of the property to set.
  28826. * @param {Function} updater The function to produce the updated value.
  28827. * @returns {Object} Returns `object`.
  28828. * @example
  28829. *
  28830. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28831. *
  28832. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  28833. * console.log(object.a[0].b.c);
  28834. * // => 9
  28835. *
  28836. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  28837. * console.log(object.x[0].y.z);
  28838. * // => 0
  28839. */
  28840. function update(object, path, updater) {
  28841. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  28842. }
  28843. /**
  28844. * This method is like `_.update` except that it accepts `customizer` which is
  28845. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28846. * path creation is handled by the method instead. The `customizer` is invoked
  28847. * with three arguments: (nsValue, key, nsObject).
  28848. *
  28849. * **Note:** This method mutates `object`.
  28850. *
  28851. * @static
  28852. * @memberOf _
  28853. * @since 4.6.0
  28854. * @category Object
  28855. * @param {Object} object The object to modify.
  28856. * @param {Array|string} path The path of the property to set.
  28857. * @param {Function} updater The function to produce the updated value.
  28858. * @param {Function} [customizer] The function to customize assigned values.
  28859. * @returns {Object} Returns `object`.
  28860. * @example
  28861. *
  28862. * var object = {};
  28863. *
  28864. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  28865. * // => { '0': { '1': 'a' } }
  28866. */
  28867. function updateWith(object, path, updater, customizer) {
  28868. customizer = typeof customizer == 'function' ? customizer : undefined;
  28869. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  28870. }
  28871. /**
  28872. * Creates an array of the own enumerable string keyed property values of `object`.
  28873. *
  28874. * **Note:** Non-object values are coerced to objects.
  28875. *
  28876. * @static
  28877. * @since 0.1.0
  28878. * @memberOf _
  28879. * @category Object
  28880. * @param {Object} object The object to query.
  28881. * @returns {Array} Returns the array of property values.
  28882. * @example
  28883. *
  28884. * function Foo() {
  28885. * this.a = 1;
  28886. * this.b = 2;
  28887. * }
  28888. *
  28889. * Foo.prototype.c = 3;
  28890. *
  28891. * _.values(new Foo);
  28892. * // => [1, 2] (iteration order is not guaranteed)
  28893. *
  28894. * _.values('hi');
  28895. * // => ['h', 'i']
  28896. */
  28897. function values(object) {
  28898. return object == null ? [] : baseValues(object, keys(object));
  28899. }
  28900. /**
  28901. * Creates an array of the own and inherited enumerable string keyed property
  28902. * values of `object`.
  28903. *
  28904. * **Note:** Non-object values are coerced to objects.
  28905. *
  28906. * @static
  28907. * @memberOf _
  28908. * @since 3.0.0
  28909. * @category Object
  28910. * @param {Object} object The object to query.
  28911. * @returns {Array} Returns the array of property values.
  28912. * @example
  28913. *
  28914. * function Foo() {
  28915. * this.a = 1;
  28916. * this.b = 2;
  28917. * }
  28918. *
  28919. * Foo.prototype.c = 3;
  28920. *
  28921. * _.valuesIn(new Foo);
  28922. * // => [1, 2, 3] (iteration order is not guaranteed)
  28923. */
  28924. function valuesIn(object) {
  28925. return object == null ? [] : baseValues(object, keysIn(object));
  28926. }
  28927. /*------------------------------------------------------------------------*/
  28928. /**
  28929. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  28930. *
  28931. * @static
  28932. * @memberOf _
  28933. * @since 4.0.0
  28934. * @category Number
  28935. * @param {number} number The number to clamp.
  28936. * @param {number} [lower] The lower bound.
  28937. * @param {number} upper The upper bound.
  28938. * @returns {number} Returns the clamped number.
  28939. * @example
  28940. *
  28941. * _.clamp(-10, -5, 5);
  28942. * // => -5
  28943. *
  28944. * _.clamp(10, -5, 5);
  28945. * // => 5
  28946. */
  28947. function clamp(number, lower, upper) {
  28948. if (upper === undefined) {
  28949. upper = lower;
  28950. lower = undefined;
  28951. }
  28952. if (upper !== undefined) {
  28953. upper = toNumber(upper);
  28954. upper = upper === upper ? upper : 0;
  28955. }
  28956. if (lower !== undefined) {
  28957. lower = toNumber(lower);
  28958. lower = lower === lower ? lower : 0;
  28959. }
  28960. return baseClamp(toNumber(number), lower, upper);
  28961. }
  28962. /**
  28963. * Checks if `n` is between `start` and up to, but not including, `end`. If
  28964. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  28965. * If `start` is greater than `end` the params are swapped to support
  28966. * negative ranges.
  28967. *
  28968. * @static
  28969. * @memberOf _
  28970. * @since 3.3.0
  28971. * @category Number
  28972. * @param {number} number The number to check.
  28973. * @param {number} [start=0] The start of the range.
  28974. * @param {number} end The end of the range.
  28975. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  28976. * @see _.range, _.rangeRight
  28977. * @example
  28978. *
  28979. * _.inRange(3, 2, 4);
  28980. * // => true
  28981. *
  28982. * _.inRange(4, 8);
  28983. * // => true
  28984. *
  28985. * _.inRange(4, 2);
  28986. * // => false
  28987. *
  28988. * _.inRange(2, 2);
  28989. * // => false
  28990. *
  28991. * _.inRange(1.2, 2);
  28992. * // => true
  28993. *
  28994. * _.inRange(5.2, 4);
  28995. * // => false
  28996. *
  28997. * _.inRange(-3, -2, -6);
  28998. * // => true
  28999. */
  29000. function inRange(number, start, end) {
  29001. start = toFinite(start);
  29002. if (end === undefined) {
  29003. end = start;
  29004. start = 0;
  29005. } else {
  29006. end = toFinite(end);
  29007. }
  29008. number = toNumber(number);
  29009. return baseInRange(number, start, end);
  29010. }
  29011. /**
  29012. * Produces a random number between the inclusive `lower` and `upper` bounds.
  29013. * If only one argument is provided a number between `0` and the given number
  29014. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  29015. * floats, a floating-point number is returned instead of an integer.
  29016. *
  29017. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  29018. * floating-point values which can produce unexpected results.
  29019. *
  29020. * @static
  29021. * @memberOf _
  29022. * @since 0.7.0
  29023. * @category Number
  29024. * @param {number} [lower=0] The lower bound.
  29025. * @param {number} [upper=1] The upper bound.
  29026. * @param {boolean} [floating] Specify returning a floating-point number.
  29027. * @returns {number} Returns the random number.
  29028. * @example
  29029. *
  29030. * _.random(0, 5);
  29031. * // => an integer between 0 and 5
  29032. *
  29033. * _.random(5);
  29034. * // => also an integer between 0 and 5
  29035. *
  29036. * _.random(5, true);
  29037. * // => a floating-point number between 0 and 5
  29038. *
  29039. * _.random(1.2, 5.2);
  29040. * // => a floating-point number between 1.2 and 5.2
  29041. */
  29042. function random(lower, upper, floating) {
  29043. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  29044. upper = floating = undefined;
  29045. }
  29046. if (floating === undefined) {
  29047. if (typeof upper == 'boolean') {
  29048. floating = upper;
  29049. upper = undefined;
  29050. }
  29051. else if (typeof lower == 'boolean') {
  29052. floating = lower;
  29053. lower = undefined;
  29054. }
  29055. }
  29056. if (lower === undefined && upper === undefined) {
  29057. lower = 0;
  29058. upper = 1;
  29059. }
  29060. else {
  29061. lower = toFinite(lower);
  29062. if (upper === undefined) {
  29063. upper = lower;
  29064. lower = 0;
  29065. } else {
  29066. upper = toFinite(upper);
  29067. }
  29068. }
  29069. if (lower > upper) {
  29070. var temp = lower;
  29071. lower = upper;
  29072. upper = temp;
  29073. }
  29074. if (floating || lower % 1 || upper % 1) {
  29075. var rand = nativeRandom();
  29076. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  29077. }
  29078. return baseRandom(lower, upper);
  29079. }
  29080. /*------------------------------------------------------------------------*/
  29081. /**
  29082. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  29083. *
  29084. * @static
  29085. * @memberOf _
  29086. * @since 3.0.0
  29087. * @category String
  29088. * @param {string} [string=''] The string to convert.
  29089. * @returns {string} Returns the camel cased string.
  29090. * @example
  29091. *
  29092. * _.camelCase('Foo Bar');
  29093. * // => 'fooBar'
  29094. *
  29095. * _.camelCase('--foo-bar--');
  29096. * // => 'fooBar'
  29097. *
  29098. * _.camelCase('__FOO_BAR__');
  29099. * // => 'fooBar'
  29100. */
  29101. var camelCase = createCompounder(function(result, word, index) {
  29102. word = word.toLowerCase();
  29103. return result + (index ? capitalize(word) : word);
  29104. });
  29105. /**
  29106. * Converts the first character of `string` to upper case and the remaining
  29107. * to lower case.
  29108. *
  29109. * @static
  29110. * @memberOf _
  29111. * @since 3.0.0
  29112. * @category String
  29113. * @param {string} [string=''] The string to capitalize.
  29114. * @returns {string} Returns the capitalized string.
  29115. * @example
  29116. *
  29117. * _.capitalize('FRED');
  29118. * // => 'Fred'
  29119. */
  29120. function capitalize(string) {
  29121. return upperFirst(toString(string).toLowerCase());
  29122. }
  29123. /**
  29124. * Deburrs `string` by converting
  29125. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  29126. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  29127. * letters to basic Latin letters and removing
  29128. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  29129. *
  29130. * @static
  29131. * @memberOf _
  29132. * @since 3.0.0
  29133. * @category String
  29134. * @param {string} [string=''] The string to deburr.
  29135. * @returns {string} Returns the deburred string.
  29136. * @example
  29137. *
  29138. * _.deburr('déjà vu');
  29139. * // => 'deja vu'
  29140. */
  29141. function deburr(string) {
  29142. string = toString(string);
  29143. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  29144. }
  29145. /**
  29146. * Checks if `string` ends with the given target string.
  29147. *
  29148. * @static
  29149. * @memberOf _
  29150. * @since 3.0.0
  29151. * @category String
  29152. * @param {string} [string=''] The string to inspect.
  29153. * @param {string} [target] The string to search for.
  29154. * @param {number} [position=string.length] The position to search up to.
  29155. * @returns {boolean} Returns `true` if `string` ends with `target`,
  29156. * else `false`.
  29157. * @example
  29158. *
  29159. * _.endsWith('abc', 'c');
  29160. * // => true
  29161. *
  29162. * _.endsWith('abc', 'b');
  29163. * // => false
  29164. *
  29165. * _.endsWith('abc', 'b', 2);
  29166. * // => true
  29167. */
  29168. function endsWith(string, target, position) {
  29169. string = toString(string);
  29170. target = baseToString(target);
  29171. var length = string.length;
  29172. position = position === undefined
  29173. ? length
  29174. : baseClamp(toInteger(position), 0, length);
  29175. var end = position;
  29176. position -= target.length;
  29177. return position >= 0 && string.slice(position, end) == target;
  29178. }
  29179. /**
  29180. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  29181. * corresponding HTML entities.
  29182. *
  29183. * **Note:** No other characters are escaped. To escape additional
  29184. * characters use a third-party library like [_he_](https://mths.be/he).
  29185. *
  29186. * Though the ">" character is escaped for symmetry, characters like
  29187. * ">" and "/" don't need escaping in HTML and have no special meaning
  29188. * unless they're part of a tag or unquoted attribute value. See
  29189. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  29190. * (under "semi-related fun fact") for more details.
  29191. *
  29192. * When working with HTML you should always
  29193. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  29194. * XSS vectors.
  29195. *
  29196. * @static
  29197. * @since 0.1.0
  29198. * @memberOf _
  29199. * @category String
  29200. * @param {string} [string=''] The string to escape.
  29201. * @returns {string} Returns the escaped string.
  29202. * @example
  29203. *
  29204. * _.escape('fred, barney, & pebbles');
  29205. * // => 'fred, barney, &amp; pebbles'
  29206. */
  29207. function escape(string) {
  29208. string = toString(string);
  29209. return (string && reHasUnescapedHtml.test(string))
  29210. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  29211. : string;
  29212. }
  29213. /**
  29214. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  29215. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  29216. *
  29217. * @static
  29218. * @memberOf _
  29219. * @since 3.0.0
  29220. * @category String
  29221. * @param {string} [string=''] The string to escape.
  29222. * @returns {string} Returns the escaped string.
  29223. * @example
  29224. *
  29225. * _.escapeRegExp('[lodash](https://lodash.com/)');
  29226. * // => '\[lodash\]\(https://lodash\.com/\)'
  29227. */
  29228. function escapeRegExp(string) {
  29229. string = toString(string);
  29230. return (string && reHasRegExpChar.test(string))
  29231. ? string.replace(reRegExpChar, '\\$&')
  29232. : string;
  29233. }
  29234. /**
  29235. * Converts `string` to
  29236. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  29237. *
  29238. * @static
  29239. * @memberOf _
  29240. * @since 3.0.0
  29241. * @category String
  29242. * @param {string} [string=''] The string to convert.
  29243. * @returns {string} Returns the kebab cased string.
  29244. * @example
  29245. *
  29246. * _.kebabCase('Foo Bar');
  29247. * // => 'foo-bar'
  29248. *
  29249. * _.kebabCase('fooBar');
  29250. * // => 'foo-bar'
  29251. *
  29252. * _.kebabCase('__FOO_BAR__');
  29253. * // => 'foo-bar'
  29254. */
  29255. var kebabCase = createCompounder(function(result, word, index) {
  29256. return result + (index ? '-' : '') + word.toLowerCase();
  29257. });
  29258. /**
  29259. * Converts `string`, as space separated words, to lower case.
  29260. *
  29261. * @static
  29262. * @memberOf _
  29263. * @since 4.0.0
  29264. * @category String
  29265. * @param {string} [string=''] The string to convert.
  29266. * @returns {string} Returns the lower cased string.
  29267. * @example
  29268. *
  29269. * _.lowerCase('--Foo-Bar--');
  29270. * // => 'foo bar'
  29271. *
  29272. * _.lowerCase('fooBar');
  29273. * // => 'foo bar'
  29274. *
  29275. * _.lowerCase('__FOO_BAR__');
  29276. * // => 'foo bar'
  29277. */
  29278. var lowerCase = createCompounder(function(result, word, index) {
  29279. return result + (index ? ' ' : '') + word.toLowerCase();
  29280. });
  29281. /**
  29282. * Converts the first character of `string` to lower case.
  29283. *
  29284. * @static
  29285. * @memberOf _
  29286. * @since 4.0.0
  29287. * @category String
  29288. * @param {string} [string=''] The string to convert.
  29289. * @returns {string} Returns the converted string.
  29290. * @example
  29291. *
  29292. * _.lowerFirst('Fred');
  29293. * // => 'fred'
  29294. *
  29295. * _.lowerFirst('FRED');
  29296. * // => 'fRED'
  29297. */
  29298. var lowerFirst = createCaseFirst('toLowerCase');
  29299. /**
  29300. * Pads `string` on the left and right sides if it's shorter than `length`.
  29301. * Padding characters are truncated if they can't be evenly divided by `length`.
  29302. *
  29303. * @static
  29304. * @memberOf _
  29305. * @since 3.0.0
  29306. * @category String
  29307. * @param {string} [string=''] The string to pad.
  29308. * @param {number} [length=0] The padding length.
  29309. * @param {string} [chars=' '] The string used as padding.
  29310. * @returns {string} Returns the padded string.
  29311. * @example
  29312. *
  29313. * _.pad('abc', 8);
  29314. * // => ' abc '
  29315. *
  29316. * _.pad('abc', 8, '_-');
  29317. * // => '_-abc_-_'
  29318. *
  29319. * _.pad('abc', 3);
  29320. * // => 'abc'
  29321. */
  29322. function pad(string, length, chars) {
  29323. string = toString(string);
  29324. length = toInteger(length);
  29325. var strLength = length ? stringSize(string) : 0;
  29326. if (!length || strLength >= length) {
  29327. return string;
  29328. }
  29329. var mid = (length - strLength) / 2;
  29330. return (
  29331. createPadding(nativeFloor(mid), chars) +
  29332. string +
  29333. createPadding(nativeCeil(mid), chars)
  29334. );
  29335. }
  29336. /**
  29337. * Pads `string` on the right side if it's shorter than `length`. Padding
  29338. * characters are truncated if they exceed `length`.
  29339. *
  29340. * @static
  29341. * @memberOf _
  29342. * @since 4.0.0
  29343. * @category String
  29344. * @param {string} [string=''] The string to pad.
  29345. * @param {number} [length=0] The padding length.
  29346. * @param {string} [chars=' '] The string used as padding.
  29347. * @returns {string} Returns the padded string.
  29348. * @example
  29349. *
  29350. * _.padEnd('abc', 6);
  29351. * // => 'abc '
  29352. *
  29353. * _.padEnd('abc', 6, '_-');
  29354. * // => 'abc_-_'
  29355. *
  29356. * _.padEnd('abc', 3);
  29357. * // => 'abc'
  29358. */
  29359. function padEnd(string, length, chars) {
  29360. string = toString(string);
  29361. length = toInteger(length);
  29362. var strLength = length ? stringSize(string) : 0;
  29363. return (length && strLength < length)
  29364. ? (string + createPadding(length - strLength, chars))
  29365. : string;
  29366. }
  29367. /**
  29368. * Pads `string` on the left side if it's shorter than `length`. Padding
  29369. * characters are truncated if they exceed `length`.
  29370. *
  29371. * @static
  29372. * @memberOf _
  29373. * @since 4.0.0
  29374. * @category String
  29375. * @param {string} [string=''] The string to pad.
  29376. * @param {number} [length=0] The padding length.
  29377. * @param {string} [chars=' '] The string used as padding.
  29378. * @returns {string} Returns the padded string.
  29379. * @example
  29380. *
  29381. * _.padStart('abc', 6);
  29382. * // => ' abc'
  29383. *
  29384. * _.padStart('abc', 6, '_-');
  29385. * // => '_-_abc'
  29386. *
  29387. * _.padStart('abc', 3);
  29388. * // => 'abc'
  29389. */
  29390. function padStart(string, length, chars) {
  29391. string = toString(string);
  29392. length = toInteger(length);
  29393. var strLength = length ? stringSize(string) : 0;
  29394. return (length && strLength < length)
  29395. ? (createPadding(length - strLength, chars) + string)
  29396. : string;
  29397. }
  29398. /**
  29399. * Converts `string` to an integer of the specified radix. If `radix` is
  29400. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  29401. * hexadecimal, in which case a `radix` of `16` is used.
  29402. *
  29403. * **Note:** This method aligns with the
  29404. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  29405. *
  29406. * @static
  29407. * @memberOf _
  29408. * @since 1.1.0
  29409. * @category String
  29410. * @param {string} string The string to convert.
  29411. * @param {number} [radix=10] The radix to interpret `value` by.
  29412. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29413. * @returns {number} Returns the converted integer.
  29414. * @example
  29415. *
  29416. * _.parseInt('08');
  29417. * // => 8
  29418. *
  29419. * _.map(['6', '08', '10'], _.parseInt);
  29420. * // => [6, 8, 10]
  29421. */
  29422. function parseInt(string, radix, guard) {
  29423. if (guard || radix == null) {
  29424. radix = 0;
  29425. } else if (radix) {
  29426. radix = +radix;
  29427. }
  29428. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  29429. }
  29430. /**
  29431. * Repeats the given string `n` times.
  29432. *
  29433. * @static
  29434. * @memberOf _
  29435. * @since 3.0.0
  29436. * @category String
  29437. * @param {string} [string=''] The string to repeat.
  29438. * @param {number} [n=1] The number of times to repeat the string.
  29439. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29440. * @returns {string} Returns the repeated string.
  29441. * @example
  29442. *
  29443. * _.repeat('*', 3);
  29444. * // => '***'
  29445. *
  29446. * _.repeat('abc', 2);
  29447. * // => 'abcabc'
  29448. *
  29449. * _.repeat('abc', 0);
  29450. * // => ''
  29451. */
  29452. function repeat(string, n, guard) {
  29453. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  29454. n = 1;
  29455. } else {
  29456. n = toInteger(n);
  29457. }
  29458. return baseRepeat(toString(string), n);
  29459. }
  29460. /**
  29461. * Replaces matches for `pattern` in `string` with `replacement`.
  29462. *
  29463. * **Note:** This method is based on
  29464. * [`String#replace`](https://mdn.io/String/replace).
  29465. *
  29466. * @static
  29467. * @memberOf _
  29468. * @since 4.0.0
  29469. * @category String
  29470. * @param {string} [string=''] The string to modify.
  29471. * @param {RegExp|string} pattern The pattern to replace.
  29472. * @param {Function|string} replacement The match replacement.
  29473. * @returns {string} Returns the modified string.
  29474. * @example
  29475. *
  29476. * _.replace('Hi Fred', 'Fred', 'Barney');
  29477. * // => 'Hi Barney'
  29478. */
  29479. function replace() {
  29480. var args = arguments,
  29481. string = toString(args[0]);
  29482. return args.length < 3 ? string : string.replace(args[1], args[2]);
  29483. }
  29484. /**
  29485. * Converts `string` to
  29486. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  29487. *
  29488. * @static
  29489. * @memberOf _
  29490. * @since 3.0.0
  29491. * @category String
  29492. * @param {string} [string=''] The string to convert.
  29493. * @returns {string} Returns the snake cased string.
  29494. * @example
  29495. *
  29496. * _.snakeCase('Foo Bar');
  29497. * // => 'foo_bar'
  29498. *
  29499. * _.snakeCase('fooBar');
  29500. * // => 'foo_bar'
  29501. *
  29502. * _.snakeCase('--FOO-BAR--');
  29503. * // => 'foo_bar'
  29504. */
  29505. var snakeCase = createCompounder(function(result, word, index) {
  29506. return result + (index ? '_' : '') + word.toLowerCase();
  29507. });
  29508. /**
  29509. * Splits `string` by `separator`.
  29510. *
  29511. * **Note:** This method is based on
  29512. * [`String#split`](https://mdn.io/String/split).
  29513. *
  29514. * @static
  29515. * @memberOf _
  29516. * @since 4.0.0
  29517. * @category String
  29518. * @param {string} [string=''] The string to split.
  29519. * @param {RegExp|string} separator The separator pattern to split by.
  29520. * @param {number} [limit] The length to truncate results to.
  29521. * @returns {Array} Returns the string segments.
  29522. * @example
  29523. *
  29524. * _.split('a-b-c', '-', 2);
  29525. * // => ['a', 'b']
  29526. */
  29527. function split(string, separator, limit) {
  29528. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  29529. separator = limit = undefined;
  29530. }
  29531. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  29532. if (!limit) {
  29533. return [];
  29534. }
  29535. string = toString(string);
  29536. if (string && (
  29537. typeof separator == 'string' ||
  29538. (separator != null && !isRegExp(separator))
  29539. )) {
  29540. separator = baseToString(separator);
  29541. if (!separator && hasUnicode(string)) {
  29542. return castSlice(stringToArray(string), 0, limit);
  29543. }
  29544. }
  29545. return string.split(separator, limit);
  29546. }
  29547. /**
  29548. * Converts `string` to
  29549. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  29550. *
  29551. * @static
  29552. * @memberOf _
  29553. * @since 3.1.0
  29554. * @category String
  29555. * @param {string} [string=''] The string to convert.
  29556. * @returns {string} Returns the start cased string.
  29557. * @example
  29558. *
  29559. * _.startCase('--foo-bar--');
  29560. * // => 'Foo Bar'
  29561. *
  29562. * _.startCase('fooBar');
  29563. * // => 'Foo Bar'
  29564. *
  29565. * _.startCase('__FOO_BAR__');
  29566. * // => 'FOO BAR'
  29567. */
  29568. var startCase = createCompounder(function(result, word, index) {
  29569. return result + (index ? ' ' : '') + upperFirst(word);
  29570. });
  29571. /**
  29572. * Checks if `string` starts with the given target string.
  29573. *
  29574. * @static
  29575. * @memberOf _
  29576. * @since 3.0.0
  29577. * @category String
  29578. * @param {string} [string=''] The string to inspect.
  29579. * @param {string} [target] The string to search for.
  29580. * @param {number} [position=0] The position to search from.
  29581. * @returns {boolean} Returns `true` if `string` starts with `target`,
  29582. * else `false`.
  29583. * @example
  29584. *
  29585. * _.startsWith('abc', 'a');
  29586. * // => true
  29587. *
  29588. * _.startsWith('abc', 'b');
  29589. * // => false
  29590. *
  29591. * _.startsWith('abc', 'b', 1);
  29592. * // => true
  29593. */
  29594. function startsWith(string, target, position) {
  29595. string = toString(string);
  29596. position = position == null
  29597. ? 0
  29598. : baseClamp(toInteger(position), 0, string.length);
  29599. target = baseToString(target);
  29600. return string.slice(position, position + target.length) == target;
  29601. }
  29602. /**
  29603. * Creates a compiled template function that can interpolate data properties
  29604. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  29605. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  29606. * properties may be accessed as free variables in the template. If a setting
  29607. * object is given, it takes precedence over `_.templateSettings` values.
  29608. *
  29609. * **Note:** In the development build `_.template` utilizes
  29610. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  29611. * for easier debugging.
  29612. *
  29613. * For more information on precompiling templates see
  29614. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  29615. *
  29616. * For more information on Chrome extension sandboxes see
  29617. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  29618. *
  29619. * @static
  29620. * @since 0.1.0
  29621. * @memberOf _
  29622. * @category String
  29623. * @param {string} [string=''] The template string.
  29624. * @param {Object} [options={}] The options object.
  29625. * @param {RegExp} [options.escape=_.templateSettings.escape]
  29626. * The HTML "escape" delimiter.
  29627. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  29628. * The "evaluate" delimiter.
  29629. * @param {Object} [options.imports=_.templateSettings.imports]
  29630. * An object to import into the template as free variables.
  29631. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  29632. * The "interpolate" delimiter.
  29633. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  29634. * The sourceURL of the compiled template.
  29635. * @param {string} [options.variable='obj']
  29636. * The data object variable name.
  29637. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29638. * @returns {Function} Returns the compiled template function.
  29639. * @example
  29640. *
  29641. * // Use the "interpolate" delimiter to create a compiled template.
  29642. * var compiled = _.template('hello <%= user %>!');
  29643. * compiled({ 'user': 'fred' });
  29644. * // => 'hello fred!'
  29645. *
  29646. * // Use the HTML "escape" delimiter to escape data property values.
  29647. * var compiled = _.template('<b><%- value %></b>');
  29648. * compiled({ 'value': '<script>' });
  29649. * // => '<b>&lt;script&gt;</b>'
  29650. *
  29651. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  29652. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  29653. * compiled({ 'users': ['fred', 'barney'] });
  29654. * // => '<li>fred</li><li>barney</li>'
  29655. *
  29656. * // Use the internal `print` function in "evaluate" delimiters.
  29657. * var compiled = _.template('<% print("hello " + user); %>!');
  29658. * compiled({ 'user': 'barney' });
  29659. * // => 'hello barney!'
  29660. *
  29661. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  29662. * // Disable support by replacing the "interpolate" delimiter.
  29663. * var compiled = _.template('hello ${ user }!');
  29664. * compiled({ 'user': 'pebbles' });
  29665. * // => 'hello pebbles!'
  29666. *
  29667. * // Use backslashes to treat delimiters as plain text.
  29668. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  29669. * compiled({ 'value': 'ignored' });
  29670. * // => '<%- value %>'
  29671. *
  29672. * // Use the `imports` option to import `jQuery` as `jq`.
  29673. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  29674. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  29675. * compiled({ 'users': ['fred', 'barney'] });
  29676. * // => '<li>fred</li><li>barney</li>'
  29677. *
  29678. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  29679. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  29680. * compiled(data);
  29681. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  29682. *
  29683. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  29684. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  29685. * compiled.source;
  29686. * // => function(data) {
  29687. * // var __t, __p = '';
  29688. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  29689. * // return __p;
  29690. * // }
  29691. *
  29692. * // Use custom template delimiters.
  29693. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  29694. * var compiled = _.template('hello {{ user }}!');
  29695. * compiled({ 'user': 'mustache' });
  29696. * // => 'hello mustache!'
  29697. *
  29698. * // Use the `source` property to inline compiled templates for meaningful
  29699. * // line numbers in error messages and stack traces.
  29700. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  29701. * var JST = {\
  29702. * "main": ' + _.template(mainText).source + '\
  29703. * };\
  29704. * ');
  29705. */
  29706. function template(string, options, guard) {
  29707. // Based on John Resig's `tmpl` implementation
  29708. // (http://ejohn.org/blog/javascript-micro-templating/)
  29709. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  29710. var settings = lodash.templateSettings;
  29711. if (guard && isIterateeCall(string, options, guard)) {
  29712. options = undefined;
  29713. }
  29714. string = toString(string);
  29715. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  29716. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  29717. importsKeys = keys(imports),
  29718. importsValues = baseValues(imports, importsKeys);
  29719. var isEscaping,
  29720. isEvaluating,
  29721. index = 0,
  29722. interpolate = options.interpolate || reNoMatch,
  29723. source = "__p += '";
  29724. // Compile the regexp to match each delimiter.
  29725. var reDelimiters = RegExp(
  29726. (options.escape || reNoMatch).source + '|' +
  29727. interpolate.source + '|' +
  29728. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  29729. (options.evaluate || reNoMatch).source + '|$'
  29730. , 'g');
  29731. // Use a sourceURL for easier debugging.
  29732. // The sourceURL gets injected into the source that's eval-ed, so be careful
  29733. // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
  29734. // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
  29735. var sourceURL = '//# sourceURL=' +
  29736. (hasOwnProperty.call(options, 'sourceURL')
  29737. ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
  29738. : ('lodash.templateSources[' + (++templateCounter) + ']')
  29739. ) + '\n';
  29740. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  29741. interpolateValue || (interpolateValue = esTemplateValue);
  29742. // Escape characters that can't be included in string literals.
  29743. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  29744. // Replace delimiters with snippets.
  29745. if (escapeValue) {
  29746. isEscaping = true;
  29747. source += "' +\n__e(" + escapeValue + ") +\n'";
  29748. }
  29749. if (evaluateValue) {
  29750. isEvaluating = true;
  29751. source += "';\n" + evaluateValue + ";\n__p += '";
  29752. }
  29753. if (interpolateValue) {
  29754. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  29755. }
  29756. index = offset + match.length;
  29757. // The JS engine embedded in Adobe products needs `match` returned in
  29758. // order to produce the correct `offset` value.
  29759. return match;
  29760. });
  29761. source += "';\n";
  29762. // If `variable` is not specified wrap a with-statement around the generated
  29763. // code to add the data object to the top of the scope chain.
  29764. // Like with sourceURL, we take care to not check the option's prototype,
  29765. // as this configuration is a code injection vector.
  29766. var variable = hasOwnProperty.call(options, 'variable') && options.variable;
  29767. if (!variable) {
  29768. source = 'with (obj) {\n' + source + '\n}\n';
  29769. }
  29770. // Cleanup code by stripping empty strings.
  29771. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  29772. .replace(reEmptyStringMiddle, '$1')
  29773. .replace(reEmptyStringTrailing, '$1;');
  29774. // Frame code as the function body.
  29775. source = 'function(' + (variable || 'obj') + ') {\n' +
  29776. (variable
  29777. ? ''
  29778. : 'obj || (obj = {});\n'
  29779. ) +
  29780. "var __t, __p = ''" +
  29781. (isEscaping
  29782. ? ', __e = _.escape'
  29783. : ''
  29784. ) +
  29785. (isEvaluating
  29786. ? ', __j = Array.prototype.join;\n' +
  29787. "function print() { __p += __j.call(arguments, '') }\n"
  29788. : ';\n'
  29789. ) +
  29790. source +
  29791. 'return __p\n}';
  29792. var result = attempt(function() {
  29793. return Function(importsKeys, sourceURL + 'return ' + source)
  29794. .apply(undefined, importsValues);
  29795. });
  29796. // Provide the compiled function's source by its `toString` method or
  29797. // the `source` property as a convenience for inlining compiled templates.
  29798. result.source = source;
  29799. if (isError(result)) {
  29800. throw result;
  29801. }
  29802. return result;
  29803. }
  29804. /**
  29805. * Converts `string`, as a whole, to lower case just like
  29806. * [String#toLowerCase](https://mdn.io/toLowerCase).
  29807. *
  29808. * @static
  29809. * @memberOf _
  29810. * @since 4.0.0
  29811. * @category String
  29812. * @param {string} [string=''] The string to convert.
  29813. * @returns {string} Returns the lower cased string.
  29814. * @example
  29815. *
  29816. * _.toLower('--Foo-Bar--');
  29817. * // => '--foo-bar--'
  29818. *
  29819. * _.toLower('fooBar');
  29820. * // => 'foobar'
  29821. *
  29822. * _.toLower('__FOO_BAR__');
  29823. * // => '__foo_bar__'
  29824. */
  29825. function toLower(value) {
  29826. return toString(value).toLowerCase();
  29827. }
  29828. /**
  29829. * Converts `string`, as a whole, to upper case just like
  29830. * [String#toUpperCase](https://mdn.io/toUpperCase).
  29831. *
  29832. * @static
  29833. * @memberOf _
  29834. * @since 4.0.0
  29835. * @category String
  29836. * @param {string} [string=''] The string to convert.
  29837. * @returns {string} Returns the upper cased string.
  29838. * @example
  29839. *
  29840. * _.toUpper('--foo-bar--');
  29841. * // => '--FOO-BAR--'
  29842. *
  29843. * _.toUpper('fooBar');
  29844. * // => 'FOOBAR'
  29845. *
  29846. * _.toUpper('__foo_bar__');
  29847. * // => '__FOO_BAR__'
  29848. */
  29849. function toUpper(value) {
  29850. return toString(value).toUpperCase();
  29851. }
  29852. /**
  29853. * Removes leading and trailing whitespace or specified characters from `string`.
  29854. *
  29855. * @static
  29856. * @memberOf _
  29857. * @since 3.0.0
  29858. * @category String
  29859. * @param {string} [string=''] The string to trim.
  29860. * @param {string} [chars=whitespace] The characters to trim.
  29861. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29862. * @returns {string} Returns the trimmed string.
  29863. * @example
  29864. *
  29865. * _.trim(' abc ');
  29866. * // => 'abc'
  29867. *
  29868. * _.trim('-_-abc-_-', '_-');
  29869. * // => 'abc'
  29870. *
  29871. * _.map([' foo ', ' bar '], _.trim);
  29872. * // => ['foo', 'bar']
  29873. */
  29874. function trim(string, chars, guard) {
  29875. string = toString(string);
  29876. if (string && (guard || chars === undefined)) {
  29877. return string.replace(reTrim, '');
  29878. }
  29879. if (!string || !(chars = baseToString(chars))) {
  29880. return string;
  29881. }
  29882. var strSymbols = stringToArray(string),
  29883. chrSymbols = stringToArray(chars),
  29884. start = charsStartIndex(strSymbols, chrSymbols),
  29885. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  29886. return castSlice(strSymbols, start, end).join('');
  29887. }
  29888. /**
  29889. * Removes trailing whitespace or specified characters from `string`.
  29890. *
  29891. * @static
  29892. * @memberOf _
  29893. * @since 4.0.0
  29894. * @category String
  29895. * @param {string} [string=''] The string to trim.
  29896. * @param {string} [chars=whitespace] The characters to trim.
  29897. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29898. * @returns {string} Returns the trimmed string.
  29899. * @example
  29900. *
  29901. * _.trimEnd(' abc ');
  29902. * // => ' abc'
  29903. *
  29904. * _.trimEnd('-_-abc-_-', '_-');
  29905. * // => '-_-abc'
  29906. */
  29907. function trimEnd(string, chars, guard) {
  29908. string = toString(string);
  29909. if (string && (guard || chars === undefined)) {
  29910. return string.replace(reTrimEnd, '');
  29911. }
  29912. if (!string || !(chars = baseToString(chars))) {
  29913. return string;
  29914. }
  29915. var strSymbols = stringToArray(string),
  29916. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  29917. return castSlice(strSymbols, 0, end).join('');
  29918. }
  29919. /**
  29920. * Removes leading whitespace or specified characters from `string`.
  29921. *
  29922. * @static
  29923. * @memberOf _
  29924. * @since 4.0.0
  29925. * @category String
  29926. * @param {string} [string=''] The string to trim.
  29927. * @param {string} [chars=whitespace] The characters to trim.
  29928. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29929. * @returns {string} Returns the trimmed string.
  29930. * @example
  29931. *
  29932. * _.trimStart(' abc ');
  29933. * // => 'abc '
  29934. *
  29935. * _.trimStart('-_-abc-_-', '_-');
  29936. * // => 'abc-_-'
  29937. */
  29938. function trimStart(string, chars, guard) {
  29939. string = toString(string);
  29940. if (string && (guard || chars === undefined)) {
  29941. return string.replace(reTrimStart, '');
  29942. }
  29943. if (!string || !(chars = baseToString(chars))) {
  29944. return string;
  29945. }
  29946. var strSymbols = stringToArray(string),
  29947. start = charsStartIndex(strSymbols, stringToArray(chars));
  29948. return castSlice(strSymbols, start).join('');
  29949. }
  29950. /**
  29951. * Truncates `string` if it's longer than the given maximum string length.
  29952. * The last characters of the truncated string are replaced with the omission
  29953. * string which defaults to "...".
  29954. *
  29955. * @static
  29956. * @memberOf _
  29957. * @since 4.0.0
  29958. * @category String
  29959. * @param {string} [string=''] The string to truncate.
  29960. * @param {Object} [options={}] The options object.
  29961. * @param {number} [options.length=30] The maximum string length.
  29962. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  29963. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  29964. * @returns {string} Returns the truncated string.
  29965. * @example
  29966. *
  29967. * _.truncate('hi-diddly-ho there, neighborino');
  29968. * // => 'hi-diddly-ho there, neighbo...'
  29969. *
  29970. * _.truncate('hi-diddly-ho there, neighborino', {
  29971. * 'length': 24,
  29972. * 'separator': ' '
  29973. * });
  29974. * // => 'hi-diddly-ho there,...'
  29975. *
  29976. * _.truncate('hi-diddly-ho there, neighborino', {
  29977. * 'length': 24,
  29978. * 'separator': /,? +/
  29979. * });
  29980. * // => 'hi-diddly-ho there...'
  29981. *
  29982. * _.truncate('hi-diddly-ho there, neighborino', {
  29983. * 'omission': ' [...]'
  29984. * });
  29985. * // => 'hi-diddly-ho there, neig [...]'
  29986. */
  29987. function truncate(string, options) {
  29988. var length = DEFAULT_TRUNC_LENGTH,
  29989. omission = DEFAULT_TRUNC_OMISSION;
  29990. if (isObject(options)) {
  29991. var separator = 'separator' in options ? options.separator : separator;
  29992. length = 'length' in options ? toInteger(options.length) : length;
  29993. omission = 'omission' in options ? baseToString(options.omission) : omission;
  29994. }
  29995. string = toString(string);
  29996. var strLength = string.length;
  29997. if (hasUnicode(string)) {
  29998. var strSymbols = stringToArray(string);
  29999. strLength = strSymbols.length;
  30000. }
  30001. if (length >= strLength) {
  30002. return string;
  30003. }
  30004. var end = length - stringSize(omission);
  30005. if (end < 1) {
  30006. return omission;
  30007. }
  30008. var result = strSymbols
  30009. ? castSlice(strSymbols, 0, end).join('')
  30010. : string.slice(0, end);
  30011. if (separator === undefined) {
  30012. return result + omission;
  30013. }
  30014. if (strSymbols) {
  30015. end += (result.length - end);
  30016. }
  30017. if (isRegExp(separator)) {
  30018. if (string.slice(end).search(separator)) {
  30019. var match,
  30020. substring = result;
  30021. if (!separator.global) {
  30022. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  30023. }
  30024. separator.lastIndex = 0;
  30025. while ((match = separator.exec(substring))) {
  30026. var newEnd = match.index;
  30027. }
  30028. result = result.slice(0, newEnd === undefined ? end : newEnd);
  30029. }
  30030. } else if (string.indexOf(baseToString(separator), end) != end) {
  30031. var index = result.lastIndexOf(separator);
  30032. if (index > -1) {
  30033. result = result.slice(0, index);
  30034. }
  30035. }
  30036. return result + omission;
  30037. }
  30038. /**
  30039. * The inverse of `_.escape`; this method converts the HTML entities
  30040. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  30041. * their corresponding characters.
  30042. *
  30043. * **Note:** No other HTML entities are unescaped. To unescape additional
  30044. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  30045. *
  30046. * @static
  30047. * @memberOf _
  30048. * @since 0.6.0
  30049. * @category String
  30050. * @param {string} [string=''] The string to unescape.
  30051. * @returns {string} Returns the unescaped string.
  30052. * @example
  30053. *
  30054. * _.unescape('fred, barney, &amp; pebbles');
  30055. * // => 'fred, barney, & pebbles'
  30056. */
  30057. function unescape(string) {
  30058. string = toString(string);
  30059. return (string && reHasEscapedHtml.test(string))
  30060. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  30061. : string;
  30062. }
  30063. /**
  30064. * Converts `string`, as space separated words, to upper case.
  30065. *
  30066. * @static
  30067. * @memberOf _
  30068. * @since 4.0.0
  30069. * @category String
  30070. * @param {string} [string=''] The string to convert.
  30071. * @returns {string} Returns the upper cased string.
  30072. * @example
  30073. *
  30074. * _.upperCase('--foo-bar');
  30075. * // => 'FOO BAR'
  30076. *
  30077. * _.upperCase('fooBar');
  30078. * // => 'FOO BAR'
  30079. *
  30080. * _.upperCase('__foo_bar__');
  30081. * // => 'FOO BAR'
  30082. */
  30083. var upperCase = createCompounder(function(result, word, index) {
  30084. return result + (index ? ' ' : '') + word.toUpperCase();
  30085. });
  30086. /**
  30087. * Converts the first character of `string` to upper case.
  30088. *
  30089. * @static
  30090. * @memberOf _
  30091. * @since 4.0.0
  30092. * @category String
  30093. * @param {string} [string=''] The string to convert.
  30094. * @returns {string} Returns the converted string.
  30095. * @example
  30096. *
  30097. * _.upperFirst('fred');
  30098. * // => 'Fred'
  30099. *
  30100. * _.upperFirst('FRED');
  30101. * // => 'FRED'
  30102. */
  30103. var upperFirst = createCaseFirst('toUpperCase');
  30104. /**
  30105. * Splits `string` into an array of its words.
  30106. *
  30107. * @static
  30108. * @memberOf _
  30109. * @since 3.0.0
  30110. * @category String
  30111. * @param {string} [string=''] The string to inspect.
  30112. * @param {RegExp|string} [pattern] The pattern to match words.
  30113. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30114. * @returns {Array} Returns the words of `string`.
  30115. * @example
  30116. *
  30117. * _.words('fred, barney, & pebbles');
  30118. * // => ['fred', 'barney', 'pebbles']
  30119. *
  30120. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  30121. * // => ['fred', 'barney', '&', 'pebbles']
  30122. */
  30123. function words(string, pattern, guard) {
  30124. string = toString(string);
  30125. pattern = guard ? undefined : pattern;
  30126. if (pattern === undefined) {
  30127. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  30128. }
  30129. return string.match(pattern) || [];
  30130. }
  30131. /*------------------------------------------------------------------------*/
  30132. /**
  30133. * Attempts to invoke `func`, returning either the result or the caught error
  30134. * object. Any additional arguments are provided to `func` when it's invoked.
  30135. *
  30136. * @static
  30137. * @memberOf _
  30138. * @since 3.0.0
  30139. * @category Util
  30140. * @param {Function} func The function to attempt.
  30141. * @param {...*} [args] The arguments to invoke `func` with.
  30142. * @returns {*} Returns the `func` result or error object.
  30143. * @example
  30144. *
  30145. * // Avoid throwing errors for invalid selectors.
  30146. * var elements = _.attempt(function(selector) {
  30147. * return document.querySelectorAll(selector);
  30148. * }, '>_>');
  30149. *
  30150. * if (_.isError(elements)) {
  30151. * elements = [];
  30152. * }
  30153. */
  30154. var attempt = baseRest(function(func, args) {
  30155. try {
  30156. return apply(func, undefined, args);
  30157. } catch (e) {
  30158. return isError(e) ? e : new Error(e);
  30159. }
  30160. });
  30161. /**
  30162. * Binds methods of an object to the object itself, overwriting the existing
  30163. * method.
  30164. *
  30165. * **Note:** This method doesn't set the "length" property of bound functions.
  30166. *
  30167. * @static
  30168. * @since 0.1.0
  30169. * @memberOf _
  30170. * @category Util
  30171. * @param {Object} object The object to bind and assign the bound methods to.
  30172. * @param {...(string|string[])} methodNames The object method names to bind.
  30173. * @returns {Object} Returns `object`.
  30174. * @example
  30175. *
  30176. * var view = {
  30177. * 'label': 'docs',
  30178. * 'click': function() {
  30179. * console.log('clicked ' + this.label);
  30180. * }
  30181. * };
  30182. *
  30183. * _.bindAll(view, ['click']);
  30184. * jQuery(element).on('click', view.click);
  30185. * // => Logs 'clicked docs' when clicked.
  30186. */
  30187. var bindAll = flatRest(function(object, methodNames) {
  30188. arrayEach(methodNames, function(key) {
  30189. key = toKey(key);
  30190. baseAssignValue(object, key, bind(object[key], object));
  30191. });
  30192. return object;
  30193. });
  30194. /**
  30195. * Creates a function that iterates over `pairs` and invokes the corresponding
  30196. * function of the first predicate to return truthy. The predicate-function
  30197. * pairs are invoked with the `this` binding and arguments of the created
  30198. * function.
  30199. *
  30200. * @static
  30201. * @memberOf _
  30202. * @since 4.0.0
  30203. * @category Util
  30204. * @param {Array} pairs The predicate-function pairs.
  30205. * @returns {Function} Returns the new composite function.
  30206. * @example
  30207. *
  30208. * var func = _.cond([
  30209. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  30210. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  30211. * [_.stubTrue, _.constant('no match')]
  30212. * ]);
  30213. *
  30214. * func({ 'a': 1, 'b': 2 });
  30215. * // => 'matches A'
  30216. *
  30217. * func({ 'a': 0, 'b': 1 });
  30218. * // => 'matches B'
  30219. *
  30220. * func({ 'a': '1', 'b': '2' });
  30221. * // => 'no match'
  30222. */
  30223. function cond(pairs) {
  30224. var length = pairs == null ? 0 : pairs.length,
  30225. toIteratee = getIteratee();
  30226. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  30227. if (typeof pair[1] != 'function') {
  30228. throw new TypeError(FUNC_ERROR_TEXT);
  30229. }
  30230. return [toIteratee(pair[0]), pair[1]];
  30231. });
  30232. return baseRest(function(args) {
  30233. var index = -1;
  30234. while (++index < length) {
  30235. var pair = pairs[index];
  30236. if (apply(pair[0], this, args)) {
  30237. return apply(pair[1], this, args);
  30238. }
  30239. }
  30240. });
  30241. }
  30242. /**
  30243. * Creates a function that invokes the predicate properties of `source` with
  30244. * the corresponding property values of a given object, returning `true` if
  30245. * all predicates return truthy, else `false`.
  30246. *
  30247. * **Note:** The created function is equivalent to `_.conformsTo` with
  30248. * `source` partially applied.
  30249. *
  30250. * @static
  30251. * @memberOf _
  30252. * @since 4.0.0
  30253. * @category Util
  30254. * @param {Object} source The object of property predicates to conform to.
  30255. * @returns {Function} Returns the new spec function.
  30256. * @example
  30257. *
  30258. * var objects = [
  30259. * { 'a': 2, 'b': 1 },
  30260. * { 'a': 1, 'b': 2 }
  30261. * ];
  30262. *
  30263. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  30264. * // => [{ 'a': 1, 'b': 2 }]
  30265. */
  30266. function conforms(source) {
  30267. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  30268. }
  30269. /**
  30270. * Creates a function that returns `value`.
  30271. *
  30272. * @static
  30273. * @memberOf _
  30274. * @since 2.4.0
  30275. * @category Util
  30276. * @param {*} value The value to return from the new function.
  30277. * @returns {Function} Returns the new constant function.
  30278. * @example
  30279. *
  30280. * var objects = _.times(2, _.constant({ 'a': 1 }));
  30281. *
  30282. * console.log(objects);
  30283. * // => [{ 'a': 1 }, { 'a': 1 }]
  30284. *
  30285. * console.log(objects[0] === objects[1]);
  30286. * // => true
  30287. */
  30288. function constant(value) {
  30289. return function() {
  30290. return value;
  30291. };
  30292. }
  30293. /**
  30294. * Checks `value` to determine whether a default value should be returned in
  30295. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  30296. * or `undefined`.
  30297. *
  30298. * @static
  30299. * @memberOf _
  30300. * @since 4.14.0
  30301. * @category Util
  30302. * @param {*} value The value to check.
  30303. * @param {*} defaultValue The default value.
  30304. * @returns {*} Returns the resolved value.
  30305. * @example
  30306. *
  30307. * _.defaultTo(1, 10);
  30308. * // => 1
  30309. *
  30310. * _.defaultTo(undefined, 10);
  30311. * // => 10
  30312. */
  30313. function defaultTo(value, defaultValue) {
  30314. return (value == null || value !== value) ? defaultValue : value;
  30315. }
  30316. /**
  30317. * Creates a function that returns the result of invoking the given functions
  30318. * with the `this` binding of the created function, where each successive
  30319. * invocation is supplied the return value of the previous.
  30320. *
  30321. * @static
  30322. * @memberOf _
  30323. * @since 3.0.0
  30324. * @category Util
  30325. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30326. * @returns {Function} Returns the new composite function.
  30327. * @see _.flowRight
  30328. * @example
  30329. *
  30330. * function square(n) {
  30331. * return n * n;
  30332. * }
  30333. *
  30334. * var addSquare = _.flow([_.add, square]);
  30335. * addSquare(1, 2);
  30336. * // => 9
  30337. */
  30338. var flow = createFlow();
  30339. /**
  30340. * This method is like `_.flow` except that it creates a function that
  30341. * invokes the given functions from right to left.
  30342. *
  30343. * @static
  30344. * @since 3.0.0
  30345. * @memberOf _
  30346. * @category Util
  30347. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30348. * @returns {Function} Returns the new composite function.
  30349. * @see _.flow
  30350. * @example
  30351. *
  30352. * function square(n) {
  30353. * return n * n;
  30354. * }
  30355. *
  30356. * var addSquare = _.flowRight([square, _.add]);
  30357. * addSquare(1, 2);
  30358. * // => 9
  30359. */
  30360. var flowRight = createFlow(true);
  30361. /**
  30362. * This method returns the first argument it receives.
  30363. *
  30364. * @static
  30365. * @since 0.1.0
  30366. * @memberOf _
  30367. * @category Util
  30368. * @param {*} value Any value.
  30369. * @returns {*} Returns `value`.
  30370. * @example
  30371. *
  30372. * var object = { 'a': 1 };
  30373. *
  30374. * console.log(_.identity(object) === object);
  30375. * // => true
  30376. */
  30377. function identity(value) {
  30378. return value;
  30379. }
  30380. /**
  30381. * Creates a function that invokes `func` with the arguments of the created
  30382. * function. If `func` is a property name, the created function returns the
  30383. * property value for a given element. If `func` is an array or object, the
  30384. * created function returns `true` for elements that contain the equivalent
  30385. * source properties, otherwise it returns `false`.
  30386. *
  30387. * @static
  30388. * @since 4.0.0
  30389. * @memberOf _
  30390. * @category Util
  30391. * @param {*} [func=_.identity] The value to convert to a callback.
  30392. * @returns {Function} Returns the callback.
  30393. * @example
  30394. *
  30395. * var users = [
  30396. * { 'user': 'barney', 'age': 36, 'active': true },
  30397. * { 'user': 'fred', 'age': 40, 'active': false }
  30398. * ];
  30399. *
  30400. * // The `_.matches` iteratee shorthand.
  30401. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  30402. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  30403. *
  30404. * // The `_.matchesProperty` iteratee shorthand.
  30405. * _.filter(users, _.iteratee(['user', 'fred']));
  30406. * // => [{ 'user': 'fred', 'age': 40 }]
  30407. *
  30408. * // The `_.property` iteratee shorthand.
  30409. * _.map(users, _.iteratee('user'));
  30410. * // => ['barney', 'fred']
  30411. *
  30412. * // Create custom iteratee shorthands.
  30413. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  30414. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  30415. * return func.test(string);
  30416. * };
  30417. * });
  30418. *
  30419. * _.filter(['abc', 'def'], /ef/);
  30420. * // => ['def']
  30421. */
  30422. function iteratee(func) {
  30423. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  30424. }
  30425. /**
  30426. * Creates a function that performs a partial deep comparison between a given
  30427. * object and `source`, returning `true` if the given object has equivalent
  30428. * property values, else `false`.
  30429. *
  30430. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  30431. * partially applied.
  30432. *
  30433. * Partial comparisons will match empty array and empty object `source`
  30434. * values against any array or object value, respectively. See `_.isEqual`
  30435. * for a list of supported value comparisons.
  30436. *
  30437. * @static
  30438. * @memberOf _
  30439. * @since 3.0.0
  30440. * @category Util
  30441. * @param {Object} source The object of property values to match.
  30442. * @returns {Function} Returns the new spec function.
  30443. * @example
  30444. *
  30445. * var objects = [
  30446. * { 'a': 1, 'b': 2, 'c': 3 },
  30447. * { 'a': 4, 'b': 5, 'c': 6 }
  30448. * ];
  30449. *
  30450. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  30451. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  30452. */
  30453. function matches(source) {
  30454. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  30455. }
  30456. /**
  30457. * Creates a function that performs a partial deep comparison between the
  30458. * value at `path` of a given object to `srcValue`, returning `true` if the
  30459. * object value is equivalent, else `false`.
  30460. *
  30461. * **Note:** Partial comparisons will match empty array and empty object
  30462. * `srcValue` values against any array or object value, respectively. See
  30463. * `_.isEqual` for a list of supported value comparisons.
  30464. *
  30465. * @static
  30466. * @memberOf _
  30467. * @since 3.2.0
  30468. * @category Util
  30469. * @param {Array|string} path The path of the property to get.
  30470. * @param {*} srcValue The value to match.
  30471. * @returns {Function} Returns the new spec function.
  30472. * @example
  30473. *
  30474. * var objects = [
  30475. * { 'a': 1, 'b': 2, 'c': 3 },
  30476. * { 'a': 4, 'b': 5, 'c': 6 }
  30477. * ];
  30478. *
  30479. * _.find(objects, _.matchesProperty('a', 4));
  30480. * // => { 'a': 4, 'b': 5, 'c': 6 }
  30481. */
  30482. function matchesProperty(path, srcValue) {
  30483. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  30484. }
  30485. /**
  30486. * Creates a function that invokes the method at `path` of a given object.
  30487. * Any additional arguments are provided to the invoked method.
  30488. *
  30489. * @static
  30490. * @memberOf _
  30491. * @since 3.7.0
  30492. * @category Util
  30493. * @param {Array|string} path The path of the method to invoke.
  30494. * @param {...*} [args] The arguments to invoke the method with.
  30495. * @returns {Function} Returns the new invoker function.
  30496. * @example
  30497. *
  30498. * var objects = [
  30499. * { 'a': { 'b': _.constant(2) } },
  30500. * { 'a': { 'b': _.constant(1) } }
  30501. * ];
  30502. *
  30503. * _.map(objects, _.method('a.b'));
  30504. * // => [2, 1]
  30505. *
  30506. * _.map(objects, _.method(['a', 'b']));
  30507. * // => [2, 1]
  30508. */
  30509. var method = baseRest(function(path, args) {
  30510. return function(object) {
  30511. return baseInvoke(object, path, args);
  30512. };
  30513. });
  30514. /**
  30515. * The opposite of `_.method`; this method creates a function that invokes
  30516. * the method at a given path of `object`. Any additional arguments are
  30517. * provided to the invoked method.
  30518. *
  30519. * @static
  30520. * @memberOf _
  30521. * @since 3.7.0
  30522. * @category Util
  30523. * @param {Object} object The object to query.
  30524. * @param {...*} [args] The arguments to invoke the method with.
  30525. * @returns {Function} Returns the new invoker function.
  30526. * @example
  30527. *
  30528. * var array = _.times(3, _.constant),
  30529. * object = { 'a': array, 'b': array, 'c': array };
  30530. *
  30531. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  30532. * // => [2, 0]
  30533. *
  30534. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  30535. * // => [2, 0]
  30536. */
  30537. var methodOf = baseRest(function(object, args) {
  30538. return function(path) {
  30539. return baseInvoke(object, path, args);
  30540. };
  30541. });
  30542. /**
  30543. * Adds all own enumerable string keyed function properties of a source
  30544. * object to the destination object. If `object` is a function, then methods
  30545. * are added to its prototype as well.
  30546. *
  30547. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  30548. * avoid conflicts caused by modifying the original.
  30549. *
  30550. * @static
  30551. * @since 0.1.0
  30552. * @memberOf _
  30553. * @category Util
  30554. * @param {Function|Object} [object=lodash] The destination object.
  30555. * @param {Object} source The object of functions to add.
  30556. * @param {Object} [options={}] The options object.
  30557. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  30558. * @returns {Function|Object} Returns `object`.
  30559. * @example
  30560. *
  30561. * function vowels(string) {
  30562. * return _.filter(string, function(v) {
  30563. * return /[aeiou]/i.test(v);
  30564. * });
  30565. * }
  30566. *
  30567. * _.mixin({ 'vowels': vowels });
  30568. * _.vowels('fred');
  30569. * // => ['e']
  30570. *
  30571. * _('fred').vowels().value();
  30572. * // => ['e']
  30573. *
  30574. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  30575. * _('fred').vowels();
  30576. * // => ['e']
  30577. */
  30578. function mixin(object, source, options) {
  30579. var props = keys(source),
  30580. methodNames = baseFunctions(source, props);
  30581. if (options == null &&
  30582. !(isObject(source) && (methodNames.length || !props.length))) {
  30583. options = source;
  30584. source = object;
  30585. object = this;
  30586. methodNames = baseFunctions(source, keys(source));
  30587. }
  30588. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  30589. isFunc = isFunction(object);
  30590. arrayEach(methodNames, function(methodName) {
  30591. var func = source[methodName];
  30592. object[methodName] = func;
  30593. if (isFunc) {
  30594. object.prototype[methodName] = function() {
  30595. var chainAll = this.__chain__;
  30596. if (chain || chainAll) {
  30597. var result = object(this.__wrapped__),
  30598. actions = result.__actions__ = copyArray(this.__actions__);
  30599. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  30600. result.__chain__ = chainAll;
  30601. return result;
  30602. }
  30603. return func.apply(object, arrayPush([this.value()], arguments));
  30604. };
  30605. }
  30606. });
  30607. return object;
  30608. }
  30609. /**
  30610. * Reverts the `_` variable to its previous value and returns a reference to
  30611. * the `lodash` function.
  30612. *
  30613. * @static
  30614. * @since 0.1.0
  30615. * @memberOf _
  30616. * @category Util
  30617. * @returns {Function} Returns the `lodash` function.
  30618. * @example
  30619. *
  30620. * var lodash = _.noConflict();
  30621. */
  30622. function noConflict() {
  30623. if (root._ === this) {
  30624. root._ = oldDash;
  30625. }
  30626. return this;
  30627. }
  30628. /**
  30629. * This method returns `undefined`.
  30630. *
  30631. * @static
  30632. * @memberOf _
  30633. * @since 2.3.0
  30634. * @category Util
  30635. * @example
  30636. *
  30637. * _.times(2, _.noop);
  30638. * // => [undefined, undefined]
  30639. */
  30640. function noop() {
  30641. // No operation performed.
  30642. }
  30643. /**
  30644. * Creates a function that gets the argument at index `n`. If `n` is negative,
  30645. * the nth argument from the end is returned.
  30646. *
  30647. * @static
  30648. * @memberOf _
  30649. * @since 4.0.0
  30650. * @category Util
  30651. * @param {number} [n=0] The index of the argument to return.
  30652. * @returns {Function} Returns the new pass-thru function.
  30653. * @example
  30654. *
  30655. * var func = _.nthArg(1);
  30656. * func('a', 'b', 'c', 'd');
  30657. * // => 'b'
  30658. *
  30659. * var func = _.nthArg(-2);
  30660. * func('a', 'b', 'c', 'd');
  30661. * // => 'c'
  30662. */
  30663. function nthArg(n) {
  30664. n = toInteger(n);
  30665. return baseRest(function(args) {
  30666. return baseNth(args, n);
  30667. });
  30668. }
  30669. /**
  30670. * Creates a function that invokes `iteratees` with the arguments it receives
  30671. * and returns their results.
  30672. *
  30673. * @static
  30674. * @memberOf _
  30675. * @since 4.0.0
  30676. * @category Util
  30677. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  30678. * The iteratees to invoke.
  30679. * @returns {Function} Returns the new function.
  30680. * @example
  30681. *
  30682. * var func = _.over([Math.max, Math.min]);
  30683. *
  30684. * func(1, 2, 3, 4);
  30685. * // => [4, 1]
  30686. */
  30687. var over = createOver(arrayMap);
  30688. /**
  30689. * Creates a function that checks if **all** of the `predicates` return
  30690. * truthy when invoked with the arguments it receives.
  30691. *
  30692. * @static
  30693. * @memberOf _
  30694. * @since 4.0.0
  30695. * @category Util
  30696. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30697. * The predicates to check.
  30698. * @returns {Function} Returns the new function.
  30699. * @example
  30700. *
  30701. * var func = _.overEvery([Boolean, isFinite]);
  30702. *
  30703. * func('1');
  30704. * // => true
  30705. *
  30706. * func(null);
  30707. * // => false
  30708. *
  30709. * func(NaN);
  30710. * // => false
  30711. */
  30712. var overEvery = createOver(arrayEvery);
  30713. /**
  30714. * Creates a function that checks if **any** of the `predicates` return
  30715. * truthy when invoked with the arguments it receives.
  30716. *
  30717. * @static
  30718. * @memberOf _
  30719. * @since 4.0.0
  30720. * @category Util
  30721. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30722. * The predicates to check.
  30723. * @returns {Function} Returns the new function.
  30724. * @example
  30725. *
  30726. * var func = _.overSome([Boolean, isFinite]);
  30727. *
  30728. * func('1');
  30729. * // => true
  30730. *
  30731. * func(null);
  30732. * // => true
  30733. *
  30734. * func(NaN);
  30735. * // => false
  30736. */
  30737. var overSome = createOver(arraySome);
  30738. /**
  30739. * Creates a function that returns the value at `path` of a given object.
  30740. *
  30741. * @static
  30742. * @memberOf _
  30743. * @since 2.4.0
  30744. * @category Util
  30745. * @param {Array|string} path The path of the property to get.
  30746. * @returns {Function} Returns the new accessor function.
  30747. * @example
  30748. *
  30749. * var objects = [
  30750. * { 'a': { 'b': 2 } },
  30751. * { 'a': { 'b': 1 } }
  30752. * ];
  30753. *
  30754. * _.map(objects, _.property('a.b'));
  30755. * // => [2, 1]
  30756. *
  30757. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  30758. * // => [1, 2]
  30759. */
  30760. function property(path) {
  30761. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  30762. }
  30763. /**
  30764. * The opposite of `_.property`; this method creates a function that returns
  30765. * the value at a given path of `object`.
  30766. *
  30767. * @static
  30768. * @memberOf _
  30769. * @since 3.0.0
  30770. * @category Util
  30771. * @param {Object} object The object to query.
  30772. * @returns {Function} Returns the new accessor function.
  30773. * @example
  30774. *
  30775. * var array = [0, 1, 2],
  30776. * object = { 'a': array, 'b': array, 'c': array };
  30777. *
  30778. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  30779. * // => [2, 0]
  30780. *
  30781. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  30782. * // => [2, 0]
  30783. */
  30784. function propertyOf(object) {
  30785. return function(path) {
  30786. return object == null ? undefined : baseGet(object, path);
  30787. };
  30788. }
  30789. /**
  30790. * Creates an array of numbers (positive and/or negative) progressing from
  30791. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  30792. * `start` is specified without an `end` or `step`. If `end` is not specified,
  30793. * it's set to `start` with `start` then set to `0`.
  30794. *
  30795. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  30796. * floating-point values which can produce unexpected results.
  30797. *
  30798. * @static
  30799. * @since 0.1.0
  30800. * @memberOf _
  30801. * @category Util
  30802. * @param {number} [start=0] The start of the range.
  30803. * @param {number} end The end of the range.
  30804. * @param {number} [step=1] The value to increment or decrement by.
  30805. * @returns {Array} Returns the range of numbers.
  30806. * @see _.inRange, _.rangeRight
  30807. * @example
  30808. *
  30809. * _.range(4);
  30810. * // => [0, 1, 2, 3]
  30811. *
  30812. * _.range(-4);
  30813. * // => [0, -1, -2, -3]
  30814. *
  30815. * _.range(1, 5);
  30816. * // => [1, 2, 3, 4]
  30817. *
  30818. * _.range(0, 20, 5);
  30819. * // => [0, 5, 10, 15]
  30820. *
  30821. * _.range(0, -4, -1);
  30822. * // => [0, -1, -2, -3]
  30823. *
  30824. * _.range(1, 4, 0);
  30825. * // => [1, 1, 1]
  30826. *
  30827. * _.range(0);
  30828. * // => []
  30829. */
  30830. var range = createRange();
  30831. /**
  30832. * This method is like `_.range` except that it populates values in
  30833. * descending order.
  30834. *
  30835. * @static
  30836. * @memberOf _
  30837. * @since 4.0.0
  30838. * @category Util
  30839. * @param {number} [start=0] The start of the range.
  30840. * @param {number} end The end of the range.
  30841. * @param {number} [step=1] The value to increment or decrement by.
  30842. * @returns {Array} Returns the range of numbers.
  30843. * @see _.inRange, _.range
  30844. * @example
  30845. *
  30846. * _.rangeRight(4);
  30847. * // => [3, 2, 1, 0]
  30848. *
  30849. * _.rangeRight(-4);
  30850. * // => [-3, -2, -1, 0]
  30851. *
  30852. * _.rangeRight(1, 5);
  30853. * // => [4, 3, 2, 1]
  30854. *
  30855. * _.rangeRight(0, 20, 5);
  30856. * // => [15, 10, 5, 0]
  30857. *
  30858. * _.rangeRight(0, -4, -1);
  30859. * // => [-3, -2, -1, 0]
  30860. *
  30861. * _.rangeRight(1, 4, 0);
  30862. * // => [1, 1, 1]
  30863. *
  30864. * _.rangeRight(0);
  30865. * // => []
  30866. */
  30867. var rangeRight = createRange(true);
  30868. /**
  30869. * This method returns a new empty array.
  30870. *
  30871. * @static
  30872. * @memberOf _
  30873. * @since 4.13.0
  30874. * @category Util
  30875. * @returns {Array} Returns the new empty array.
  30876. * @example
  30877. *
  30878. * var arrays = _.times(2, _.stubArray);
  30879. *
  30880. * console.log(arrays);
  30881. * // => [[], []]
  30882. *
  30883. * console.log(arrays[0] === arrays[1]);
  30884. * // => false
  30885. */
  30886. function stubArray() {
  30887. return [];
  30888. }
  30889. /**
  30890. * This method returns `false`.
  30891. *
  30892. * @static
  30893. * @memberOf _
  30894. * @since 4.13.0
  30895. * @category Util
  30896. * @returns {boolean} Returns `false`.
  30897. * @example
  30898. *
  30899. * _.times(2, _.stubFalse);
  30900. * // => [false, false]
  30901. */
  30902. function stubFalse() {
  30903. return false;
  30904. }
  30905. /**
  30906. * This method returns a new empty object.
  30907. *
  30908. * @static
  30909. * @memberOf _
  30910. * @since 4.13.0
  30911. * @category Util
  30912. * @returns {Object} Returns the new empty object.
  30913. * @example
  30914. *
  30915. * var objects = _.times(2, _.stubObject);
  30916. *
  30917. * console.log(objects);
  30918. * // => [{}, {}]
  30919. *
  30920. * console.log(objects[0] === objects[1]);
  30921. * // => false
  30922. */
  30923. function stubObject() {
  30924. return {};
  30925. }
  30926. /**
  30927. * This method returns an empty string.
  30928. *
  30929. * @static
  30930. * @memberOf _
  30931. * @since 4.13.0
  30932. * @category Util
  30933. * @returns {string} Returns the empty string.
  30934. * @example
  30935. *
  30936. * _.times(2, _.stubString);
  30937. * // => ['', '']
  30938. */
  30939. function stubString() {
  30940. return '';
  30941. }
  30942. /**
  30943. * This method returns `true`.
  30944. *
  30945. * @static
  30946. * @memberOf _
  30947. * @since 4.13.0
  30948. * @category Util
  30949. * @returns {boolean} Returns `true`.
  30950. * @example
  30951. *
  30952. * _.times(2, _.stubTrue);
  30953. * // => [true, true]
  30954. */
  30955. function stubTrue() {
  30956. return true;
  30957. }
  30958. /**
  30959. * Invokes the iteratee `n` times, returning an array of the results of
  30960. * each invocation. The iteratee is invoked with one argument; (index).
  30961. *
  30962. * @static
  30963. * @since 0.1.0
  30964. * @memberOf _
  30965. * @category Util
  30966. * @param {number} n The number of times to invoke `iteratee`.
  30967. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  30968. * @returns {Array} Returns the array of results.
  30969. * @example
  30970. *
  30971. * _.times(3, String);
  30972. * // => ['0', '1', '2']
  30973. *
  30974. * _.times(4, _.constant(0));
  30975. * // => [0, 0, 0, 0]
  30976. */
  30977. function times(n, iteratee) {
  30978. n = toInteger(n);
  30979. if (n < 1 || n > MAX_SAFE_INTEGER) {
  30980. return [];
  30981. }
  30982. var index = MAX_ARRAY_LENGTH,
  30983. length = nativeMin(n, MAX_ARRAY_LENGTH);
  30984. iteratee = getIteratee(iteratee);
  30985. n -= MAX_ARRAY_LENGTH;
  30986. var result = baseTimes(length, iteratee);
  30987. while (++index < n) {
  30988. iteratee(index);
  30989. }
  30990. return result;
  30991. }
  30992. /**
  30993. * Converts `value` to a property path array.
  30994. *
  30995. * @static
  30996. * @memberOf _
  30997. * @since 4.0.0
  30998. * @category Util
  30999. * @param {*} value The value to convert.
  31000. * @returns {Array} Returns the new property path array.
  31001. * @example
  31002. *
  31003. * _.toPath('a.b.c');
  31004. * // => ['a', 'b', 'c']
  31005. *
  31006. * _.toPath('a[0].b.c');
  31007. * // => ['a', '0', 'b', 'c']
  31008. */
  31009. function toPath(value) {
  31010. if (isArray(value)) {
  31011. return arrayMap(value, toKey);
  31012. }
  31013. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  31014. }
  31015. /**
  31016. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  31017. *
  31018. * @static
  31019. * @since 0.1.0
  31020. * @memberOf _
  31021. * @category Util
  31022. * @param {string} [prefix=''] The value to prefix the ID with.
  31023. * @returns {string} Returns the unique ID.
  31024. * @example
  31025. *
  31026. * _.uniqueId('contact_');
  31027. * // => 'contact_104'
  31028. *
  31029. * _.uniqueId();
  31030. * // => '105'
  31031. */
  31032. function uniqueId(prefix) {
  31033. var id = ++idCounter;
  31034. return toString(prefix) + id;
  31035. }
  31036. /*------------------------------------------------------------------------*/
  31037. /**
  31038. * Adds two numbers.
  31039. *
  31040. * @static
  31041. * @memberOf _
  31042. * @since 3.4.0
  31043. * @category Math
  31044. * @param {number} augend The first number in an addition.
  31045. * @param {number} addend The second number in an addition.
  31046. * @returns {number} Returns the total.
  31047. * @example
  31048. *
  31049. * _.add(6, 4);
  31050. * // => 10
  31051. */
  31052. var add = createMathOperation(function(augend, addend) {
  31053. return augend + addend;
  31054. }, 0);
  31055. /**
  31056. * Computes `number` rounded up to `precision`.
  31057. *
  31058. * @static
  31059. * @memberOf _
  31060. * @since 3.10.0
  31061. * @category Math
  31062. * @param {number} number The number to round up.
  31063. * @param {number} [precision=0] The precision to round up to.
  31064. * @returns {number} Returns the rounded up number.
  31065. * @example
  31066. *
  31067. * _.ceil(4.006);
  31068. * // => 5
  31069. *
  31070. * _.ceil(6.004, 2);
  31071. * // => 6.01
  31072. *
  31073. * _.ceil(6040, -2);
  31074. * // => 6100
  31075. */
  31076. var ceil = createRound('ceil');
  31077. /**
  31078. * Divide two numbers.
  31079. *
  31080. * @static
  31081. * @memberOf _
  31082. * @since 4.7.0
  31083. * @category Math
  31084. * @param {number} dividend The first number in a division.
  31085. * @param {number} divisor The second number in a division.
  31086. * @returns {number} Returns the quotient.
  31087. * @example
  31088. *
  31089. * _.divide(6, 4);
  31090. * // => 1.5
  31091. */
  31092. var divide = createMathOperation(function(dividend, divisor) {
  31093. return dividend / divisor;
  31094. }, 1);
  31095. /**
  31096. * Computes `number` rounded down to `precision`.
  31097. *
  31098. * @static
  31099. * @memberOf _
  31100. * @since 3.10.0
  31101. * @category Math
  31102. * @param {number} number The number to round down.
  31103. * @param {number} [precision=0] The precision to round down to.
  31104. * @returns {number} Returns the rounded down number.
  31105. * @example
  31106. *
  31107. * _.floor(4.006);
  31108. * // => 4
  31109. *
  31110. * _.floor(0.046, 2);
  31111. * // => 0.04
  31112. *
  31113. * _.floor(4060, -2);
  31114. * // => 4000
  31115. */
  31116. var floor = createRound('floor');
  31117. /**
  31118. * Computes the maximum value of `array`. If `array` is empty or falsey,
  31119. * `undefined` is returned.
  31120. *
  31121. * @static
  31122. * @since 0.1.0
  31123. * @memberOf _
  31124. * @category Math
  31125. * @param {Array} array The array to iterate over.
  31126. * @returns {*} Returns the maximum value.
  31127. * @example
  31128. *
  31129. * _.max([4, 2, 8, 6]);
  31130. * // => 8
  31131. *
  31132. * _.max([]);
  31133. * // => undefined
  31134. */
  31135. function max(array) {
  31136. return (array && array.length)
  31137. ? baseExtremum(array, identity, baseGt)
  31138. : undefined;
  31139. }
  31140. /**
  31141. * This method is like `_.max` except that it accepts `iteratee` which is
  31142. * invoked for each element in `array` to generate the criterion by which
  31143. * the value is ranked. The iteratee is invoked with one argument: (value).
  31144. *
  31145. * @static
  31146. * @memberOf _
  31147. * @since 4.0.0
  31148. * @category Math
  31149. * @param {Array} array The array to iterate over.
  31150. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31151. * @returns {*} Returns the maximum value.
  31152. * @example
  31153. *
  31154. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31155. *
  31156. * _.maxBy(objects, function(o) { return o.n; });
  31157. * // => { 'n': 2 }
  31158. *
  31159. * // The `_.property` iteratee shorthand.
  31160. * _.maxBy(objects, 'n');
  31161. * // => { 'n': 2 }
  31162. */
  31163. function maxBy(array, iteratee) {
  31164. return (array && array.length)
  31165. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  31166. : undefined;
  31167. }
  31168. /**
  31169. * Computes the mean of the values in `array`.
  31170. *
  31171. * @static
  31172. * @memberOf _
  31173. * @since 4.0.0
  31174. * @category Math
  31175. * @param {Array} array The array to iterate over.
  31176. * @returns {number} Returns the mean.
  31177. * @example
  31178. *
  31179. * _.mean([4, 2, 8, 6]);
  31180. * // => 5
  31181. */
  31182. function mean(array) {
  31183. return baseMean(array, identity);
  31184. }
  31185. /**
  31186. * This method is like `_.mean` except that it accepts `iteratee` which is
  31187. * invoked for each element in `array` to generate the value to be averaged.
  31188. * The iteratee is invoked with one argument: (value).
  31189. *
  31190. * @static
  31191. * @memberOf _
  31192. * @since 4.7.0
  31193. * @category Math
  31194. * @param {Array} array The array to iterate over.
  31195. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31196. * @returns {number} Returns the mean.
  31197. * @example
  31198. *
  31199. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31200. *
  31201. * _.meanBy(objects, function(o) { return o.n; });
  31202. * // => 5
  31203. *
  31204. * // The `_.property` iteratee shorthand.
  31205. * _.meanBy(objects, 'n');
  31206. * // => 5
  31207. */
  31208. function meanBy(array, iteratee) {
  31209. return baseMean(array, getIteratee(iteratee, 2));
  31210. }
  31211. /**
  31212. * Computes the minimum value of `array`. If `array` is empty or falsey,
  31213. * `undefined` is returned.
  31214. *
  31215. * @static
  31216. * @since 0.1.0
  31217. * @memberOf _
  31218. * @category Math
  31219. * @param {Array} array The array to iterate over.
  31220. * @returns {*} Returns the minimum value.
  31221. * @example
  31222. *
  31223. * _.min([4, 2, 8, 6]);
  31224. * // => 2
  31225. *
  31226. * _.min([]);
  31227. * // => undefined
  31228. */
  31229. function min(array) {
  31230. return (array && array.length)
  31231. ? baseExtremum(array, identity, baseLt)
  31232. : undefined;
  31233. }
  31234. /**
  31235. * This method is like `_.min` except that it accepts `iteratee` which is
  31236. * invoked for each element in `array` to generate the criterion by which
  31237. * the value is ranked. The iteratee is invoked with one argument: (value).
  31238. *
  31239. * @static
  31240. * @memberOf _
  31241. * @since 4.0.0
  31242. * @category Math
  31243. * @param {Array} array The array to iterate over.
  31244. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31245. * @returns {*} Returns the minimum value.
  31246. * @example
  31247. *
  31248. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31249. *
  31250. * _.minBy(objects, function(o) { return o.n; });
  31251. * // => { 'n': 1 }
  31252. *
  31253. * // The `_.property` iteratee shorthand.
  31254. * _.minBy(objects, 'n');
  31255. * // => { 'n': 1 }
  31256. */
  31257. function minBy(array, iteratee) {
  31258. return (array && array.length)
  31259. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  31260. : undefined;
  31261. }
  31262. /**
  31263. * Multiply two numbers.
  31264. *
  31265. * @static
  31266. * @memberOf _
  31267. * @since 4.7.0
  31268. * @category Math
  31269. * @param {number} multiplier The first number in a multiplication.
  31270. * @param {number} multiplicand The second number in a multiplication.
  31271. * @returns {number} Returns the product.
  31272. * @example
  31273. *
  31274. * _.multiply(6, 4);
  31275. * // => 24
  31276. */
  31277. var multiply = createMathOperation(function(multiplier, multiplicand) {
  31278. return multiplier * multiplicand;
  31279. }, 1);
  31280. /**
  31281. * Computes `number` rounded to `precision`.
  31282. *
  31283. * @static
  31284. * @memberOf _
  31285. * @since 3.10.0
  31286. * @category Math
  31287. * @param {number} number The number to round.
  31288. * @param {number} [precision=0] The precision to round to.
  31289. * @returns {number} Returns the rounded number.
  31290. * @example
  31291. *
  31292. * _.round(4.006);
  31293. * // => 4
  31294. *
  31295. * _.round(4.006, 2);
  31296. * // => 4.01
  31297. *
  31298. * _.round(4060, -2);
  31299. * // => 4100
  31300. */
  31301. var round = createRound('round');
  31302. /**
  31303. * Subtract two numbers.
  31304. *
  31305. * @static
  31306. * @memberOf _
  31307. * @since 4.0.0
  31308. * @category Math
  31309. * @param {number} minuend The first number in a subtraction.
  31310. * @param {number} subtrahend The second number in a subtraction.
  31311. * @returns {number} Returns the difference.
  31312. * @example
  31313. *
  31314. * _.subtract(6, 4);
  31315. * // => 2
  31316. */
  31317. var subtract = createMathOperation(function(minuend, subtrahend) {
  31318. return minuend - subtrahend;
  31319. }, 0);
  31320. /**
  31321. * Computes the sum of the values in `array`.
  31322. *
  31323. * @static
  31324. * @memberOf _
  31325. * @since 3.4.0
  31326. * @category Math
  31327. * @param {Array} array The array to iterate over.
  31328. * @returns {number} Returns the sum.
  31329. * @example
  31330. *
  31331. * _.sum([4, 2, 8, 6]);
  31332. * // => 20
  31333. */
  31334. function sum(array) {
  31335. return (array && array.length)
  31336. ? baseSum(array, identity)
  31337. : 0;
  31338. }
  31339. /**
  31340. * This method is like `_.sum` except that it accepts `iteratee` which is
  31341. * invoked for each element in `array` to generate the value to be summed.
  31342. * The iteratee is invoked with one argument: (value).
  31343. *
  31344. * @static
  31345. * @memberOf _
  31346. * @since 4.0.0
  31347. * @category Math
  31348. * @param {Array} array The array to iterate over.
  31349. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31350. * @returns {number} Returns the sum.
  31351. * @example
  31352. *
  31353. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31354. *
  31355. * _.sumBy(objects, function(o) { return o.n; });
  31356. * // => 20
  31357. *
  31358. * // The `_.property` iteratee shorthand.
  31359. * _.sumBy(objects, 'n');
  31360. * // => 20
  31361. */
  31362. function sumBy(array, iteratee) {
  31363. return (array && array.length)
  31364. ? baseSum(array, getIteratee(iteratee, 2))
  31365. : 0;
  31366. }
  31367. /*------------------------------------------------------------------------*/
  31368. // Add methods that return wrapped values in chain sequences.
  31369. lodash.after = after;
  31370. lodash.ary = ary;
  31371. lodash.assign = assign;
  31372. lodash.assignIn = assignIn;
  31373. lodash.assignInWith = assignInWith;
  31374. lodash.assignWith = assignWith;
  31375. lodash.at = at;
  31376. lodash.before = before;
  31377. lodash.bind = bind;
  31378. lodash.bindAll = bindAll;
  31379. lodash.bindKey = bindKey;
  31380. lodash.castArray = castArray;
  31381. lodash.chain = chain;
  31382. lodash.chunk = chunk;
  31383. lodash.compact = compact;
  31384. lodash.concat = concat;
  31385. lodash.cond = cond;
  31386. lodash.conforms = conforms;
  31387. lodash.constant = constant;
  31388. lodash.countBy = countBy;
  31389. lodash.create = create;
  31390. lodash.curry = curry;
  31391. lodash.curryRight = curryRight;
  31392. lodash.debounce = debounce;
  31393. lodash.defaults = defaults;
  31394. lodash.defaultsDeep = defaultsDeep;
  31395. lodash.defer = defer;
  31396. lodash.delay = delay;
  31397. lodash.difference = difference;
  31398. lodash.differenceBy = differenceBy;
  31399. lodash.differenceWith = differenceWith;
  31400. lodash.drop = drop;
  31401. lodash.dropRight = dropRight;
  31402. lodash.dropRightWhile = dropRightWhile;
  31403. lodash.dropWhile = dropWhile;
  31404. lodash.fill = fill;
  31405. lodash.filter = filter;
  31406. lodash.flatMap = flatMap;
  31407. lodash.flatMapDeep = flatMapDeep;
  31408. lodash.flatMapDepth = flatMapDepth;
  31409. lodash.flatten = flatten;
  31410. lodash.flattenDeep = flattenDeep;
  31411. lodash.flattenDepth = flattenDepth;
  31412. lodash.flip = flip;
  31413. lodash.flow = flow;
  31414. lodash.flowRight = flowRight;
  31415. lodash.fromPairs = fromPairs;
  31416. lodash.functions = functions;
  31417. lodash.functionsIn = functionsIn;
  31418. lodash.groupBy = groupBy;
  31419. lodash.initial = initial;
  31420. lodash.intersection = intersection;
  31421. lodash.intersectionBy = intersectionBy;
  31422. lodash.intersectionWith = intersectionWith;
  31423. lodash.invert = invert;
  31424. lodash.invertBy = invertBy;
  31425. lodash.invokeMap = invokeMap;
  31426. lodash.iteratee = iteratee;
  31427. lodash.keyBy = keyBy;
  31428. lodash.keys = keys;
  31429. lodash.keysIn = keysIn;
  31430. lodash.map = map;
  31431. lodash.mapKeys = mapKeys;
  31432. lodash.mapValues = mapValues;
  31433. lodash.matches = matches;
  31434. lodash.matchesProperty = matchesProperty;
  31435. lodash.memoize = memoize;
  31436. lodash.merge = merge;
  31437. lodash.mergeWith = mergeWith;
  31438. lodash.method = method;
  31439. lodash.methodOf = methodOf;
  31440. lodash.mixin = mixin;
  31441. lodash.negate = negate;
  31442. lodash.nthArg = nthArg;
  31443. lodash.omit = omit;
  31444. lodash.omitBy = omitBy;
  31445. lodash.once = once;
  31446. lodash.orderBy = orderBy;
  31447. lodash.over = over;
  31448. lodash.overArgs = overArgs;
  31449. lodash.overEvery = overEvery;
  31450. lodash.overSome = overSome;
  31451. lodash.partial = partial;
  31452. lodash.partialRight = partialRight;
  31453. lodash.partition = partition;
  31454. lodash.pick = pick;
  31455. lodash.pickBy = pickBy;
  31456. lodash.property = property;
  31457. lodash.propertyOf = propertyOf;
  31458. lodash.pull = pull;
  31459. lodash.pullAll = pullAll;
  31460. lodash.pullAllBy = pullAllBy;
  31461. lodash.pullAllWith = pullAllWith;
  31462. lodash.pullAt = pullAt;
  31463. lodash.range = range;
  31464. lodash.rangeRight = rangeRight;
  31465. lodash.rearg = rearg;
  31466. lodash.reject = reject;
  31467. lodash.remove = remove;
  31468. lodash.rest = rest;
  31469. lodash.reverse = reverse;
  31470. lodash.sampleSize = sampleSize;
  31471. lodash.set = set;
  31472. lodash.setWith = setWith;
  31473. lodash.shuffle = shuffle;
  31474. lodash.slice = slice;
  31475. lodash.sortBy = sortBy;
  31476. lodash.sortedUniq = sortedUniq;
  31477. lodash.sortedUniqBy = sortedUniqBy;
  31478. lodash.split = split;
  31479. lodash.spread = spread;
  31480. lodash.tail = tail;
  31481. lodash.take = take;
  31482. lodash.takeRight = takeRight;
  31483. lodash.takeRightWhile = takeRightWhile;
  31484. lodash.takeWhile = takeWhile;
  31485. lodash.tap = tap;
  31486. lodash.throttle = throttle;
  31487. lodash.thru = thru;
  31488. lodash.toArray = toArray;
  31489. lodash.toPairs = toPairs;
  31490. lodash.toPairsIn = toPairsIn;
  31491. lodash.toPath = toPath;
  31492. lodash.toPlainObject = toPlainObject;
  31493. lodash.transform = transform;
  31494. lodash.unary = unary;
  31495. lodash.union = union;
  31496. lodash.unionBy = unionBy;
  31497. lodash.unionWith = unionWith;
  31498. lodash.uniq = uniq;
  31499. lodash.uniqBy = uniqBy;
  31500. lodash.uniqWith = uniqWith;
  31501. lodash.unset = unset;
  31502. lodash.unzip = unzip;
  31503. lodash.unzipWith = unzipWith;
  31504. lodash.update = update;
  31505. lodash.updateWith = updateWith;
  31506. lodash.values = values;
  31507. lodash.valuesIn = valuesIn;
  31508. lodash.without = without;
  31509. lodash.words = words;
  31510. lodash.wrap = wrap;
  31511. lodash.xor = xor;
  31512. lodash.xorBy = xorBy;
  31513. lodash.xorWith = xorWith;
  31514. lodash.zip = zip;
  31515. lodash.zipObject = zipObject;
  31516. lodash.zipObjectDeep = zipObjectDeep;
  31517. lodash.zipWith = zipWith;
  31518. // Add aliases.
  31519. lodash.entries = toPairs;
  31520. lodash.entriesIn = toPairsIn;
  31521. lodash.extend = assignIn;
  31522. lodash.extendWith = assignInWith;
  31523. // Add methods to `lodash.prototype`.
  31524. mixin(lodash, lodash);
  31525. /*------------------------------------------------------------------------*/
  31526. // Add methods that return unwrapped values in chain sequences.
  31527. lodash.add = add;
  31528. lodash.attempt = attempt;
  31529. lodash.camelCase = camelCase;
  31530. lodash.capitalize = capitalize;
  31531. lodash.ceil = ceil;
  31532. lodash.clamp = clamp;
  31533. lodash.clone = clone;
  31534. lodash.cloneDeep = cloneDeep;
  31535. lodash.cloneDeepWith = cloneDeepWith;
  31536. lodash.cloneWith = cloneWith;
  31537. lodash.conformsTo = conformsTo;
  31538. lodash.deburr = deburr;
  31539. lodash.defaultTo = defaultTo;
  31540. lodash.divide = divide;
  31541. lodash.endsWith = endsWith;
  31542. lodash.eq = eq;
  31543. lodash.escape = escape;
  31544. lodash.escapeRegExp = escapeRegExp;
  31545. lodash.every = every;
  31546. lodash.find = find;
  31547. lodash.findIndex = findIndex;
  31548. lodash.findKey = findKey;
  31549. lodash.findLast = findLast;
  31550. lodash.findLastIndex = findLastIndex;
  31551. lodash.findLastKey = findLastKey;
  31552. lodash.floor = floor;
  31553. lodash.forEach = forEach;
  31554. lodash.forEachRight = forEachRight;
  31555. lodash.forIn = forIn;
  31556. lodash.forInRight = forInRight;
  31557. lodash.forOwn = forOwn;
  31558. lodash.forOwnRight = forOwnRight;
  31559. lodash.get = get;
  31560. lodash.gt = gt;
  31561. lodash.gte = gte;
  31562. lodash.has = has;
  31563. lodash.hasIn = hasIn;
  31564. lodash.head = head;
  31565. lodash.identity = identity;
  31566. lodash.includes = includes;
  31567. lodash.indexOf = indexOf;
  31568. lodash.inRange = inRange;
  31569. lodash.invoke = invoke;
  31570. lodash.isArguments = isArguments;
  31571. lodash.isArray = isArray;
  31572. lodash.isArrayBuffer = isArrayBuffer;
  31573. lodash.isArrayLike = isArrayLike;
  31574. lodash.isArrayLikeObject = isArrayLikeObject;
  31575. lodash.isBoolean = isBoolean;
  31576. lodash.isBuffer = isBuffer;
  31577. lodash.isDate = isDate;
  31578. lodash.isElement = isElement;
  31579. lodash.isEmpty = isEmpty;
  31580. lodash.isEqual = isEqual;
  31581. lodash.isEqualWith = isEqualWith;
  31582. lodash.isError = isError;
  31583. lodash.isFinite = isFinite;
  31584. lodash.isFunction = isFunction;
  31585. lodash.isInteger = isInteger;
  31586. lodash.isLength = isLength;
  31587. lodash.isMap = isMap;
  31588. lodash.isMatch = isMatch;
  31589. lodash.isMatchWith = isMatchWith;
  31590. lodash.isNaN = isNaN;
  31591. lodash.isNative = isNative;
  31592. lodash.isNil = isNil;
  31593. lodash.isNull = isNull;
  31594. lodash.isNumber = isNumber;
  31595. lodash.isObject = isObject;
  31596. lodash.isObjectLike = isObjectLike;
  31597. lodash.isPlainObject = isPlainObject;
  31598. lodash.isRegExp = isRegExp;
  31599. lodash.isSafeInteger = isSafeInteger;
  31600. lodash.isSet = isSet;
  31601. lodash.isString = isString;
  31602. lodash.isSymbol = isSymbol;
  31603. lodash.isTypedArray = isTypedArray;
  31604. lodash.isUndefined = isUndefined;
  31605. lodash.isWeakMap = isWeakMap;
  31606. lodash.isWeakSet = isWeakSet;
  31607. lodash.join = join;
  31608. lodash.kebabCase = kebabCase;
  31609. lodash.last = last;
  31610. lodash.lastIndexOf = lastIndexOf;
  31611. lodash.lowerCase = lowerCase;
  31612. lodash.lowerFirst = lowerFirst;
  31613. lodash.lt = lt;
  31614. lodash.lte = lte;
  31615. lodash.max = max;
  31616. lodash.maxBy = maxBy;
  31617. lodash.mean = mean;
  31618. lodash.meanBy = meanBy;
  31619. lodash.min = min;
  31620. lodash.minBy = minBy;
  31621. lodash.stubArray = stubArray;
  31622. lodash.stubFalse = stubFalse;
  31623. lodash.stubObject = stubObject;
  31624. lodash.stubString = stubString;
  31625. lodash.stubTrue = stubTrue;
  31626. lodash.multiply = multiply;
  31627. lodash.nth = nth;
  31628. lodash.noConflict = noConflict;
  31629. lodash.noop = noop;
  31630. lodash.now = now;
  31631. lodash.pad = pad;
  31632. lodash.padEnd = padEnd;
  31633. lodash.padStart = padStart;
  31634. lodash.parseInt = parseInt;
  31635. lodash.random = random;
  31636. lodash.reduce = reduce;
  31637. lodash.reduceRight = reduceRight;
  31638. lodash.repeat = repeat;
  31639. lodash.replace = replace;
  31640. lodash.result = result;
  31641. lodash.round = round;
  31642. lodash.runInContext = runInContext;
  31643. lodash.sample = sample;
  31644. lodash.size = size;
  31645. lodash.snakeCase = snakeCase;
  31646. lodash.some = some;
  31647. lodash.sortedIndex = sortedIndex;
  31648. lodash.sortedIndexBy = sortedIndexBy;
  31649. lodash.sortedIndexOf = sortedIndexOf;
  31650. lodash.sortedLastIndex = sortedLastIndex;
  31651. lodash.sortedLastIndexBy = sortedLastIndexBy;
  31652. lodash.sortedLastIndexOf = sortedLastIndexOf;
  31653. lodash.startCase = startCase;
  31654. lodash.startsWith = startsWith;
  31655. lodash.subtract = subtract;
  31656. lodash.sum = sum;
  31657. lodash.sumBy = sumBy;
  31658. lodash.template = template;
  31659. lodash.times = times;
  31660. lodash.toFinite = toFinite;
  31661. lodash.toInteger = toInteger;
  31662. lodash.toLength = toLength;
  31663. lodash.toLower = toLower;
  31664. lodash.toNumber = toNumber;
  31665. lodash.toSafeInteger = toSafeInteger;
  31666. lodash.toString = toString;
  31667. lodash.toUpper = toUpper;
  31668. lodash.trim = trim;
  31669. lodash.trimEnd = trimEnd;
  31670. lodash.trimStart = trimStart;
  31671. lodash.truncate = truncate;
  31672. lodash.unescape = unescape;
  31673. lodash.uniqueId = uniqueId;
  31674. lodash.upperCase = upperCase;
  31675. lodash.upperFirst = upperFirst;
  31676. // Add aliases.
  31677. lodash.each = forEach;
  31678. lodash.eachRight = forEachRight;
  31679. lodash.first = head;
  31680. mixin(lodash, (function() {
  31681. var source = {};
  31682. baseForOwn(lodash, function(func, methodName) {
  31683. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  31684. source[methodName] = func;
  31685. }
  31686. });
  31687. return source;
  31688. }()), { 'chain': false });
  31689. /*------------------------------------------------------------------------*/
  31690. /**
  31691. * The semantic version number.
  31692. *
  31693. * @static
  31694. * @memberOf _
  31695. * @type {string}
  31696. */
  31697. lodash.VERSION = VERSION;
  31698. // Assign default placeholders.
  31699. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  31700. lodash[methodName].placeholder = lodash;
  31701. });
  31702. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  31703. arrayEach(['drop', 'take'], function(methodName, index) {
  31704. LazyWrapper.prototype[methodName] = function(n) {
  31705. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  31706. var result = (this.__filtered__ && !index)
  31707. ? new LazyWrapper(this)
  31708. : this.clone();
  31709. if (result.__filtered__) {
  31710. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  31711. } else {
  31712. result.__views__.push({
  31713. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  31714. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  31715. });
  31716. }
  31717. return result;
  31718. };
  31719. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  31720. return this.reverse()[methodName](n).reverse();
  31721. };
  31722. });
  31723. // Add `LazyWrapper` methods that accept an `iteratee` value.
  31724. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  31725. var type = index + 1,
  31726. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  31727. LazyWrapper.prototype[methodName] = function(iteratee) {
  31728. var result = this.clone();
  31729. result.__iteratees__.push({
  31730. 'iteratee': getIteratee(iteratee, 3),
  31731. 'type': type
  31732. });
  31733. result.__filtered__ = result.__filtered__ || isFilter;
  31734. return result;
  31735. };
  31736. });
  31737. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  31738. arrayEach(['head', 'last'], function(methodName, index) {
  31739. var takeName = 'take' + (index ? 'Right' : '');
  31740. LazyWrapper.prototype[methodName] = function() {
  31741. return this[takeName](1).value()[0];
  31742. };
  31743. });
  31744. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  31745. arrayEach(['initial', 'tail'], function(methodName, index) {
  31746. var dropName = 'drop' + (index ? '' : 'Right');
  31747. LazyWrapper.prototype[methodName] = function() {
  31748. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  31749. };
  31750. });
  31751. LazyWrapper.prototype.compact = function() {
  31752. return this.filter(identity);
  31753. };
  31754. LazyWrapper.prototype.find = function(predicate) {
  31755. return this.filter(predicate).head();
  31756. };
  31757. LazyWrapper.prototype.findLast = function(predicate) {
  31758. return this.reverse().find(predicate);
  31759. };
  31760. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  31761. if (typeof path == 'function') {
  31762. return new LazyWrapper(this);
  31763. }
  31764. return this.map(function(value) {
  31765. return baseInvoke(value, path, args);
  31766. });
  31767. });
  31768. LazyWrapper.prototype.reject = function(predicate) {
  31769. return this.filter(negate(getIteratee(predicate)));
  31770. };
  31771. LazyWrapper.prototype.slice = function(start, end) {
  31772. start = toInteger(start);
  31773. var result = this;
  31774. if (result.__filtered__ && (start > 0 || end < 0)) {
  31775. return new LazyWrapper(result);
  31776. }
  31777. if (start < 0) {
  31778. result = result.takeRight(-start);
  31779. } else if (start) {
  31780. result = result.drop(start);
  31781. }
  31782. if (end !== undefined) {
  31783. end = toInteger(end);
  31784. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  31785. }
  31786. return result;
  31787. };
  31788. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  31789. return this.reverse().takeWhile(predicate).reverse();
  31790. };
  31791. LazyWrapper.prototype.toArray = function() {
  31792. return this.take(MAX_ARRAY_LENGTH);
  31793. };
  31794. // Add `LazyWrapper` methods to `lodash.prototype`.
  31795. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31796. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  31797. isTaker = /^(?:head|last)$/.test(methodName),
  31798. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  31799. retUnwrapped = isTaker || /^find/.test(methodName);
  31800. if (!lodashFunc) {
  31801. return;
  31802. }
  31803. lodash.prototype[methodName] = function() {
  31804. var value = this.__wrapped__,
  31805. args = isTaker ? [1] : arguments,
  31806. isLazy = value instanceof LazyWrapper,
  31807. iteratee = args[0],
  31808. useLazy = isLazy || isArray(value);
  31809. var interceptor = function(value) {
  31810. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  31811. return (isTaker && chainAll) ? result[0] : result;
  31812. };
  31813. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  31814. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  31815. isLazy = useLazy = false;
  31816. }
  31817. var chainAll = this.__chain__,
  31818. isHybrid = !!this.__actions__.length,
  31819. isUnwrapped = retUnwrapped && !chainAll,
  31820. onlyLazy = isLazy && !isHybrid;
  31821. if (!retUnwrapped && useLazy) {
  31822. value = onlyLazy ? value : new LazyWrapper(this);
  31823. var result = func.apply(value, args);
  31824. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  31825. return new LodashWrapper(result, chainAll);
  31826. }
  31827. if (isUnwrapped && onlyLazy) {
  31828. return func.apply(this, args);
  31829. }
  31830. result = this.thru(interceptor);
  31831. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  31832. };
  31833. });
  31834. // Add `Array` methods to `lodash.prototype`.
  31835. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  31836. var func = arrayProto[methodName],
  31837. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  31838. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  31839. lodash.prototype[methodName] = function() {
  31840. var args = arguments;
  31841. if (retUnwrapped && !this.__chain__) {
  31842. var value = this.value();
  31843. return func.apply(isArray(value) ? value : [], args);
  31844. }
  31845. return this[chainName](function(value) {
  31846. return func.apply(isArray(value) ? value : [], args);
  31847. });
  31848. };
  31849. });
  31850. // Map minified method names to their real names.
  31851. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31852. var lodashFunc = lodash[methodName];
  31853. if (lodashFunc) {
  31854. var key = lodashFunc.name + '';
  31855. if (!hasOwnProperty.call(realNames, key)) {
  31856. realNames[key] = [];
  31857. }
  31858. realNames[key].push({ 'name': methodName, 'func': lodashFunc });
  31859. }
  31860. });
  31861. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  31862. 'name': 'wrapper',
  31863. 'func': undefined
  31864. }];
  31865. // Add methods to `LazyWrapper`.
  31866. LazyWrapper.prototype.clone = lazyClone;
  31867. LazyWrapper.prototype.reverse = lazyReverse;
  31868. LazyWrapper.prototype.value = lazyValue;
  31869. // Add chain sequence methods to the `lodash` wrapper.
  31870. lodash.prototype.at = wrapperAt;
  31871. lodash.prototype.chain = wrapperChain;
  31872. lodash.prototype.commit = wrapperCommit;
  31873. lodash.prototype.next = wrapperNext;
  31874. lodash.prototype.plant = wrapperPlant;
  31875. lodash.prototype.reverse = wrapperReverse;
  31876. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  31877. // Add lazy aliases.
  31878. lodash.prototype.first = lodash.prototype.head;
  31879. if (symIterator) {
  31880. lodash.prototype[symIterator] = wrapperToIterator;
  31881. }
  31882. return lodash;
  31883. });
  31884. /*--------------------------------------------------------------------------*/
  31885. // Export lodash.
  31886. var _ = runInContext();
  31887. // Some AMD build optimizers, like r.js, check for condition patterns like:
  31888. if (true) {
  31889. // Expose Lodash on the global object to prevent errors when Lodash is
  31890. // loaded by a script tag in the presence of an AMD loader.
  31891. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  31892. // Use `_.noConflict` to remove Lodash from the global object.
  31893. root._ = _;
  31894. // Define as an anonymous module so, through path mapping, it can be
  31895. // referenced as the "underscore" module.
  31896. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  31897. return _;
  31898. }).call(exports, __webpack_require__, exports, module),
  31899. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31900. }
  31901. // Check for `exports` after `define` in case a build optimizer adds it.
  31902. else {}
  31903. }.call(this));
  31904. /* 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)))
  31905. /***/ }),
  31906. /***/ "../../node_modules/lodash/map.js":
  31907. /*!******************************************************!*\
  31908. !*** C:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  31909. \******************************************************/
  31910. /*! no static exports found */
  31911. /***/ (function(module, exports, __webpack_require__) {
  31912. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  31913. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  31914. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  31915. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  31916. /**
  31917. * Creates an array of values by running each element in `collection` thru
  31918. * `iteratee`. The iteratee is invoked with three arguments:
  31919. * (value, index|key, collection).
  31920. *
  31921. * Many lodash methods are guarded to work as iteratees for methods like
  31922. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  31923. *
  31924. * The guarded methods are:
  31925. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  31926. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  31927. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  31928. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  31929. *
  31930. * @static
  31931. * @memberOf _
  31932. * @since 0.1.0
  31933. * @category Collection
  31934. * @param {Array|Object} collection The collection to iterate over.
  31935. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31936. * @returns {Array} Returns the new mapped array.
  31937. * @example
  31938. *
  31939. * function square(n) {
  31940. * return n * n;
  31941. * }
  31942. *
  31943. * _.map([4, 8], square);
  31944. * // => [16, 64]
  31945. *
  31946. * _.map({ 'a': 4, 'b': 8 }, square);
  31947. * // => [16, 64] (iteration order is not guaranteed)
  31948. *
  31949. * var users = [
  31950. * { 'user': 'barney' },
  31951. * { 'user': 'fred' }
  31952. * ];
  31953. *
  31954. * // The `_.property` iteratee shorthand.
  31955. * _.map(users, 'user');
  31956. * // => ['barney', 'fred']
  31957. */
  31958. function map(collection, iteratee) {
  31959. var func = isArray(collection) ? arrayMap : baseMap;
  31960. return func(collection, baseIteratee(iteratee, 3));
  31961. }
  31962. module.exports = map;
  31963. /***/ }),
  31964. /***/ "../../node_modules/lodash/mapValues.js":
  31965. /*!************************************************************!*\
  31966. !*** C:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  31967. \************************************************************/
  31968. /*! no static exports found */
  31969. /***/ (function(module, exports, __webpack_require__) {
  31970. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  31971. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  31972. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  31973. /**
  31974. * Creates an object with the same keys as `object` and values generated
  31975. * by running each own enumerable string keyed property of `object` thru
  31976. * `iteratee`. The iteratee is invoked with three arguments:
  31977. * (value, key, object).
  31978. *
  31979. * @static
  31980. * @memberOf _
  31981. * @since 2.4.0
  31982. * @category Object
  31983. * @param {Object} object The object to iterate over.
  31984. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31985. * @returns {Object} Returns the new mapped object.
  31986. * @see _.mapKeys
  31987. * @example
  31988. *
  31989. * var users = {
  31990. * 'fred': { 'user': 'fred', 'age': 40 },
  31991. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  31992. * };
  31993. *
  31994. * _.mapValues(users, function(o) { return o.age; });
  31995. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31996. *
  31997. * // The `_.property` iteratee shorthand.
  31998. * _.mapValues(users, 'age');
  31999. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  32000. */
  32001. function mapValues(object, iteratee) {
  32002. var result = {};
  32003. iteratee = baseIteratee(iteratee, 3);
  32004. baseForOwn(object, function(value, key, object) {
  32005. baseAssignValue(result, key, iteratee(value, key, object));
  32006. });
  32007. return result;
  32008. }
  32009. module.exports = mapValues;
  32010. /***/ }),
  32011. /***/ "../../node_modules/lodash/max.js":
  32012. /*!******************************************************!*\
  32013. !*** C:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  32014. \******************************************************/
  32015. /*! no static exports found */
  32016. /***/ (function(module, exports, __webpack_require__) {
  32017. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32018. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  32019. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32020. /**
  32021. * Computes the maximum value of `array`. If `array` is empty or falsey,
  32022. * `undefined` is returned.
  32023. *
  32024. * @static
  32025. * @since 0.1.0
  32026. * @memberOf _
  32027. * @category Math
  32028. * @param {Array} array The array to iterate over.
  32029. * @returns {*} Returns the maximum value.
  32030. * @example
  32031. *
  32032. * _.max([4, 2, 8, 6]);
  32033. * // => 8
  32034. *
  32035. * _.max([]);
  32036. * // => undefined
  32037. */
  32038. function max(array) {
  32039. return (array && array.length)
  32040. ? baseExtremum(array, identity, baseGt)
  32041. : undefined;
  32042. }
  32043. module.exports = max;
  32044. /***/ }),
  32045. /***/ "../../node_modules/lodash/memoize.js":
  32046. /*!**********************************************************!*\
  32047. !*** C:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  32048. \**********************************************************/
  32049. /*! no static exports found */
  32050. /***/ (function(module, exports, __webpack_require__) {
  32051. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  32052. /** Error message constants. */
  32053. var FUNC_ERROR_TEXT = 'Expected a function';
  32054. /**
  32055. * Creates a function that memoizes the result of `func`. If `resolver` is
  32056. * provided, it determines the cache key for storing the result based on the
  32057. * arguments provided to the memoized function. By default, the first argument
  32058. * provided to the memoized function is used as the map cache key. The `func`
  32059. * is invoked with the `this` binding of the memoized function.
  32060. *
  32061. * **Note:** The cache is exposed as the `cache` property on the memoized
  32062. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  32063. * constructor with one whose instances implement the
  32064. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  32065. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  32066. *
  32067. * @static
  32068. * @memberOf _
  32069. * @since 0.1.0
  32070. * @category Function
  32071. * @param {Function} func The function to have its output memoized.
  32072. * @param {Function} [resolver] The function to resolve the cache key.
  32073. * @returns {Function} Returns the new memoized function.
  32074. * @example
  32075. *
  32076. * var object = { 'a': 1, 'b': 2 };
  32077. * var other = { 'c': 3, 'd': 4 };
  32078. *
  32079. * var values = _.memoize(_.values);
  32080. * values(object);
  32081. * // => [1, 2]
  32082. *
  32083. * values(other);
  32084. * // => [3, 4]
  32085. *
  32086. * object.a = 2;
  32087. * values(object);
  32088. * // => [1, 2]
  32089. *
  32090. * // Modify the result cache.
  32091. * values.cache.set(object, ['a', 'b']);
  32092. * values(object);
  32093. * // => ['a', 'b']
  32094. *
  32095. * // Replace `_.memoize.Cache`.
  32096. * _.memoize.Cache = WeakMap;
  32097. */
  32098. function memoize(func, resolver) {
  32099. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  32100. throw new TypeError(FUNC_ERROR_TEXT);
  32101. }
  32102. var memoized = function() {
  32103. var args = arguments,
  32104. key = resolver ? resolver.apply(this, args) : args[0],
  32105. cache = memoized.cache;
  32106. if (cache.has(key)) {
  32107. return cache.get(key);
  32108. }
  32109. var result = func.apply(this, args);
  32110. memoized.cache = cache.set(key, result) || cache;
  32111. return result;
  32112. };
  32113. memoized.cache = new (memoize.Cache || MapCache);
  32114. return memoized;
  32115. }
  32116. // Expose `MapCache`.
  32117. memoize.Cache = MapCache;
  32118. module.exports = memoize;
  32119. /***/ }),
  32120. /***/ "../../node_modules/lodash/merge.js":
  32121. /*!********************************************************!*\
  32122. !*** C:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  32123. \********************************************************/
  32124. /*! no static exports found */
  32125. /***/ (function(module, exports, __webpack_require__) {
  32126. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  32127. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  32128. /**
  32129. * This method is like `_.assign` except that it recursively merges own and
  32130. * inherited enumerable string keyed properties of source objects into the
  32131. * destination object. Source properties that resolve to `undefined` are
  32132. * skipped if a destination value exists. Array and plain object properties
  32133. * are merged recursively. Other objects and value types are overridden by
  32134. * assignment. Source objects are applied from left to right. Subsequent
  32135. * sources overwrite property assignments of previous sources.
  32136. *
  32137. * **Note:** This method mutates `object`.
  32138. *
  32139. * @static
  32140. * @memberOf _
  32141. * @since 0.5.0
  32142. * @category Object
  32143. * @param {Object} object The destination object.
  32144. * @param {...Object} [sources] The source objects.
  32145. * @returns {Object} Returns `object`.
  32146. * @example
  32147. *
  32148. * var object = {
  32149. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  32150. * };
  32151. *
  32152. * var other = {
  32153. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  32154. * };
  32155. *
  32156. * _.merge(object, other);
  32157. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  32158. */
  32159. var merge = createAssigner(function(object, source, srcIndex) {
  32160. baseMerge(object, source, srcIndex);
  32161. });
  32162. module.exports = merge;
  32163. /***/ }),
  32164. /***/ "../../node_modules/lodash/min.js":
  32165. /*!******************************************************!*\
  32166. !*** C:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  32167. \******************************************************/
  32168. /*! no static exports found */
  32169. /***/ (function(module, exports, __webpack_require__) {
  32170. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32171. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  32172. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32173. /**
  32174. * Computes the minimum value of `array`. If `array` is empty or falsey,
  32175. * `undefined` is returned.
  32176. *
  32177. * @static
  32178. * @since 0.1.0
  32179. * @memberOf _
  32180. * @category Math
  32181. * @param {Array} array The array to iterate over.
  32182. * @returns {*} Returns the minimum value.
  32183. * @example
  32184. *
  32185. * _.min([4, 2, 8, 6]);
  32186. * // => 2
  32187. *
  32188. * _.min([]);
  32189. * // => undefined
  32190. */
  32191. function min(array) {
  32192. return (array && array.length)
  32193. ? baseExtremum(array, identity, baseLt)
  32194. : undefined;
  32195. }
  32196. module.exports = min;
  32197. /***/ }),
  32198. /***/ "../../node_modules/lodash/minBy.js":
  32199. /*!********************************************************!*\
  32200. !*** C:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  32201. \********************************************************/
  32202. /*! no static exports found */
  32203. /***/ (function(module, exports, __webpack_require__) {
  32204. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32205. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32206. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  32207. /**
  32208. * This method is like `_.min` except that it accepts `iteratee` which is
  32209. * invoked for each element in `array` to generate the criterion by which
  32210. * the value is ranked. The iteratee is invoked with one argument: (value).
  32211. *
  32212. * @static
  32213. * @memberOf _
  32214. * @since 4.0.0
  32215. * @category Math
  32216. * @param {Array} array The array to iterate over.
  32217. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  32218. * @returns {*} Returns the minimum value.
  32219. * @example
  32220. *
  32221. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  32222. *
  32223. * _.minBy(objects, function(o) { return o.n; });
  32224. * // => { 'n': 1 }
  32225. *
  32226. * // The `_.property` iteratee shorthand.
  32227. * _.minBy(objects, 'n');
  32228. * // => { 'n': 1 }
  32229. */
  32230. function minBy(array, iteratee) {
  32231. return (array && array.length)
  32232. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  32233. : undefined;
  32234. }
  32235. module.exports = minBy;
  32236. /***/ }),
  32237. /***/ "../../node_modules/lodash/noop.js":
  32238. /*!*******************************************************!*\
  32239. !*** C:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  32240. \*******************************************************/
  32241. /*! no static exports found */
  32242. /***/ (function(module, exports) {
  32243. /**
  32244. * This method returns `undefined`.
  32245. *
  32246. * @static
  32247. * @memberOf _
  32248. * @since 2.3.0
  32249. * @category Util
  32250. * @example
  32251. *
  32252. * _.times(2, _.noop);
  32253. * // => [undefined, undefined]
  32254. */
  32255. function noop() {
  32256. // No operation performed.
  32257. }
  32258. module.exports = noop;
  32259. /***/ }),
  32260. /***/ "../../node_modules/lodash/now.js":
  32261. /*!******************************************************!*\
  32262. !*** C:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  32263. \******************************************************/
  32264. /*! no static exports found */
  32265. /***/ (function(module, exports, __webpack_require__) {
  32266. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  32267. /**
  32268. * Gets the timestamp of the number of milliseconds that have elapsed since
  32269. * the Unix epoch (1 January 1970 00:00:00 UTC).
  32270. *
  32271. * @static
  32272. * @memberOf _
  32273. * @since 2.4.0
  32274. * @category Date
  32275. * @returns {number} Returns the timestamp.
  32276. * @example
  32277. *
  32278. * _.defer(function(stamp) {
  32279. * console.log(_.now() - stamp);
  32280. * }, _.now());
  32281. * // => Logs the number of milliseconds it took for the deferred invocation.
  32282. */
  32283. var now = function() {
  32284. return root.Date.now();
  32285. };
  32286. module.exports = now;
  32287. /***/ }),
  32288. /***/ "../../node_modules/lodash/pick.js":
  32289. /*!*******************************************************!*\
  32290. !*** C:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  32291. \*******************************************************/
  32292. /*! no static exports found */
  32293. /***/ (function(module, exports, __webpack_require__) {
  32294. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  32295. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  32296. /**
  32297. * Creates an object composed of the picked `object` properties.
  32298. *
  32299. * @static
  32300. * @since 0.1.0
  32301. * @memberOf _
  32302. * @category Object
  32303. * @param {Object} object The source object.
  32304. * @param {...(string|string[])} [paths] The property paths to pick.
  32305. * @returns {Object} Returns the new object.
  32306. * @example
  32307. *
  32308. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  32309. *
  32310. * _.pick(object, ['a', 'c']);
  32311. * // => { 'a': 1, 'c': 3 }
  32312. */
  32313. var pick = flatRest(function(object, paths) {
  32314. return object == null ? {} : basePick(object, paths);
  32315. });
  32316. module.exports = pick;
  32317. /***/ }),
  32318. /***/ "../../node_modules/lodash/property.js":
  32319. /*!***********************************************************!*\
  32320. !*** C:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  32321. \***********************************************************/
  32322. /*! no static exports found */
  32323. /***/ (function(module, exports, __webpack_require__) {
  32324. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  32325. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  32326. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  32327. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  32328. /**
  32329. * Creates a function that returns the value at `path` of a given object.
  32330. *
  32331. * @static
  32332. * @memberOf _
  32333. * @since 2.4.0
  32334. * @category Util
  32335. * @param {Array|string} path The path of the property to get.
  32336. * @returns {Function} Returns the new accessor function.
  32337. * @example
  32338. *
  32339. * var objects = [
  32340. * { 'a': { 'b': 2 } },
  32341. * { 'a': { 'b': 1 } }
  32342. * ];
  32343. *
  32344. * _.map(objects, _.property('a.b'));
  32345. * // => [2, 1]
  32346. *
  32347. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  32348. * // => [1, 2]
  32349. */
  32350. function property(path) {
  32351. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  32352. }
  32353. module.exports = property;
  32354. /***/ }),
  32355. /***/ "../../node_modules/lodash/range.js":
  32356. /*!********************************************************!*\
  32357. !*** C:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  32358. \********************************************************/
  32359. /*! no static exports found */
  32360. /***/ (function(module, exports, __webpack_require__) {
  32361. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  32362. /**
  32363. * Creates an array of numbers (positive and/or negative) progressing from
  32364. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  32365. * `start` is specified without an `end` or `step`. If `end` is not specified,
  32366. * it's set to `start` with `start` then set to `0`.
  32367. *
  32368. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  32369. * floating-point values which can produce unexpected results.
  32370. *
  32371. * @static
  32372. * @since 0.1.0
  32373. * @memberOf _
  32374. * @category Util
  32375. * @param {number} [start=0] The start of the range.
  32376. * @param {number} end The end of the range.
  32377. * @param {number} [step=1] The value to increment or decrement by.
  32378. * @returns {Array} Returns the range of numbers.
  32379. * @see _.inRange, _.rangeRight
  32380. * @example
  32381. *
  32382. * _.range(4);
  32383. * // => [0, 1, 2, 3]
  32384. *
  32385. * _.range(-4);
  32386. * // => [0, -1, -2, -3]
  32387. *
  32388. * _.range(1, 5);
  32389. * // => [1, 2, 3, 4]
  32390. *
  32391. * _.range(0, 20, 5);
  32392. * // => [0, 5, 10, 15]
  32393. *
  32394. * _.range(0, -4, -1);
  32395. * // => [0, -1, -2, -3]
  32396. *
  32397. * _.range(1, 4, 0);
  32398. * // => [1, 1, 1]
  32399. *
  32400. * _.range(0);
  32401. * // => []
  32402. */
  32403. var range = createRange();
  32404. module.exports = range;
  32405. /***/ }),
  32406. /***/ "../../node_modules/lodash/reduce.js":
  32407. /*!*********************************************************!*\
  32408. !*** C:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  32409. \*********************************************************/
  32410. /*! no static exports found */
  32411. /***/ (function(module, exports, __webpack_require__) {
  32412. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  32413. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  32414. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32415. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  32416. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  32417. /**
  32418. * Reduces `collection` to a value which is the accumulated result of running
  32419. * each element in `collection` thru `iteratee`, where each successive
  32420. * invocation is supplied the return value of the previous. If `accumulator`
  32421. * is not given, the first element of `collection` is used as the initial
  32422. * value. The iteratee is invoked with four arguments:
  32423. * (accumulator, value, index|key, collection).
  32424. *
  32425. * Many lodash methods are guarded to work as iteratees for methods like
  32426. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  32427. *
  32428. * The guarded methods are:
  32429. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  32430. * and `sortBy`
  32431. *
  32432. * @static
  32433. * @memberOf _
  32434. * @since 0.1.0
  32435. * @category Collection
  32436. * @param {Array|Object} collection The collection to iterate over.
  32437. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32438. * @param {*} [accumulator] The initial value.
  32439. * @returns {*} Returns the accumulated value.
  32440. * @see _.reduceRight
  32441. * @example
  32442. *
  32443. * _.reduce([1, 2], function(sum, n) {
  32444. * return sum + n;
  32445. * }, 0);
  32446. * // => 3
  32447. *
  32448. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32449. * (result[value] || (result[value] = [])).push(key);
  32450. * return result;
  32451. * }, {});
  32452. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  32453. */
  32454. function reduce(collection, iteratee, accumulator) {
  32455. var func = isArray(collection) ? arrayReduce : baseReduce,
  32456. initAccum = arguments.length < 3;
  32457. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  32458. }
  32459. module.exports = reduce;
  32460. /***/ }),
  32461. /***/ "../../node_modules/lodash/size.js":
  32462. /*!*******************************************************!*\
  32463. !*** C:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  32464. \*******************************************************/
  32465. /*! no static exports found */
  32466. /***/ (function(module, exports, __webpack_require__) {
  32467. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  32468. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  32469. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  32470. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  32471. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  32472. /** `Object#toString` result references. */
  32473. var mapTag = '[object Map]',
  32474. setTag = '[object Set]';
  32475. /**
  32476. * Gets the size of `collection` by returning its length for array-like
  32477. * values or the number of own enumerable string keyed properties for objects.
  32478. *
  32479. * @static
  32480. * @memberOf _
  32481. * @since 0.1.0
  32482. * @category Collection
  32483. * @param {Array|Object|string} collection The collection to inspect.
  32484. * @returns {number} Returns the collection size.
  32485. * @example
  32486. *
  32487. * _.size([1, 2, 3]);
  32488. * // => 3
  32489. *
  32490. * _.size({ 'a': 1, 'b': 2 });
  32491. * // => 2
  32492. *
  32493. * _.size('pebbles');
  32494. * // => 7
  32495. */
  32496. function size(collection) {
  32497. if (collection == null) {
  32498. return 0;
  32499. }
  32500. if (isArrayLike(collection)) {
  32501. return isString(collection) ? stringSize(collection) : collection.length;
  32502. }
  32503. var tag = getTag(collection);
  32504. if (tag == mapTag || tag == setTag) {
  32505. return collection.size;
  32506. }
  32507. return baseKeys(collection).length;
  32508. }
  32509. module.exports = size;
  32510. /***/ }),
  32511. /***/ "../../node_modules/lodash/sortBy.js":
  32512. /*!*********************************************************!*\
  32513. !*** C:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  32514. \*********************************************************/
  32515. /*! no static exports found */
  32516. /***/ (function(module, exports, __webpack_require__) {
  32517. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32518. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  32519. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32520. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  32521. /**
  32522. * Creates an array of elements, sorted in ascending order by the results of
  32523. * running each element in a collection thru each iteratee. This method
  32524. * performs a stable sort, that is, it preserves the original sort order of
  32525. * equal elements. The iteratees are invoked with one argument: (value).
  32526. *
  32527. * @static
  32528. * @memberOf _
  32529. * @since 0.1.0
  32530. * @category Collection
  32531. * @param {Array|Object} collection The collection to iterate over.
  32532. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  32533. * The iteratees to sort by.
  32534. * @returns {Array} Returns the new sorted array.
  32535. * @example
  32536. *
  32537. * var users = [
  32538. * { 'user': 'fred', 'age': 48 },
  32539. * { 'user': 'barney', 'age': 36 },
  32540. * { 'user': 'fred', 'age': 40 },
  32541. * { 'user': 'barney', 'age': 34 }
  32542. * ];
  32543. *
  32544. * _.sortBy(users, [function(o) { return o.user; }]);
  32545. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  32546. *
  32547. * _.sortBy(users, ['user', 'age']);
  32548. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  32549. */
  32550. var sortBy = baseRest(function(collection, iteratees) {
  32551. if (collection == null) {
  32552. return [];
  32553. }
  32554. var length = iteratees.length;
  32555. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  32556. iteratees = [];
  32557. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  32558. iteratees = [iteratees[0]];
  32559. }
  32560. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  32561. });
  32562. module.exports = sortBy;
  32563. /***/ }),
  32564. /***/ "../../node_modules/lodash/stubArray.js":
  32565. /*!************************************************************!*\
  32566. !*** C:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  32567. \************************************************************/
  32568. /*! no static exports found */
  32569. /***/ (function(module, exports) {
  32570. /**
  32571. * This method returns a new empty array.
  32572. *
  32573. * @static
  32574. * @memberOf _
  32575. * @since 4.13.0
  32576. * @category Util
  32577. * @returns {Array} Returns the new empty array.
  32578. * @example
  32579. *
  32580. * var arrays = _.times(2, _.stubArray);
  32581. *
  32582. * console.log(arrays);
  32583. * // => [[], []]
  32584. *
  32585. * console.log(arrays[0] === arrays[1]);
  32586. * // => false
  32587. */
  32588. function stubArray() {
  32589. return [];
  32590. }
  32591. module.exports = stubArray;
  32592. /***/ }),
  32593. /***/ "../../node_modules/lodash/stubFalse.js":
  32594. /*!************************************************************!*\
  32595. !*** C:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  32596. \************************************************************/
  32597. /*! no static exports found */
  32598. /***/ (function(module, exports) {
  32599. /**
  32600. * This method returns `false`.
  32601. *
  32602. * @static
  32603. * @memberOf _
  32604. * @since 4.13.0
  32605. * @category Util
  32606. * @returns {boolean} Returns `false`.
  32607. * @example
  32608. *
  32609. * _.times(2, _.stubFalse);
  32610. * // => [false, false]
  32611. */
  32612. function stubFalse() {
  32613. return false;
  32614. }
  32615. module.exports = stubFalse;
  32616. /***/ }),
  32617. /***/ "../../node_modules/lodash/toFinite.js":
  32618. /*!***********************************************************!*\
  32619. !*** C:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  32620. \***********************************************************/
  32621. /*! no static exports found */
  32622. /***/ (function(module, exports, __webpack_require__) {
  32623. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  32624. /** Used as references for various `Number` constants. */
  32625. var INFINITY = 1 / 0,
  32626. MAX_INTEGER = 1.7976931348623157e+308;
  32627. /**
  32628. * Converts `value` to a finite number.
  32629. *
  32630. * @static
  32631. * @memberOf _
  32632. * @since 4.12.0
  32633. * @category Lang
  32634. * @param {*} value The value to convert.
  32635. * @returns {number} Returns the converted number.
  32636. * @example
  32637. *
  32638. * _.toFinite(3.2);
  32639. * // => 3.2
  32640. *
  32641. * _.toFinite(Number.MIN_VALUE);
  32642. * // => 5e-324
  32643. *
  32644. * _.toFinite(Infinity);
  32645. * // => 1.7976931348623157e+308
  32646. *
  32647. * _.toFinite('3.2');
  32648. * // => 3.2
  32649. */
  32650. function toFinite(value) {
  32651. if (!value) {
  32652. return value === 0 ? value : 0;
  32653. }
  32654. value = toNumber(value);
  32655. if (value === INFINITY || value === -INFINITY) {
  32656. var sign = (value < 0 ? -1 : 1);
  32657. return sign * MAX_INTEGER;
  32658. }
  32659. return value === value ? value : 0;
  32660. }
  32661. module.exports = toFinite;
  32662. /***/ }),
  32663. /***/ "../../node_modules/lodash/toInteger.js":
  32664. /*!************************************************************!*\
  32665. !*** C:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  32666. \************************************************************/
  32667. /*! no static exports found */
  32668. /***/ (function(module, exports, __webpack_require__) {
  32669. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  32670. /**
  32671. * Converts `value` to an integer.
  32672. *
  32673. * **Note:** This method is loosely based on
  32674. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  32675. *
  32676. * @static
  32677. * @memberOf _
  32678. * @since 4.0.0
  32679. * @category Lang
  32680. * @param {*} value The value to convert.
  32681. * @returns {number} Returns the converted integer.
  32682. * @example
  32683. *
  32684. * _.toInteger(3.2);
  32685. * // => 3
  32686. *
  32687. * _.toInteger(Number.MIN_VALUE);
  32688. * // => 0
  32689. *
  32690. * _.toInteger(Infinity);
  32691. * // => 1.7976931348623157e+308
  32692. *
  32693. * _.toInteger('3.2');
  32694. * // => 3
  32695. */
  32696. function toInteger(value) {
  32697. var result = toFinite(value),
  32698. remainder = result % 1;
  32699. return result === result ? (remainder ? result - remainder : result) : 0;
  32700. }
  32701. module.exports = toInteger;
  32702. /***/ }),
  32703. /***/ "../../node_modules/lodash/toNumber.js":
  32704. /*!***********************************************************!*\
  32705. !*** C:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  32706. \***********************************************************/
  32707. /*! no static exports found */
  32708. /***/ (function(module, exports, __webpack_require__) {
  32709. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32710. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  32711. /** Used as references for various `Number` constants. */
  32712. var NAN = 0 / 0;
  32713. /** Used to match leading and trailing whitespace. */
  32714. var reTrim = /^\s+|\s+$/g;
  32715. /** Used to detect bad signed hexadecimal string values. */
  32716. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  32717. /** Used to detect binary string values. */
  32718. var reIsBinary = /^0b[01]+$/i;
  32719. /** Used to detect octal string values. */
  32720. var reIsOctal = /^0o[0-7]+$/i;
  32721. /** Built-in method references without a dependency on `root`. */
  32722. var freeParseInt = parseInt;
  32723. /**
  32724. * Converts `value` to a number.
  32725. *
  32726. * @static
  32727. * @memberOf _
  32728. * @since 4.0.0
  32729. * @category Lang
  32730. * @param {*} value The value to process.
  32731. * @returns {number} Returns the number.
  32732. * @example
  32733. *
  32734. * _.toNumber(3.2);
  32735. * // => 3.2
  32736. *
  32737. * _.toNumber(Number.MIN_VALUE);
  32738. * // => 5e-324
  32739. *
  32740. * _.toNumber(Infinity);
  32741. * // => Infinity
  32742. *
  32743. * _.toNumber('3.2');
  32744. * // => 3.2
  32745. */
  32746. function toNumber(value) {
  32747. if (typeof value == 'number') {
  32748. return value;
  32749. }
  32750. if (isSymbol(value)) {
  32751. return NAN;
  32752. }
  32753. if (isObject(value)) {
  32754. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  32755. value = isObject(other) ? (other + '') : other;
  32756. }
  32757. if (typeof value != 'string') {
  32758. return value === 0 ? value : +value;
  32759. }
  32760. value = value.replace(reTrim, '');
  32761. var isBinary = reIsBinary.test(value);
  32762. return (isBinary || reIsOctal.test(value))
  32763. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  32764. : (reIsBadHex.test(value) ? NAN : +value);
  32765. }
  32766. module.exports = toNumber;
  32767. /***/ }),
  32768. /***/ "../../node_modules/lodash/toPlainObject.js":
  32769. /*!****************************************************************!*\
  32770. !*** C:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  32771. \****************************************************************/
  32772. /*! no static exports found */
  32773. /***/ (function(module, exports, __webpack_require__) {
  32774. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  32775. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  32776. /**
  32777. * Converts `value` to a plain object flattening inherited enumerable string
  32778. * keyed properties of `value` to own properties of the plain object.
  32779. *
  32780. * @static
  32781. * @memberOf _
  32782. * @since 3.0.0
  32783. * @category Lang
  32784. * @param {*} value The value to convert.
  32785. * @returns {Object} Returns the converted plain object.
  32786. * @example
  32787. *
  32788. * function Foo() {
  32789. * this.b = 2;
  32790. * }
  32791. *
  32792. * Foo.prototype.c = 3;
  32793. *
  32794. * _.assign({ 'a': 1 }, new Foo);
  32795. * // => { 'a': 1, 'b': 2 }
  32796. *
  32797. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  32798. * // => { 'a': 1, 'b': 2, 'c': 3 }
  32799. */
  32800. function toPlainObject(value) {
  32801. return copyObject(value, keysIn(value));
  32802. }
  32803. module.exports = toPlainObject;
  32804. /***/ }),
  32805. /***/ "../../node_modules/lodash/toString.js":
  32806. /*!***********************************************************!*\
  32807. !*** C:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  32808. \***********************************************************/
  32809. /*! no static exports found */
  32810. /***/ (function(module, exports, __webpack_require__) {
  32811. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  32812. /**
  32813. * Converts `value` to a string. An empty string is returned for `null`
  32814. * and `undefined` values. The sign of `-0` is preserved.
  32815. *
  32816. * @static
  32817. * @memberOf _
  32818. * @since 4.0.0
  32819. * @category Lang
  32820. * @param {*} value The value to convert.
  32821. * @returns {string} Returns the converted string.
  32822. * @example
  32823. *
  32824. * _.toString(null);
  32825. * // => ''
  32826. *
  32827. * _.toString(-0);
  32828. * // => '-0'
  32829. *
  32830. * _.toString([1, 2, 3]);
  32831. * // => '1,2,3'
  32832. */
  32833. function toString(value) {
  32834. return value == null ? '' : baseToString(value);
  32835. }
  32836. module.exports = toString;
  32837. /***/ }),
  32838. /***/ "../../node_modules/lodash/transform.js":
  32839. /*!************************************************************!*\
  32840. !*** C:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  32841. \************************************************************/
  32842. /*! no static exports found */
  32843. /***/ (function(module, exports, __webpack_require__) {
  32844. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  32845. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  32846. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  32847. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32848. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  32849. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  32850. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  32851. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  32852. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32853. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  32854. /**
  32855. * An alternative to `_.reduce`; this method transforms `object` to a new
  32856. * `accumulator` object which is the result of running each of its own
  32857. * enumerable string keyed properties thru `iteratee`, with each invocation
  32858. * potentially mutating the `accumulator` object. If `accumulator` is not
  32859. * provided, a new object with the same `[[Prototype]]` will be used. The
  32860. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  32861. * Iteratee functions may exit iteration early by explicitly returning `false`.
  32862. *
  32863. * @static
  32864. * @memberOf _
  32865. * @since 1.3.0
  32866. * @category Object
  32867. * @param {Object} object The object to iterate over.
  32868. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32869. * @param {*} [accumulator] The custom accumulator value.
  32870. * @returns {*} Returns the accumulated value.
  32871. * @example
  32872. *
  32873. * _.transform([2, 3, 4], function(result, n) {
  32874. * result.push(n *= n);
  32875. * return n % 2 == 0;
  32876. * }, []);
  32877. * // => [4, 9]
  32878. *
  32879. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32880. * (result[value] || (result[value] = [])).push(key);
  32881. * }, {});
  32882. * // => { '1': ['a', 'c'], '2': ['b'] }
  32883. */
  32884. function transform(object, iteratee, accumulator) {
  32885. var isArr = isArray(object),
  32886. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  32887. iteratee = baseIteratee(iteratee, 4);
  32888. if (accumulator == null) {
  32889. var Ctor = object && object.constructor;
  32890. if (isArrLike) {
  32891. accumulator = isArr ? new Ctor : [];
  32892. }
  32893. else if (isObject(object)) {
  32894. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  32895. }
  32896. else {
  32897. accumulator = {};
  32898. }
  32899. }
  32900. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  32901. return iteratee(accumulator, value, index, object);
  32902. });
  32903. return accumulator;
  32904. }
  32905. module.exports = transform;
  32906. /***/ }),
  32907. /***/ "../../node_modules/lodash/union.js":
  32908. /*!********************************************************!*\
  32909. !*** C:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  32910. \********************************************************/
  32911. /*! no static exports found */
  32912. /***/ (function(module, exports, __webpack_require__) {
  32913. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32914. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32915. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  32916. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  32917. /**
  32918. * Creates an array of unique values, in order, from all given arrays using
  32919. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  32920. * for equality comparisons.
  32921. *
  32922. * @static
  32923. * @memberOf _
  32924. * @since 0.1.0
  32925. * @category Array
  32926. * @param {...Array} [arrays] The arrays to inspect.
  32927. * @returns {Array} Returns the new array of combined values.
  32928. * @example
  32929. *
  32930. * _.union([2], [1, 2]);
  32931. * // => [2, 1]
  32932. */
  32933. var union = baseRest(function(arrays) {
  32934. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  32935. });
  32936. module.exports = union;
  32937. /***/ }),
  32938. /***/ "../../node_modules/lodash/uniqueId.js":
  32939. /*!***********************************************************!*\
  32940. !*** C:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  32941. \***********************************************************/
  32942. /*! no static exports found */
  32943. /***/ (function(module, exports, __webpack_require__) {
  32944. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  32945. /** Used to generate unique IDs. */
  32946. var idCounter = 0;
  32947. /**
  32948. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  32949. *
  32950. * @static
  32951. * @since 0.1.0
  32952. * @memberOf _
  32953. * @category Util
  32954. * @param {string} [prefix=''] The value to prefix the ID with.
  32955. * @returns {string} Returns the unique ID.
  32956. * @example
  32957. *
  32958. * _.uniqueId('contact_');
  32959. * // => 'contact_104'
  32960. *
  32961. * _.uniqueId();
  32962. * // => '105'
  32963. */
  32964. function uniqueId(prefix) {
  32965. var id = ++idCounter;
  32966. return toString(prefix) + id;
  32967. }
  32968. module.exports = uniqueId;
  32969. /***/ }),
  32970. /***/ "../../node_modules/lodash/values.js":
  32971. /*!*********************************************************!*\
  32972. !*** C:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  32973. \*********************************************************/
  32974. /*! no static exports found */
  32975. /***/ (function(module, exports, __webpack_require__) {
  32976. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  32977. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  32978. /**
  32979. * Creates an array of the own enumerable string keyed property values of `object`.
  32980. *
  32981. * **Note:** Non-object values are coerced to objects.
  32982. *
  32983. * @static
  32984. * @since 0.1.0
  32985. * @memberOf _
  32986. * @category Object
  32987. * @param {Object} object The object to query.
  32988. * @returns {Array} Returns the array of property values.
  32989. * @example
  32990. *
  32991. * function Foo() {
  32992. * this.a = 1;
  32993. * this.b = 2;
  32994. * }
  32995. *
  32996. * Foo.prototype.c = 3;
  32997. *
  32998. * _.values(new Foo);
  32999. * // => [1, 2] (iteration order is not guaranteed)
  33000. *
  33001. * _.values('hi');
  33002. * // => ['h', 'i']
  33003. */
  33004. function values(object) {
  33005. return object == null ? [] : baseValues(object, keys(object));
  33006. }
  33007. module.exports = values;
  33008. /***/ }),
  33009. /***/ "../../node_modules/lodash/zipObject.js":
  33010. /*!************************************************************!*\
  33011. !*** C:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  33012. \************************************************************/
  33013. /*! no static exports found */
  33014. /***/ (function(module, exports, __webpack_require__) {
  33015. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  33016. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  33017. /**
  33018. * This method is like `_.fromPairs` except that it accepts two arrays,
  33019. * one of property identifiers and one of corresponding values.
  33020. *
  33021. * @static
  33022. * @memberOf _
  33023. * @since 0.4.0
  33024. * @category Array
  33025. * @param {Array} [props=[]] The property identifiers.
  33026. * @param {Array} [values=[]] The property values.
  33027. * @returns {Object} Returns the new object.
  33028. * @example
  33029. *
  33030. * _.zipObject(['a', 'b'], [1, 2]);
  33031. * // => { 'a': 1, 'b': 2 }
  33032. */
  33033. function zipObject(props, values) {
  33034. return baseZipObject(props || [], values || [], assignValue);
  33035. }
  33036. module.exports = zipObject;
  33037. /***/ }),
  33038. /***/ "../../node_modules/object-assign/index.js":
  33039. /*!***************************************************************!*\
  33040. !*** C:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  33041. \***************************************************************/
  33042. /*! no static exports found */
  33043. /***/ (function(module, exports, __webpack_require__) {
  33044. "use strict";
  33045. /*
  33046. object-assign
  33047. (c) Sindre Sorhus
  33048. @license MIT
  33049. */
  33050. /* eslint-disable no-unused-vars */
  33051. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  33052. var hasOwnProperty = Object.prototype.hasOwnProperty;
  33053. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  33054. function toObject(val) {
  33055. if (val === null || val === undefined) {
  33056. throw new TypeError('Object.assign cannot be called with null or undefined');
  33057. }
  33058. return Object(val);
  33059. }
  33060. function shouldUseNative() {
  33061. try {
  33062. if (!Object.assign) {
  33063. return false;
  33064. }
  33065. // Detect buggy property enumeration order in older V8 versions.
  33066. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  33067. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  33068. test1[5] = 'de';
  33069. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  33070. return false;
  33071. }
  33072. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33073. var test2 = {};
  33074. for (var i = 0; i < 10; i++) {
  33075. test2['_' + String.fromCharCode(i)] = i;
  33076. }
  33077. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  33078. return test2[n];
  33079. });
  33080. if (order2.join('') !== '0123456789') {
  33081. return false;
  33082. }
  33083. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33084. var test3 = {};
  33085. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  33086. test3[letter] = letter;
  33087. });
  33088. if (Object.keys(Object.assign({}, test3)).join('') !==
  33089. 'abcdefghijklmnopqrst') {
  33090. return false;
  33091. }
  33092. return true;
  33093. } catch (err) {
  33094. // We don't expect any of the above to throw, but better to be safe.
  33095. return false;
  33096. }
  33097. }
  33098. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  33099. var from;
  33100. var to = toObject(target);
  33101. var symbols;
  33102. for (var s = 1; s < arguments.length; s++) {
  33103. from = Object(arguments[s]);
  33104. for (var key in from) {
  33105. if (hasOwnProperty.call(from, key)) {
  33106. to[key] = from[key];
  33107. }
  33108. }
  33109. if (getOwnPropertySymbols) {
  33110. symbols = getOwnPropertySymbols(from);
  33111. for (var i = 0; i < symbols.length; i++) {
  33112. if (propIsEnumerable.call(from, symbols[i])) {
  33113. to[symbols[i]] = from[symbols[i]];
  33114. }
  33115. }
  33116. }
  33117. }
  33118. return to;
  33119. };
  33120. /***/ }),
  33121. /***/ "../../node_modules/process/browser.js":
  33122. /*!***********************************************************!*\
  33123. !*** C:/Repos/Babylon.js/node_modules/process/browser.js ***!
  33124. \***********************************************************/
  33125. /*! no static exports found */
  33126. /***/ (function(module, exports) {
  33127. // shim for using process in browser
  33128. var process = module.exports = {};
  33129. // cached from whatever global is present so that test runners that stub it
  33130. // don't break things. But we need to wrap it in a try catch in case it is
  33131. // wrapped in strict mode code which doesn't define any globals. It's inside a
  33132. // function because try/catches deoptimize in certain engines.
  33133. var cachedSetTimeout;
  33134. var cachedClearTimeout;
  33135. function defaultSetTimout() {
  33136. throw new Error('setTimeout has not been defined');
  33137. }
  33138. function defaultClearTimeout () {
  33139. throw new Error('clearTimeout has not been defined');
  33140. }
  33141. (function () {
  33142. try {
  33143. if (typeof setTimeout === 'function') {
  33144. cachedSetTimeout = setTimeout;
  33145. } else {
  33146. cachedSetTimeout = defaultSetTimout;
  33147. }
  33148. } catch (e) {
  33149. cachedSetTimeout = defaultSetTimout;
  33150. }
  33151. try {
  33152. if (typeof clearTimeout === 'function') {
  33153. cachedClearTimeout = clearTimeout;
  33154. } else {
  33155. cachedClearTimeout = defaultClearTimeout;
  33156. }
  33157. } catch (e) {
  33158. cachedClearTimeout = defaultClearTimeout;
  33159. }
  33160. } ())
  33161. function runTimeout(fun) {
  33162. if (cachedSetTimeout === setTimeout) {
  33163. //normal enviroments in sane situations
  33164. return setTimeout(fun, 0);
  33165. }
  33166. // if setTimeout wasn't available but was latter defined
  33167. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  33168. cachedSetTimeout = setTimeout;
  33169. return setTimeout(fun, 0);
  33170. }
  33171. try {
  33172. // when when somebody has screwed with setTimeout but no I.E. maddness
  33173. return cachedSetTimeout(fun, 0);
  33174. } catch(e){
  33175. try {
  33176. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33177. return cachedSetTimeout.call(null, fun, 0);
  33178. } catch(e){
  33179. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  33180. return cachedSetTimeout.call(this, fun, 0);
  33181. }
  33182. }
  33183. }
  33184. function runClearTimeout(marker) {
  33185. if (cachedClearTimeout === clearTimeout) {
  33186. //normal enviroments in sane situations
  33187. return clearTimeout(marker);
  33188. }
  33189. // if clearTimeout wasn't available but was latter defined
  33190. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  33191. cachedClearTimeout = clearTimeout;
  33192. return clearTimeout(marker);
  33193. }
  33194. try {
  33195. // when when somebody has screwed with setTimeout but no I.E. maddness
  33196. return cachedClearTimeout(marker);
  33197. } catch (e){
  33198. try {
  33199. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33200. return cachedClearTimeout.call(null, marker);
  33201. } catch (e){
  33202. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  33203. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  33204. return cachedClearTimeout.call(this, marker);
  33205. }
  33206. }
  33207. }
  33208. var queue = [];
  33209. var draining = false;
  33210. var currentQueue;
  33211. var queueIndex = -1;
  33212. function cleanUpNextTick() {
  33213. if (!draining || !currentQueue) {
  33214. return;
  33215. }
  33216. draining = false;
  33217. if (currentQueue.length) {
  33218. queue = currentQueue.concat(queue);
  33219. } else {
  33220. queueIndex = -1;
  33221. }
  33222. if (queue.length) {
  33223. drainQueue();
  33224. }
  33225. }
  33226. function drainQueue() {
  33227. if (draining) {
  33228. return;
  33229. }
  33230. var timeout = runTimeout(cleanUpNextTick);
  33231. draining = true;
  33232. var len = queue.length;
  33233. while(len) {
  33234. currentQueue = queue;
  33235. queue = [];
  33236. while (++queueIndex < len) {
  33237. if (currentQueue) {
  33238. currentQueue[queueIndex].run();
  33239. }
  33240. }
  33241. queueIndex = -1;
  33242. len = queue.length;
  33243. }
  33244. currentQueue = null;
  33245. draining = false;
  33246. runClearTimeout(timeout);
  33247. }
  33248. process.nextTick = function (fun) {
  33249. var args = new Array(arguments.length - 1);
  33250. if (arguments.length > 1) {
  33251. for (var i = 1; i < arguments.length; i++) {
  33252. args[i - 1] = arguments[i];
  33253. }
  33254. }
  33255. queue.push(new Item(fun, args));
  33256. if (queue.length === 1 && !draining) {
  33257. runTimeout(drainQueue);
  33258. }
  33259. };
  33260. // v8 likes predictible objects
  33261. function Item(fun, array) {
  33262. this.fun = fun;
  33263. this.array = array;
  33264. }
  33265. Item.prototype.run = function () {
  33266. this.fun.apply(null, this.array);
  33267. };
  33268. process.title = 'browser';
  33269. process.browser = true;
  33270. process.env = {};
  33271. process.argv = [];
  33272. process.version = ''; // empty string to avoid regexp issues
  33273. process.versions = {};
  33274. function noop() {}
  33275. process.on = noop;
  33276. process.addListener = noop;
  33277. process.once = noop;
  33278. process.off = noop;
  33279. process.removeListener = noop;
  33280. process.removeAllListeners = noop;
  33281. process.emit = noop;
  33282. process.prependListener = noop;
  33283. process.prependOnceListener = noop;
  33284. process.listeners = function (name) { return [] }
  33285. process.binding = function (name) {
  33286. throw new Error('process.binding is not supported');
  33287. };
  33288. process.cwd = function () { return '/' };
  33289. process.chdir = function (dir) {
  33290. throw new Error('process.chdir is not supported');
  33291. };
  33292. process.umask = function() { return 0; };
  33293. /***/ }),
  33294. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  33295. /*!*********************************************************************!*\
  33296. !*** C:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  33297. \*********************************************************************/
  33298. /*! no static exports found */
  33299. /***/ (function(module, exports, __webpack_require__) {
  33300. "use strict";
  33301. /**
  33302. * Copyright (c) 2013-present, Facebook, Inc.
  33303. *
  33304. * This source code is licensed under the MIT license found in the
  33305. * LICENSE file in the root directory of this source tree.
  33306. */
  33307. var printWarning = function() {};
  33308. if (true) {
  33309. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33310. var loggedTypeFailures = {};
  33311. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  33312. printWarning = function(text) {
  33313. var message = 'Warning: ' + text;
  33314. if (typeof console !== 'undefined') {
  33315. console.error(message);
  33316. }
  33317. try {
  33318. // --- Welcome to debugging React ---
  33319. // This error was thrown as a convenience so that you can use this stack
  33320. // to find the callsite that caused this warning to fire.
  33321. throw new Error(message);
  33322. } catch (x) {}
  33323. };
  33324. }
  33325. /**
  33326. * Assert that the values match with the type specs.
  33327. * Error messages are memorized and will only be shown once.
  33328. *
  33329. * @param {object} typeSpecs Map of name to a ReactPropType
  33330. * @param {object} values Runtime values that need to be type-checked
  33331. * @param {string} location e.g. "prop", "context", "child context"
  33332. * @param {string} componentName Name of the component for error messages.
  33333. * @param {?Function} getStack Returns the component stack.
  33334. * @private
  33335. */
  33336. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  33337. if (true) {
  33338. for (var typeSpecName in typeSpecs) {
  33339. if (has(typeSpecs, typeSpecName)) {
  33340. var error;
  33341. // Prop type validation may throw. In case they do, we don't want to
  33342. // fail the render phase where it didn't fail before. So we log it.
  33343. // After these have been cleaned up, we'll let them throw.
  33344. try {
  33345. // This is intentionally an invariant that gets caught. It's the same
  33346. // behavior as without this statement except with a better message.
  33347. if (typeof typeSpecs[typeSpecName] !== 'function') {
  33348. var err = Error(
  33349. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  33350. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  33351. );
  33352. err.name = 'Invariant Violation';
  33353. throw err;
  33354. }
  33355. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  33356. } catch (ex) {
  33357. error = ex;
  33358. }
  33359. if (error && !(error instanceof Error)) {
  33360. printWarning(
  33361. (componentName || 'React class') + ': type specification of ' +
  33362. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  33363. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  33364. 'You may have forgotten to pass an argument to the type checker ' +
  33365. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  33366. 'shape all require an argument).'
  33367. );
  33368. }
  33369. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  33370. // Only monitor this failure once because there tends to be a lot of the
  33371. // same error.
  33372. loggedTypeFailures[error.message] = true;
  33373. var stack = getStack ? getStack() : '';
  33374. printWarning(
  33375. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  33376. );
  33377. }
  33378. }
  33379. }
  33380. }
  33381. }
  33382. /**
  33383. * Resets warning cache when testing.
  33384. *
  33385. * @private
  33386. */
  33387. checkPropTypes.resetWarningCache = function() {
  33388. if (true) {
  33389. loggedTypeFailures = {};
  33390. }
  33391. }
  33392. module.exports = checkPropTypes;
  33393. /***/ }),
  33394. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  33395. /*!******************************************************************************!*\
  33396. !*** C:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  33397. \******************************************************************************/
  33398. /*! no static exports found */
  33399. /***/ (function(module, exports, __webpack_require__) {
  33400. "use strict";
  33401. /**
  33402. * Copyright (c) 2013-present, Facebook, Inc.
  33403. *
  33404. * This source code is licensed under the MIT license found in the
  33405. * LICENSE file in the root directory of this source tree.
  33406. */
  33407. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  33408. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33409. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33410. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33411. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  33412. var printWarning = function() {};
  33413. if (true) {
  33414. printWarning = function(text) {
  33415. var message = 'Warning: ' + text;
  33416. if (typeof console !== 'undefined') {
  33417. console.error(message);
  33418. }
  33419. try {
  33420. // --- Welcome to debugging React ---
  33421. // This error was thrown as a convenience so that you can use this stack
  33422. // to find the callsite that caused this warning to fire.
  33423. throw new Error(message);
  33424. } catch (x) {}
  33425. };
  33426. }
  33427. function emptyFunctionThatReturnsNull() {
  33428. return null;
  33429. }
  33430. module.exports = function(isValidElement, throwOnDirectAccess) {
  33431. /* global Symbol */
  33432. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  33433. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  33434. /**
  33435. * Returns the iterator method function contained on the iterable object.
  33436. *
  33437. * Be sure to invoke the function with the iterable as context:
  33438. *
  33439. * var iteratorFn = getIteratorFn(myIterable);
  33440. * if (iteratorFn) {
  33441. * var iterator = iteratorFn.call(myIterable);
  33442. * ...
  33443. * }
  33444. *
  33445. * @param {?object} maybeIterable
  33446. * @return {?function}
  33447. */
  33448. function getIteratorFn(maybeIterable) {
  33449. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  33450. if (typeof iteratorFn === 'function') {
  33451. return iteratorFn;
  33452. }
  33453. }
  33454. /**
  33455. * Collection of methods that allow declaration and validation of props that are
  33456. * supplied to React components. Example usage:
  33457. *
  33458. * var Props = require('ReactPropTypes');
  33459. * var MyArticle = React.createClass({
  33460. * propTypes: {
  33461. * // An optional string prop named "description".
  33462. * description: Props.string,
  33463. *
  33464. * // A required enum prop named "category".
  33465. * category: Props.oneOf(['News','Photos']).isRequired,
  33466. *
  33467. * // A prop named "dialog" that requires an instance of Dialog.
  33468. * dialog: Props.instanceOf(Dialog).isRequired
  33469. * },
  33470. * render: function() { ... }
  33471. * });
  33472. *
  33473. * A more formal specification of how these methods are used:
  33474. *
  33475. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  33476. * decl := ReactPropTypes.{type}(.isRequired)?
  33477. *
  33478. * Each and every declaration produces a function with the same signature. This
  33479. * allows the creation of custom validation functions. For example:
  33480. *
  33481. * var MyLink = React.createClass({
  33482. * propTypes: {
  33483. * // An optional string or URI prop named "href".
  33484. * href: function(props, propName, componentName) {
  33485. * var propValue = props[propName];
  33486. * if (propValue != null && typeof propValue !== 'string' &&
  33487. * !(propValue instanceof URI)) {
  33488. * return new Error(
  33489. * 'Expected a string or an URI for ' + propName + ' in ' +
  33490. * componentName
  33491. * );
  33492. * }
  33493. * }
  33494. * },
  33495. * render: function() {...}
  33496. * });
  33497. *
  33498. * @internal
  33499. */
  33500. var ANONYMOUS = '<<anonymous>>';
  33501. // Important!
  33502. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  33503. var ReactPropTypes = {
  33504. array: createPrimitiveTypeChecker('array'),
  33505. bool: createPrimitiveTypeChecker('boolean'),
  33506. func: createPrimitiveTypeChecker('function'),
  33507. number: createPrimitiveTypeChecker('number'),
  33508. object: createPrimitiveTypeChecker('object'),
  33509. string: createPrimitiveTypeChecker('string'),
  33510. symbol: createPrimitiveTypeChecker('symbol'),
  33511. any: createAnyTypeChecker(),
  33512. arrayOf: createArrayOfTypeChecker,
  33513. element: createElementTypeChecker(),
  33514. elementType: createElementTypeTypeChecker(),
  33515. instanceOf: createInstanceTypeChecker,
  33516. node: createNodeChecker(),
  33517. objectOf: createObjectOfTypeChecker,
  33518. oneOf: createEnumTypeChecker,
  33519. oneOfType: createUnionTypeChecker,
  33520. shape: createShapeTypeChecker,
  33521. exact: createStrictShapeTypeChecker,
  33522. };
  33523. /**
  33524. * inlined Object.is polyfill to avoid requiring consumers ship their own
  33525. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  33526. */
  33527. /*eslint-disable no-self-compare*/
  33528. function is(x, y) {
  33529. // SameValue algorithm
  33530. if (x === y) {
  33531. // Steps 1-5, 7-10
  33532. // Steps 6.b-6.e: +0 != -0
  33533. return x !== 0 || 1 / x === 1 / y;
  33534. } else {
  33535. // Step 6.a: NaN == NaN
  33536. return x !== x && y !== y;
  33537. }
  33538. }
  33539. /*eslint-enable no-self-compare*/
  33540. /**
  33541. * We use an Error-like object for backward compatibility as people may call
  33542. * PropTypes directly and inspect their output. However, we don't use real
  33543. * Errors anymore. We don't inspect their stack anyway, and creating them
  33544. * is prohibitively expensive if they are created too often, such as what
  33545. * happens in oneOfType() for any type before the one that matched.
  33546. */
  33547. function PropTypeError(message) {
  33548. this.message = message;
  33549. this.stack = '';
  33550. }
  33551. // Make `instanceof Error` still work for returned errors.
  33552. PropTypeError.prototype = Error.prototype;
  33553. function createChainableTypeChecker(validate) {
  33554. if (true) {
  33555. var manualPropTypeCallCache = {};
  33556. var manualPropTypeWarningCount = 0;
  33557. }
  33558. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  33559. componentName = componentName || ANONYMOUS;
  33560. propFullName = propFullName || propName;
  33561. if (secret !== ReactPropTypesSecret) {
  33562. if (throwOnDirectAccess) {
  33563. // New behavior only for users of `prop-types` package
  33564. var err = new Error(
  33565. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  33566. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  33567. 'Read more at http://fb.me/use-check-prop-types'
  33568. );
  33569. err.name = 'Invariant Violation';
  33570. throw err;
  33571. } else if ( true && typeof console !== 'undefined') {
  33572. // Old behavior for people using React.PropTypes
  33573. var cacheKey = componentName + ':' + propName;
  33574. if (
  33575. !manualPropTypeCallCache[cacheKey] &&
  33576. // Avoid spamming the console because they are often not actionable except for lib authors
  33577. manualPropTypeWarningCount < 3
  33578. ) {
  33579. printWarning(
  33580. 'You are manually calling a React.PropTypes validation ' +
  33581. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  33582. 'and will throw in the standalone `prop-types` package. ' +
  33583. 'You may be seeing this warning due to a third-party PropTypes ' +
  33584. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  33585. );
  33586. manualPropTypeCallCache[cacheKey] = true;
  33587. manualPropTypeWarningCount++;
  33588. }
  33589. }
  33590. }
  33591. if (props[propName] == null) {
  33592. if (isRequired) {
  33593. if (props[propName] === null) {
  33594. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  33595. }
  33596. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  33597. }
  33598. return null;
  33599. } else {
  33600. return validate(props, propName, componentName, location, propFullName);
  33601. }
  33602. }
  33603. var chainedCheckType = checkType.bind(null, false);
  33604. chainedCheckType.isRequired = checkType.bind(null, true);
  33605. return chainedCheckType;
  33606. }
  33607. function createPrimitiveTypeChecker(expectedType) {
  33608. function validate(props, propName, componentName, location, propFullName, secret) {
  33609. var propValue = props[propName];
  33610. var propType = getPropType(propValue);
  33611. if (propType !== expectedType) {
  33612. // `propValue` being instance of, say, date/regexp, pass the 'object'
  33613. // check, but we can offer a more precise error message here rather than
  33614. // 'of type `object`'.
  33615. var preciseType = getPreciseType(propValue);
  33616. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  33617. }
  33618. return null;
  33619. }
  33620. return createChainableTypeChecker(validate);
  33621. }
  33622. function createAnyTypeChecker() {
  33623. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  33624. }
  33625. function createArrayOfTypeChecker(typeChecker) {
  33626. function validate(props, propName, componentName, location, propFullName) {
  33627. if (typeof typeChecker !== 'function') {
  33628. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  33629. }
  33630. var propValue = props[propName];
  33631. if (!Array.isArray(propValue)) {
  33632. var propType = getPropType(propValue);
  33633. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  33634. }
  33635. for (var i = 0; i < propValue.length; i++) {
  33636. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  33637. if (error instanceof Error) {
  33638. return error;
  33639. }
  33640. }
  33641. return null;
  33642. }
  33643. return createChainableTypeChecker(validate);
  33644. }
  33645. function createElementTypeChecker() {
  33646. function validate(props, propName, componentName, location, propFullName) {
  33647. var propValue = props[propName];
  33648. if (!isValidElement(propValue)) {
  33649. var propType = getPropType(propValue);
  33650. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  33651. }
  33652. return null;
  33653. }
  33654. return createChainableTypeChecker(validate);
  33655. }
  33656. function createElementTypeTypeChecker() {
  33657. function validate(props, propName, componentName, location, propFullName) {
  33658. var propValue = props[propName];
  33659. if (!ReactIs.isValidElementType(propValue)) {
  33660. var propType = getPropType(propValue);
  33661. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  33662. }
  33663. return null;
  33664. }
  33665. return createChainableTypeChecker(validate);
  33666. }
  33667. function createInstanceTypeChecker(expectedClass) {
  33668. function validate(props, propName, componentName, location, propFullName) {
  33669. if (!(props[propName] instanceof expectedClass)) {
  33670. var expectedClassName = expectedClass.name || ANONYMOUS;
  33671. var actualClassName = getClassName(props[propName]);
  33672. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  33673. }
  33674. return null;
  33675. }
  33676. return createChainableTypeChecker(validate);
  33677. }
  33678. function createEnumTypeChecker(expectedValues) {
  33679. if (!Array.isArray(expectedValues)) {
  33680. if (true) {
  33681. if (arguments.length > 1) {
  33682. printWarning(
  33683. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  33684. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  33685. );
  33686. } else {
  33687. printWarning('Invalid argument supplied to oneOf, expected an array.');
  33688. }
  33689. }
  33690. return emptyFunctionThatReturnsNull;
  33691. }
  33692. function validate(props, propName, componentName, location, propFullName) {
  33693. var propValue = props[propName];
  33694. for (var i = 0; i < expectedValues.length; i++) {
  33695. if (is(propValue, expectedValues[i])) {
  33696. return null;
  33697. }
  33698. }
  33699. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  33700. var type = getPreciseType(value);
  33701. if (type === 'symbol') {
  33702. return String(value);
  33703. }
  33704. return value;
  33705. });
  33706. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  33707. }
  33708. return createChainableTypeChecker(validate);
  33709. }
  33710. function createObjectOfTypeChecker(typeChecker) {
  33711. function validate(props, propName, componentName, location, propFullName) {
  33712. if (typeof typeChecker !== 'function') {
  33713. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  33714. }
  33715. var propValue = props[propName];
  33716. var propType = getPropType(propValue);
  33717. if (propType !== 'object') {
  33718. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  33719. }
  33720. for (var key in propValue) {
  33721. if (has(propValue, key)) {
  33722. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33723. if (error instanceof Error) {
  33724. return error;
  33725. }
  33726. }
  33727. }
  33728. return null;
  33729. }
  33730. return createChainableTypeChecker(validate);
  33731. }
  33732. function createUnionTypeChecker(arrayOfTypeCheckers) {
  33733. if (!Array.isArray(arrayOfTypeCheckers)) {
  33734. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  33735. return emptyFunctionThatReturnsNull;
  33736. }
  33737. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33738. var checker = arrayOfTypeCheckers[i];
  33739. if (typeof checker !== 'function') {
  33740. printWarning(
  33741. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  33742. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  33743. );
  33744. return emptyFunctionThatReturnsNull;
  33745. }
  33746. }
  33747. function validate(props, propName, componentName, location, propFullName) {
  33748. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33749. var checker = arrayOfTypeCheckers[i];
  33750. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  33751. return null;
  33752. }
  33753. }
  33754. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  33755. }
  33756. return createChainableTypeChecker(validate);
  33757. }
  33758. function createNodeChecker() {
  33759. function validate(props, propName, componentName, location, propFullName) {
  33760. if (!isNode(props[propName])) {
  33761. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  33762. }
  33763. return null;
  33764. }
  33765. return createChainableTypeChecker(validate);
  33766. }
  33767. function createShapeTypeChecker(shapeTypes) {
  33768. function validate(props, propName, componentName, location, propFullName) {
  33769. var propValue = props[propName];
  33770. var propType = getPropType(propValue);
  33771. if (propType !== 'object') {
  33772. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33773. }
  33774. for (var key in shapeTypes) {
  33775. var checker = shapeTypes[key];
  33776. if (!checker) {
  33777. continue;
  33778. }
  33779. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33780. if (error) {
  33781. return error;
  33782. }
  33783. }
  33784. return null;
  33785. }
  33786. return createChainableTypeChecker(validate);
  33787. }
  33788. function createStrictShapeTypeChecker(shapeTypes) {
  33789. function validate(props, propName, componentName, location, propFullName) {
  33790. var propValue = props[propName];
  33791. var propType = getPropType(propValue);
  33792. if (propType !== 'object') {
  33793. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33794. }
  33795. // We need to check all keys in case some are required but missing from
  33796. // props.
  33797. var allKeys = assign({}, props[propName], shapeTypes);
  33798. for (var key in allKeys) {
  33799. var checker = shapeTypes[key];
  33800. if (!checker) {
  33801. return new PropTypeError(
  33802. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  33803. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  33804. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  33805. );
  33806. }
  33807. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33808. if (error) {
  33809. return error;
  33810. }
  33811. }
  33812. return null;
  33813. }
  33814. return createChainableTypeChecker(validate);
  33815. }
  33816. function isNode(propValue) {
  33817. switch (typeof propValue) {
  33818. case 'number':
  33819. case 'string':
  33820. case 'undefined':
  33821. return true;
  33822. case 'boolean':
  33823. return !propValue;
  33824. case 'object':
  33825. if (Array.isArray(propValue)) {
  33826. return propValue.every(isNode);
  33827. }
  33828. if (propValue === null || isValidElement(propValue)) {
  33829. return true;
  33830. }
  33831. var iteratorFn = getIteratorFn(propValue);
  33832. if (iteratorFn) {
  33833. var iterator = iteratorFn.call(propValue);
  33834. var step;
  33835. if (iteratorFn !== propValue.entries) {
  33836. while (!(step = iterator.next()).done) {
  33837. if (!isNode(step.value)) {
  33838. return false;
  33839. }
  33840. }
  33841. } else {
  33842. // Iterator will provide entry [k,v] tuples rather than values.
  33843. while (!(step = iterator.next()).done) {
  33844. var entry = step.value;
  33845. if (entry) {
  33846. if (!isNode(entry[1])) {
  33847. return false;
  33848. }
  33849. }
  33850. }
  33851. }
  33852. } else {
  33853. return false;
  33854. }
  33855. return true;
  33856. default:
  33857. return false;
  33858. }
  33859. }
  33860. function isSymbol(propType, propValue) {
  33861. // Native Symbol.
  33862. if (propType === 'symbol') {
  33863. return true;
  33864. }
  33865. // falsy value can't be a Symbol
  33866. if (!propValue) {
  33867. return false;
  33868. }
  33869. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  33870. if (propValue['@@toStringTag'] === 'Symbol') {
  33871. return true;
  33872. }
  33873. // Fallback for non-spec compliant Symbols which are polyfilled.
  33874. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  33875. return true;
  33876. }
  33877. return false;
  33878. }
  33879. // Equivalent of `typeof` but with special handling for array and regexp.
  33880. function getPropType(propValue) {
  33881. var propType = typeof propValue;
  33882. if (Array.isArray(propValue)) {
  33883. return 'array';
  33884. }
  33885. if (propValue instanceof RegExp) {
  33886. // Old webkits (at least until Android 4.0) return 'function' rather than
  33887. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  33888. // passes PropTypes.object.
  33889. return 'object';
  33890. }
  33891. if (isSymbol(propType, propValue)) {
  33892. return 'symbol';
  33893. }
  33894. return propType;
  33895. }
  33896. // This handles more types than `getPropType`. Only used for error messages.
  33897. // See `createPrimitiveTypeChecker`.
  33898. function getPreciseType(propValue) {
  33899. if (typeof propValue === 'undefined' || propValue === null) {
  33900. return '' + propValue;
  33901. }
  33902. var propType = getPropType(propValue);
  33903. if (propType === 'object') {
  33904. if (propValue instanceof Date) {
  33905. return 'date';
  33906. } else if (propValue instanceof RegExp) {
  33907. return 'regexp';
  33908. }
  33909. }
  33910. return propType;
  33911. }
  33912. // Returns a string that is postfixed to a warning about an invalid type.
  33913. // For example, "undefined" or "of type array"
  33914. function getPostfixForTypeWarning(value) {
  33915. var type = getPreciseType(value);
  33916. switch (type) {
  33917. case 'array':
  33918. case 'object':
  33919. return 'an ' + type;
  33920. case 'boolean':
  33921. case 'date':
  33922. case 'regexp':
  33923. return 'a ' + type;
  33924. default:
  33925. return type;
  33926. }
  33927. }
  33928. // Returns class name of the object, if any.
  33929. function getClassName(propValue) {
  33930. if (!propValue.constructor || !propValue.constructor.name) {
  33931. return ANONYMOUS;
  33932. }
  33933. return propValue.constructor.name;
  33934. }
  33935. ReactPropTypes.checkPropTypes = checkPropTypes;
  33936. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  33937. ReactPropTypes.PropTypes = ReactPropTypes;
  33938. return ReactPropTypes;
  33939. };
  33940. /***/ }),
  33941. /***/ "../../node_modules/prop-types/index.js":
  33942. /*!************************************************************!*\
  33943. !*** C:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  33944. \************************************************************/
  33945. /*! no static exports found */
  33946. /***/ (function(module, exports, __webpack_require__) {
  33947. /**
  33948. * Copyright (c) 2013-present, Facebook, Inc.
  33949. *
  33950. * This source code is licensed under the MIT license found in the
  33951. * LICENSE file in the root directory of this source tree.
  33952. */
  33953. if (true) {
  33954. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  33955. // By explicitly using `prop-types` you are opting into new development behavior.
  33956. // http://fb.me/prop-types-in-prod
  33957. var throwOnDirectAccess = true;
  33958. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  33959. } else {}
  33960. /***/ }),
  33961. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  33962. /*!*******************************************************************************!*\
  33963. !*** C:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  33964. \*******************************************************************************/
  33965. /*! no static exports found */
  33966. /***/ (function(module, exports, __webpack_require__) {
  33967. "use strict";
  33968. /**
  33969. * Copyright (c) 2013-present, Facebook, Inc.
  33970. *
  33971. * This source code is licensed under the MIT license found in the
  33972. * LICENSE file in the root directory of this source tree.
  33973. */
  33974. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  33975. module.exports = ReactPropTypesSecret;
  33976. /***/ }),
  33977. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  33978. /*!*******************************************************************************!*\
  33979. !*** C:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  33980. \*******************************************************************************/
  33981. /*! no static exports found */
  33982. /***/ (function(module, exports, __webpack_require__) {
  33983. "use strict";
  33984. /** @license React v16.9.0
  33985. * react-dom.development.js
  33986. *
  33987. * Copyright (c) Facebook, Inc. and its affiliates.
  33988. *
  33989. * This source code is licensed under the MIT license found in the
  33990. * LICENSE file in the root directory of this source tree.
  33991. */
  33992. if (true) {
  33993. (function() {
  33994. 'use strict';
  33995. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  33996. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33997. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33998. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  33999. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  34000. // Do not require this module directly! Use normal `invariant` calls with
  34001. // template literal strings. The messages will be converted to ReactError during
  34002. // build, and in production they will be minified.
  34003. // Do not require this module directly! Use normal `invariant` calls with
  34004. // template literal strings. The messages will be converted to ReactError during
  34005. // build, and in production they will be minified.
  34006. function ReactError(error) {
  34007. error.name = 'Invariant Violation';
  34008. return error;
  34009. }
  34010. /**
  34011. * Use invariant() to assert state which your program assumes to be true.
  34012. *
  34013. * Provide sprintf-style format (only %s is supported) and arguments
  34014. * to provide information about what broke and what you were
  34015. * expecting.
  34016. *
  34017. * The invariant message will be stripped in production, but the invariant
  34018. * will remain to ensure logic does not differ in production.
  34019. */
  34020. (function () {
  34021. if (!React) {
  34022. {
  34023. throw ReactError(Error('ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.'));
  34024. }
  34025. }
  34026. })();
  34027. /**
  34028. * Injectable ordering of event plugins.
  34029. */
  34030. var eventPluginOrder = null;
  34031. /**
  34032. * Injectable mapping from names to event plugin modules.
  34033. */
  34034. var namesToPlugins = {};
  34035. /**
  34036. * Recomputes the plugin list using the injected plugins and plugin ordering.
  34037. *
  34038. * @private
  34039. */
  34040. function recomputePluginOrdering() {
  34041. if (!eventPluginOrder) {
  34042. // Wait until an `eventPluginOrder` is injected.
  34043. return;
  34044. }
  34045. for (var pluginName in namesToPlugins) {
  34046. var pluginModule = namesToPlugins[pluginName];
  34047. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  34048. (function () {
  34049. if (!(pluginIndex > -1)) {
  34050. {
  34051. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `' + pluginName + '`.'));
  34052. }
  34053. }
  34054. })();
  34055. if (plugins[pluginIndex]) {
  34056. continue;
  34057. }
  34058. (function () {
  34059. if (!pluginModule.extractEvents) {
  34060. {
  34061. throw ReactError(Error('EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `' + pluginName + '` does not.'));
  34062. }
  34063. }
  34064. })();
  34065. plugins[pluginIndex] = pluginModule;
  34066. var publishedEvents = pluginModule.eventTypes;
  34067. for (var eventName in publishedEvents) {
  34068. (function () {
  34069. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  34070. {
  34071. throw ReactError(Error('EventPluginRegistry: Failed to publish event `' + eventName + '` for plugin `' + pluginName + '`.'));
  34072. }
  34073. }
  34074. })();
  34075. }
  34076. }
  34077. }
  34078. /**
  34079. * Publishes an event so that it can be dispatched by the supplied plugin.
  34080. *
  34081. * @param {object} dispatchConfig Dispatch configuration for the event.
  34082. * @param {object} PluginModule Plugin publishing the event.
  34083. * @return {boolean} True if the event was successfully published.
  34084. * @private
  34085. */
  34086. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  34087. (function () {
  34088. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  34089. {
  34090. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same event name, `' + eventName + '`.'));
  34091. }
  34092. }
  34093. })();
  34094. eventNameDispatchConfigs[eventName] = dispatchConfig;
  34095. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  34096. if (phasedRegistrationNames) {
  34097. for (var phaseName in phasedRegistrationNames) {
  34098. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  34099. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  34100. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  34101. }
  34102. }
  34103. return true;
  34104. } else if (dispatchConfig.registrationName) {
  34105. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  34106. return true;
  34107. }
  34108. return false;
  34109. }
  34110. /**
  34111. * Publishes a registration name that is used to identify dispatched events.
  34112. *
  34113. * @param {string} registrationName Registration name to add.
  34114. * @param {object} PluginModule Plugin publishing the event.
  34115. * @private
  34116. */
  34117. function publishRegistrationName(registrationName, pluginModule, eventName) {
  34118. (function () {
  34119. if (!!registrationNameModules[registrationName]) {
  34120. {
  34121. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same registration name, `' + registrationName + '`.'));
  34122. }
  34123. }
  34124. })();
  34125. registrationNameModules[registrationName] = pluginModule;
  34126. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  34127. {
  34128. var lowerCasedName = registrationName.toLowerCase();
  34129. possibleRegistrationNames[lowerCasedName] = registrationName;
  34130. if (registrationName === 'onDoubleClick') {
  34131. possibleRegistrationNames.ondblclick = registrationName;
  34132. }
  34133. }
  34134. }
  34135. /**
  34136. * Registers plugins so that they can extract and dispatch events.
  34137. *
  34138. * @see {EventPluginHub}
  34139. */
  34140. /**
  34141. * Ordered list of injected plugins.
  34142. */
  34143. var plugins = [];
  34144. /**
  34145. * Mapping from event name to dispatch config
  34146. */
  34147. var eventNameDispatchConfigs = {};
  34148. /**
  34149. * Mapping from registration name to plugin module
  34150. */
  34151. var registrationNameModules = {};
  34152. /**
  34153. * Mapping from registration name to event name
  34154. */
  34155. var registrationNameDependencies = {};
  34156. /**
  34157. * Mapping from lowercase registration names to the properly cased version,
  34158. * used to warn in the case of missing event handlers. Available
  34159. * only in true.
  34160. * @type {Object}
  34161. */
  34162. var possibleRegistrationNames = {};
  34163. // Trust the developer to only use possibleRegistrationNames in true
  34164. /**
  34165. * Injects an ordering of plugins (by plugin name). This allows the ordering
  34166. * to be decoupled from injection of the actual plugins so that ordering is
  34167. * always deterministic regardless of packaging, on-the-fly injection, etc.
  34168. *
  34169. * @param {array} InjectedEventPluginOrder
  34170. * @internal
  34171. * @see {EventPluginHub.injection.injectEventPluginOrder}
  34172. */
  34173. function injectEventPluginOrder(injectedEventPluginOrder) {
  34174. (function () {
  34175. if (!!eventPluginOrder) {
  34176. {
  34177. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.'));
  34178. }
  34179. }
  34180. })();
  34181. // Clone the ordering so it cannot be dynamically mutated.
  34182. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  34183. recomputePluginOrdering();
  34184. }
  34185. /**
  34186. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  34187. * in the ordering injected by `injectEventPluginOrder`.
  34188. *
  34189. * Plugins can be injected as part of page initialization or on-the-fly.
  34190. *
  34191. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34192. * @internal
  34193. * @see {EventPluginHub.injection.injectEventPluginsByName}
  34194. */
  34195. function injectEventPluginsByName(injectedNamesToPlugins) {
  34196. var isOrderingDirty = false;
  34197. for (var pluginName in injectedNamesToPlugins) {
  34198. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  34199. continue;
  34200. }
  34201. var pluginModule = injectedNamesToPlugins[pluginName];
  34202. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  34203. (function () {
  34204. if (!!namesToPlugins[pluginName]) {
  34205. {
  34206. throw ReactError(Error('EventPluginRegistry: Cannot inject two different event plugins using the same name, `' + pluginName + '`.'));
  34207. }
  34208. }
  34209. })();
  34210. namesToPlugins[pluginName] = pluginModule;
  34211. isOrderingDirty = true;
  34212. }
  34213. }
  34214. if (isOrderingDirty) {
  34215. recomputePluginOrdering();
  34216. }
  34217. }
  34218. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  34219. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34220. try {
  34221. func.apply(context, funcArgs);
  34222. } catch (error) {
  34223. this.onError(error);
  34224. }
  34225. };
  34226. {
  34227. // In DEV mode, we swap out invokeGuardedCallback for a special version
  34228. // that plays more nicely with the browser's DevTools. The idea is to preserve
  34229. // "Pause on exceptions" behavior. Because React wraps all user-provided
  34230. // functions in invokeGuardedCallback, and the production version of
  34231. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  34232. // like caught exceptions, and the DevTools won't pause unless the developer
  34233. // takes the extra step of enabling pause on caught exceptions. This is
  34234. // unintuitive, though, because even though React has caught the error, from
  34235. // the developer's perspective, the error is uncaught.
  34236. //
  34237. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  34238. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  34239. // DOM node, and call the user-provided callback from inside an event handler
  34240. // for that fake event. If the callback throws, the error is "captured" using
  34241. // a global event handler. But because the error happens in a different
  34242. // event loop context, it does not interrupt the normal program flow.
  34243. // Effectively, this gives us try-catch behavior without actually using
  34244. // try-catch. Neat!
  34245. // Check that the browser supports the APIs we need to implement our special
  34246. // DEV version of invokeGuardedCallback
  34247. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  34248. var fakeNode = document.createElement('react');
  34249. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  34250. // If document doesn't exist we know for sure we will crash in this method
  34251. // when we call document.createEvent(). However this can cause confusing
  34252. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  34253. // So we preemptively throw with a better message instead.
  34254. (function () {
  34255. if (!(typeof document !== 'undefined')) {
  34256. {
  34257. throw ReactError(Error('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.'));
  34258. }
  34259. }
  34260. })();
  34261. var evt = document.createEvent('Event');
  34262. // Keeps track of whether the user-provided callback threw an error. We
  34263. // set this to true at the beginning, then set it to false right after
  34264. // calling the function. If the function errors, `didError` will never be
  34265. // set to false. This strategy works even if the browser is flaky and
  34266. // fails to call our global error handler, because it doesn't rely on
  34267. // the error event at all.
  34268. var didError = true;
  34269. // Keeps track of the value of window.event so that we can reset it
  34270. // during the callback to let user code access window.event in the
  34271. // browsers that support it.
  34272. var windowEvent = window.event;
  34273. // Keeps track of the descriptor of window.event to restore it after event
  34274. // dispatching: https://github.com/facebook/react/issues/13688
  34275. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  34276. // Create an event handler for our fake event. We will synchronously
  34277. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  34278. // call the user-provided callback.
  34279. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34280. function callCallback() {
  34281. // We immediately remove the callback from event listeners so that
  34282. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  34283. // nested call would trigger the fake event handlers of any call higher
  34284. // in the stack.
  34285. fakeNode.removeEventListener(evtType, callCallback, false);
  34286. // We check for window.hasOwnProperty('event') to prevent the
  34287. // window.event assignment in both IE <= 10 as they throw an error
  34288. // "Member not found" in strict mode, and in Firefox which does not
  34289. // support window.event.
  34290. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  34291. window.event = windowEvent;
  34292. }
  34293. func.apply(context, funcArgs);
  34294. didError = false;
  34295. }
  34296. // Create a global error event handler. We use this to capture the value
  34297. // that was thrown. It's possible that this error handler will fire more
  34298. // than once; for example, if non-React code also calls `dispatchEvent`
  34299. // and a handler for that event throws. We should be resilient to most of
  34300. // those cases. Even if our error event handler fires more than once, the
  34301. // last error event is always used. If the callback actually does error,
  34302. // we know that the last error event is the correct one, because it's not
  34303. // possible for anything else to have happened in between our callback
  34304. // erroring and the code that follows the `dispatchEvent` call below. If
  34305. // the callback doesn't error, but the error event was fired, we know to
  34306. // ignore it because `didError` will be false, as described above.
  34307. var error = void 0;
  34308. // Use this to track whether the error event is ever called.
  34309. var didSetError = false;
  34310. var isCrossOriginError = false;
  34311. function handleWindowError(event) {
  34312. error = event.error;
  34313. didSetError = true;
  34314. if (error === null && event.colno === 0 && event.lineno === 0) {
  34315. isCrossOriginError = true;
  34316. }
  34317. if (event.defaultPrevented) {
  34318. // Some other error handler has prevented default.
  34319. // Browsers silence the error report if this happens.
  34320. // We'll remember this to later decide whether to log it or not.
  34321. if (error != null && typeof error === 'object') {
  34322. try {
  34323. error._suppressLogging = true;
  34324. } catch (inner) {
  34325. // Ignore.
  34326. }
  34327. }
  34328. }
  34329. }
  34330. // Create a fake event type.
  34331. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  34332. // Attach our event handlers
  34333. window.addEventListener('error', handleWindowError);
  34334. fakeNode.addEventListener(evtType, callCallback, false);
  34335. // Synchronously dispatch our fake event. If the user-provided function
  34336. // errors, it will trigger our global error handler.
  34337. evt.initEvent(evtType, false, false);
  34338. fakeNode.dispatchEvent(evt);
  34339. if (windowEventDescriptor) {
  34340. Object.defineProperty(window, 'event', windowEventDescriptor);
  34341. }
  34342. if (didError) {
  34343. if (!didSetError) {
  34344. // The callback errored, but the error event never fired.
  34345. 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.');
  34346. } else if (isCrossOriginError) {
  34347. 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.');
  34348. }
  34349. this.onError(error);
  34350. }
  34351. // Remove our event listeners
  34352. window.removeEventListener('error', handleWindowError);
  34353. };
  34354. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  34355. }
  34356. }
  34357. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  34358. // Used by Fiber to simulate a try-catch.
  34359. var hasError = false;
  34360. var caughtError = null;
  34361. // Used by event system to capture/rethrow the first error.
  34362. var hasRethrowError = false;
  34363. var rethrowError = null;
  34364. var reporter = {
  34365. onError: function (error) {
  34366. hasError = true;
  34367. caughtError = error;
  34368. }
  34369. };
  34370. /**
  34371. * Call a function while guarding against errors that happens within it.
  34372. * Returns an error if it throws, otherwise null.
  34373. *
  34374. * In production, this is implemented using a try-catch. The reason we don't
  34375. * use a try-catch directly is so that we can swap out a different
  34376. * implementation in DEV mode.
  34377. *
  34378. * @param {String} name of the guard to use for logging or debugging
  34379. * @param {Function} func The function to invoke
  34380. * @param {*} context The context to use when calling the function
  34381. * @param {...*} args Arguments for function
  34382. */
  34383. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  34384. hasError = false;
  34385. caughtError = null;
  34386. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  34387. }
  34388. /**
  34389. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  34390. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  34391. * TODO: See if caughtError and rethrowError can be unified.
  34392. *
  34393. * @param {String} name of the guard to use for logging or debugging
  34394. * @param {Function} func The function to invoke
  34395. * @param {*} context The context to use when calling the function
  34396. * @param {...*} args Arguments for function
  34397. */
  34398. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  34399. invokeGuardedCallback.apply(this, arguments);
  34400. if (hasError) {
  34401. var error = clearCaughtError();
  34402. if (!hasRethrowError) {
  34403. hasRethrowError = true;
  34404. rethrowError = error;
  34405. }
  34406. }
  34407. }
  34408. /**
  34409. * During execution of guarded functions we will capture the first error which
  34410. * we will rethrow to be handled by the top level error handler.
  34411. */
  34412. function rethrowCaughtError() {
  34413. if (hasRethrowError) {
  34414. var error = rethrowError;
  34415. hasRethrowError = false;
  34416. rethrowError = null;
  34417. throw error;
  34418. }
  34419. }
  34420. function hasCaughtError() {
  34421. return hasError;
  34422. }
  34423. function clearCaughtError() {
  34424. if (hasError) {
  34425. var error = caughtError;
  34426. hasError = false;
  34427. caughtError = null;
  34428. return error;
  34429. } else {
  34430. (function () {
  34431. {
  34432. {
  34433. throw ReactError(Error('clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.'));
  34434. }
  34435. }
  34436. })();
  34437. }
  34438. }
  34439. /**
  34440. * Similar to invariant but only logs a warning if the condition is not met.
  34441. * This can be used to log issues in development environments in critical
  34442. * paths. Removing the logging code for production environments will keep the
  34443. * same logic and follow the same code paths.
  34444. */
  34445. var warningWithoutStack = function () {};
  34446. {
  34447. warningWithoutStack = function (condition, format) {
  34448. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  34449. args[_key - 2] = arguments[_key];
  34450. }
  34451. if (format === undefined) {
  34452. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  34453. }
  34454. if (args.length > 8) {
  34455. // Check before the condition to catch violations early.
  34456. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  34457. }
  34458. if (condition) {
  34459. return;
  34460. }
  34461. if (typeof console !== 'undefined') {
  34462. var argsWithFormat = args.map(function (item) {
  34463. return '' + item;
  34464. });
  34465. argsWithFormat.unshift('Warning: ' + format);
  34466. // We intentionally don't use spread (or .apply) directly because it
  34467. // breaks IE9: https://github.com/facebook/react/issues/13610
  34468. Function.prototype.apply.call(console.error, console, argsWithFormat);
  34469. }
  34470. try {
  34471. // --- Welcome to debugging React ---
  34472. // This error was thrown as a convenience so that you can use this stack
  34473. // to find the callsite that caused this warning to fire.
  34474. var argIndex = 0;
  34475. var message = 'Warning: ' + format.replace(/%s/g, function () {
  34476. return args[argIndex++];
  34477. });
  34478. throw new Error(message);
  34479. } catch (x) {}
  34480. };
  34481. }
  34482. var warningWithoutStack$1 = warningWithoutStack;
  34483. var getFiberCurrentPropsFromNode = null;
  34484. var getInstanceFromNode = null;
  34485. var getNodeFromInstance = null;
  34486. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  34487. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  34488. getInstanceFromNode = getInstanceFromNodeImpl;
  34489. getNodeFromInstance = getNodeFromInstanceImpl;
  34490. {
  34491. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  34492. }
  34493. }
  34494. var validateEventDispatches = void 0;
  34495. {
  34496. validateEventDispatches = function (event) {
  34497. var dispatchListeners = event._dispatchListeners;
  34498. var dispatchInstances = event._dispatchInstances;
  34499. var listenersIsArr = Array.isArray(dispatchListeners);
  34500. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  34501. var instancesIsArr = Array.isArray(dispatchInstances);
  34502. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  34503. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  34504. };
  34505. }
  34506. /**
  34507. * Dispatch the event to the listener.
  34508. * @param {SyntheticEvent} event SyntheticEvent to handle
  34509. * @param {function} listener Application-level callback
  34510. * @param {*} inst Internal component instance
  34511. */
  34512. function executeDispatch(event, listener, inst) {
  34513. var type = event.type || 'unknown-event';
  34514. event.currentTarget = getNodeFromInstance(inst);
  34515. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  34516. event.currentTarget = null;
  34517. }
  34518. /**
  34519. * Standard/simple iteration through an event's collected dispatches.
  34520. */
  34521. function executeDispatchesInOrder(event) {
  34522. var dispatchListeners = event._dispatchListeners;
  34523. var dispatchInstances = event._dispatchInstances;
  34524. {
  34525. validateEventDispatches(event);
  34526. }
  34527. if (Array.isArray(dispatchListeners)) {
  34528. for (var i = 0; i < dispatchListeners.length; i++) {
  34529. if (event.isPropagationStopped()) {
  34530. break;
  34531. }
  34532. // Listeners and Instances are two parallel arrays that are always in sync.
  34533. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  34534. }
  34535. } else if (dispatchListeners) {
  34536. executeDispatch(event, dispatchListeners, dispatchInstances);
  34537. }
  34538. event._dispatchListeners = null;
  34539. event._dispatchInstances = null;
  34540. }
  34541. /**
  34542. * @see executeDispatchesInOrderStopAtTrueImpl
  34543. */
  34544. /**
  34545. * Execution of a "direct" dispatch - there must be at most one dispatch
  34546. * accumulated on the event or it is considered an error. It doesn't really make
  34547. * sense for an event with multiple dispatches (bubbled) to keep track of the
  34548. * return values at each dispatch execution, but it does tend to make sense when
  34549. * dealing with "direct" dispatches.
  34550. *
  34551. * @return {*} The return value of executing the single dispatch.
  34552. */
  34553. /**
  34554. * @param {SyntheticEvent} event
  34555. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  34556. */
  34557. /**
  34558. * Accumulates items that must not be null or undefined into the first one. This
  34559. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  34560. * API cleanness. Since `current` can be null before being passed in and not
  34561. * null after this function, make sure to assign it back to `current`:
  34562. *
  34563. * `a = accumulateInto(a, b);`
  34564. *
  34565. * This API should be sparingly used. Try `accumulate` for something cleaner.
  34566. *
  34567. * @return {*|array<*>} An accumulation of items.
  34568. */
  34569. function accumulateInto(current, next) {
  34570. (function () {
  34571. if (!(next != null)) {
  34572. {
  34573. throw ReactError(Error('accumulateInto(...): Accumulated items must not be null or undefined.'));
  34574. }
  34575. }
  34576. })();
  34577. if (current == null) {
  34578. return next;
  34579. }
  34580. // Both are not empty. Warning: Never call x.concat(y) when you are not
  34581. // certain that x is an Array (x could be a string with concat method).
  34582. if (Array.isArray(current)) {
  34583. if (Array.isArray(next)) {
  34584. current.push.apply(current, next);
  34585. return current;
  34586. }
  34587. current.push(next);
  34588. return current;
  34589. }
  34590. if (Array.isArray(next)) {
  34591. // A bit too dangerous to mutate `next`.
  34592. return [current].concat(next);
  34593. }
  34594. return [current, next];
  34595. }
  34596. /**
  34597. * @param {array} arr an "accumulation" of items which is either an Array or
  34598. * a single item. Useful when paired with the `accumulate` module. This is a
  34599. * simple utility that allows us to reason about a collection of items, but
  34600. * handling the case when there is exactly one item (and we do not need to
  34601. * allocate an array).
  34602. * @param {function} cb Callback invoked with each element or a collection.
  34603. * @param {?} [scope] Scope used as `this` in a callback.
  34604. */
  34605. function forEachAccumulated(arr, cb, scope) {
  34606. if (Array.isArray(arr)) {
  34607. arr.forEach(cb, scope);
  34608. } else if (arr) {
  34609. cb.call(scope, arr);
  34610. }
  34611. }
  34612. /**
  34613. * Internal queue of events that have accumulated their dispatches and are
  34614. * waiting to have their dispatches executed.
  34615. */
  34616. var eventQueue = null;
  34617. /**
  34618. * Dispatches an event and releases it back into the pool, unless persistent.
  34619. *
  34620. * @param {?object} event Synthetic event to be dispatched.
  34621. * @private
  34622. */
  34623. var executeDispatchesAndRelease = function (event) {
  34624. if (event) {
  34625. executeDispatchesInOrder(event);
  34626. if (!event.isPersistent()) {
  34627. event.constructor.release(event);
  34628. }
  34629. }
  34630. };
  34631. var executeDispatchesAndReleaseTopLevel = function (e) {
  34632. return executeDispatchesAndRelease(e);
  34633. };
  34634. function runEventsInBatch(events) {
  34635. if (events !== null) {
  34636. eventQueue = accumulateInto(eventQueue, events);
  34637. }
  34638. // Set `eventQueue` to null before processing it so that we can tell if more
  34639. // events get enqueued while processing.
  34640. var processingEventQueue = eventQueue;
  34641. eventQueue = null;
  34642. if (!processingEventQueue) {
  34643. return;
  34644. }
  34645. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  34646. (function () {
  34647. if (!!eventQueue) {
  34648. {
  34649. throw ReactError(Error('processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.'));
  34650. }
  34651. }
  34652. })();
  34653. // This would be a good time to rethrow if any of the event handlers threw.
  34654. rethrowCaughtError();
  34655. }
  34656. function isInteractive(tag) {
  34657. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  34658. }
  34659. function shouldPreventMouseEvent(name, type, props) {
  34660. switch (name) {
  34661. case 'onClick':
  34662. case 'onClickCapture':
  34663. case 'onDoubleClick':
  34664. case 'onDoubleClickCapture':
  34665. case 'onMouseDown':
  34666. case 'onMouseDownCapture':
  34667. case 'onMouseMove':
  34668. case 'onMouseMoveCapture':
  34669. case 'onMouseUp':
  34670. case 'onMouseUpCapture':
  34671. return !!(props.disabled && isInteractive(type));
  34672. default:
  34673. return false;
  34674. }
  34675. }
  34676. /**
  34677. * This is a unified interface for event plugins to be installed and configured.
  34678. *
  34679. * Event plugins can implement the following properties:
  34680. *
  34681. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  34682. * Required. When a top-level event is fired, this method is expected to
  34683. * extract synthetic events that will in turn be queued and dispatched.
  34684. *
  34685. * `eventTypes` {object}
  34686. * Optional, plugins that fire events must publish a mapping of registration
  34687. * names that are used to register listeners. Values of this mapping must
  34688. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  34689. *
  34690. * `executeDispatch` {function(object, function, string)}
  34691. * Optional, allows plugins to override how an event gets dispatched. By
  34692. * default, the listener is simply invoked.
  34693. *
  34694. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  34695. *
  34696. * @public
  34697. */
  34698. /**
  34699. * Methods for injecting dependencies.
  34700. */
  34701. var injection = {
  34702. /**
  34703. * @param {array} InjectedEventPluginOrder
  34704. * @public
  34705. */
  34706. injectEventPluginOrder: injectEventPluginOrder,
  34707. /**
  34708. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34709. */
  34710. injectEventPluginsByName: injectEventPluginsByName
  34711. };
  34712. /**
  34713. * @param {object} inst The instance, which is the source of events.
  34714. * @param {string} registrationName Name of listener (e.g. `onClick`).
  34715. * @return {?function} The stored callback.
  34716. */
  34717. function getListener(inst, registrationName) {
  34718. var listener = void 0;
  34719. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  34720. // live here; needs to be moved to a better place soon
  34721. var stateNode = inst.stateNode;
  34722. if (!stateNode) {
  34723. // Work in progress (ex: onload events in incremental mode).
  34724. return null;
  34725. }
  34726. var props = getFiberCurrentPropsFromNode(stateNode);
  34727. if (!props) {
  34728. // Work in progress.
  34729. return null;
  34730. }
  34731. listener = props[registrationName];
  34732. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  34733. return null;
  34734. }
  34735. (function () {
  34736. if (!(!listener || typeof listener === 'function')) {
  34737. {
  34738. throw ReactError(Error('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'));
  34739. }
  34740. }
  34741. })();
  34742. return listener;
  34743. }
  34744. /**
  34745. * Allows registered plugins an opportunity to extract events from top-level
  34746. * native browser events.
  34747. *
  34748. * @return {*} An accumulation of synthetic events.
  34749. * @internal
  34750. */
  34751. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34752. var events = null;
  34753. for (var i = 0; i < plugins.length; i++) {
  34754. // Not every plugin in the ordering may be loaded at runtime.
  34755. var possiblePlugin = plugins[i];
  34756. if (possiblePlugin) {
  34757. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34758. if (extractedEvents) {
  34759. events = accumulateInto(events, extractedEvents);
  34760. }
  34761. }
  34762. }
  34763. return events;
  34764. }
  34765. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34766. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34767. runEventsInBatch(events);
  34768. }
  34769. var FunctionComponent = 0;
  34770. var ClassComponent = 1;
  34771. var IndeterminateComponent = 2; // Before we know whether it is function or class
  34772. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  34773. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  34774. var HostComponent = 5;
  34775. var HostText = 6;
  34776. var Fragment = 7;
  34777. var Mode = 8;
  34778. var ContextConsumer = 9;
  34779. var ContextProvider = 10;
  34780. var ForwardRef = 11;
  34781. var Profiler = 12;
  34782. var SuspenseComponent = 13;
  34783. var MemoComponent = 14;
  34784. var SimpleMemoComponent = 15;
  34785. var LazyComponent = 16;
  34786. var IncompleteClassComponent = 17;
  34787. var DehydratedSuspenseComponent = 18;
  34788. var SuspenseListComponent = 19;
  34789. var FundamentalComponent = 20;
  34790. var randomKey = Math.random().toString(36).slice(2);
  34791. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  34792. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  34793. function precacheFiberNode(hostInst, node) {
  34794. node[internalInstanceKey] = hostInst;
  34795. }
  34796. /**
  34797. * Given a DOM node, return the closest ReactDOMComponent or
  34798. * ReactDOMTextComponent instance ancestor.
  34799. */
  34800. function getClosestInstanceFromNode(node) {
  34801. if (node[internalInstanceKey]) {
  34802. return node[internalInstanceKey];
  34803. }
  34804. while (!node[internalInstanceKey]) {
  34805. if (node.parentNode) {
  34806. node = node.parentNode;
  34807. } else {
  34808. // Top of the tree. This node must not be part of a React tree (or is
  34809. // unmounted, potentially).
  34810. return null;
  34811. }
  34812. }
  34813. var inst = node[internalInstanceKey];
  34814. if (inst.tag === HostComponent || inst.tag === HostText) {
  34815. // In Fiber, this will always be the deepest root.
  34816. return inst;
  34817. }
  34818. return null;
  34819. }
  34820. /**
  34821. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  34822. * instance, or null if the node was not rendered by this React.
  34823. */
  34824. function getInstanceFromNode$1(node) {
  34825. var inst = node[internalInstanceKey];
  34826. if (inst) {
  34827. if (inst.tag === HostComponent || inst.tag === HostText) {
  34828. return inst;
  34829. } else {
  34830. return null;
  34831. }
  34832. }
  34833. return null;
  34834. }
  34835. /**
  34836. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  34837. * DOM node.
  34838. */
  34839. function getNodeFromInstance$1(inst) {
  34840. if (inst.tag === HostComponent || inst.tag === HostText) {
  34841. // In Fiber this, is just the state node right now. We assume it will be
  34842. // a host component or host text.
  34843. return inst.stateNode;
  34844. }
  34845. // Without this first invariant, passing a non-DOM-component triggers the next
  34846. // invariant for a missing parent, which is super confusing.
  34847. (function () {
  34848. {
  34849. {
  34850. throw ReactError(Error('getNodeFromInstance: Invalid argument.'));
  34851. }
  34852. }
  34853. })();
  34854. }
  34855. function getFiberCurrentPropsFromNode$1(node) {
  34856. return node[internalEventHandlersKey] || null;
  34857. }
  34858. function updateFiberProps(node, props) {
  34859. node[internalEventHandlersKey] = props;
  34860. }
  34861. function getParent(inst) {
  34862. do {
  34863. inst = inst.return;
  34864. // TODO: If this is a HostRoot we might want to bail out.
  34865. // That is depending on if we want nested subtrees (layers) to bubble
  34866. // events to their parent. We could also go through parentNode on the
  34867. // host node but that wouldn't work for React Native and doesn't let us
  34868. // do the portal feature.
  34869. } while (inst && inst.tag !== HostComponent);
  34870. if (inst) {
  34871. return inst;
  34872. }
  34873. return null;
  34874. }
  34875. /**
  34876. * Return the lowest common ancestor of A and B, or null if they are in
  34877. * different trees.
  34878. */
  34879. function getLowestCommonAncestor(instA, instB) {
  34880. var depthA = 0;
  34881. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  34882. depthA++;
  34883. }
  34884. var depthB = 0;
  34885. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  34886. depthB++;
  34887. }
  34888. // If A is deeper, crawl up.
  34889. while (depthA - depthB > 0) {
  34890. instA = getParent(instA);
  34891. depthA--;
  34892. }
  34893. // If B is deeper, crawl up.
  34894. while (depthB - depthA > 0) {
  34895. instB = getParent(instB);
  34896. depthB--;
  34897. }
  34898. // Walk in lockstep until we find a match.
  34899. var depth = depthA;
  34900. while (depth--) {
  34901. if (instA === instB || instA === instB.alternate) {
  34902. return instA;
  34903. }
  34904. instA = getParent(instA);
  34905. instB = getParent(instB);
  34906. }
  34907. return null;
  34908. }
  34909. /**
  34910. * Return if A is an ancestor of B.
  34911. */
  34912. /**
  34913. * Return the parent instance of the passed-in instance.
  34914. */
  34915. /**
  34916. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  34917. */
  34918. function traverseTwoPhase(inst, fn, arg) {
  34919. var path = [];
  34920. while (inst) {
  34921. path.push(inst);
  34922. inst = getParent(inst);
  34923. }
  34924. var i = void 0;
  34925. for (i = path.length; i-- > 0;) {
  34926. fn(path[i], 'captured', arg);
  34927. }
  34928. for (i = 0; i < path.length; i++) {
  34929. fn(path[i], 'bubbled', arg);
  34930. }
  34931. }
  34932. /**
  34933. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  34934. * should would receive a `mouseEnter` or `mouseLeave` event.
  34935. *
  34936. * Does not invoke the callback on the nearest common ancestor because nothing
  34937. * "entered" or "left" that element.
  34938. */
  34939. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  34940. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  34941. var pathFrom = [];
  34942. while (true) {
  34943. if (!from) {
  34944. break;
  34945. }
  34946. if (from === common) {
  34947. break;
  34948. }
  34949. var alternate = from.alternate;
  34950. if (alternate !== null && alternate === common) {
  34951. break;
  34952. }
  34953. pathFrom.push(from);
  34954. from = getParent(from);
  34955. }
  34956. var pathTo = [];
  34957. while (true) {
  34958. if (!to) {
  34959. break;
  34960. }
  34961. if (to === common) {
  34962. break;
  34963. }
  34964. var _alternate = to.alternate;
  34965. if (_alternate !== null && _alternate === common) {
  34966. break;
  34967. }
  34968. pathTo.push(to);
  34969. to = getParent(to);
  34970. }
  34971. for (var i = 0; i < pathFrom.length; i++) {
  34972. fn(pathFrom[i], 'bubbled', argFrom);
  34973. }
  34974. for (var _i = pathTo.length; _i-- > 0;) {
  34975. fn(pathTo[_i], 'captured', argTo);
  34976. }
  34977. }
  34978. /**
  34979. * Some event types have a notion of different registration names for different
  34980. * "phases" of propagation. This finds listeners by a given phase.
  34981. */
  34982. function listenerAtPhase(inst, event, propagationPhase) {
  34983. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  34984. return getListener(inst, registrationName);
  34985. }
  34986. /**
  34987. * A small set of propagation patterns, each of which will accept a small amount
  34988. * of information, and generate a set of "dispatch ready event objects" - which
  34989. * are sets of events that have already been annotated with a set of dispatched
  34990. * listener functions/ids. The API is designed this way to discourage these
  34991. * propagation strategies from actually executing the dispatches, since we
  34992. * always want to collect the entire set of dispatches before executing even a
  34993. * single one.
  34994. */
  34995. /**
  34996. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  34997. * here, allows us to not have to bind or create functions for each event.
  34998. * Mutating the event's members allows us to not have to create a wrapping
  34999. * "dispatch" object that pairs the event with the listener.
  35000. */
  35001. function accumulateDirectionalDispatches(inst, phase, event) {
  35002. {
  35003. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  35004. }
  35005. var listener = listenerAtPhase(inst, event, phase);
  35006. if (listener) {
  35007. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  35008. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  35009. }
  35010. }
  35011. /**
  35012. * Collect dispatches (must be entirely collected before dispatching - see unit
  35013. * tests). Lazily allocate the array to conserve memory. We must loop through
  35014. * each event and perform the traversal for each one. We cannot perform a
  35015. * single traversal for the entire collection of events because each event may
  35016. * have a different target.
  35017. */
  35018. function accumulateTwoPhaseDispatchesSingle(event) {
  35019. if (event && event.dispatchConfig.phasedRegistrationNames) {
  35020. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  35021. }
  35022. }
  35023. /**
  35024. * Accumulates without regard to direction, does not look for phased
  35025. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  35026. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  35027. */
  35028. function accumulateDispatches(inst, ignoredDirection, event) {
  35029. if (inst && event && event.dispatchConfig.registrationName) {
  35030. var registrationName = event.dispatchConfig.registrationName;
  35031. var listener = getListener(inst, registrationName);
  35032. if (listener) {
  35033. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  35034. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  35035. }
  35036. }
  35037. }
  35038. /**
  35039. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  35040. * `dispatchMarker`.
  35041. * @param {SyntheticEvent} event
  35042. */
  35043. function accumulateDirectDispatchesSingle(event) {
  35044. if (event && event.dispatchConfig.registrationName) {
  35045. accumulateDispatches(event._targetInst, null, event);
  35046. }
  35047. }
  35048. function accumulateTwoPhaseDispatches(events) {
  35049. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  35050. }
  35051. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  35052. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  35053. }
  35054. function accumulateDirectDispatches(events) {
  35055. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  35056. }
  35057. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  35058. // Do not use the below two methods directly!
  35059. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  35060. // (It is the only module that is allowed to access these methods.)
  35061. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  35062. return topLevelType;
  35063. }
  35064. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  35065. return topLevelType;
  35066. }
  35067. /**
  35068. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  35069. *
  35070. * @param {string} styleProp
  35071. * @param {string} eventName
  35072. * @returns {object}
  35073. */
  35074. function makePrefixMap(styleProp, eventName) {
  35075. var prefixes = {};
  35076. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  35077. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  35078. prefixes['Moz' + styleProp] = 'moz' + eventName;
  35079. return prefixes;
  35080. }
  35081. /**
  35082. * A list of event names to a configurable list of vendor prefixes.
  35083. */
  35084. var vendorPrefixes = {
  35085. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  35086. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  35087. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  35088. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  35089. };
  35090. /**
  35091. * Event names that have already been detected and prefixed (if applicable).
  35092. */
  35093. var prefixedEventNames = {};
  35094. /**
  35095. * Element to check for prefixes on.
  35096. */
  35097. var style = {};
  35098. /**
  35099. * Bootstrap if a DOM exists.
  35100. */
  35101. if (canUseDOM) {
  35102. style = document.createElement('div').style;
  35103. // On some platforms, in particular some releases of Android 4.x,
  35104. // the un-prefixed "animation" and "transition" properties are defined on the
  35105. // style object but the events that fire will still be prefixed, so we need
  35106. // to check if the un-prefixed events are usable, and if not remove them from the map.
  35107. if (!('AnimationEvent' in window)) {
  35108. delete vendorPrefixes.animationend.animation;
  35109. delete vendorPrefixes.animationiteration.animation;
  35110. delete vendorPrefixes.animationstart.animation;
  35111. }
  35112. // Same as above
  35113. if (!('TransitionEvent' in window)) {
  35114. delete vendorPrefixes.transitionend.transition;
  35115. }
  35116. }
  35117. /**
  35118. * Attempts to determine the correct vendor prefixed event name.
  35119. *
  35120. * @param {string} eventName
  35121. * @returns {string}
  35122. */
  35123. function getVendorPrefixedEventName(eventName) {
  35124. if (prefixedEventNames[eventName]) {
  35125. return prefixedEventNames[eventName];
  35126. } else if (!vendorPrefixes[eventName]) {
  35127. return eventName;
  35128. }
  35129. var prefixMap = vendorPrefixes[eventName];
  35130. for (var styleProp in prefixMap) {
  35131. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  35132. return prefixedEventNames[eventName] = prefixMap[styleProp];
  35133. }
  35134. }
  35135. return eventName;
  35136. }
  35137. /**
  35138. * To identify top level events in ReactDOM, we use constants defined by this
  35139. * module. This is the only module that uses the unsafe* methods to express
  35140. * that the constants actually correspond to the browser event names. This lets
  35141. * us save some bundle size by avoiding a top level type -> event name map.
  35142. * The rest of ReactDOM code should import top level types from this file.
  35143. */
  35144. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  35145. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  35146. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  35147. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  35148. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  35149. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  35150. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  35151. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  35152. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  35153. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  35154. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  35155. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  35156. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  35157. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  35158. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  35159. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  35160. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  35161. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  35162. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  35163. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  35164. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  35165. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  35166. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  35167. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  35168. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  35169. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  35170. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  35171. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  35172. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  35173. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  35174. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  35175. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  35176. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  35177. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  35178. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  35179. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  35180. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  35181. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  35182. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  35183. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  35184. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  35185. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  35186. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  35187. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  35188. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  35189. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  35190. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  35191. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  35192. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  35193. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  35194. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  35195. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  35196. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  35197. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  35198. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  35199. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  35200. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  35201. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  35202. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  35203. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  35204. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  35205. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  35206. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  35207. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  35208. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  35209. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  35210. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  35211. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  35212. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  35213. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  35214. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  35215. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  35216. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  35217. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  35218. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  35219. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  35220. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  35221. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  35222. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  35223. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  35224. // List of events that need to be individually attached to media elements.
  35225. // Note that events in this list will *not* be listened to at the top level
  35226. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  35227. 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];
  35228. function getRawEventName(topLevelType) {
  35229. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  35230. }
  35231. /**
  35232. * These variables store information about text content of a target node,
  35233. * allowing comparison of content before and after a given event.
  35234. *
  35235. * Identify the node where selection currently begins, then observe
  35236. * both its text content and its current position in the DOM. Since the
  35237. * browser may natively replace the target node during composition, we can
  35238. * use its position to find its replacement.
  35239. *
  35240. *
  35241. */
  35242. var root = null;
  35243. var startText = null;
  35244. var fallbackText = null;
  35245. function initialize(nativeEventTarget) {
  35246. root = nativeEventTarget;
  35247. startText = getText();
  35248. return true;
  35249. }
  35250. function reset() {
  35251. root = null;
  35252. startText = null;
  35253. fallbackText = null;
  35254. }
  35255. function getData() {
  35256. if (fallbackText) {
  35257. return fallbackText;
  35258. }
  35259. var start = void 0;
  35260. var startValue = startText;
  35261. var startLength = startValue.length;
  35262. var end = void 0;
  35263. var endValue = getText();
  35264. var endLength = endValue.length;
  35265. for (start = 0; start < startLength; start++) {
  35266. if (startValue[start] !== endValue[start]) {
  35267. break;
  35268. }
  35269. }
  35270. var minEnd = startLength - start;
  35271. for (end = 1; end <= minEnd; end++) {
  35272. if (startValue[startLength - end] !== endValue[endLength - end]) {
  35273. break;
  35274. }
  35275. }
  35276. var sliceTail = end > 1 ? 1 - end : undefined;
  35277. fallbackText = endValue.slice(start, sliceTail);
  35278. return fallbackText;
  35279. }
  35280. function getText() {
  35281. if ('value' in root) {
  35282. return root.value;
  35283. }
  35284. return root.textContent;
  35285. }
  35286. /* eslint valid-typeof: 0 */
  35287. var EVENT_POOL_SIZE = 10;
  35288. /**
  35289. * @interface Event
  35290. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  35291. */
  35292. var EventInterface = {
  35293. type: null,
  35294. target: null,
  35295. // currentTarget is set when dispatching; no use in copying it here
  35296. currentTarget: function () {
  35297. return null;
  35298. },
  35299. eventPhase: null,
  35300. bubbles: null,
  35301. cancelable: null,
  35302. timeStamp: function (event) {
  35303. return event.timeStamp || Date.now();
  35304. },
  35305. defaultPrevented: null,
  35306. isTrusted: null
  35307. };
  35308. function functionThatReturnsTrue() {
  35309. return true;
  35310. }
  35311. function functionThatReturnsFalse() {
  35312. return false;
  35313. }
  35314. /**
  35315. * Synthetic events are dispatched by event plugins, typically in response to a
  35316. * top-level event delegation handler.
  35317. *
  35318. * These systems should generally use pooling to reduce the frequency of garbage
  35319. * collection. The system should check `isPersistent` to determine whether the
  35320. * event should be released into the pool after being dispatched. Users that
  35321. * need a persisted event should invoke `persist`.
  35322. *
  35323. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  35324. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  35325. * DOM interface; custom application-specific events can also subclass this.
  35326. *
  35327. * @param {object} dispatchConfig Configuration used to dispatch this event.
  35328. * @param {*} targetInst Marker identifying the event target.
  35329. * @param {object} nativeEvent Native browser event.
  35330. * @param {DOMEventTarget} nativeEventTarget Target node.
  35331. */
  35332. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  35333. {
  35334. // these have a getter/setter for warnings
  35335. delete this.nativeEvent;
  35336. delete this.preventDefault;
  35337. delete this.stopPropagation;
  35338. delete this.isDefaultPrevented;
  35339. delete this.isPropagationStopped;
  35340. }
  35341. this.dispatchConfig = dispatchConfig;
  35342. this._targetInst = targetInst;
  35343. this.nativeEvent = nativeEvent;
  35344. var Interface = this.constructor.Interface;
  35345. for (var propName in Interface) {
  35346. if (!Interface.hasOwnProperty(propName)) {
  35347. continue;
  35348. }
  35349. {
  35350. delete this[propName]; // this has a getter/setter for warnings
  35351. }
  35352. var normalize = Interface[propName];
  35353. if (normalize) {
  35354. this[propName] = normalize(nativeEvent);
  35355. } else {
  35356. if (propName === 'target') {
  35357. this.target = nativeEventTarget;
  35358. } else {
  35359. this[propName] = nativeEvent[propName];
  35360. }
  35361. }
  35362. }
  35363. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  35364. if (defaultPrevented) {
  35365. this.isDefaultPrevented = functionThatReturnsTrue;
  35366. } else {
  35367. this.isDefaultPrevented = functionThatReturnsFalse;
  35368. }
  35369. this.isPropagationStopped = functionThatReturnsFalse;
  35370. return this;
  35371. }
  35372. _assign(SyntheticEvent.prototype, {
  35373. preventDefault: function () {
  35374. this.defaultPrevented = true;
  35375. var event = this.nativeEvent;
  35376. if (!event) {
  35377. return;
  35378. }
  35379. if (event.preventDefault) {
  35380. event.preventDefault();
  35381. } else if (typeof event.returnValue !== 'unknown') {
  35382. event.returnValue = false;
  35383. }
  35384. this.isDefaultPrevented = functionThatReturnsTrue;
  35385. },
  35386. stopPropagation: function () {
  35387. var event = this.nativeEvent;
  35388. if (!event) {
  35389. return;
  35390. }
  35391. if (event.stopPropagation) {
  35392. event.stopPropagation();
  35393. } else if (typeof event.cancelBubble !== 'unknown') {
  35394. // The ChangeEventPlugin registers a "propertychange" event for
  35395. // IE. This event does not support bubbling or cancelling, and
  35396. // any references to cancelBubble throw "Member not found". A
  35397. // typeof check of "unknown" circumvents this issue (and is also
  35398. // IE specific).
  35399. event.cancelBubble = true;
  35400. }
  35401. this.isPropagationStopped = functionThatReturnsTrue;
  35402. },
  35403. /**
  35404. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  35405. * them back into the pool. This allows a way to hold onto a reference that
  35406. * won't be added back into the pool.
  35407. */
  35408. persist: function () {
  35409. this.isPersistent = functionThatReturnsTrue;
  35410. },
  35411. /**
  35412. * Checks if this event should be released back into the pool.
  35413. *
  35414. * @return {boolean} True if this should not be released, false otherwise.
  35415. */
  35416. isPersistent: functionThatReturnsFalse,
  35417. /**
  35418. * `PooledClass` looks for `destructor` on each instance it releases.
  35419. */
  35420. destructor: function () {
  35421. var Interface = this.constructor.Interface;
  35422. for (var propName in Interface) {
  35423. {
  35424. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  35425. }
  35426. }
  35427. this.dispatchConfig = null;
  35428. this._targetInst = null;
  35429. this.nativeEvent = null;
  35430. this.isDefaultPrevented = functionThatReturnsFalse;
  35431. this.isPropagationStopped = functionThatReturnsFalse;
  35432. this._dispatchListeners = null;
  35433. this._dispatchInstances = null;
  35434. {
  35435. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  35436. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  35437. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  35438. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  35439. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  35440. }
  35441. }
  35442. });
  35443. SyntheticEvent.Interface = EventInterface;
  35444. /**
  35445. * Helper to reduce boilerplate when creating subclasses.
  35446. */
  35447. SyntheticEvent.extend = function (Interface) {
  35448. var Super = this;
  35449. var E = function () {};
  35450. E.prototype = Super.prototype;
  35451. var prototype = new E();
  35452. function Class() {
  35453. return Super.apply(this, arguments);
  35454. }
  35455. _assign(prototype, Class.prototype);
  35456. Class.prototype = prototype;
  35457. Class.prototype.constructor = Class;
  35458. Class.Interface = _assign({}, Super.Interface, Interface);
  35459. Class.extend = Super.extend;
  35460. addEventPoolingTo(Class);
  35461. return Class;
  35462. };
  35463. addEventPoolingTo(SyntheticEvent);
  35464. /**
  35465. * Helper to nullify syntheticEvent instance properties when destructing
  35466. *
  35467. * @param {String} propName
  35468. * @param {?object} getVal
  35469. * @return {object} defineProperty object
  35470. */
  35471. function getPooledWarningPropertyDefinition(propName, getVal) {
  35472. var isFunction = typeof getVal === 'function';
  35473. return {
  35474. configurable: true,
  35475. set: set,
  35476. get: get
  35477. };
  35478. function set(val) {
  35479. var action = isFunction ? 'setting the method' : 'setting the property';
  35480. warn(action, 'This is effectively a no-op');
  35481. return val;
  35482. }
  35483. function get() {
  35484. var action = isFunction ? 'accessing the method' : 'accessing the property';
  35485. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  35486. warn(action, result);
  35487. return getVal;
  35488. }
  35489. function warn(action, result) {
  35490. var warningCondition = false;
  35491. !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;
  35492. }
  35493. }
  35494. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  35495. var EventConstructor = this;
  35496. if (EventConstructor.eventPool.length) {
  35497. var instance = EventConstructor.eventPool.pop();
  35498. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  35499. return instance;
  35500. }
  35501. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  35502. }
  35503. function releasePooledEvent(event) {
  35504. var EventConstructor = this;
  35505. (function () {
  35506. if (!(event instanceof EventConstructor)) {
  35507. {
  35508. throw ReactError(Error('Trying to release an event instance into a pool of a different type.'));
  35509. }
  35510. }
  35511. })();
  35512. event.destructor();
  35513. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  35514. EventConstructor.eventPool.push(event);
  35515. }
  35516. }
  35517. function addEventPoolingTo(EventConstructor) {
  35518. EventConstructor.eventPool = [];
  35519. EventConstructor.getPooled = getPooledEvent;
  35520. EventConstructor.release = releasePooledEvent;
  35521. }
  35522. /**
  35523. * @interface Event
  35524. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  35525. */
  35526. var SyntheticCompositionEvent = SyntheticEvent.extend({
  35527. data: null
  35528. });
  35529. /**
  35530. * @interface Event
  35531. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  35532. * /#events-inputevents
  35533. */
  35534. var SyntheticInputEvent = SyntheticEvent.extend({
  35535. data: null
  35536. });
  35537. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  35538. var START_KEYCODE = 229;
  35539. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  35540. var documentMode = null;
  35541. if (canUseDOM && 'documentMode' in document) {
  35542. documentMode = document.documentMode;
  35543. }
  35544. // Webkit offers a very useful `textInput` event that can be used to
  35545. // directly represent `beforeInput`. The IE `textinput` event is not as
  35546. // useful, so we don't use it.
  35547. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  35548. // In IE9+, we have access to composition events, but the data supplied
  35549. // by the native compositionend event may be incorrect. Japanese ideographic
  35550. // spaces, for instance (\u3000) are not recorded correctly.
  35551. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  35552. var SPACEBAR_CODE = 32;
  35553. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  35554. // Events and their corresponding property names.
  35555. var eventTypes = {
  35556. beforeInput: {
  35557. phasedRegistrationNames: {
  35558. bubbled: 'onBeforeInput',
  35559. captured: 'onBeforeInputCapture'
  35560. },
  35561. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  35562. },
  35563. compositionEnd: {
  35564. phasedRegistrationNames: {
  35565. bubbled: 'onCompositionEnd',
  35566. captured: 'onCompositionEndCapture'
  35567. },
  35568. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35569. },
  35570. compositionStart: {
  35571. phasedRegistrationNames: {
  35572. bubbled: 'onCompositionStart',
  35573. captured: 'onCompositionStartCapture'
  35574. },
  35575. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35576. },
  35577. compositionUpdate: {
  35578. phasedRegistrationNames: {
  35579. bubbled: 'onCompositionUpdate',
  35580. captured: 'onCompositionUpdateCapture'
  35581. },
  35582. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35583. }
  35584. };
  35585. // Track whether we've ever handled a keypress on the space key.
  35586. var hasSpaceKeypress = false;
  35587. /**
  35588. * Return whether a native keypress event is assumed to be a command.
  35589. * This is required because Firefox fires `keypress` events for key commands
  35590. * (cut, copy, select-all, etc.) even though no character is inserted.
  35591. */
  35592. function isKeypressCommand(nativeEvent) {
  35593. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  35594. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  35595. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  35596. }
  35597. /**
  35598. * Translate native top level events into event types.
  35599. *
  35600. * @param {string} topLevelType
  35601. * @return {object}
  35602. */
  35603. function getCompositionEventType(topLevelType) {
  35604. switch (topLevelType) {
  35605. case TOP_COMPOSITION_START:
  35606. return eventTypes.compositionStart;
  35607. case TOP_COMPOSITION_END:
  35608. return eventTypes.compositionEnd;
  35609. case TOP_COMPOSITION_UPDATE:
  35610. return eventTypes.compositionUpdate;
  35611. }
  35612. }
  35613. /**
  35614. * Does our fallback best-guess model think this event signifies that
  35615. * composition has begun?
  35616. *
  35617. * @param {string} topLevelType
  35618. * @param {object} nativeEvent
  35619. * @return {boolean}
  35620. */
  35621. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  35622. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  35623. }
  35624. /**
  35625. * Does our fallback mode think that this event is the end of composition?
  35626. *
  35627. * @param {string} topLevelType
  35628. * @param {object} nativeEvent
  35629. * @return {boolean}
  35630. */
  35631. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  35632. switch (topLevelType) {
  35633. case TOP_KEY_UP:
  35634. // Command keys insert or clear IME input.
  35635. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  35636. case TOP_KEY_DOWN:
  35637. // Expect IME keyCode on each keydown. If we get any other
  35638. // code we must have exited earlier.
  35639. return nativeEvent.keyCode !== START_KEYCODE;
  35640. case TOP_KEY_PRESS:
  35641. case TOP_MOUSE_DOWN:
  35642. case TOP_BLUR:
  35643. // Events are not possible without cancelling IME.
  35644. return true;
  35645. default:
  35646. return false;
  35647. }
  35648. }
  35649. /**
  35650. * Google Input Tools provides composition data via a CustomEvent,
  35651. * with the `data` property populated in the `detail` object. If this
  35652. * is available on the event object, use it. If not, this is a plain
  35653. * composition event and we have nothing special to extract.
  35654. *
  35655. * @param {object} nativeEvent
  35656. * @return {?string}
  35657. */
  35658. function getDataFromCustomEvent(nativeEvent) {
  35659. var detail = nativeEvent.detail;
  35660. if (typeof detail === 'object' && 'data' in detail) {
  35661. return detail.data;
  35662. }
  35663. return null;
  35664. }
  35665. /**
  35666. * Check if a composition event was triggered by Korean IME.
  35667. * Our fallback mode does not work well with IE's Korean IME,
  35668. * so just use native composition events when Korean IME is used.
  35669. * Although CompositionEvent.locale property is deprecated,
  35670. * it is available in IE, where our fallback mode is enabled.
  35671. *
  35672. * @param {object} nativeEvent
  35673. * @return {boolean}
  35674. */
  35675. function isUsingKoreanIME(nativeEvent) {
  35676. return nativeEvent.locale === 'ko';
  35677. }
  35678. // Track the current IME composition status, if any.
  35679. var isComposing = false;
  35680. /**
  35681. * @return {?object} A SyntheticCompositionEvent.
  35682. */
  35683. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35684. var eventType = void 0;
  35685. var fallbackData = void 0;
  35686. if (canUseCompositionEvent) {
  35687. eventType = getCompositionEventType(topLevelType);
  35688. } else if (!isComposing) {
  35689. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  35690. eventType = eventTypes.compositionStart;
  35691. }
  35692. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35693. eventType = eventTypes.compositionEnd;
  35694. }
  35695. if (!eventType) {
  35696. return null;
  35697. }
  35698. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  35699. // The current composition is stored statically and must not be
  35700. // overwritten while composition continues.
  35701. if (!isComposing && eventType === eventTypes.compositionStart) {
  35702. isComposing = initialize(nativeEventTarget);
  35703. } else if (eventType === eventTypes.compositionEnd) {
  35704. if (isComposing) {
  35705. fallbackData = getData();
  35706. }
  35707. }
  35708. }
  35709. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  35710. if (fallbackData) {
  35711. // Inject data generated from fallback path into the synthetic event.
  35712. // This matches the property of native CompositionEventInterface.
  35713. event.data = fallbackData;
  35714. } else {
  35715. var customData = getDataFromCustomEvent(nativeEvent);
  35716. if (customData !== null) {
  35717. event.data = customData;
  35718. }
  35719. }
  35720. accumulateTwoPhaseDispatches(event);
  35721. return event;
  35722. }
  35723. /**
  35724. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  35725. * @param {object} nativeEvent Native browser event.
  35726. * @return {?string} The string corresponding to this `beforeInput` event.
  35727. */
  35728. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  35729. switch (topLevelType) {
  35730. case TOP_COMPOSITION_END:
  35731. return getDataFromCustomEvent(nativeEvent);
  35732. case TOP_KEY_PRESS:
  35733. /**
  35734. * If native `textInput` events are available, our goal is to make
  35735. * use of them. However, there is a special case: the spacebar key.
  35736. * In Webkit, preventing default on a spacebar `textInput` event
  35737. * cancels character insertion, but it *also* causes the browser
  35738. * to fall back to its default spacebar behavior of scrolling the
  35739. * page.
  35740. *
  35741. * Tracking at:
  35742. * https://code.google.com/p/chromium/issues/detail?id=355103
  35743. *
  35744. * To avoid this issue, use the keypress event as if no `textInput`
  35745. * event is available.
  35746. */
  35747. var which = nativeEvent.which;
  35748. if (which !== SPACEBAR_CODE) {
  35749. return null;
  35750. }
  35751. hasSpaceKeypress = true;
  35752. return SPACEBAR_CHAR;
  35753. case TOP_TEXT_INPUT:
  35754. // Record the characters to be added to the DOM.
  35755. var chars = nativeEvent.data;
  35756. // If it's a spacebar character, assume that we have already handled
  35757. // it at the keypress level and bail immediately. Android Chrome
  35758. // doesn't give us keycodes, so we need to ignore it.
  35759. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  35760. return null;
  35761. }
  35762. return chars;
  35763. default:
  35764. // For other native event types, do nothing.
  35765. return null;
  35766. }
  35767. }
  35768. /**
  35769. * For browsers that do not provide the `textInput` event, extract the
  35770. * appropriate string to use for SyntheticInputEvent.
  35771. *
  35772. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  35773. * @param {object} nativeEvent Native browser event.
  35774. * @return {?string} The fallback string for this `beforeInput` event.
  35775. */
  35776. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  35777. // If we are currently composing (IME) and using a fallback to do so,
  35778. // try to extract the composed characters from the fallback object.
  35779. // If composition event is available, we extract a string only at
  35780. // compositionevent, otherwise extract it at fallback events.
  35781. if (isComposing) {
  35782. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35783. var chars = getData();
  35784. reset();
  35785. isComposing = false;
  35786. return chars;
  35787. }
  35788. return null;
  35789. }
  35790. switch (topLevelType) {
  35791. case TOP_PASTE:
  35792. // If a paste event occurs after a keypress, throw out the input
  35793. // chars. Paste events should not lead to BeforeInput events.
  35794. return null;
  35795. case TOP_KEY_PRESS:
  35796. /**
  35797. * As of v27, Firefox may fire keypress events even when no character
  35798. * will be inserted. A few possibilities:
  35799. *
  35800. * - `which` is `0`. Arrow keys, Esc key, etc.
  35801. *
  35802. * - `which` is the pressed key code, but no char is available.
  35803. * Ex: 'AltGr + d` in Polish. There is no modified character for
  35804. * this key combination and no character is inserted into the
  35805. * document, but FF fires the keypress for char code `100` anyway.
  35806. * No `input` event will occur.
  35807. *
  35808. * - `which` is the pressed key code, but a command combination is
  35809. * being used. Ex: `Cmd+C`. No character is inserted, and no
  35810. * `input` event will occur.
  35811. */
  35812. if (!isKeypressCommand(nativeEvent)) {
  35813. // IE fires the `keypress` event when a user types an emoji via
  35814. // Touch keyboard of Windows. In such a case, the `char` property
  35815. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  35816. // is 2, the property `which` does not represent an emoji correctly.
  35817. // In such a case, we directly return the `char` property instead of
  35818. // using `which`.
  35819. if (nativeEvent.char && nativeEvent.char.length > 1) {
  35820. return nativeEvent.char;
  35821. } else if (nativeEvent.which) {
  35822. return String.fromCharCode(nativeEvent.which);
  35823. }
  35824. }
  35825. return null;
  35826. case TOP_COMPOSITION_END:
  35827. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  35828. default:
  35829. return null;
  35830. }
  35831. }
  35832. /**
  35833. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  35834. * `textInput` or fallback behavior.
  35835. *
  35836. * @return {?object} A SyntheticInputEvent.
  35837. */
  35838. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35839. var chars = void 0;
  35840. if (canUseTextInputEvent) {
  35841. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  35842. } else {
  35843. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  35844. }
  35845. // If no characters are being inserted, no BeforeInput event should
  35846. // be fired.
  35847. if (!chars) {
  35848. return null;
  35849. }
  35850. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  35851. event.data = chars;
  35852. accumulateTwoPhaseDispatches(event);
  35853. return event;
  35854. }
  35855. /**
  35856. * Create an `onBeforeInput` event to match
  35857. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  35858. *
  35859. * This event plugin is based on the native `textInput` event
  35860. * available in Chrome, Safari, Opera, and IE. This event fires after
  35861. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  35862. *
  35863. * `beforeInput` is spec'd but not implemented in any browsers, and
  35864. * the `input` event does not provide any useful information about what has
  35865. * actually been added, contrary to the spec. Thus, `textInput` is the best
  35866. * available event to identify the characters that have actually been inserted
  35867. * into the target node.
  35868. *
  35869. * This plugin is also responsible for emitting `composition` events, thus
  35870. * allowing us to share composition fallback code for both `beforeInput` and
  35871. * `composition` event types.
  35872. */
  35873. var BeforeInputEventPlugin = {
  35874. eventTypes: eventTypes,
  35875. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35876. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35877. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35878. if (composition === null) {
  35879. return beforeInput;
  35880. }
  35881. if (beforeInput === null) {
  35882. return composition;
  35883. }
  35884. return [composition, beforeInput];
  35885. }
  35886. };
  35887. // Use to restore controlled state after a change event has fired.
  35888. var restoreImpl = null;
  35889. var restoreTarget = null;
  35890. var restoreQueue = null;
  35891. function restoreStateOfTarget(target) {
  35892. // We perform this translation at the end of the event loop so that we
  35893. // always receive the correct fiber here
  35894. var internalInstance = getInstanceFromNode(target);
  35895. if (!internalInstance) {
  35896. // Unmounted
  35897. return;
  35898. }
  35899. (function () {
  35900. if (!(typeof restoreImpl === 'function')) {
  35901. {
  35902. throw ReactError(Error('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.'));
  35903. }
  35904. }
  35905. })();
  35906. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  35907. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  35908. }
  35909. function setRestoreImplementation(impl) {
  35910. restoreImpl = impl;
  35911. }
  35912. function enqueueStateRestore(target) {
  35913. if (restoreTarget) {
  35914. if (restoreQueue) {
  35915. restoreQueue.push(target);
  35916. } else {
  35917. restoreQueue = [target];
  35918. }
  35919. } else {
  35920. restoreTarget = target;
  35921. }
  35922. }
  35923. function needsStateRestore() {
  35924. return restoreTarget !== null || restoreQueue !== null;
  35925. }
  35926. function restoreStateIfNeeded() {
  35927. if (!restoreTarget) {
  35928. return;
  35929. }
  35930. var target = restoreTarget;
  35931. var queuedTargets = restoreQueue;
  35932. restoreTarget = null;
  35933. restoreQueue = null;
  35934. restoreStateOfTarget(target);
  35935. if (queuedTargets) {
  35936. for (var i = 0; i < queuedTargets.length; i++) {
  35937. restoreStateOfTarget(queuedTargets[i]);
  35938. }
  35939. }
  35940. }
  35941. var enableUserTimingAPI = true;
  35942. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  35943. var debugRenderPhaseSideEffects = false;
  35944. // In some cases, StrictMode should also double-render lifecycles.
  35945. // This can be confusing for tests though,
  35946. // And it can be bad for performance in production.
  35947. // This feature flag can be used to control the behavior:
  35948. var debugRenderPhaseSideEffectsForStrictMode = true;
  35949. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  35950. // replay the begin phase of a failed component inside invokeGuardedCallback.
  35951. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  35952. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  35953. var warnAboutDeprecatedLifecycles = true;
  35954. // Gather advanced timing metrics for Profiler subtrees.
  35955. var enableProfilerTimer = true;
  35956. // Trace which interactions trigger each commit.
  35957. var enableSchedulerTracing = true;
  35958. // Only used in www builds.
  35959. var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
  35960. // Only used in www builds.
  35961. // Only used in www builds.
  35962. // Disable javascript: URL strings in href for XSS protection.
  35963. var disableJavaScriptURLs = false;
  35964. // React Fire: prevent the value and checked attributes from syncing
  35965. // with their related DOM properties
  35966. var disableInputAttributeSyncing = false;
  35967. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  35968. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  35969. var enableStableConcurrentModeAPIs = false;
  35970. var warnAboutShorthandPropertyCollision = false;
  35971. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  35972. // This is a flag so we can fix warnings in RN core before turning it on
  35973. // Experimental React Flare event system and event components support.
  35974. var enableFlareAPI = false;
  35975. // Experimental Host Component support.
  35976. var enableFundamentalAPI = false;
  35977. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  35978. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  35979. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  35980. var warnAboutUnmockedScheduler = false;
  35981. // Temporary flag to revert the fix in #15650
  35982. var revertPassiveEffectsChange = false;
  35983. // For tests, we flush suspense fallbacks in an act scope;
  35984. // *except* in some of our own tests, where we test incremental loading states.
  35985. var flushSuspenseFallbacksInTests = true;
  35986. // Changes priority of some events like mousemove to user-blocking priority,
  35987. // but without making them discrete. The flag exists in case it causes
  35988. // starvation problems.
  35989. var enableUserBlockingEvents = false;
  35990. // Add a callback property to suspense to notify which promises are currently
  35991. // in the update queue. This allows reporting and tracing of what is causing
  35992. // the user to see a loading state.
  35993. var enableSuspenseCallback = false;
  35994. // Part of the simplification of React.createElement so we can eventually move
  35995. // from React.createElement to React.jsx
  35996. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  35997. var warnAboutDefaultPropsOnFunctionComponents = false;
  35998. var disableLegacyContext = false;
  35999. var disableSchedulerTimeoutBasedOnReactExpirationTime = false;
  36000. // Used as a way to call batchedUpdates when we don't have a reference to
  36001. // the renderer. Such as when we're dispatching events or if third party
  36002. // libraries need to call batchedUpdates. Eventually, this API will go away when
  36003. // everything is batched by default. We'll then have a similar API to opt-out of
  36004. // scheduled work and instead do synchronous work.
  36005. // Defaults
  36006. var batchedUpdatesImpl = function (fn, bookkeeping) {
  36007. return fn(bookkeeping);
  36008. };
  36009. var discreteUpdatesImpl = function (fn, a, b, c) {
  36010. return fn(a, b, c);
  36011. };
  36012. var flushDiscreteUpdatesImpl = function () {};
  36013. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  36014. var isInsideEventHandler = false;
  36015. function finishEventHandler() {
  36016. // Here we wait until all updates have propagated, which is important
  36017. // when using controlled components within layers:
  36018. // https://github.com/facebook/react/issues/1698
  36019. // Then we restore state of any controlled component.
  36020. var controlledComponentsHavePendingUpdates = needsStateRestore();
  36021. if (controlledComponentsHavePendingUpdates) {
  36022. // If a controlled event was fired, we may need to restore the state of
  36023. // the DOM node back to the controlled value. This is necessary when React
  36024. // bails out of the update without touching the DOM.
  36025. flushDiscreteUpdatesImpl();
  36026. restoreStateIfNeeded();
  36027. }
  36028. }
  36029. function batchedUpdates(fn, bookkeeping) {
  36030. if (isInsideEventHandler) {
  36031. // If we are currently inside another batch, we need to wait until it
  36032. // fully completes before restoring state.
  36033. return fn(bookkeeping);
  36034. }
  36035. isInsideEventHandler = true;
  36036. try {
  36037. return batchedUpdatesImpl(fn, bookkeeping);
  36038. } finally {
  36039. isInsideEventHandler = false;
  36040. finishEventHandler();
  36041. }
  36042. }
  36043. function batchedEventUpdates(fn, a, b) {
  36044. if (isInsideEventHandler) {
  36045. // If we are currently inside another batch, we need to wait until it
  36046. // fully completes before restoring state.
  36047. return fn(a, b);
  36048. }
  36049. isInsideEventHandler = true;
  36050. try {
  36051. return batchedEventUpdatesImpl(fn, a, b);
  36052. } finally {
  36053. isInsideEventHandler = false;
  36054. finishEventHandler();
  36055. }
  36056. }
  36057. function discreteUpdates(fn, a, b, c) {
  36058. var prevIsInsideEventHandler = isInsideEventHandler;
  36059. isInsideEventHandler = true;
  36060. try {
  36061. return discreteUpdatesImpl(fn, a, b, c);
  36062. } finally {
  36063. isInsideEventHandler = prevIsInsideEventHandler;
  36064. if (!isInsideEventHandler) {
  36065. finishEventHandler();
  36066. }
  36067. }
  36068. }
  36069. var lastFlushedEventTimeStamp = 0;
  36070. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  36071. // event.timeStamp isn't overly reliable due to inconsistencies in
  36072. // how different browsers have historically provided the time stamp.
  36073. // Some browsers provide high-resolution time stamps for all events,
  36074. // some provide low-resolution time stamps for all events. FF < 52
  36075. // even mixes both time stamps together. Some browsers even report
  36076. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  36077. // Given we are only comparing two time stamps with equality (!==),
  36078. // we are safe from the resolution differences. If the time stamp is 0
  36079. // we bail-out of preventing the flush, which can affect semantics,
  36080. // such as if an earlier flush removes or adds event listeners that
  36081. // are fired in the subsequent flush. However, this is the same
  36082. // behaviour as we had before this change, so the risks are low.
  36083. if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {
  36084. lastFlushedEventTimeStamp = timeStamp;
  36085. flushDiscreteUpdatesImpl();
  36086. }
  36087. }
  36088. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  36089. batchedUpdatesImpl = _batchedUpdatesImpl;
  36090. discreteUpdatesImpl = _discreteUpdatesImpl;
  36091. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  36092. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  36093. }
  36094. /**
  36095. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  36096. */
  36097. var supportedInputTypes = {
  36098. color: true,
  36099. date: true,
  36100. datetime: true,
  36101. 'datetime-local': true,
  36102. email: true,
  36103. month: true,
  36104. number: true,
  36105. password: true,
  36106. range: true,
  36107. search: true,
  36108. tel: true,
  36109. text: true,
  36110. time: true,
  36111. url: true,
  36112. week: true
  36113. };
  36114. function isTextInputElement(elem) {
  36115. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  36116. if (nodeName === 'input') {
  36117. return !!supportedInputTypes[elem.type];
  36118. }
  36119. if (nodeName === 'textarea') {
  36120. return true;
  36121. }
  36122. return false;
  36123. }
  36124. /**
  36125. * HTML nodeType values that represent the type of the node
  36126. */
  36127. var ELEMENT_NODE = 1;
  36128. var TEXT_NODE = 3;
  36129. var COMMENT_NODE = 8;
  36130. var DOCUMENT_NODE = 9;
  36131. var DOCUMENT_FRAGMENT_NODE = 11;
  36132. /**
  36133. * Gets the target node from a native browser event by accounting for
  36134. * inconsistencies in browser DOM APIs.
  36135. *
  36136. * @param {object} nativeEvent Native browser event.
  36137. * @return {DOMEventTarget} Target node.
  36138. */
  36139. function getEventTarget(nativeEvent) {
  36140. // Fallback to nativeEvent.srcElement for IE9
  36141. // https://github.com/facebook/react/issues/12506
  36142. var target = nativeEvent.target || nativeEvent.srcElement || window;
  36143. // Normalize SVG <use> element events #4963
  36144. if (target.correspondingUseElement) {
  36145. target = target.correspondingUseElement;
  36146. }
  36147. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  36148. // @see http://www.quirksmode.org/js/events_properties.html
  36149. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  36150. }
  36151. /**
  36152. * Checks if an event is supported in the current execution environment.
  36153. *
  36154. * NOTE: This will not work correctly for non-generic events such as `change`,
  36155. * `reset`, `load`, `error`, and `select`.
  36156. *
  36157. * Borrows from Modernizr.
  36158. *
  36159. * @param {string} eventNameSuffix Event name, e.g. "click".
  36160. * @return {boolean} True if the event is supported.
  36161. * @internal
  36162. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  36163. */
  36164. function isEventSupported(eventNameSuffix) {
  36165. if (!canUseDOM) {
  36166. return false;
  36167. }
  36168. var eventName = 'on' + eventNameSuffix;
  36169. var isSupported = eventName in document;
  36170. if (!isSupported) {
  36171. var element = document.createElement('div');
  36172. element.setAttribute(eventName, 'return;');
  36173. isSupported = typeof element[eventName] === 'function';
  36174. }
  36175. return isSupported;
  36176. }
  36177. function isCheckable(elem) {
  36178. var type = elem.type;
  36179. var nodeName = elem.nodeName;
  36180. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  36181. }
  36182. function getTracker(node) {
  36183. return node._valueTracker;
  36184. }
  36185. function detachTracker(node) {
  36186. node._valueTracker = null;
  36187. }
  36188. function getValueFromNode(node) {
  36189. var value = '';
  36190. if (!node) {
  36191. return value;
  36192. }
  36193. if (isCheckable(node)) {
  36194. value = node.checked ? 'true' : 'false';
  36195. } else {
  36196. value = node.value;
  36197. }
  36198. return value;
  36199. }
  36200. function trackValueOnNode(node) {
  36201. var valueField = isCheckable(node) ? 'checked' : 'value';
  36202. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  36203. var currentValue = '' + node[valueField];
  36204. // if someone has already defined a value or Safari, then bail
  36205. // and don't track value will cause over reporting of changes,
  36206. // but it's better then a hard failure
  36207. // (needed for certain tests that spyOn input values and Safari)
  36208. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  36209. return;
  36210. }
  36211. var get = descriptor.get,
  36212. set = descriptor.set;
  36213. Object.defineProperty(node, valueField, {
  36214. configurable: true,
  36215. get: function () {
  36216. return get.call(this);
  36217. },
  36218. set: function (value) {
  36219. currentValue = '' + value;
  36220. set.call(this, value);
  36221. }
  36222. });
  36223. // We could've passed this the first time
  36224. // but it triggers a bug in IE11 and Edge 14/15.
  36225. // Calling defineProperty() again should be equivalent.
  36226. // https://github.com/facebook/react/issues/11768
  36227. Object.defineProperty(node, valueField, {
  36228. enumerable: descriptor.enumerable
  36229. });
  36230. var tracker = {
  36231. getValue: function () {
  36232. return currentValue;
  36233. },
  36234. setValue: function (value) {
  36235. currentValue = '' + value;
  36236. },
  36237. stopTracking: function () {
  36238. detachTracker(node);
  36239. delete node[valueField];
  36240. }
  36241. };
  36242. return tracker;
  36243. }
  36244. function track(node) {
  36245. if (getTracker(node)) {
  36246. return;
  36247. }
  36248. // TODO: Once it's just Fiber we can move this to node._wrapperState
  36249. node._valueTracker = trackValueOnNode(node);
  36250. }
  36251. function updateValueIfChanged(node) {
  36252. if (!node) {
  36253. return false;
  36254. }
  36255. var tracker = getTracker(node);
  36256. // if there is no tracker at this point it's unlikely
  36257. // that trying again will succeed
  36258. if (!tracker) {
  36259. return true;
  36260. }
  36261. var lastValue = tracker.getValue();
  36262. var nextValue = getValueFromNode(node);
  36263. if (nextValue !== lastValue) {
  36264. tracker.setValue(nextValue);
  36265. return true;
  36266. }
  36267. return false;
  36268. }
  36269. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  36270. // Prevent newer renderers from RTE when used with older react package versions.
  36271. // Current owner and dispatcher used to share the same ref,
  36272. // but PR #14548 split them out to better support the react-debug-tools package.
  36273. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  36274. ReactSharedInternals.ReactCurrentDispatcher = {
  36275. current: null
  36276. };
  36277. }
  36278. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  36279. ReactSharedInternals.ReactCurrentBatchConfig = {
  36280. suspense: null
  36281. };
  36282. }
  36283. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  36284. var describeComponentFrame = function (name, source, ownerName) {
  36285. var sourceInfo = '';
  36286. if (source) {
  36287. var path = source.fileName;
  36288. var fileName = path.replace(BEFORE_SLASH_RE, '');
  36289. {
  36290. // In DEV, include code for a common special case:
  36291. // prefer "folder/index.js" instead of just "index.js".
  36292. if (/^index\./.test(fileName)) {
  36293. var match = path.match(BEFORE_SLASH_RE);
  36294. if (match) {
  36295. var pathBeforeSlash = match[1];
  36296. if (pathBeforeSlash) {
  36297. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  36298. fileName = folderName + '/' + fileName;
  36299. }
  36300. }
  36301. }
  36302. }
  36303. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  36304. } else if (ownerName) {
  36305. sourceInfo = ' (created by ' + ownerName + ')';
  36306. }
  36307. return '\n in ' + (name || 'Unknown') + sourceInfo;
  36308. };
  36309. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  36310. // nor polyfill, then a plain number is used for performance.
  36311. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  36312. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  36313. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  36314. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  36315. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  36316. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  36317. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  36318. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  36319. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  36320. // (unstable) APIs that have been removed. Can we remove the symbols?
  36321. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  36322. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  36323. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  36324. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  36325. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  36326. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  36327. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  36328. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  36329. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  36330. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  36331. function getIteratorFn(maybeIterable) {
  36332. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  36333. return null;
  36334. }
  36335. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  36336. if (typeof maybeIterator === 'function') {
  36337. return maybeIterator;
  36338. }
  36339. return null;
  36340. }
  36341. var Pending = 0;
  36342. var Resolved = 1;
  36343. var Rejected = 2;
  36344. function refineResolvedLazyComponent(lazyComponent) {
  36345. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  36346. }
  36347. function getWrappedName(outerType, innerType, wrapperName) {
  36348. var functionName = innerType.displayName || innerType.name || '';
  36349. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  36350. }
  36351. function getComponentName(type) {
  36352. if (type == null) {
  36353. // Host root, text node or just invalid type.
  36354. return null;
  36355. }
  36356. {
  36357. if (typeof type.tag === 'number') {
  36358. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  36359. }
  36360. }
  36361. if (typeof type === 'function') {
  36362. return type.displayName || type.name || null;
  36363. }
  36364. if (typeof type === 'string') {
  36365. return type;
  36366. }
  36367. switch (type) {
  36368. case REACT_FRAGMENT_TYPE:
  36369. return 'Fragment';
  36370. case REACT_PORTAL_TYPE:
  36371. return 'Portal';
  36372. case REACT_PROFILER_TYPE:
  36373. return 'Profiler';
  36374. case REACT_STRICT_MODE_TYPE:
  36375. return 'StrictMode';
  36376. case REACT_SUSPENSE_TYPE:
  36377. return 'Suspense';
  36378. case REACT_SUSPENSE_LIST_TYPE:
  36379. return 'SuspenseList';
  36380. }
  36381. if (typeof type === 'object') {
  36382. switch (type.$$typeof) {
  36383. case REACT_CONTEXT_TYPE:
  36384. return 'Context.Consumer';
  36385. case REACT_PROVIDER_TYPE:
  36386. return 'Context.Provider';
  36387. case REACT_FORWARD_REF_TYPE:
  36388. return getWrappedName(type, type.render, 'ForwardRef');
  36389. case REACT_MEMO_TYPE:
  36390. return getComponentName(type.type);
  36391. case REACT_LAZY_TYPE:
  36392. {
  36393. var thenable = type;
  36394. var resolvedThenable = refineResolvedLazyComponent(thenable);
  36395. if (resolvedThenable) {
  36396. return getComponentName(resolvedThenable);
  36397. }
  36398. break;
  36399. }
  36400. }
  36401. }
  36402. return null;
  36403. }
  36404. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36405. function describeFiber(fiber) {
  36406. switch (fiber.tag) {
  36407. case HostRoot:
  36408. case HostPortal:
  36409. case HostText:
  36410. case Fragment:
  36411. case ContextProvider:
  36412. case ContextConsumer:
  36413. return '';
  36414. default:
  36415. var owner = fiber._debugOwner;
  36416. var source = fiber._debugSource;
  36417. var name = getComponentName(fiber.type);
  36418. var ownerName = null;
  36419. if (owner) {
  36420. ownerName = getComponentName(owner.type);
  36421. }
  36422. return describeComponentFrame(name, source, ownerName);
  36423. }
  36424. }
  36425. function getStackByFiberInDevAndProd(workInProgress) {
  36426. var info = '';
  36427. var node = workInProgress;
  36428. do {
  36429. info += describeFiber(node);
  36430. node = node.return;
  36431. } while (node);
  36432. return info;
  36433. }
  36434. var current = null;
  36435. var phase = null;
  36436. function getCurrentFiberOwnerNameInDevOrNull() {
  36437. {
  36438. if (current === null) {
  36439. return null;
  36440. }
  36441. var owner = current._debugOwner;
  36442. if (owner !== null && typeof owner !== 'undefined') {
  36443. return getComponentName(owner.type);
  36444. }
  36445. }
  36446. return null;
  36447. }
  36448. function getCurrentFiberStackInDev() {
  36449. {
  36450. if (current === null) {
  36451. return '';
  36452. }
  36453. // Safe because if current fiber exists, we are reconciling,
  36454. // and it is guaranteed to be the work-in-progress version.
  36455. return getStackByFiberInDevAndProd(current);
  36456. }
  36457. return '';
  36458. }
  36459. function resetCurrentFiber() {
  36460. {
  36461. ReactDebugCurrentFrame.getCurrentStack = null;
  36462. current = null;
  36463. phase = null;
  36464. }
  36465. }
  36466. function setCurrentFiber(fiber) {
  36467. {
  36468. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  36469. current = fiber;
  36470. phase = null;
  36471. }
  36472. }
  36473. function setCurrentPhase(lifeCyclePhase) {
  36474. {
  36475. phase = lifeCyclePhase;
  36476. }
  36477. }
  36478. /**
  36479. * Similar to invariant but only logs a warning if the condition is not met.
  36480. * This can be used to log issues in development environments in critical
  36481. * paths. Removing the logging code for production environments will keep the
  36482. * same logic and follow the same code paths.
  36483. */
  36484. var warning = warningWithoutStack$1;
  36485. {
  36486. warning = function (condition, format) {
  36487. if (condition) {
  36488. return;
  36489. }
  36490. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36491. var stack = ReactDebugCurrentFrame.getStackAddendum();
  36492. // eslint-disable-next-line react-internal/warning-and-invariant-args
  36493. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  36494. args[_key - 2] = arguments[_key];
  36495. }
  36496. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  36497. };
  36498. }
  36499. var warning$1 = warning;
  36500. // A reserved attribute.
  36501. // It is handled by React separately and shouldn't be written to the DOM.
  36502. var RESERVED = 0;
  36503. // A simple string attribute.
  36504. // Attributes that aren't in the whitelist are presumed to have this type.
  36505. var STRING = 1;
  36506. // A string attribute that accepts booleans in React. In HTML, these are called
  36507. // "enumerated" attributes with "true" and "false" as possible values.
  36508. // When true, it should be set to a "true" string.
  36509. // When false, it should be set to a "false" string.
  36510. var BOOLEANISH_STRING = 2;
  36511. // A real boolean attribute.
  36512. // When true, it should be present (set either to an empty string or its name).
  36513. // When false, it should be omitted.
  36514. var BOOLEAN = 3;
  36515. // An attribute that can be used as a flag as well as with a value.
  36516. // When true, it should be present (set either to an empty string or its name).
  36517. // When false, it should be omitted.
  36518. // For any other value, should be present with that value.
  36519. var OVERLOADED_BOOLEAN = 4;
  36520. // An attribute that must be numeric or parse as a numeric.
  36521. // When falsy, it should be removed.
  36522. var NUMERIC = 5;
  36523. // An attribute that must be positive numeric or parse as a positive numeric.
  36524. // When falsy, it should be removed.
  36525. var POSITIVE_NUMERIC = 6;
  36526. /* eslint-disable max-len */
  36527. 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';
  36528. /* eslint-enable max-len */
  36529. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  36530. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  36531. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  36532. var hasOwnProperty = Object.prototype.hasOwnProperty;
  36533. var illegalAttributeNameCache = {};
  36534. var validatedAttributeNameCache = {};
  36535. function isAttributeNameSafe(attributeName) {
  36536. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  36537. return true;
  36538. }
  36539. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  36540. return false;
  36541. }
  36542. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  36543. validatedAttributeNameCache[attributeName] = true;
  36544. return true;
  36545. }
  36546. illegalAttributeNameCache[attributeName] = true;
  36547. {
  36548. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  36549. }
  36550. return false;
  36551. }
  36552. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  36553. if (propertyInfo !== null) {
  36554. return propertyInfo.type === RESERVED;
  36555. }
  36556. if (isCustomComponentTag) {
  36557. return false;
  36558. }
  36559. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  36560. return true;
  36561. }
  36562. return false;
  36563. }
  36564. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  36565. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  36566. return false;
  36567. }
  36568. switch (typeof value) {
  36569. case 'function':
  36570. // $FlowIssue symbol is perfectly valid here
  36571. case 'symbol':
  36572. // eslint-disable-line
  36573. return true;
  36574. case 'boolean':
  36575. {
  36576. if (isCustomComponentTag) {
  36577. return false;
  36578. }
  36579. if (propertyInfo !== null) {
  36580. return !propertyInfo.acceptsBooleans;
  36581. } else {
  36582. var prefix = name.toLowerCase().slice(0, 5);
  36583. return prefix !== 'data-' && prefix !== 'aria-';
  36584. }
  36585. }
  36586. default:
  36587. return false;
  36588. }
  36589. }
  36590. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  36591. if (value === null || typeof value === 'undefined') {
  36592. return true;
  36593. }
  36594. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  36595. return true;
  36596. }
  36597. if (isCustomComponentTag) {
  36598. return false;
  36599. }
  36600. if (propertyInfo !== null) {
  36601. switch (propertyInfo.type) {
  36602. case BOOLEAN:
  36603. return !value;
  36604. case OVERLOADED_BOOLEAN:
  36605. return value === false;
  36606. case NUMERIC:
  36607. return isNaN(value);
  36608. case POSITIVE_NUMERIC:
  36609. return isNaN(value) || value < 1;
  36610. }
  36611. }
  36612. return false;
  36613. }
  36614. function getPropertyInfo(name) {
  36615. return properties.hasOwnProperty(name) ? properties[name] : null;
  36616. }
  36617. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  36618. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  36619. this.attributeName = attributeName;
  36620. this.attributeNamespace = attributeNamespace;
  36621. this.mustUseProperty = mustUseProperty;
  36622. this.propertyName = name;
  36623. this.type = type;
  36624. this.sanitizeURL = sanitizeURL;
  36625. }
  36626. // When adding attributes to this list, be sure to also add them to
  36627. // the `possibleStandardNames` module to ensure casing and incorrect
  36628. // name warnings.
  36629. var properties = {};
  36630. // These props are reserved by React. They shouldn't be written to the DOM.
  36631. ['children', 'dangerouslySetInnerHTML',
  36632. // TODO: This prevents the assignment of defaultValue to regular
  36633. // elements (not just inputs). Now that ReactDOMInput assigns to the
  36634. // defaultValue property -- do we need this?
  36635. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  36636. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  36637. name, // attributeName
  36638. null, // attributeNamespace
  36639. false);
  36640. } // sanitizeURL
  36641. );
  36642. // A few React string attributes have a different name.
  36643. // This is a mapping from React prop names to the attribute names.
  36644. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  36645. var name = _ref[0],
  36646. attributeName = _ref[1];
  36647. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36648. attributeName, // attributeName
  36649. null, // attributeNamespace
  36650. false);
  36651. } // sanitizeURL
  36652. );
  36653. // These are "enumerated" HTML attributes that accept "true" and "false".
  36654. // In React, we let users pass `true` and `false` even though technically
  36655. // these aren't boolean attributes (they are coerced to strings).
  36656. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  36657. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36658. name.toLowerCase(), // attributeName
  36659. null, // attributeNamespace
  36660. false);
  36661. } // sanitizeURL
  36662. );
  36663. // These are "enumerated" SVG attributes that accept "true" and "false".
  36664. // In React, we let users pass `true` and `false` even though technically
  36665. // these aren't boolean attributes (they are coerced to strings).
  36666. // Since these are SVG attributes, their attribute names are case-sensitive.
  36667. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  36668. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36669. name, // attributeName
  36670. null, // attributeNamespace
  36671. false);
  36672. } // sanitizeURL
  36673. );
  36674. // These are HTML boolean attributes.
  36675. ['allowFullScreen', 'async',
  36676. // Note: there is a special case that prevents it from being written to the DOM
  36677. // on the client side because the browsers are inconsistent. Instead we call focus().
  36678. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  36679. // Microdata
  36680. 'itemScope'].forEach(function (name) {
  36681. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  36682. name.toLowerCase(), // attributeName
  36683. null, // attributeNamespace
  36684. false);
  36685. } // sanitizeURL
  36686. );
  36687. // These are the few React props that we set as DOM properties
  36688. // rather than attributes. These are all booleans.
  36689. ['checked',
  36690. // Note: `option.selected` is not updated if `select.multiple` is
  36691. // disabled with `removeAttribute`. We have special logic for handling this.
  36692. 'multiple', 'muted', 'selected'].forEach(function (name) {
  36693. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  36694. name, // attributeName
  36695. null, // attributeNamespace
  36696. false);
  36697. } // sanitizeURL
  36698. );
  36699. // These are HTML attributes that are "overloaded booleans": they behave like
  36700. // booleans, but can also accept a string value.
  36701. ['capture', 'download'].forEach(function (name) {
  36702. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  36703. name, // attributeName
  36704. null, // attributeNamespace
  36705. false);
  36706. } // sanitizeURL
  36707. );
  36708. // These are HTML attributes that must be positive numbers.
  36709. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  36710. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  36711. name, // attributeName
  36712. null, // attributeNamespace
  36713. false);
  36714. } // sanitizeURL
  36715. );
  36716. // These are HTML attributes that must be numbers.
  36717. ['rowSpan', 'start'].forEach(function (name) {
  36718. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  36719. name.toLowerCase(), // attributeName
  36720. null, // attributeNamespace
  36721. false);
  36722. } // sanitizeURL
  36723. );
  36724. var CAMELIZE = /[\-\:]([a-z])/g;
  36725. var capitalize = function (token) {
  36726. return token[1].toUpperCase();
  36727. };
  36728. // This is a list of all SVG attributes that need special casing, namespacing,
  36729. // or boolean value assignment. Regular attributes that just accept strings
  36730. // and have the same names are omitted, just like in the HTML whitelist.
  36731. // Some of these attributes can be hard to find. This list was created by
  36732. // scrapping the MDN documentation.
  36733. ['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) {
  36734. var name = attributeName.replace(CAMELIZE, capitalize);
  36735. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36736. attributeName, null, // attributeNamespace
  36737. false);
  36738. } // sanitizeURL
  36739. );
  36740. // String SVG attributes with the xlink namespace.
  36741. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  36742. var name = attributeName.replace(CAMELIZE, capitalize);
  36743. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36744. attributeName, 'http://www.w3.org/1999/xlink', false);
  36745. } // sanitizeURL
  36746. );
  36747. // String SVG attributes with the xml namespace.
  36748. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  36749. var name = attributeName.replace(CAMELIZE, capitalize);
  36750. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36751. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  36752. } // sanitizeURL
  36753. );
  36754. // These attribute exists both in HTML and SVG.
  36755. // The attribute name is case-sensitive in SVG so we can't just use
  36756. // the React name like we do for attributes that exist only in HTML.
  36757. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  36758. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  36759. attributeName.toLowerCase(), // attributeName
  36760. null, // attributeNamespace
  36761. false);
  36762. } // sanitizeURL
  36763. );
  36764. // These attributes accept URLs. These must not allow javascript: URLS.
  36765. // These will also need to accept Trusted Types object in the future.
  36766. var xlinkHref = 'xlinkHref';
  36767. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  36768. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  36769. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  36770. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  36771. attributeName.toLowerCase(), // attributeName
  36772. null, // attributeNamespace
  36773. true);
  36774. } // sanitizeURL
  36775. );
  36776. var ReactDebugCurrentFrame$1 = null;
  36777. {
  36778. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  36779. }
  36780. // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  36781. // and any newline or tab are filtered out as if they're not part of the URL.
  36782. // https://url.spec.whatwg.org/#url-parsing
  36783. // Tab or newline are defined as \r\n\t:
  36784. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  36785. // A C0 control is a code point in the range \u0000 NULL to \u001F
  36786. // INFORMATION SEPARATOR ONE, inclusive:
  36787. // https://infra.spec.whatwg.org/#c0-control-or-space
  36788. /* eslint-disable max-len */
  36789. var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
  36790. var didWarn = false;
  36791. function sanitizeURL(url) {
  36792. if (disableJavaScriptURLs) {
  36793. (function () {
  36794. if (!!isJavaScriptProtocol.test(url)) {
  36795. {
  36796. throw ReactError(Error('React has blocked a javascript: URL as a security precaution.' + (ReactDebugCurrentFrame$1.getStackAddendum())));
  36797. }
  36798. }
  36799. })();
  36800. } else if ( true && !didWarn && isJavaScriptProtocol.test(url)) {
  36801. didWarn = true;
  36802. warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
  36803. }
  36804. }
  36805. /**
  36806. * Get the value for a property on a node. Only used in DEV for SSR validation.
  36807. * The "expected" argument is used as a hint of what the expected value is.
  36808. * Some properties have multiple equivalent values.
  36809. */
  36810. function getValueForProperty(node, name, expected, propertyInfo) {
  36811. {
  36812. if (propertyInfo.mustUseProperty) {
  36813. var propertyName = propertyInfo.propertyName;
  36814. return node[propertyName];
  36815. } else {
  36816. if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {
  36817. // If we haven't fully disabled javascript: URLs, and if
  36818. // the hydration is successful of a javascript: URL, we
  36819. // still want to warn on the client.
  36820. sanitizeURL('' + expected);
  36821. }
  36822. var attributeName = propertyInfo.attributeName;
  36823. var stringValue = null;
  36824. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  36825. if (node.hasAttribute(attributeName)) {
  36826. var value = node.getAttribute(attributeName);
  36827. if (value === '') {
  36828. return true;
  36829. }
  36830. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36831. return value;
  36832. }
  36833. if (value === '' + expected) {
  36834. return expected;
  36835. }
  36836. return value;
  36837. }
  36838. } else if (node.hasAttribute(attributeName)) {
  36839. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36840. // We had an attribute but shouldn't have had one, so read it
  36841. // for the error message.
  36842. return node.getAttribute(attributeName);
  36843. }
  36844. if (propertyInfo.type === BOOLEAN) {
  36845. // If this was a boolean, it doesn't matter what the value is
  36846. // the fact that we have it is the same as the expected.
  36847. return expected;
  36848. }
  36849. // Even if this property uses a namespace we use getAttribute
  36850. // because we assume its namespaced name is the same as our config.
  36851. // To use getAttributeNS we need the local name which we don't have
  36852. // in our config atm.
  36853. stringValue = node.getAttribute(attributeName);
  36854. }
  36855. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36856. return stringValue === null ? expected : stringValue;
  36857. } else if (stringValue === '' + expected) {
  36858. return expected;
  36859. } else {
  36860. return stringValue;
  36861. }
  36862. }
  36863. }
  36864. }
  36865. /**
  36866. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  36867. * The third argument is used as a hint of what the expected value is. Some
  36868. * attributes have multiple equivalent values.
  36869. */
  36870. function getValueForAttribute(node, name, expected) {
  36871. {
  36872. if (!isAttributeNameSafe(name)) {
  36873. return;
  36874. }
  36875. if (!node.hasAttribute(name)) {
  36876. return expected === undefined ? undefined : null;
  36877. }
  36878. var value = node.getAttribute(name);
  36879. if (value === '' + expected) {
  36880. return expected;
  36881. }
  36882. return value;
  36883. }
  36884. }
  36885. /**
  36886. * Sets the value for a property on a node.
  36887. *
  36888. * @param {DOMElement} node
  36889. * @param {string} name
  36890. * @param {*} value
  36891. */
  36892. function setValueForProperty(node, name, value, isCustomComponentTag) {
  36893. var propertyInfo = getPropertyInfo(name);
  36894. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  36895. return;
  36896. }
  36897. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  36898. value = null;
  36899. }
  36900. // If the prop isn't in the special list, treat it as a simple attribute.
  36901. if (isCustomComponentTag || propertyInfo === null) {
  36902. if (isAttributeNameSafe(name)) {
  36903. var _attributeName = name;
  36904. if (value === null) {
  36905. node.removeAttribute(_attributeName);
  36906. } else {
  36907. node.setAttribute(_attributeName, '' + value);
  36908. }
  36909. }
  36910. return;
  36911. }
  36912. var mustUseProperty = propertyInfo.mustUseProperty;
  36913. if (mustUseProperty) {
  36914. var propertyName = propertyInfo.propertyName;
  36915. if (value === null) {
  36916. var type = propertyInfo.type;
  36917. node[propertyName] = type === BOOLEAN ? false : '';
  36918. } else {
  36919. // Contrary to `setAttribute`, object properties are properly
  36920. // `toString`ed by IE8/9.
  36921. node[propertyName] = value;
  36922. }
  36923. return;
  36924. }
  36925. // The rest are treated as attributes with special cases.
  36926. var attributeName = propertyInfo.attributeName,
  36927. attributeNamespace = propertyInfo.attributeNamespace;
  36928. if (value === null) {
  36929. node.removeAttribute(attributeName);
  36930. } else {
  36931. var _type = propertyInfo.type;
  36932. var attributeValue = void 0;
  36933. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  36934. attributeValue = '';
  36935. } else {
  36936. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  36937. // ('' + value) makes it output the correct toString()-value.
  36938. attributeValue = '' + value;
  36939. if (propertyInfo.sanitizeURL) {
  36940. sanitizeURL(attributeValue);
  36941. }
  36942. }
  36943. if (attributeNamespace) {
  36944. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  36945. } else {
  36946. node.setAttribute(attributeName, attributeValue);
  36947. }
  36948. }
  36949. }
  36950. // Flow does not allow string concatenation of most non-string types. To work
  36951. // around this limitation, we use an opaque type that can only be obtained by
  36952. // passing the value through getToStringValue first.
  36953. function toString(value) {
  36954. return '' + value;
  36955. }
  36956. function getToStringValue(value) {
  36957. switch (typeof value) {
  36958. case 'boolean':
  36959. case 'number':
  36960. case 'object':
  36961. case 'string':
  36962. case 'undefined':
  36963. return value;
  36964. default:
  36965. // function, symbol are assigned as empty strings
  36966. return '';
  36967. }
  36968. }
  36969. var ReactDebugCurrentFrame$2 = null;
  36970. var ReactControlledValuePropTypes = {
  36971. checkPropTypes: null
  36972. };
  36973. {
  36974. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  36975. var hasReadOnlyValue = {
  36976. button: true,
  36977. checkbox: true,
  36978. image: true,
  36979. hidden: true,
  36980. radio: true,
  36981. reset: true,
  36982. submit: true
  36983. };
  36984. var propTypes = {
  36985. value: function (props, propName, componentName) {
  36986. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  36987. return null;
  36988. }
  36989. 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`.');
  36990. },
  36991. checked: function (props, propName, componentName) {
  36992. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  36993. return null;
  36994. }
  36995. 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`.');
  36996. }
  36997. };
  36998. /**
  36999. * Provide a linked `value` attribute for controlled forms. You should not use
  37000. * this outside of the ReactDOM controlled form components.
  37001. */
  37002. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  37003. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  37004. };
  37005. }
  37006. // TODO: direct imports like some-package/src/* are bad. Fix me.
  37007. var didWarnValueDefaultValue = false;
  37008. var didWarnCheckedDefaultChecked = false;
  37009. var didWarnControlledToUncontrolled = false;
  37010. var didWarnUncontrolledToControlled = false;
  37011. function isControlled(props) {
  37012. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  37013. return usesChecked ? props.checked != null : props.value != null;
  37014. }
  37015. /**
  37016. * Implements an <input> host component that allows setting these optional
  37017. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  37018. *
  37019. * If `checked` or `value` are not supplied (or null/undefined), user actions
  37020. * that affect the checked state or value will trigger updates to the element.
  37021. *
  37022. * If they are supplied (and not null/undefined), the rendered element will not
  37023. * trigger updates to the element. Instead, the props must change in order for
  37024. * the rendered element to be updated.
  37025. *
  37026. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  37027. * with an empty value (or `defaultValue`).
  37028. *
  37029. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  37030. */
  37031. function getHostProps(element, props) {
  37032. var node = element;
  37033. var checked = props.checked;
  37034. var hostProps = _assign({}, props, {
  37035. defaultChecked: undefined,
  37036. defaultValue: undefined,
  37037. value: undefined,
  37038. checked: checked != null ? checked : node._wrapperState.initialChecked
  37039. });
  37040. return hostProps;
  37041. }
  37042. function initWrapperState(element, props) {
  37043. {
  37044. ReactControlledValuePropTypes.checkPropTypes('input', props);
  37045. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  37046. 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);
  37047. didWarnCheckedDefaultChecked = true;
  37048. }
  37049. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  37050. 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);
  37051. didWarnValueDefaultValue = true;
  37052. }
  37053. }
  37054. var node = element;
  37055. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  37056. node._wrapperState = {
  37057. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  37058. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  37059. controlled: isControlled(props)
  37060. };
  37061. }
  37062. function updateChecked(element, props) {
  37063. var node = element;
  37064. var checked = props.checked;
  37065. if (checked != null) {
  37066. setValueForProperty(node, 'checked', checked, false);
  37067. }
  37068. }
  37069. function updateWrapper(element, props) {
  37070. var node = element;
  37071. {
  37072. var _controlled = isControlled(props);
  37073. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  37074. 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);
  37075. didWarnUncontrolledToControlled = true;
  37076. }
  37077. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  37078. 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);
  37079. didWarnControlledToUncontrolled = true;
  37080. }
  37081. }
  37082. updateChecked(element, props);
  37083. var value = getToStringValue(props.value);
  37084. var type = props.type;
  37085. if (value != null) {
  37086. if (type === 'number') {
  37087. if (value === 0 && node.value === '' ||
  37088. // We explicitly want to coerce to number here if possible.
  37089. // eslint-disable-next-line
  37090. node.value != value) {
  37091. node.value = toString(value);
  37092. }
  37093. } else if (node.value !== toString(value)) {
  37094. node.value = toString(value);
  37095. }
  37096. } else if (type === 'submit' || type === 'reset') {
  37097. // Submit/reset inputs need the attribute removed completely to avoid
  37098. // blank-text buttons.
  37099. node.removeAttribute('value');
  37100. return;
  37101. }
  37102. if (disableInputAttributeSyncing) {
  37103. // When not syncing the value attribute, React only assigns a new value
  37104. // whenever the defaultValue React prop has changed. When not present,
  37105. // React does nothing
  37106. if (props.hasOwnProperty('defaultValue')) {
  37107. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  37108. }
  37109. } else {
  37110. // When syncing the value attribute, the value comes from a cascade of
  37111. // properties:
  37112. // 1. The value React property
  37113. // 2. The defaultValue React property
  37114. // 3. Otherwise there should be no change
  37115. if (props.hasOwnProperty('value')) {
  37116. setDefaultValue(node, props.type, value);
  37117. } else if (props.hasOwnProperty('defaultValue')) {
  37118. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  37119. }
  37120. }
  37121. if (disableInputAttributeSyncing) {
  37122. // When not syncing the checked attribute, the attribute is directly
  37123. // controllable from the defaultValue React property. It needs to be
  37124. // updated as new props come in.
  37125. if (props.defaultChecked == null) {
  37126. node.removeAttribute('checked');
  37127. } else {
  37128. node.defaultChecked = !!props.defaultChecked;
  37129. }
  37130. } else {
  37131. // When syncing the checked attribute, it only changes when it needs
  37132. // to be removed, such as transitioning from a checkbox into a text input
  37133. if (props.checked == null && props.defaultChecked != null) {
  37134. node.defaultChecked = !!props.defaultChecked;
  37135. }
  37136. }
  37137. }
  37138. function postMountWrapper(element, props, isHydrating) {
  37139. var node = element;
  37140. // Do not assign value if it is already set. This prevents user text input
  37141. // from being lost during SSR hydration.
  37142. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  37143. var type = props.type;
  37144. var isButton = type === 'submit' || type === 'reset';
  37145. // Avoid setting value attribute on submit/reset inputs as it overrides the
  37146. // default value provided by the browser. See: #12872
  37147. if (isButton && (props.value === undefined || props.value === null)) {
  37148. return;
  37149. }
  37150. var _initialValue = toString(node._wrapperState.initialValue);
  37151. // Do not assign value if it is already set. This prevents user text input
  37152. // from being lost during SSR hydration.
  37153. if (!isHydrating) {
  37154. if (disableInputAttributeSyncing) {
  37155. var value = getToStringValue(props.value);
  37156. // When not syncing the value attribute, the value property points
  37157. // directly to the React prop. Only assign it if it exists.
  37158. if (value != null) {
  37159. // Always assign on buttons so that it is possible to assign an
  37160. // empty string to clear button text.
  37161. //
  37162. // Otherwise, do not re-assign the value property if is empty. This
  37163. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  37164. // prematurely marking required inputs as invalid. Equality is compared
  37165. // to the current value in case the browser provided value is not an
  37166. // empty string.
  37167. if (isButton || value !== node.value) {
  37168. node.value = toString(value);
  37169. }
  37170. }
  37171. } else {
  37172. // When syncing the value attribute, the value property should use
  37173. // the wrapperState._initialValue property. This uses:
  37174. //
  37175. // 1. The value React property when present
  37176. // 2. The defaultValue React property when present
  37177. // 3. An empty string
  37178. if (_initialValue !== node.value) {
  37179. node.value = _initialValue;
  37180. }
  37181. }
  37182. }
  37183. if (disableInputAttributeSyncing) {
  37184. // When not syncing the value attribute, assign the value attribute
  37185. // directly from the defaultValue React property (when present)
  37186. var defaultValue = getToStringValue(props.defaultValue);
  37187. if (defaultValue != null) {
  37188. node.defaultValue = toString(defaultValue);
  37189. }
  37190. } else {
  37191. // Otherwise, the value attribute is synchronized to the property,
  37192. // so we assign defaultValue to the same thing as the value property
  37193. // assignment step above.
  37194. node.defaultValue = _initialValue;
  37195. }
  37196. }
  37197. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  37198. // this is needed to work around a chrome bug where setting defaultChecked
  37199. // will sometimes influence the value of checked (even after detachment).
  37200. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  37201. // We need to temporarily unset name to avoid disrupting radio button groups.
  37202. var name = node.name;
  37203. if (name !== '') {
  37204. node.name = '';
  37205. }
  37206. if (disableInputAttributeSyncing) {
  37207. // When not syncing the checked attribute, the checked property
  37208. // never gets assigned. It must be manually set. We don't want
  37209. // to do this when hydrating so that existing user input isn't
  37210. // modified
  37211. if (!isHydrating) {
  37212. updateChecked(element, props);
  37213. }
  37214. // Only assign the checked attribute if it is defined. This saves
  37215. // a DOM write when controlling the checked attribute isn't needed
  37216. // (text inputs, submit/reset)
  37217. if (props.hasOwnProperty('defaultChecked')) {
  37218. node.defaultChecked = !node.defaultChecked;
  37219. node.defaultChecked = !!props.defaultChecked;
  37220. }
  37221. } else {
  37222. // When syncing the checked attribute, both the checked property and
  37223. // attribute are assigned at the same time using defaultChecked. This uses:
  37224. //
  37225. // 1. The checked React property when present
  37226. // 2. The defaultChecked React property when present
  37227. // 3. Otherwise, false
  37228. node.defaultChecked = !node.defaultChecked;
  37229. node.defaultChecked = !!node._wrapperState.initialChecked;
  37230. }
  37231. if (name !== '') {
  37232. node.name = name;
  37233. }
  37234. }
  37235. function restoreControlledState(element, props) {
  37236. var node = element;
  37237. updateWrapper(node, props);
  37238. updateNamedCousins(node, props);
  37239. }
  37240. function updateNamedCousins(rootNode, props) {
  37241. var name = props.name;
  37242. if (props.type === 'radio' && name != null) {
  37243. var queryRoot = rootNode;
  37244. while (queryRoot.parentNode) {
  37245. queryRoot = queryRoot.parentNode;
  37246. }
  37247. // If `rootNode.form` was non-null, then we could try `form.elements`,
  37248. // but that sometimes behaves strangely in IE8. We could also try using
  37249. // `form.getElementsByName`, but that will only return direct children
  37250. // and won't include inputs that use the HTML5 `form=` attribute. Since
  37251. // the input might not even be in a form. It might not even be in the
  37252. // document. Let's just use the local `querySelectorAll` to ensure we don't
  37253. // miss anything.
  37254. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  37255. for (var i = 0; i < group.length; i++) {
  37256. var otherNode = group[i];
  37257. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  37258. continue;
  37259. }
  37260. // This will throw if radio buttons rendered by different copies of React
  37261. // and the same name are rendered into the same form (same as #1939).
  37262. // That's probably okay; we don't support it just as we don't support
  37263. // mixing React radio buttons with non-React ones.
  37264. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  37265. (function () {
  37266. if (!otherProps) {
  37267. {
  37268. throw ReactError(Error('ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.'));
  37269. }
  37270. }
  37271. })();
  37272. // We need update the tracked value on the named cousin since the value
  37273. // was changed but the input saw no event or value set
  37274. updateValueIfChanged(otherNode);
  37275. // If this is a controlled radio button group, forcing the input that
  37276. // was previously checked to update will cause it to be come re-checked
  37277. // as appropriate.
  37278. updateWrapper(otherNode, otherProps);
  37279. }
  37280. }
  37281. }
  37282. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  37283. // For number inputs, the display value loses trailing decimal points. For email inputs,
  37284. // Chrome raises "The specified value <x> is not a valid email address".
  37285. //
  37286. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  37287. // when the user is inputting text
  37288. //
  37289. // https://github.com/facebook/react/issues/7253
  37290. function setDefaultValue(node, type, value) {
  37291. if (
  37292. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  37293. type !== 'number' || node.ownerDocument.activeElement !== node) {
  37294. if (value == null) {
  37295. node.defaultValue = toString(node._wrapperState.initialValue);
  37296. } else if (node.defaultValue !== toString(value)) {
  37297. node.defaultValue = toString(value);
  37298. }
  37299. }
  37300. }
  37301. var eventTypes$1 = {
  37302. change: {
  37303. phasedRegistrationNames: {
  37304. bubbled: 'onChange',
  37305. captured: 'onChangeCapture'
  37306. },
  37307. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  37308. }
  37309. };
  37310. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  37311. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  37312. event.type = 'change';
  37313. // Flag this event loop as needing state restore.
  37314. enqueueStateRestore(target);
  37315. accumulateTwoPhaseDispatches(event);
  37316. return event;
  37317. }
  37318. /**
  37319. * For IE shims
  37320. */
  37321. var activeElement = null;
  37322. var activeElementInst = null;
  37323. /**
  37324. * SECTION: handle `change` event
  37325. */
  37326. function shouldUseChangeEvent(elem) {
  37327. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  37328. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  37329. }
  37330. function manualDispatchChangeEvent(nativeEvent) {
  37331. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  37332. // If change and propertychange bubbled, we'd just bind to it like all the
  37333. // other events and have it go through ReactBrowserEventEmitter. Since it
  37334. // doesn't, we manually listen for the events and so we have to enqueue and
  37335. // process the abstract event manually.
  37336. //
  37337. // Batching is necessary here in order to ensure that all event handlers run
  37338. // before the next rerender (including event handlers attached to ancestor
  37339. // elements instead of directly on the input). Without this, controlled
  37340. // components don't work properly in conjunction with event bubbling because
  37341. // the component is rerendered and the value reverted before all the event
  37342. // handlers can run. See https://github.com/facebook/react/issues/708.
  37343. batchedUpdates(runEventInBatch, event);
  37344. }
  37345. function runEventInBatch(event) {
  37346. runEventsInBatch(event);
  37347. }
  37348. function getInstIfValueChanged(targetInst) {
  37349. var targetNode = getNodeFromInstance$1(targetInst);
  37350. if (updateValueIfChanged(targetNode)) {
  37351. return targetInst;
  37352. }
  37353. }
  37354. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  37355. if (topLevelType === TOP_CHANGE) {
  37356. return targetInst;
  37357. }
  37358. }
  37359. /**
  37360. * SECTION: handle `input` event
  37361. */
  37362. var isInputEventSupported = false;
  37363. if (canUseDOM) {
  37364. // IE9 claims to support the input event but fails to trigger it when
  37365. // deleting text, so we ignore its input events.
  37366. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  37367. }
  37368. /**
  37369. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  37370. * and override the value property so that we can distinguish user events from
  37371. * value changes in JS.
  37372. */
  37373. function startWatchingForValueChange(target, targetInst) {
  37374. activeElement = target;
  37375. activeElementInst = targetInst;
  37376. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  37377. }
  37378. /**
  37379. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  37380. * if any exists.
  37381. */
  37382. function stopWatchingForValueChange() {
  37383. if (!activeElement) {
  37384. return;
  37385. }
  37386. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  37387. activeElement = null;
  37388. activeElementInst = null;
  37389. }
  37390. /**
  37391. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  37392. * the value of the active element has changed.
  37393. */
  37394. function handlePropertyChange(nativeEvent) {
  37395. if (nativeEvent.propertyName !== 'value') {
  37396. return;
  37397. }
  37398. if (getInstIfValueChanged(activeElementInst)) {
  37399. manualDispatchChangeEvent(nativeEvent);
  37400. }
  37401. }
  37402. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  37403. if (topLevelType === TOP_FOCUS) {
  37404. // In IE9, propertychange fires for most input events but is buggy and
  37405. // doesn't fire when text is deleted, but conveniently, selectionchange
  37406. // appears to fire in all of the remaining cases so we catch those and
  37407. // forward the event if the value has changed
  37408. // In either case, we don't want to call the event handler if the value
  37409. // is changed from JS so we redefine a setter for `.value` that updates
  37410. // our activeElementValue variable, allowing us to ignore those changes
  37411. //
  37412. // stopWatching() should be a noop here but we call it just in case we
  37413. // missed a blur event somehow.
  37414. stopWatchingForValueChange();
  37415. startWatchingForValueChange(target, targetInst);
  37416. } else if (topLevelType === TOP_BLUR) {
  37417. stopWatchingForValueChange();
  37418. }
  37419. }
  37420. // For IE8 and IE9.
  37421. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  37422. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  37423. // On the selectionchange event, the target is just document which isn't
  37424. // helpful for us so just check activeElement instead.
  37425. //
  37426. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  37427. // propertychange on the first input event after setting `value` from a
  37428. // script and fires only keydown, keypress, keyup. Catching keyup usually
  37429. // gets it and catching keydown lets us fire an event for the first
  37430. // keystroke if user does a key repeat (it'll be a little delayed: right
  37431. // before the second keystroke). Other input methods (e.g., paste) seem to
  37432. // fire selectionchange normally.
  37433. return getInstIfValueChanged(activeElementInst);
  37434. }
  37435. }
  37436. /**
  37437. * SECTION: handle `click` event
  37438. */
  37439. function shouldUseClickEvent(elem) {
  37440. // Use the `click` event to detect changes to checkbox and radio inputs.
  37441. // This approach works across all browsers, whereas `change` does not fire
  37442. // until `blur` in IE8.
  37443. var nodeName = elem.nodeName;
  37444. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  37445. }
  37446. function getTargetInstForClickEvent(topLevelType, targetInst) {
  37447. if (topLevelType === TOP_CLICK) {
  37448. return getInstIfValueChanged(targetInst);
  37449. }
  37450. }
  37451. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  37452. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  37453. return getInstIfValueChanged(targetInst);
  37454. }
  37455. }
  37456. function handleControlledInputBlur(node) {
  37457. var state = node._wrapperState;
  37458. if (!state || !state.controlled || node.type !== 'number') {
  37459. return;
  37460. }
  37461. if (!disableInputAttributeSyncing) {
  37462. // If controlled, assign the value attribute to the current value on blur
  37463. setDefaultValue(node, 'number', node.value);
  37464. }
  37465. }
  37466. /**
  37467. * This plugin creates an `onChange` event that normalizes change events
  37468. * across form elements. This event fires at a time when it's possible to
  37469. * change the element's value without seeing a flicker.
  37470. *
  37471. * Supported elements are:
  37472. * - input (see `isTextInputElement`)
  37473. * - textarea
  37474. * - select
  37475. */
  37476. var ChangeEventPlugin = {
  37477. eventTypes: eventTypes$1,
  37478. _isInputEventSupported: isInputEventSupported,
  37479. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37480. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  37481. var getTargetInstFunc = void 0,
  37482. handleEventFunc = void 0;
  37483. if (shouldUseChangeEvent(targetNode)) {
  37484. getTargetInstFunc = getTargetInstForChangeEvent;
  37485. } else if (isTextInputElement(targetNode)) {
  37486. if (isInputEventSupported) {
  37487. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  37488. } else {
  37489. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  37490. handleEventFunc = handleEventsForInputEventPolyfill;
  37491. }
  37492. } else if (shouldUseClickEvent(targetNode)) {
  37493. getTargetInstFunc = getTargetInstForClickEvent;
  37494. }
  37495. if (getTargetInstFunc) {
  37496. var inst = getTargetInstFunc(topLevelType, targetInst);
  37497. if (inst) {
  37498. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  37499. return event;
  37500. }
  37501. }
  37502. if (handleEventFunc) {
  37503. handleEventFunc(topLevelType, targetNode, targetInst);
  37504. }
  37505. // When blurring, set the value attribute for number inputs
  37506. if (topLevelType === TOP_BLUR) {
  37507. handleControlledInputBlur(targetNode);
  37508. }
  37509. }
  37510. };
  37511. /**
  37512. * Module that is injectable into `EventPluginHub`, that specifies a
  37513. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  37514. * plugins, without having to package every one of them. This is better than
  37515. * having plugins be ordered in the same order that they are injected because
  37516. * that ordering would be influenced by the packaging order.
  37517. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  37518. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  37519. */
  37520. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  37521. var SyntheticUIEvent = SyntheticEvent.extend({
  37522. view: null,
  37523. detail: null
  37524. });
  37525. var modifierKeyToProp = {
  37526. Alt: 'altKey',
  37527. Control: 'ctrlKey',
  37528. Meta: 'metaKey',
  37529. Shift: 'shiftKey'
  37530. };
  37531. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  37532. // getModifierState. If getModifierState is not supported, we map it to a set of
  37533. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  37534. /**
  37535. * Translation from modifier key to the associated property in the event.
  37536. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  37537. */
  37538. function modifierStateGetter(keyArg) {
  37539. var syntheticEvent = this;
  37540. var nativeEvent = syntheticEvent.nativeEvent;
  37541. if (nativeEvent.getModifierState) {
  37542. return nativeEvent.getModifierState(keyArg);
  37543. }
  37544. var keyProp = modifierKeyToProp[keyArg];
  37545. return keyProp ? !!nativeEvent[keyProp] : false;
  37546. }
  37547. function getEventModifierState(nativeEvent) {
  37548. return modifierStateGetter;
  37549. }
  37550. var previousScreenX = 0;
  37551. var previousScreenY = 0;
  37552. // Use flags to signal movementX/Y has already been set
  37553. var isMovementXSet = false;
  37554. var isMovementYSet = false;
  37555. /**
  37556. * @interface MouseEvent
  37557. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37558. */
  37559. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  37560. screenX: null,
  37561. screenY: null,
  37562. clientX: null,
  37563. clientY: null,
  37564. pageX: null,
  37565. pageY: null,
  37566. ctrlKey: null,
  37567. shiftKey: null,
  37568. altKey: null,
  37569. metaKey: null,
  37570. getModifierState: getEventModifierState,
  37571. button: null,
  37572. buttons: null,
  37573. relatedTarget: function (event) {
  37574. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  37575. },
  37576. movementX: function (event) {
  37577. if ('movementX' in event) {
  37578. return event.movementX;
  37579. }
  37580. var screenX = previousScreenX;
  37581. previousScreenX = event.screenX;
  37582. if (!isMovementXSet) {
  37583. isMovementXSet = true;
  37584. return 0;
  37585. }
  37586. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  37587. },
  37588. movementY: function (event) {
  37589. if ('movementY' in event) {
  37590. return event.movementY;
  37591. }
  37592. var screenY = previousScreenY;
  37593. previousScreenY = event.screenY;
  37594. if (!isMovementYSet) {
  37595. isMovementYSet = true;
  37596. return 0;
  37597. }
  37598. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  37599. }
  37600. });
  37601. /**
  37602. * @interface PointerEvent
  37603. * @see http://www.w3.org/TR/pointerevents/
  37604. */
  37605. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  37606. pointerId: null,
  37607. width: null,
  37608. height: null,
  37609. pressure: null,
  37610. tangentialPressure: null,
  37611. tiltX: null,
  37612. tiltY: null,
  37613. twist: null,
  37614. pointerType: null,
  37615. isPrimary: null
  37616. });
  37617. var eventTypes$2 = {
  37618. mouseEnter: {
  37619. registrationName: 'onMouseEnter',
  37620. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37621. },
  37622. mouseLeave: {
  37623. registrationName: 'onMouseLeave',
  37624. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37625. },
  37626. pointerEnter: {
  37627. registrationName: 'onPointerEnter',
  37628. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37629. },
  37630. pointerLeave: {
  37631. registrationName: 'onPointerLeave',
  37632. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37633. }
  37634. };
  37635. var EnterLeaveEventPlugin = {
  37636. eventTypes: eventTypes$2,
  37637. /**
  37638. * For almost every interaction we care about, there will be both a top-level
  37639. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  37640. * we do not extract duplicate events. However, moving the mouse into the
  37641. * browser from outside will not fire a `mouseout` event. In this case, we use
  37642. * the `mouseover` top-level event.
  37643. */
  37644. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37645. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  37646. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  37647. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  37648. return null;
  37649. }
  37650. if (!isOutEvent && !isOverEvent) {
  37651. // Must not be a mouse or pointer in or out - ignoring.
  37652. return null;
  37653. }
  37654. var win = void 0;
  37655. if (nativeEventTarget.window === nativeEventTarget) {
  37656. // `nativeEventTarget` is probably a window object.
  37657. win = nativeEventTarget;
  37658. } else {
  37659. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  37660. var doc = nativeEventTarget.ownerDocument;
  37661. if (doc) {
  37662. win = doc.defaultView || doc.parentWindow;
  37663. } else {
  37664. win = window;
  37665. }
  37666. }
  37667. var from = void 0;
  37668. var to = void 0;
  37669. if (isOutEvent) {
  37670. from = targetInst;
  37671. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  37672. to = related ? getClosestInstanceFromNode(related) : null;
  37673. } else {
  37674. // Moving to a node from outside the window.
  37675. from = null;
  37676. to = targetInst;
  37677. }
  37678. if (from === to) {
  37679. // Nothing pertains to our managed components.
  37680. return null;
  37681. }
  37682. var eventInterface = void 0,
  37683. leaveEventType = void 0,
  37684. enterEventType = void 0,
  37685. eventTypePrefix = void 0;
  37686. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  37687. eventInterface = SyntheticMouseEvent;
  37688. leaveEventType = eventTypes$2.mouseLeave;
  37689. enterEventType = eventTypes$2.mouseEnter;
  37690. eventTypePrefix = 'mouse';
  37691. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  37692. eventInterface = SyntheticPointerEvent;
  37693. leaveEventType = eventTypes$2.pointerLeave;
  37694. enterEventType = eventTypes$2.pointerEnter;
  37695. eventTypePrefix = 'pointer';
  37696. }
  37697. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  37698. var toNode = to == null ? win : getNodeFromInstance$1(to);
  37699. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  37700. leave.type = eventTypePrefix + 'leave';
  37701. leave.target = fromNode;
  37702. leave.relatedTarget = toNode;
  37703. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  37704. enter.type = eventTypePrefix + 'enter';
  37705. enter.target = toNode;
  37706. enter.relatedTarget = fromNode;
  37707. accumulateEnterLeaveDispatches(leave, enter, from, to);
  37708. return [leave, enter];
  37709. }
  37710. };
  37711. /**
  37712. * inlined Object.is polyfill to avoid requiring consumers ship their own
  37713. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  37714. */
  37715. function is(x, y) {
  37716. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  37717. ;
  37718. }
  37719. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  37720. /**
  37721. * Performs equality by iterating through keys on an object and returning false
  37722. * when any key has values which are not strictly equal between the arguments.
  37723. * Returns true when the values of all keys are strictly equal.
  37724. */
  37725. function shallowEqual(objA, objB) {
  37726. if (is(objA, objB)) {
  37727. return true;
  37728. }
  37729. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  37730. return false;
  37731. }
  37732. var keysA = Object.keys(objA);
  37733. var keysB = Object.keys(objB);
  37734. if (keysA.length !== keysB.length) {
  37735. return false;
  37736. }
  37737. // Test for A's keys different from B.
  37738. for (var i = 0; i < keysA.length; i++) {
  37739. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  37740. return false;
  37741. }
  37742. }
  37743. return true;
  37744. }
  37745. var PLUGIN_EVENT_SYSTEM = 1;
  37746. var RESPONDER_EVENT_SYSTEM = 1 << 1;
  37747. var IS_PASSIVE = 1 << 2;
  37748. var IS_ACTIVE = 1 << 3;
  37749. var PASSIVE_NOT_SUPPORTED = 1 << 4;
  37750. function createResponderListener(responder, props) {
  37751. var eventResponderListener = {
  37752. responder: responder,
  37753. props: props
  37754. };
  37755. {
  37756. Object.freeze(eventResponderListener);
  37757. }
  37758. return eventResponderListener;
  37759. }
  37760. function isFiberSuspenseAndTimedOut(fiber) {
  37761. return fiber.tag === SuspenseComponent && fiber.memoizedState !== null;
  37762. }
  37763. function getSuspenseFallbackChild(fiber) {
  37764. return fiber.child.sibling.child;
  37765. }
  37766. function createResponderInstance(responder, responderProps, responderState, target, fiber) {
  37767. return {
  37768. fiber: fiber,
  37769. props: responderProps,
  37770. responder: responder,
  37771. rootEventTypes: null,
  37772. state: responderState,
  37773. target: target
  37774. };
  37775. }
  37776. var DiscreteEvent = 0;
  37777. var UserBlockingEvent = 1;
  37778. var ContinuousEvent = 2;
  37779. // Intentionally not named imports because Rollup would use dynamic dispatch for
  37780. // CommonJS interop named imports.
  37781. var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority;
  37782. var runWithPriority$1 = Scheduler.unstable_runWithPriority;
  37783. var listenToResponderEventTypesImpl = void 0;
  37784. function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {
  37785. listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;
  37786. }
  37787. var activeTimeouts = new Map();
  37788. var rootEventTypesToEventResponderInstances = new Map();
  37789. var ownershipChangeListeners = new Set();
  37790. var globalOwner = null;
  37791. var currentTimeStamp = 0;
  37792. var currentTimers = new Map();
  37793. var currentInstance = null;
  37794. var currentEventQueue = null;
  37795. var currentEventQueuePriority = ContinuousEvent;
  37796. var currentTimerIDCounter = 0;
  37797. var currentDocument = null;
  37798. var eventResponderContext = {
  37799. dispatchEvent: function (eventValue, eventListener, eventPriority) {
  37800. validateResponderContext();
  37801. validateEventValue(eventValue);
  37802. if (eventPriority < currentEventQueuePriority) {
  37803. currentEventQueuePriority = eventPriority;
  37804. }
  37805. currentEventQueue.push(createEventQueueItem(eventValue, eventListener));
  37806. },
  37807. isTargetWithinResponder: function (target) {
  37808. validateResponderContext();
  37809. if (target != null) {
  37810. var fiber = getClosestInstanceFromNode(target);
  37811. var responderFiber = currentInstance.fiber;
  37812. while (fiber !== null) {
  37813. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  37814. return true;
  37815. }
  37816. fiber = fiber.return;
  37817. }
  37818. }
  37819. return false;
  37820. },
  37821. isTargetWithinResponderScope: function (target) {
  37822. validateResponderContext();
  37823. var componentInstance = currentInstance;
  37824. var responder = componentInstance.responder;
  37825. if (target != null) {
  37826. var fiber = getClosestInstanceFromNode(target);
  37827. var responderFiber = currentInstance.fiber;
  37828. while (fiber !== null) {
  37829. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  37830. return true;
  37831. }
  37832. if (doesFiberHaveResponder(fiber, responder)) {
  37833. return false;
  37834. }
  37835. fiber = fiber.return;
  37836. }
  37837. }
  37838. return false;
  37839. },
  37840. isTargetWithinNode: function (childTarget, parentTarget) {
  37841. validateResponderContext();
  37842. var childFiber = getClosestInstanceFromNode(childTarget);
  37843. var parentFiber = getClosestInstanceFromNode(parentTarget);
  37844. var parentAlternateFiber = parentFiber.alternate;
  37845. var node = childFiber;
  37846. while (node !== null) {
  37847. if (node === parentFiber || node === parentAlternateFiber) {
  37848. return true;
  37849. }
  37850. node = node.return;
  37851. }
  37852. return false;
  37853. },
  37854. addRootEventTypes: function (rootEventTypes) {
  37855. validateResponderContext();
  37856. var activeDocument = getActiveDocument();
  37857. listenToResponderEventTypesImpl(rootEventTypes, activeDocument);
  37858. for (var i = 0; i < rootEventTypes.length; i++) {
  37859. var rootEventType = rootEventTypes[i];
  37860. var eventResponderInstance = currentInstance;
  37861. registerRootEventType(rootEventType, eventResponderInstance);
  37862. }
  37863. },
  37864. removeRootEventTypes: function (rootEventTypes) {
  37865. validateResponderContext();
  37866. for (var i = 0; i < rootEventTypes.length; i++) {
  37867. var rootEventType = rootEventTypes[i];
  37868. var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);
  37869. var rootEventTypesSet = currentInstance.rootEventTypes;
  37870. if (rootEventTypesSet !== null) {
  37871. rootEventTypesSet.delete(rootEventType);
  37872. }
  37873. if (rootEventResponders !== undefined) {
  37874. rootEventResponders.delete(currentInstance);
  37875. }
  37876. }
  37877. },
  37878. hasOwnership: function () {
  37879. validateResponderContext();
  37880. return globalOwner === currentInstance;
  37881. },
  37882. requestGlobalOwnership: function () {
  37883. validateResponderContext();
  37884. if (globalOwner !== null) {
  37885. return false;
  37886. }
  37887. globalOwner = currentInstance;
  37888. triggerOwnershipListeners();
  37889. return true;
  37890. },
  37891. releaseOwnership: function () {
  37892. validateResponderContext();
  37893. return releaseOwnershipForEventResponderInstance(currentInstance);
  37894. },
  37895. setTimeout: function (func, delay) {
  37896. validateResponderContext();
  37897. if (currentTimers === null) {
  37898. currentTimers = new Map();
  37899. }
  37900. var timeout = currentTimers.get(delay);
  37901. var timerId = currentTimerIDCounter++;
  37902. if (timeout === undefined) {
  37903. var _timers = new Map();
  37904. var _id = setTimeout(function () {
  37905. processTimers(_timers, delay);
  37906. }, delay);
  37907. timeout = {
  37908. id: _id,
  37909. timers: _timers
  37910. };
  37911. currentTimers.set(delay, timeout);
  37912. }
  37913. timeout.timers.set(timerId, {
  37914. instance: currentInstance,
  37915. func: func,
  37916. id: timerId,
  37917. timeStamp: currentTimeStamp
  37918. });
  37919. activeTimeouts.set(timerId, timeout);
  37920. return timerId;
  37921. },
  37922. clearTimeout: function (timerId) {
  37923. validateResponderContext();
  37924. var timeout = activeTimeouts.get(timerId);
  37925. if (timeout !== undefined) {
  37926. var _timers2 = timeout.timers;
  37927. _timers2.delete(timerId);
  37928. if (_timers2.size === 0) {
  37929. clearTimeout(timeout.id);
  37930. }
  37931. }
  37932. },
  37933. getFocusableElementsInScope: function (deep) {
  37934. validateResponderContext();
  37935. var focusableElements = [];
  37936. var eventResponderInstance = currentInstance;
  37937. var currentResponder = eventResponderInstance.responder;
  37938. var focusScopeFiber = eventResponderInstance.fiber;
  37939. if (deep) {
  37940. var deepNode = focusScopeFiber.return;
  37941. while (deepNode !== null) {
  37942. if (doesFiberHaveResponder(deepNode, currentResponder)) {
  37943. focusScopeFiber = deepNode;
  37944. }
  37945. deepNode = deepNode.return;
  37946. }
  37947. }
  37948. var child = focusScopeFiber.child;
  37949. if (child !== null) {
  37950. collectFocusableElements(child, focusableElements);
  37951. }
  37952. return focusableElements;
  37953. },
  37954. getActiveDocument: getActiveDocument,
  37955. objectAssign: _assign,
  37956. getTimeStamp: function () {
  37957. validateResponderContext();
  37958. return currentTimeStamp;
  37959. },
  37960. isTargetWithinHostComponent: function (target, elementType) {
  37961. validateResponderContext();
  37962. var fiber = getClosestInstanceFromNode(target);
  37963. while (fiber !== null) {
  37964. if (fiber.tag === HostComponent && fiber.type === elementType) {
  37965. return true;
  37966. }
  37967. fiber = fiber.return;
  37968. }
  37969. return false;
  37970. },
  37971. enqueueStateRestore: enqueueStateRestore
  37972. };
  37973. function validateEventValue(eventValue) {
  37974. if (typeof eventValue === 'object' && eventValue !== null) {
  37975. var target = eventValue.target,
  37976. type = eventValue.type,
  37977. _timeStamp = eventValue.timeStamp;
  37978. if (target == null || type == null || _timeStamp == null) {
  37979. throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.');
  37980. }
  37981. var showWarning = function (name) {
  37982. {
  37983. warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== "press") { event.%s }`', name, name);
  37984. }
  37985. };
  37986. eventValue.preventDefault = function () {
  37987. {
  37988. showWarning('preventDefault()');
  37989. }
  37990. };
  37991. eventValue.stopPropagation = function () {
  37992. {
  37993. showWarning('stopPropagation()');
  37994. }
  37995. };
  37996. eventValue.isDefaultPrevented = function () {
  37997. {
  37998. showWarning('isDefaultPrevented()');
  37999. }
  38000. };
  38001. eventValue.isPropagationStopped = function () {
  38002. {
  38003. showWarning('isPropagationStopped()');
  38004. }
  38005. };
  38006. // $FlowFixMe: we don't need value, Flow thinks we do
  38007. Object.defineProperty(eventValue, 'nativeEvent', {
  38008. get: function () {
  38009. {
  38010. showWarning('nativeEvent');
  38011. }
  38012. }
  38013. });
  38014. }
  38015. }
  38016. function collectFocusableElements(node, focusableElements) {
  38017. if (isFiberSuspenseAndTimedOut(node)) {
  38018. var fallbackChild = getSuspenseFallbackChild(node);
  38019. if (fallbackChild !== null) {
  38020. collectFocusableElements(fallbackChild, focusableElements);
  38021. }
  38022. } else {
  38023. if (isFiberHostComponentFocusable(node)) {
  38024. focusableElements.push(node.stateNode);
  38025. } else {
  38026. var child = node.child;
  38027. if (child !== null) {
  38028. collectFocusableElements(child, focusableElements);
  38029. }
  38030. }
  38031. }
  38032. var sibling = node.sibling;
  38033. if (sibling !== null) {
  38034. collectFocusableElements(sibling, focusableElements);
  38035. }
  38036. }
  38037. function createEventQueueItem(value, listener) {
  38038. return {
  38039. value: value,
  38040. listener: listener
  38041. };
  38042. }
  38043. function doesFiberHaveResponder(fiber, responder) {
  38044. if (fiber.tag === HostComponent) {
  38045. var dependencies = fiber.dependencies;
  38046. if (dependencies !== null) {
  38047. var respondersMap = dependencies.responders;
  38048. if (respondersMap !== null && respondersMap.has(responder)) {
  38049. return true;
  38050. }
  38051. }
  38052. }
  38053. return false;
  38054. }
  38055. function getActiveDocument() {
  38056. return currentDocument;
  38057. }
  38058. function releaseOwnershipForEventResponderInstance(eventResponderInstance) {
  38059. if (globalOwner === eventResponderInstance) {
  38060. globalOwner = null;
  38061. triggerOwnershipListeners();
  38062. return true;
  38063. }
  38064. return false;
  38065. }
  38066. function isFiberHostComponentFocusable(fiber) {
  38067. if (fiber.tag !== HostComponent) {
  38068. return false;
  38069. }
  38070. var type = fiber.type,
  38071. memoizedProps = fiber.memoizedProps;
  38072. if (memoizedProps.tabIndex === -1 || memoizedProps.disabled) {
  38073. return false;
  38074. }
  38075. if (memoizedProps.tabIndex === 0 || memoizedProps.contentEditable === true) {
  38076. return true;
  38077. }
  38078. if (type === 'a' || type === 'area') {
  38079. return !!memoizedProps.href && memoizedProps.rel !== 'ignore';
  38080. }
  38081. if (type === 'input') {
  38082. return memoizedProps.type !== 'hidden' && memoizedProps.type !== 'file';
  38083. }
  38084. return type === 'button' || type === 'textarea' || type === 'object' || type === 'select' || type === 'iframe' || type === 'embed';
  38085. }
  38086. function processTimers(timers, delay) {
  38087. var timersArr = Array.from(timers.values());
  38088. currentEventQueuePriority = ContinuousEvent;
  38089. try {
  38090. for (var i = 0; i < timersArr.length; i++) {
  38091. var _timersArr$i = timersArr[i],
  38092. _instance = _timersArr$i.instance,
  38093. _func = _timersArr$i.func,
  38094. _id2 = _timersArr$i.id,
  38095. _timeStamp2 = _timersArr$i.timeStamp;
  38096. currentInstance = _instance;
  38097. currentEventQueue = [];
  38098. currentTimeStamp = _timeStamp2 + delay;
  38099. try {
  38100. _func();
  38101. } finally {
  38102. activeTimeouts.delete(_id2);
  38103. }
  38104. }
  38105. processEventQueue();
  38106. } finally {
  38107. currentTimers = null;
  38108. currentInstance = null;
  38109. currentEventQueue = null;
  38110. currentTimeStamp = 0;
  38111. }
  38112. }
  38113. function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {
  38114. var _ref = nativeEvent,
  38115. pointerType = _ref.pointerType;
  38116. var eventPointerType = '';
  38117. var pointerId = null;
  38118. if (pointerType !== undefined) {
  38119. eventPointerType = pointerType;
  38120. pointerId = nativeEvent.pointerId;
  38121. } else if (nativeEvent.key !== undefined) {
  38122. eventPointerType = 'keyboard';
  38123. } else if (nativeEvent.button !== undefined) {
  38124. eventPointerType = 'mouse';
  38125. } else if (nativeEvent.changedTouches !== undefined) {
  38126. eventPointerType = 'touch';
  38127. }
  38128. return {
  38129. nativeEvent: nativeEvent,
  38130. passive: passive,
  38131. passiveSupported: passiveSupported,
  38132. pointerId: pointerId,
  38133. pointerType: eventPointerType,
  38134. responderTarget: null,
  38135. target: nativeEventTarget,
  38136. type: topLevelType
  38137. };
  38138. }
  38139. function processEvents(eventQueue) {
  38140. for (var i = 0, length = eventQueue.length; i < length; i++) {
  38141. var _eventQueue$i = eventQueue[i],
  38142. _value = _eventQueue$i.value,
  38143. _listener = _eventQueue$i.listener;
  38144. var type = typeof _value === 'object' && _value !== null ? _value.type : '';
  38145. invokeGuardedCallbackAndCatchFirstError(type, _listener, undefined, _value);
  38146. }
  38147. }
  38148. function processEventQueue() {
  38149. var eventQueue = currentEventQueue;
  38150. if (eventQueue.length === 0) {
  38151. return;
  38152. }
  38153. switch (currentEventQueuePriority) {
  38154. case DiscreteEvent:
  38155. {
  38156. flushDiscreteUpdatesIfNeeded(currentTimeStamp);
  38157. discreteUpdates(function () {
  38158. batchedEventUpdates(processEvents, eventQueue);
  38159. });
  38160. break;
  38161. }
  38162. case UserBlockingEvent:
  38163. {
  38164. if (enableUserBlockingEvents) {
  38165. runWithPriority$1(UserBlockingPriority$1, batchedEventUpdates.bind(null, processEvents, eventQueue));
  38166. } else {
  38167. batchedEventUpdates(processEvents, eventQueue);
  38168. }
  38169. break;
  38170. }
  38171. case ContinuousEvent:
  38172. {
  38173. batchedEventUpdates(processEvents, eventQueue);
  38174. break;
  38175. }
  38176. }
  38177. }
  38178. function responderEventTypesContainType(eventTypes, type) {
  38179. for (var i = 0, len = eventTypes.length; i < len; i++) {
  38180. if (eventTypes[i] === type) {
  38181. return true;
  38182. }
  38183. }
  38184. return false;
  38185. }
  38186. function validateResponderTargetEventTypes(eventType, responder) {
  38187. var targetEventTypes = responder.targetEventTypes;
  38188. // Validate the target event type exists on the responder
  38189. if (targetEventTypes !== null) {
  38190. return responderEventTypesContainType(targetEventTypes, eventType);
  38191. }
  38192. return false;
  38193. }
  38194. function validateOwnership(responderInstance) {
  38195. return globalOwner === null || globalOwner === responderInstance;
  38196. }
  38197. function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  38198. var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;
  38199. var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;
  38200. var isPassive = isPassiveEvent || !isPassiveSupported;
  38201. var eventType = isPassive ? topLevelType : topLevelType + '_active';
  38202. // Trigger event responders in this order:
  38203. // - Bubble target responder phase
  38204. // - Root responder phase
  38205. var visitedResponders = new Set();
  38206. var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);
  38207. var node = targetFiber;
  38208. while (node !== null) {
  38209. var _node = node,
  38210. dependencies = _node.dependencies,
  38211. tag = _node.tag;
  38212. if (tag === HostComponent && dependencies !== null) {
  38213. var respondersMap = dependencies.responders;
  38214. if (respondersMap !== null) {
  38215. var responderInstances = Array.from(respondersMap.values());
  38216. for (var i = 0, length = responderInstances.length; i < length; i++) {
  38217. var responderInstance = responderInstances[i];
  38218. if (validateOwnership(responderInstance)) {
  38219. var props = responderInstance.props,
  38220. responder = responderInstance.responder,
  38221. state = responderInstance.state,
  38222. target = responderInstance.target;
  38223. if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder)) {
  38224. visitedResponders.add(responder);
  38225. var onEvent = responder.onEvent;
  38226. if (onEvent !== null) {
  38227. currentInstance = responderInstance;
  38228. responderEvent.responderTarget = target;
  38229. onEvent(responderEvent, eventResponderContext, props, state);
  38230. }
  38231. }
  38232. }
  38233. }
  38234. }
  38235. }
  38236. node = node.return;
  38237. }
  38238. // Root phase
  38239. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);
  38240. if (rootEventResponderInstances !== undefined) {
  38241. var _responderInstances = Array.from(rootEventResponderInstances);
  38242. for (var _i = 0; _i < _responderInstances.length; _i++) {
  38243. var _responderInstance = _responderInstances[_i];
  38244. if (!validateOwnership(_responderInstance)) {
  38245. continue;
  38246. }
  38247. var _props = _responderInstance.props,
  38248. _responder = _responderInstance.responder,
  38249. _state = _responderInstance.state,
  38250. _target = _responderInstance.target;
  38251. var onRootEvent = _responder.onRootEvent;
  38252. if (onRootEvent !== null) {
  38253. currentInstance = _responderInstance;
  38254. responderEvent.responderTarget = _target;
  38255. onRootEvent(responderEvent, eventResponderContext, _props, _state);
  38256. }
  38257. }
  38258. }
  38259. }
  38260. function triggerOwnershipListeners() {
  38261. var listeningInstances = Array.from(ownershipChangeListeners);
  38262. var previousInstance = currentInstance;
  38263. var previousEventQueuePriority = currentEventQueuePriority;
  38264. var previousEventQueue = currentEventQueue;
  38265. try {
  38266. for (var i = 0; i < listeningInstances.length; i++) {
  38267. var _instance2 = listeningInstances[i];
  38268. var props = _instance2.props,
  38269. responder = _instance2.responder,
  38270. state = _instance2.state;
  38271. currentInstance = _instance2;
  38272. currentEventQueuePriority = ContinuousEvent;
  38273. currentEventQueue = [];
  38274. var onOwnershipChange = responder.onOwnershipChange;
  38275. if (onOwnershipChange !== null) {
  38276. onOwnershipChange(eventResponderContext, props, state);
  38277. }
  38278. }
  38279. processEventQueue();
  38280. } finally {
  38281. currentInstance = previousInstance;
  38282. currentEventQueue = previousEventQueue;
  38283. currentEventQueuePriority = previousEventQueuePriority;
  38284. }
  38285. }
  38286. function mountEventResponder(responder, responderInstance, props, state) {
  38287. if (responder.onOwnershipChange !== null) {
  38288. ownershipChangeListeners.add(responderInstance);
  38289. }
  38290. var onMount = responder.onMount;
  38291. if (onMount !== null) {
  38292. currentEventQueuePriority = ContinuousEvent;
  38293. currentInstance = responderInstance;
  38294. currentEventQueue = [];
  38295. try {
  38296. onMount(eventResponderContext, props, state);
  38297. processEventQueue();
  38298. } finally {
  38299. currentEventQueue = null;
  38300. currentInstance = null;
  38301. currentTimers = null;
  38302. }
  38303. }
  38304. }
  38305. function unmountEventResponder(responderInstance) {
  38306. var responder = responderInstance.responder;
  38307. var onUnmount = responder.onUnmount;
  38308. if (onUnmount !== null) {
  38309. var props = responderInstance.props,
  38310. state = responderInstance.state;
  38311. currentEventQueue = [];
  38312. currentEventQueuePriority = ContinuousEvent;
  38313. currentInstance = responderInstance;
  38314. try {
  38315. onUnmount(eventResponderContext, props, state);
  38316. processEventQueue();
  38317. } finally {
  38318. currentEventQueue = null;
  38319. currentInstance = null;
  38320. currentTimers = null;
  38321. }
  38322. }
  38323. releaseOwnershipForEventResponderInstance(responderInstance);
  38324. if (responder.onOwnershipChange !== null) {
  38325. ownershipChangeListeners.delete(responderInstance);
  38326. }
  38327. var rootEventTypesSet = responderInstance.rootEventTypes;
  38328. if (rootEventTypesSet !== null) {
  38329. var rootEventTypes = Array.from(rootEventTypesSet);
  38330. for (var i = 0; i < rootEventTypes.length; i++) {
  38331. var topLevelEventType = rootEventTypes[i];
  38332. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);
  38333. if (rootEventResponderInstances !== undefined) {
  38334. rootEventResponderInstances.delete(responderInstance);
  38335. }
  38336. }
  38337. }
  38338. }
  38339. function validateResponderContext() {
  38340. (function () {
  38341. if (!(currentInstance !== null)) {
  38342. {
  38343. throw ReactError(Error('An event responder context was used outside of an event cycle. Use context.setTimeout() to use asynchronous responder context outside of event cycle .'));
  38344. }
  38345. }
  38346. })();
  38347. }
  38348. function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  38349. if (enableFlareAPI) {
  38350. var previousEventQueue = currentEventQueue;
  38351. var previousInstance = currentInstance;
  38352. var previousTimers = currentTimers;
  38353. var previousTimeStamp = currentTimeStamp;
  38354. var previousDocument = currentDocument;
  38355. var previousEventQueuePriority = currentEventQueuePriority;
  38356. currentTimers = null;
  38357. currentEventQueue = [];
  38358. currentEventQueuePriority = ContinuousEvent;
  38359. // nodeType 9 is DOCUMENT_NODE
  38360. currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument;
  38361. // We might want to control timeStamp another way here
  38362. currentTimeStamp = nativeEvent.timeStamp;
  38363. try {
  38364. traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);
  38365. processEventQueue();
  38366. } finally {
  38367. currentTimers = previousTimers;
  38368. currentInstance = previousInstance;
  38369. currentEventQueue = previousEventQueue;
  38370. currentTimeStamp = previousTimeStamp;
  38371. currentDocument = previousDocument;
  38372. currentEventQueuePriority = previousEventQueuePriority;
  38373. }
  38374. }
  38375. }
  38376. function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {
  38377. for (var i = 0; i < rootEventTypes.length; i++) {
  38378. var rootEventType = rootEventTypes[i];
  38379. registerRootEventType(rootEventType, responderInstance);
  38380. }
  38381. }
  38382. function registerRootEventType(rootEventType, eventResponderInstance) {
  38383. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);
  38384. if (rootEventResponderInstances === undefined) {
  38385. rootEventResponderInstances = new Set();
  38386. rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);
  38387. }
  38388. var rootEventTypesSet = eventResponderInstance.rootEventTypes;
  38389. if (rootEventTypesSet === null) {
  38390. rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();
  38391. }
  38392. (function () {
  38393. if (!!rootEventTypesSet.has(rootEventType)) {
  38394. {
  38395. throw ReactError(Error('addRootEventTypes() found a duplicate root event type of "' + rootEventType + '". This might be because the event type exists in the event responder "rootEventTypes" array or because of a previous addRootEventTypes() using this root event type.'));
  38396. }
  38397. }
  38398. })();
  38399. rootEventTypesSet.add(rootEventType);
  38400. rootEventResponderInstances.add(eventResponderInstance);
  38401. }
  38402. /**
  38403. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  38404. * instance (key) and the internal representation (value). This allows public
  38405. * methods to accept the user facing instance as an argument and map them back
  38406. * to internal methods.
  38407. *
  38408. * Note that this module is currently shared and assumed to be stateless.
  38409. * If this becomes an actual Map, that will break.
  38410. */
  38411. /**
  38412. * This API should be called `delete` but we'd have to make sure to always
  38413. * transform these to strings for IE support. When this transform is fully
  38414. * supported we can rename it.
  38415. */
  38416. function get(key) {
  38417. return key._reactInternalFiber;
  38418. }
  38419. function has(key) {
  38420. return key._reactInternalFiber !== undefined;
  38421. }
  38422. function set(key, value) {
  38423. key._reactInternalFiber = value;
  38424. }
  38425. // Don't change these two values. They're used by React Dev Tools.
  38426. var NoEffect = /* */0;
  38427. var PerformedWork = /* */1;
  38428. // You can change the rest (and add more).
  38429. var Placement = /* */2;
  38430. var Update = /* */4;
  38431. var PlacementAndUpdate = /* */6;
  38432. var Deletion = /* */8;
  38433. var ContentReset = /* */16;
  38434. var Callback = /* */32;
  38435. var DidCapture = /* */64;
  38436. var Ref = /* */128;
  38437. var Snapshot = /* */256;
  38438. var Passive = /* */512;
  38439. // Passive & Update & Callback & Ref & Snapshot
  38440. var LifecycleEffectMask = /* */932;
  38441. // Union of all host effects
  38442. var HostEffectMask = /* */1023;
  38443. var Incomplete = /* */1024;
  38444. var ShouldCapture = /* */2048;
  38445. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  38446. var MOUNTING = 1;
  38447. var MOUNTED = 2;
  38448. var UNMOUNTED = 3;
  38449. function isFiberMountedImpl(fiber) {
  38450. var node = fiber;
  38451. if (!fiber.alternate) {
  38452. // If there is no alternate, this might be a new tree that isn't inserted
  38453. // yet. If it is, then it will have a pending insertion effect on it.
  38454. if ((node.effectTag & Placement) !== NoEffect) {
  38455. return MOUNTING;
  38456. }
  38457. while (node.return) {
  38458. node = node.return;
  38459. if ((node.effectTag & Placement) !== NoEffect) {
  38460. return MOUNTING;
  38461. }
  38462. }
  38463. } else {
  38464. while (node.return) {
  38465. node = node.return;
  38466. }
  38467. }
  38468. if (node.tag === HostRoot) {
  38469. // TODO: Check if this was a nested HostRoot when used with
  38470. // renderContainerIntoSubtree.
  38471. return MOUNTED;
  38472. }
  38473. // If we didn't hit the root, that means that we're in an disconnected tree
  38474. // that has been unmounted.
  38475. return UNMOUNTED;
  38476. }
  38477. function isFiberMounted(fiber) {
  38478. return isFiberMountedImpl(fiber) === MOUNTED;
  38479. }
  38480. function isMounted(component) {
  38481. {
  38482. var owner = ReactCurrentOwner$1.current;
  38483. if (owner !== null && owner.tag === ClassComponent) {
  38484. var ownerFiber = owner;
  38485. var instance = ownerFiber.stateNode;
  38486. !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;
  38487. instance._warnedAboutRefsInRender = true;
  38488. }
  38489. }
  38490. var fiber = get(component);
  38491. if (!fiber) {
  38492. return false;
  38493. }
  38494. return isFiberMountedImpl(fiber) === MOUNTED;
  38495. }
  38496. function assertIsMounted(fiber) {
  38497. (function () {
  38498. if (!(isFiberMountedImpl(fiber) === MOUNTED)) {
  38499. {
  38500. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38501. }
  38502. }
  38503. })();
  38504. }
  38505. function findCurrentFiberUsingSlowPath(fiber) {
  38506. var alternate = fiber.alternate;
  38507. if (!alternate) {
  38508. // If there is no alternate, then we only need to check if it is mounted.
  38509. var state = isFiberMountedImpl(fiber);
  38510. (function () {
  38511. if (!(state !== UNMOUNTED)) {
  38512. {
  38513. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38514. }
  38515. }
  38516. })();
  38517. if (state === MOUNTING) {
  38518. return null;
  38519. }
  38520. return fiber;
  38521. }
  38522. // If we have two possible branches, we'll walk backwards up to the root
  38523. // to see what path the root points to. On the way we may hit one of the
  38524. // special cases and we'll deal with them.
  38525. var a = fiber;
  38526. var b = alternate;
  38527. while (true) {
  38528. var parentA = a.return;
  38529. if (parentA === null) {
  38530. // We're at the root.
  38531. break;
  38532. }
  38533. var parentB = parentA.alternate;
  38534. if (parentB === null) {
  38535. // There is no alternate. This is an unusual case. Currently, it only
  38536. // happens when a Suspense component is hidden. An extra fragment fiber
  38537. // is inserted in between the Suspense fiber and its children. Skip
  38538. // over this extra fragment fiber and proceed to the next parent.
  38539. var nextParent = parentA.return;
  38540. if (nextParent !== null) {
  38541. a = b = nextParent;
  38542. continue;
  38543. }
  38544. // If there's no parent, we're at the root.
  38545. break;
  38546. }
  38547. // If both copies of the parent fiber point to the same child, we can
  38548. // assume that the child is current. This happens when we bailout on low
  38549. // priority: the bailed out fiber's child reuses the current child.
  38550. if (parentA.child === parentB.child) {
  38551. var child = parentA.child;
  38552. while (child) {
  38553. if (child === a) {
  38554. // We've determined that A is the current branch.
  38555. assertIsMounted(parentA);
  38556. return fiber;
  38557. }
  38558. if (child === b) {
  38559. // We've determined that B is the current branch.
  38560. assertIsMounted(parentA);
  38561. return alternate;
  38562. }
  38563. child = child.sibling;
  38564. }
  38565. // We should never have an alternate for any mounting node. So the only
  38566. // way this could possibly happen is if this was unmounted, if at all.
  38567. (function () {
  38568. {
  38569. {
  38570. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38571. }
  38572. }
  38573. })();
  38574. }
  38575. if (a.return !== b.return) {
  38576. // The return pointer of A and the return pointer of B point to different
  38577. // fibers. We assume that return pointers never criss-cross, so A must
  38578. // belong to the child set of A.return, and B must belong to the child
  38579. // set of B.return.
  38580. a = parentA;
  38581. b = parentB;
  38582. } else {
  38583. // The return pointers point to the same fiber. We'll have to use the
  38584. // default, slow path: scan the child sets of each parent alternate to see
  38585. // which child belongs to which set.
  38586. //
  38587. // Search parent A's child set
  38588. var didFindChild = false;
  38589. var _child = parentA.child;
  38590. while (_child) {
  38591. if (_child === a) {
  38592. didFindChild = true;
  38593. a = parentA;
  38594. b = parentB;
  38595. break;
  38596. }
  38597. if (_child === b) {
  38598. didFindChild = true;
  38599. b = parentA;
  38600. a = parentB;
  38601. break;
  38602. }
  38603. _child = _child.sibling;
  38604. }
  38605. if (!didFindChild) {
  38606. // Search parent B's child set
  38607. _child = parentB.child;
  38608. while (_child) {
  38609. if (_child === a) {
  38610. didFindChild = true;
  38611. a = parentB;
  38612. b = parentA;
  38613. break;
  38614. }
  38615. if (_child === b) {
  38616. didFindChild = true;
  38617. b = parentB;
  38618. a = parentA;
  38619. break;
  38620. }
  38621. _child = _child.sibling;
  38622. }
  38623. (function () {
  38624. if (!didFindChild) {
  38625. {
  38626. throw ReactError(Error('Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.'));
  38627. }
  38628. }
  38629. })();
  38630. }
  38631. }
  38632. (function () {
  38633. if (!(a.alternate === b)) {
  38634. {
  38635. throw ReactError(Error('Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.'));
  38636. }
  38637. }
  38638. })();
  38639. }
  38640. // If the root is not a host container, we're in a disconnected tree. I.e.
  38641. // unmounted.
  38642. (function () {
  38643. if (!(a.tag === HostRoot)) {
  38644. {
  38645. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38646. }
  38647. }
  38648. })();
  38649. if (a.stateNode.current === a) {
  38650. // We've determined that A is the current branch.
  38651. return fiber;
  38652. }
  38653. // Otherwise B has to be current branch.
  38654. return alternate;
  38655. }
  38656. function findCurrentHostFiber(parent) {
  38657. var currentParent = findCurrentFiberUsingSlowPath(parent);
  38658. if (!currentParent) {
  38659. return null;
  38660. }
  38661. // Next we'll drill down this component to find the first HostComponent/Text.
  38662. var node = currentParent;
  38663. while (true) {
  38664. if (node.tag === HostComponent || node.tag === HostText) {
  38665. return node;
  38666. } else if (node.child) {
  38667. node.child.return = node;
  38668. node = node.child;
  38669. continue;
  38670. }
  38671. if (node === currentParent) {
  38672. return null;
  38673. }
  38674. while (!node.sibling) {
  38675. if (!node.return || node.return === currentParent) {
  38676. return null;
  38677. }
  38678. node = node.return;
  38679. }
  38680. node.sibling.return = node.return;
  38681. node = node.sibling;
  38682. }
  38683. // Flow needs the return null here, but ESLint complains about it.
  38684. // eslint-disable-next-line no-unreachable
  38685. return null;
  38686. }
  38687. function findCurrentHostFiberWithNoPortals(parent) {
  38688. var currentParent = findCurrentFiberUsingSlowPath(parent);
  38689. if (!currentParent) {
  38690. return null;
  38691. }
  38692. // Next we'll drill down this component to find the first HostComponent/Text.
  38693. var node = currentParent;
  38694. while (true) {
  38695. if (node.tag === HostComponent || node.tag === HostText || node.tag === FundamentalComponent) {
  38696. return node;
  38697. } else if (node.child && node.tag !== HostPortal) {
  38698. node.child.return = node;
  38699. node = node.child;
  38700. continue;
  38701. }
  38702. if (node === currentParent) {
  38703. return null;
  38704. }
  38705. while (!node.sibling) {
  38706. if (!node.return || node.return === currentParent) {
  38707. return null;
  38708. }
  38709. node = node.return;
  38710. }
  38711. node.sibling.return = node.return;
  38712. node = node.sibling;
  38713. }
  38714. // Flow needs the return null here, but ESLint complains about it.
  38715. // eslint-disable-next-line no-unreachable
  38716. return null;
  38717. }
  38718. function addEventBubbleListener(element, eventType, listener) {
  38719. element.addEventListener(eventType, listener, false);
  38720. }
  38721. function addEventCaptureListener(element, eventType, listener) {
  38722. element.addEventListener(eventType, listener, true);
  38723. }
  38724. function addEventCaptureListenerWithPassiveFlag(element, eventType, listener, passive) {
  38725. element.addEventListener(eventType, listener, {
  38726. capture: true,
  38727. passive: passive
  38728. });
  38729. }
  38730. /**
  38731. * @interface Event
  38732. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  38733. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  38734. */
  38735. var SyntheticAnimationEvent = SyntheticEvent.extend({
  38736. animationName: null,
  38737. elapsedTime: null,
  38738. pseudoElement: null
  38739. });
  38740. /**
  38741. * @interface Event
  38742. * @see http://www.w3.org/TR/clipboard-apis/
  38743. */
  38744. var SyntheticClipboardEvent = SyntheticEvent.extend({
  38745. clipboardData: function (event) {
  38746. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  38747. }
  38748. });
  38749. /**
  38750. * @interface FocusEvent
  38751. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38752. */
  38753. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  38754. relatedTarget: null
  38755. });
  38756. /**
  38757. * `charCode` represents the actual "character code" and is safe to use with
  38758. * `String.fromCharCode`. As such, only keys that correspond to printable
  38759. * characters produce a valid `charCode`, the only exception to this is Enter.
  38760. * The Tab-key is considered non-printable and does not have a `charCode`,
  38761. * presumably because it does not produce a tab-character in browsers.
  38762. *
  38763. * @param {object} nativeEvent Native browser event.
  38764. * @return {number} Normalized `charCode` property.
  38765. */
  38766. function getEventCharCode(nativeEvent) {
  38767. var charCode = void 0;
  38768. var keyCode = nativeEvent.keyCode;
  38769. if ('charCode' in nativeEvent) {
  38770. charCode = nativeEvent.charCode;
  38771. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  38772. if (charCode === 0 && keyCode === 13) {
  38773. charCode = 13;
  38774. }
  38775. } else {
  38776. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  38777. charCode = keyCode;
  38778. }
  38779. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  38780. // report Enter as charCode 10 when ctrl is pressed.
  38781. if (charCode === 10) {
  38782. charCode = 13;
  38783. }
  38784. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  38785. // Must not discard the (non-)printable Enter-key.
  38786. if (charCode >= 32 || charCode === 13) {
  38787. return charCode;
  38788. }
  38789. return 0;
  38790. }
  38791. /**
  38792. * Normalization of deprecated HTML5 `key` values
  38793. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  38794. */
  38795. var normalizeKey = {
  38796. Esc: 'Escape',
  38797. Spacebar: ' ',
  38798. Left: 'ArrowLeft',
  38799. Up: 'ArrowUp',
  38800. Right: 'ArrowRight',
  38801. Down: 'ArrowDown',
  38802. Del: 'Delete',
  38803. Win: 'OS',
  38804. Menu: 'ContextMenu',
  38805. Apps: 'ContextMenu',
  38806. Scroll: 'ScrollLock',
  38807. MozPrintableKey: 'Unidentified'
  38808. };
  38809. /**
  38810. * Translation from legacy `keyCode` to HTML5 `key`
  38811. * Only special keys supported, all others depend on keyboard layout or browser
  38812. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  38813. */
  38814. var translateToKey = {
  38815. '8': 'Backspace',
  38816. '9': 'Tab',
  38817. '12': 'Clear',
  38818. '13': 'Enter',
  38819. '16': 'Shift',
  38820. '17': 'Control',
  38821. '18': 'Alt',
  38822. '19': 'Pause',
  38823. '20': 'CapsLock',
  38824. '27': 'Escape',
  38825. '32': ' ',
  38826. '33': 'PageUp',
  38827. '34': 'PageDown',
  38828. '35': 'End',
  38829. '36': 'Home',
  38830. '37': 'ArrowLeft',
  38831. '38': 'ArrowUp',
  38832. '39': 'ArrowRight',
  38833. '40': 'ArrowDown',
  38834. '45': 'Insert',
  38835. '46': 'Delete',
  38836. '112': 'F1',
  38837. '113': 'F2',
  38838. '114': 'F3',
  38839. '115': 'F4',
  38840. '116': 'F5',
  38841. '117': 'F6',
  38842. '118': 'F7',
  38843. '119': 'F8',
  38844. '120': 'F9',
  38845. '121': 'F10',
  38846. '122': 'F11',
  38847. '123': 'F12',
  38848. '144': 'NumLock',
  38849. '145': 'ScrollLock',
  38850. '224': 'Meta'
  38851. };
  38852. /**
  38853. * @param {object} nativeEvent Native browser event.
  38854. * @return {string} Normalized `key` property.
  38855. */
  38856. function getEventKey(nativeEvent) {
  38857. if (nativeEvent.key) {
  38858. // Normalize inconsistent values reported by browsers due to
  38859. // implementations of a working draft specification.
  38860. // FireFox implements `key` but returns `MozPrintableKey` for all
  38861. // printable characters (normalized to `Unidentified`), ignore it.
  38862. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  38863. if (key !== 'Unidentified') {
  38864. return key;
  38865. }
  38866. }
  38867. // Browser does not implement `key`, polyfill as much of it as we can.
  38868. if (nativeEvent.type === 'keypress') {
  38869. var charCode = getEventCharCode(nativeEvent);
  38870. // The enter-key is technically both printable and non-printable and can
  38871. // thus be captured by `keypress`, no other non-printable key should.
  38872. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  38873. }
  38874. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  38875. // While user keyboard layout determines the actual meaning of each
  38876. // `keyCode` value, almost all function keys have a universal value.
  38877. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  38878. }
  38879. return '';
  38880. }
  38881. /**
  38882. * @interface KeyboardEvent
  38883. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38884. */
  38885. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  38886. key: getEventKey,
  38887. location: null,
  38888. ctrlKey: null,
  38889. shiftKey: null,
  38890. altKey: null,
  38891. metaKey: null,
  38892. repeat: null,
  38893. locale: null,
  38894. getModifierState: getEventModifierState,
  38895. // Legacy Interface
  38896. charCode: function (event) {
  38897. // `charCode` is the result of a KeyPress event and represents the value of
  38898. // the actual printable character.
  38899. // KeyPress is deprecated, but its replacement is not yet final and not
  38900. // implemented in any major browser. Only KeyPress has charCode.
  38901. if (event.type === 'keypress') {
  38902. return getEventCharCode(event);
  38903. }
  38904. return 0;
  38905. },
  38906. keyCode: function (event) {
  38907. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  38908. // physical keyboard key.
  38909. // The actual meaning of the value depends on the users' keyboard layout
  38910. // which cannot be detected. Assuming that it is a US keyboard layout
  38911. // provides a surprisingly accurate mapping for US and European users.
  38912. // Due to this, it is left to the user to implement at this time.
  38913. if (event.type === 'keydown' || event.type === 'keyup') {
  38914. return event.keyCode;
  38915. }
  38916. return 0;
  38917. },
  38918. which: function (event) {
  38919. // `which` is an alias for either `keyCode` or `charCode` depending on the
  38920. // type of the event.
  38921. if (event.type === 'keypress') {
  38922. return getEventCharCode(event);
  38923. }
  38924. if (event.type === 'keydown' || event.type === 'keyup') {
  38925. return event.keyCode;
  38926. }
  38927. return 0;
  38928. }
  38929. });
  38930. /**
  38931. * @interface DragEvent
  38932. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38933. */
  38934. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  38935. dataTransfer: null
  38936. });
  38937. /**
  38938. * @interface TouchEvent
  38939. * @see http://www.w3.org/TR/touch-events/
  38940. */
  38941. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  38942. touches: null,
  38943. targetTouches: null,
  38944. changedTouches: null,
  38945. altKey: null,
  38946. metaKey: null,
  38947. ctrlKey: null,
  38948. shiftKey: null,
  38949. getModifierState: getEventModifierState
  38950. });
  38951. /**
  38952. * @interface Event
  38953. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  38954. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  38955. */
  38956. var SyntheticTransitionEvent = SyntheticEvent.extend({
  38957. propertyName: null,
  38958. elapsedTime: null,
  38959. pseudoElement: null
  38960. });
  38961. /**
  38962. * @interface WheelEvent
  38963. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38964. */
  38965. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  38966. deltaX: function (event) {
  38967. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  38968. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  38969. },
  38970. deltaY: function (event) {
  38971. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  38972. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  38973. 'wheelDelta' in event ? -event.wheelDelta : 0;
  38974. },
  38975. deltaZ: null,
  38976. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  38977. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  38978. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  38979. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  38980. deltaMode: null
  38981. });
  38982. /**
  38983. * Turns
  38984. * ['abort', ...]
  38985. * into
  38986. * eventTypes = {
  38987. * 'abort': {
  38988. * phasedRegistrationNames: {
  38989. * bubbled: 'onAbort',
  38990. * captured: 'onAbortCapture',
  38991. * },
  38992. * dependencies: [TOP_ABORT],
  38993. * },
  38994. * ...
  38995. * };
  38996. * topLevelEventsToDispatchConfig = new Map([
  38997. * [TOP_ABORT, { sameConfig }],
  38998. * ]);
  38999. */
  39000. var eventTuples = [
  39001. // Discrete events
  39002. [TOP_BLUR, 'blur', DiscreteEvent], [TOP_CANCEL, 'cancel', DiscreteEvent], [TOP_CLICK, 'click', DiscreteEvent], [TOP_CLOSE, 'close', DiscreteEvent], [TOP_CONTEXT_MENU, 'contextMenu', DiscreteEvent], [TOP_COPY, 'copy', DiscreteEvent], [TOP_CUT, 'cut', DiscreteEvent], [TOP_AUX_CLICK, 'auxClick', DiscreteEvent], [TOP_DOUBLE_CLICK, 'doubleClick', DiscreteEvent], [TOP_DRAG_END, 'dragEnd', DiscreteEvent], [TOP_DRAG_START, 'dragStart', DiscreteEvent], [TOP_DROP, 'drop', DiscreteEvent], [TOP_FOCUS, 'focus', DiscreteEvent], [TOP_INPUT, 'input', DiscreteEvent], [TOP_INVALID, 'invalid', DiscreteEvent], [TOP_KEY_DOWN, 'keyDown', DiscreteEvent], [TOP_KEY_PRESS, 'keyPress', DiscreteEvent], [TOP_KEY_UP, 'keyUp', DiscreteEvent], [TOP_MOUSE_DOWN, 'mouseDown', DiscreteEvent], [TOP_MOUSE_UP, 'mouseUp', DiscreteEvent], [TOP_PASTE, 'paste', DiscreteEvent], [TOP_PAUSE, 'pause', DiscreteEvent], [TOP_PLAY, 'play', DiscreteEvent], [TOP_POINTER_CANCEL, 'pointerCancel', DiscreteEvent], [TOP_POINTER_DOWN, 'pointerDown', DiscreteEvent], [TOP_POINTER_UP, 'pointerUp', DiscreteEvent], [TOP_RATE_CHANGE, 'rateChange', DiscreteEvent], [TOP_RESET, 'reset', DiscreteEvent], [TOP_SEEKED, 'seeked', DiscreteEvent], [TOP_SUBMIT, 'submit', DiscreteEvent], [TOP_TOUCH_CANCEL, 'touchCancel', DiscreteEvent], [TOP_TOUCH_END, 'touchEnd', DiscreteEvent], [TOP_TOUCH_START, 'touchStart', DiscreteEvent], [TOP_VOLUME_CHANGE, 'volumeChange', DiscreteEvent],
  39003. // User-blocking events
  39004. [TOP_DRAG, 'drag', UserBlockingEvent], [TOP_DRAG_ENTER, 'dragEnter', UserBlockingEvent], [TOP_DRAG_EXIT, 'dragExit', UserBlockingEvent], [TOP_DRAG_LEAVE, 'dragLeave', UserBlockingEvent], [TOP_DRAG_OVER, 'dragOver', UserBlockingEvent], [TOP_MOUSE_MOVE, 'mouseMove', UserBlockingEvent], [TOP_MOUSE_OUT, 'mouseOut', UserBlockingEvent], [TOP_MOUSE_OVER, 'mouseOver', UserBlockingEvent], [TOP_POINTER_MOVE, 'pointerMove', UserBlockingEvent], [TOP_POINTER_OUT, 'pointerOut', UserBlockingEvent], [TOP_POINTER_OVER, 'pointerOver', UserBlockingEvent], [TOP_SCROLL, 'scroll', UserBlockingEvent], [TOP_TOGGLE, 'toggle', UserBlockingEvent], [TOP_TOUCH_MOVE, 'touchMove', UserBlockingEvent], [TOP_WHEEL, 'wheel', UserBlockingEvent],
  39005. // Continuous events
  39006. [TOP_ABORT, 'abort', ContinuousEvent], [TOP_ANIMATION_END, 'animationEnd', ContinuousEvent], [TOP_ANIMATION_ITERATION, 'animationIteration', ContinuousEvent], [TOP_ANIMATION_START, 'animationStart', ContinuousEvent], [TOP_CAN_PLAY, 'canPlay', ContinuousEvent], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough', ContinuousEvent], [TOP_DURATION_CHANGE, 'durationChange', ContinuousEvent], [TOP_EMPTIED, 'emptied', ContinuousEvent], [TOP_ENCRYPTED, 'encrypted', ContinuousEvent], [TOP_ENDED, 'ended', ContinuousEvent], [TOP_ERROR, 'error', ContinuousEvent], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', ContinuousEvent], [TOP_LOAD, 'load', ContinuousEvent], [TOP_LOADED_DATA, 'loadedData', ContinuousEvent], [TOP_LOADED_METADATA, 'loadedMetadata', ContinuousEvent], [TOP_LOAD_START, 'loadStart', ContinuousEvent], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', ContinuousEvent], [TOP_PLAYING, 'playing', ContinuousEvent], [TOP_PROGRESS, 'progress', ContinuousEvent], [TOP_SEEKING, 'seeking', ContinuousEvent], [TOP_STALLED, 'stalled', ContinuousEvent], [TOP_SUSPEND, 'suspend', ContinuousEvent], [TOP_TIME_UPDATE, 'timeUpdate', ContinuousEvent], [TOP_TRANSITION_END, 'transitionEnd', ContinuousEvent], [TOP_WAITING, 'waiting', ContinuousEvent]];
  39007. var eventTypes$4 = {};
  39008. var topLevelEventsToDispatchConfig = {};
  39009. for (var i = 0; i < eventTuples.length; i++) {
  39010. var eventTuple = eventTuples[i];
  39011. var topEvent = eventTuple[0];
  39012. var event = eventTuple[1];
  39013. var eventPriority = eventTuple[2];
  39014. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  39015. var onEvent = 'on' + capitalizedEvent;
  39016. var config = {
  39017. phasedRegistrationNames: {
  39018. bubbled: onEvent,
  39019. captured: onEvent + 'Capture'
  39020. },
  39021. dependencies: [topEvent],
  39022. eventPriority: eventPriority
  39023. };
  39024. eventTypes$4[event] = config;
  39025. topLevelEventsToDispatchConfig[topEvent] = config;
  39026. }
  39027. // Only used in DEV for exhaustiveness validation.
  39028. 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];
  39029. var SimpleEventPlugin = {
  39030. eventTypes: eventTypes$4,
  39031. getEventPriority: function (topLevelType) {
  39032. var config = topLevelEventsToDispatchConfig[topLevelType];
  39033. return config !== undefined ? config.eventPriority : ContinuousEvent;
  39034. },
  39035. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  39036. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  39037. if (!dispatchConfig) {
  39038. return null;
  39039. }
  39040. var EventConstructor = void 0;
  39041. switch (topLevelType) {
  39042. case TOP_KEY_PRESS:
  39043. // Firefox creates a keypress event for function keys too. This removes
  39044. // the unwanted keypress events. Enter is however both printable and
  39045. // non-printable. One would expect Tab to be as well (but it isn't).
  39046. if (getEventCharCode(nativeEvent) === 0) {
  39047. return null;
  39048. }
  39049. /* falls through */
  39050. case TOP_KEY_DOWN:
  39051. case TOP_KEY_UP:
  39052. EventConstructor = SyntheticKeyboardEvent;
  39053. break;
  39054. case TOP_BLUR:
  39055. case TOP_FOCUS:
  39056. EventConstructor = SyntheticFocusEvent;
  39057. break;
  39058. case TOP_CLICK:
  39059. // Firefox creates a click event on right mouse clicks. This removes the
  39060. // unwanted click events.
  39061. if (nativeEvent.button === 2) {
  39062. return null;
  39063. }
  39064. /* falls through */
  39065. case TOP_AUX_CLICK:
  39066. case TOP_DOUBLE_CLICK:
  39067. case TOP_MOUSE_DOWN:
  39068. case TOP_MOUSE_MOVE:
  39069. case TOP_MOUSE_UP:
  39070. // TODO: Disabled elements should not respond to mouse events
  39071. /* falls through */
  39072. case TOP_MOUSE_OUT:
  39073. case TOP_MOUSE_OVER:
  39074. case TOP_CONTEXT_MENU:
  39075. EventConstructor = SyntheticMouseEvent;
  39076. break;
  39077. case TOP_DRAG:
  39078. case TOP_DRAG_END:
  39079. case TOP_DRAG_ENTER:
  39080. case TOP_DRAG_EXIT:
  39081. case TOP_DRAG_LEAVE:
  39082. case TOP_DRAG_OVER:
  39083. case TOP_DRAG_START:
  39084. case TOP_DROP:
  39085. EventConstructor = SyntheticDragEvent;
  39086. break;
  39087. case TOP_TOUCH_CANCEL:
  39088. case TOP_TOUCH_END:
  39089. case TOP_TOUCH_MOVE:
  39090. case TOP_TOUCH_START:
  39091. EventConstructor = SyntheticTouchEvent;
  39092. break;
  39093. case TOP_ANIMATION_END:
  39094. case TOP_ANIMATION_ITERATION:
  39095. case TOP_ANIMATION_START:
  39096. EventConstructor = SyntheticAnimationEvent;
  39097. break;
  39098. case TOP_TRANSITION_END:
  39099. EventConstructor = SyntheticTransitionEvent;
  39100. break;
  39101. case TOP_SCROLL:
  39102. EventConstructor = SyntheticUIEvent;
  39103. break;
  39104. case TOP_WHEEL:
  39105. EventConstructor = SyntheticWheelEvent;
  39106. break;
  39107. case TOP_COPY:
  39108. case TOP_CUT:
  39109. case TOP_PASTE:
  39110. EventConstructor = SyntheticClipboardEvent;
  39111. break;
  39112. case TOP_GOT_POINTER_CAPTURE:
  39113. case TOP_LOST_POINTER_CAPTURE:
  39114. case TOP_POINTER_CANCEL:
  39115. case TOP_POINTER_DOWN:
  39116. case TOP_POINTER_MOVE:
  39117. case TOP_POINTER_OUT:
  39118. case TOP_POINTER_OVER:
  39119. case TOP_POINTER_UP:
  39120. EventConstructor = SyntheticPointerEvent;
  39121. break;
  39122. default:
  39123. {
  39124. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  39125. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  39126. }
  39127. }
  39128. // HTML Events
  39129. // @see http://www.w3.org/TR/html5/index.html#events-0
  39130. EventConstructor = SyntheticEvent;
  39131. break;
  39132. }
  39133. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  39134. accumulateTwoPhaseDispatches(event);
  39135. return event;
  39136. }
  39137. };
  39138. var passiveBrowserEventsSupported = false;
  39139. // Check if browser support events with passive listeners
  39140. // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
  39141. if (enableFlareAPI && canUseDOM) {
  39142. try {
  39143. var options = {};
  39144. // $FlowFixMe: Ignore Flow complaining about needing a value
  39145. Object.defineProperty(options, 'passive', {
  39146. get: function () {
  39147. passiveBrowserEventsSupported = true;
  39148. }
  39149. });
  39150. window.addEventListener('test', options, options);
  39151. window.removeEventListener('test', options, options);
  39152. } catch (e) {
  39153. passiveBrowserEventsSupported = false;
  39154. }
  39155. }
  39156. // Intentionally not named imports because Rollup would use dynamic dispatch for
  39157. // CommonJS interop named imports.
  39158. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  39159. var runWithPriority = Scheduler.unstable_runWithPriority;
  39160. var getEventPriority = SimpleEventPlugin.getEventPriority;
  39161. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  39162. var callbackBookkeepingPool = [];
  39163. /**
  39164. * Find the deepest React component completely containing the root of the
  39165. * passed-in instance (for use when entire React trees are nested within each
  39166. * other). If React trees are not nested, returns null.
  39167. */
  39168. function findRootContainerNode(inst) {
  39169. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  39170. // traversal, but caching is difficult to do correctly without using a
  39171. // mutation observer to listen for all DOM changes.
  39172. while (inst.return) {
  39173. inst = inst.return;
  39174. }
  39175. if (inst.tag !== HostRoot) {
  39176. // This can happen if we're in a detached tree.
  39177. return null;
  39178. }
  39179. return inst.stateNode.containerInfo;
  39180. }
  39181. // Used to store ancestor hierarchy in top level callback
  39182. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  39183. if (callbackBookkeepingPool.length) {
  39184. var instance = callbackBookkeepingPool.pop();
  39185. instance.topLevelType = topLevelType;
  39186. instance.nativeEvent = nativeEvent;
  39187. instance.targetInst = targetInst;
  39188. return instance;
  39189. }
  39190. return {
  39191. topLevelType: topLevelType,
  39192. nativeEvent: nativeEvent,
  39193. targetInst: targetInst,
  39194. ancestors: []
  39195. };
  39196. }
  39197. function releaseTopLevelCallbackBookKeeping(instance) {
  39198. instance.topLevelType = null;
  39199. instance.nativeEvent = null;
  39200. instance.targetInst = null;
  39201. instance.ancestors.length = 0;
  39202. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  39203. callbackBookkeepingPool.push(instance);
  39204. }
  39205. }
  39206. function handleTopLevel(bookKeeping) {
  39207. var targetInst = bookKeeping.targetInst;
  39208. // Loop through the hierarchy, in case there's any nested components.
  39209. // It's important that we build the array of ancestors before calling any
  39210. // event handlers, because event handlers can modify the DOM, leading to
  39211. // inconsistencies with ReactMount's node cache. See #1105.
  39212. var ancestor = targetInst;
  39213. do {
  39214. if (!ancestor) {
  39215. var _ancestors = bookKeeping.ancestors;
  39216. _ancestors.push(ancestor);
  39217. break;
  39218. }
  39219. var root = findRootContainerNode(ancestor);
  39220. if (!root) {
  39221. break;
  39222. }
  39223. bookKeeping.ancestors.push(ancestor);
  39224. ancestor = getClosestInstanceFromNode(root);
  39225. } while (ancestor);
  39226. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  39227. targetInst = bookKeeping.ancestors[i];
  39228. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  39229. var _topLevelType = bookKeeping.topLevelType;
  39230. var _nativeEvent = bookKeeping.nativeEvent;
  39231. runExtractedPluginEventsInBatch(_topLevelType, targetInst, _nativeEvent, eventTarget);
  39232. }
  39233. }
  39234. // TODO: can we stop exporting these?
  39235. var _enabled = true;
  39236. function setEnabled(enabled) {
  39237. _enabled = !!enabled;
  39238. }
  39239. function isEnabled() {
  39240. return _enabled;
  39241. }
  39242. function trapBubbledEvent(topLevelType, element) {
  39243. trapEventForPluginEventSystem(element, topLevelType, false);
  39244. }
  39245. function trapCapturedEvent(topLevelType, element) {
  39246. trapEventForPluginEventSystem(element, topLevelType, true);
  39247. }
  39248. function trapEventForResponderEventSystem(element, topLevelType, passive) {
  39249. if (enableFlareAPI) {
  39250. var rawEventName = getRawEventName(topLevelType);
  39251. var eventFlags = RESPONDER_EVENT_SYSTEM;
  39252. // If passive option is not supported, then the event will be
  39253. // active and not passive, but we flag it as using not being
  39254. // supported too. This way the responder event plugins know,
  39255. // and can provide polyfills if needed.
  39256. if (passive) {
  39257. if (passiveBrowserEventsSupported) {
  39258. eventFlags |= IS_PASSIVE;
  39259. } else {
  39260. eventFlags |= IS_ACTIVE;
  39261. eventFlags |= PASSIVE_NOT_SUPPORTED;
  39262. passive = false;
  39263. }
  39264. } else {
  39265. eventFlags |= IS_ACTIVE;
  39266. }
  39267. // Check if interactive and wrap in discreteUpdates
  39268. var listener = dispatchEvent.bind(null, topLevelType, eventFlags);
  39269. if (passiveBrowserEventsSupported) {
  39270. addEventCaptureListenerWithPassiveFlag(element, rawEventName, listener, passive);
  39271. } else {
  39272. addEventCaptureListener(element, rawEventName, listener);
  39273. }
  39274. }
  39275. }
  39276. function trapEventForPluginEventSystem(element, topLevelType, capture) {
  39277. var listener = void 0;
  39278. switch (getEventPriority(topLevelType)) {
  39279. case DiscreteEvent:
  39280. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  39281. break;
  39282. case UserBlockingEvent:
  39283. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  39284. break;
  39285. case ContinuousEvent:
  39286. default:
  39287. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  39288. break;
  39289. }
  39290. var rawEventName = getRawEventName(topLevelType);
  39291. if (capture) {
  39292. addEventCaptureListener(element, rawEventName, listener);
  39293. } else {
  39294. addEventBubbleListener(element, rawEventName, listener);
  39295. }
  39296. }
  39297. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, nativeEvent) {
  39298. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  39299. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, nativeEvent);
  39300. }
  39301. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, nativeEvent) {
  39302. if (enableUserBlockingEvents) {
  39303. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, nativeEvent));
  39304. } else {
  39305. dispatchEvent(topLevelType, eventSystemFlags, nativeEvent);
  39306. }
  39307. }
  39308. function dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  39309. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  39310. try {
  39311. // Event queue being processed in the same cycle allows
  39312. // `preventDefault`.
  39313. batchedEventUpdates(handleTopLevel, bookKeeping);
  39314. } finally {
  39315. releaseTopLevelCallbackBookKeeping(bookKeeping);
  39316. }
  39317. }
  39318. function dispatchEvent(topLevelType, eventSystemFlags, nativeEvent) {
  39319. if (!_enabled) {
  39320. return;
  39321. }
  39322. var nativeEventTarget = getEventTarget(nativeEvent);
  39323. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  39324. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  39325. // If we get an event (ex: img onload) before committing that
  39326. // component's mount, ignore it for now (that is, treat it as if it was an
  39327. // event on a non-React tree). We might also consider queueing events and
  39328. // dispatching them after the mount.
  39329. targetInst = null;
  39330. }
  39331. if (enableFlareAPI) {
  39332. if (eventSystemFlags === PLUGIN_EVENT_SYSTEM) {
  39333. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  39334. } else {
  39335. // React Flare event system
  39336. dispatchEventForResponderEventSystem(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  39337. }
  39338. } else {
  39339. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  39340. }
  39341. }
  39342. /**
  39343. * Summary of `ReactBrowserEventEmitter` event handling:
  39344. *
  39345. * - Top-level delegation is used to trap most native browser events. This
  39346. * may only occur in the main thread and is the responsibility of
  39347. * ReactDOMEventListener, which is injected and can therefore support
  39348. * pluggable event sources. This is the only work that occurs in the main
  39349. * thread.
  39350. *
  39351. * - We normalize and de-duplicate events to account for browser quirks. This
  39352. * may be done in the worker thread.
  39353. *
  39354. * - Forward these native events (with the associated top-level type used to
  39355. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  39356. * to extract any synthetic events.
  39357. *
  39358. * - The `EventPluginHub` will then process each event by annotating them with
  39359. * "dispatches", a sequence of listeners and IDs that care about that event.
  39360. *
  39361. * - The `EventPluginHub` then dispatches the events.
  39362. *
  39363. * Overview of React and the event system:
  39364. *
  39365. * +------------+ .
  39366. * | DOM | .
  39367. * +------------+ .
  39368. * | .
  39369. * v .
  39370. * +------------+ .
  39371. * | ReactEvent | .
  39372. * | Listener | .
  39373. * +------------+ . +-----------+
  39374. * | . +--------+|SimpleEvent|
  39375. * | . | |Plugin |
  39376. * +-----|------+ . v +-----------+
  39377. * | | | . +--------------+ +------------+
  39378. * | +-----------.--->|EventPluginHub| | Event |
  39379. * | | . | | +-----------+ | Propagators|
  39380. * | ReactEvent | . | | |TapEvent | |------------|
  39381. * | Emitter | . | |<---+|Plugin | |other plugin|
  39382. * | | . | | +-----------+ | utilities |
  39383. * | +-----------.--->| | +------------+
  39384. * | | | . +--------------+
  39385. * +-----|------+ . ^ +-----------+
  39386. * | . | |Enter/Leave|
  39387. * + . +-------+|Plugin |
  39388. * +-------------+ . +-----------+
  39389. * | application | .
  39390. * |-------------| .
  39391. * | | .
  39392. * | | .
  39393. * +-------------+ .
  39394. * .
  39395. * React Core . General Purpose Event Plugin System
  39396. */
  39397. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  39398. var elementListeningSets = new PossiblyWeakMap();
  39399. function getListeningSetForElement(element) {
  39400. var listeningSet = elementListeningSets.get(element);
  39401. if (listeningSet === undefined) {
  39402. listeningSet = new Set();
  39403. elementListeningSets.set(element, listeningSet);
  39404. }
  39405. return listeningSet;
  39406. }
  39407. /**
  39408. * We listen for bubbled touch events on the document object.
  39409. *
  39410. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  39411. * mounting `onmousemove` events at some node that was not the document
  39412. * element. The symptoms were that if your mouse is not moving over something
  39413. * contained within that mount point (for example on the background) the
  39414. * top-level listeners for `onmousemove` won't be called. However, if you
  39415. * register the `mousemove` on the document object, then it will of course
  39416. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  39417. * top-level listeners to the document object only, at least for these
  39418. * movement types of events and possibly all events.
  39419. *
  39420. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  39421. *
  39422. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  39423. * they bubble to document.
  39424. *
  39425. * @param {string} registrationName Name of listener (e.g. `onClick`).
  39426. * @param {object} mountAt Container where to mount the listener
  39427. */
  39428. function listenTo(registrationName, mountAt) {
  39429. var listeningSet = getListeningSetForElement(mountAt);
  39430. var dependencies = registrationNameDependencies[registrationName];
  39431. for (var i = 0; i < dependencies.length; i++) {
  39432. var dependency = dependencies[i];
  39433. if (!listeningSet.has(dependency)) {
  39434. switch (dependency) {
  39435. case TOP_SCROLL:
  39436. trapCapturedEvent(TOP_SCROLL, mountAt);
  39437. break;
  39438. case TOP_FOCUS:
  39439. case TOP_BLUR:
  39440. trapCapturedEvent(TOP_FOCUS, mountAt);
  39441. trapCapturedEvent(TOP_BLUR, mountAt);
  39442. // We set the flag for a single dependency later in this function,
  39443. // but this ensures we mark both as attached rather than just one.
  39444. listeningSet.add(TOP_BLUR);
  39445. listeningSet.add(TOP_FOCUS);
  39446. break;
  39447. case TOP_CANCEL:
  39448. case TOP_CLOSE:
  39449. if (isEventSupported(getRawEventName(dependency))) {
  39450. trapCapturedEvent(dependency, mountAt);
  39451. }
  39452. break;
  39453. case TOP_INVALID:
  39454. case TOP_SUBMIT:
  39455. case TOP_RESET:
  39456. // We listen to them on the target DOM elements.
  39457. // Some of them bubble so we don't want them to fire twice.
  39458. break;
  39459. default:
  39460. // By default, listen on the top level to all non-media events.
  39461. // Media events don't bubble so adding the listener wouldn't do anything.
  39462. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  39463. if (!isMediaEvent) {
  39464. trapBubbledEvent(dependency, mountAt);
  39465. }
  39466. break;
  39467. }
  39468. listeningSet.add(dependency);
  39469. }
  39470. }
  39471. }
  39472. function isListeningToAllDependencies(registrationName, mountAt) {
  39473. var listeningSet = getListeningSetForElement(mountAt);
  39474. var dependencies = registrationNameDependencies[registrationName];
  39475. for (var i = 0; i < dependencies.length; i++) {
  39476. var dependency = dependencies[i];
  39477. if (!listeningSet.has(dependency)) {
  39478. return false;
  39479. }
  39480. }
  39481. return true;
  39482. }
  39483. function getActiveElement(doc) {
  39484. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  39485. if (typeof doc === 'undefined') {
  39486. return null;
  39487. }
  39488. try {
  39489. return doc.activeElement || doc.body;
  39490. } catch (e) {
  39491. return doc.body;
  39492. }
  39493. }
  39494. /**
  39495. * Given any node return the first leaf node without children.
  39496. *
  39497. * @param {DOMElement|DOMTextNode} node
  39498. * @return {DOMElement|DOMTextNode}
  39499. */
  39500. function getLeafNode(node) {
  39501. while (node && node.firstChild) {
  39502. node = node.firstChild;
  39503. }
  39504. return node;
  39505. }
  39506. /**
  39507. * Get the next sibling within a container. This will walk up the
  39508. * DOM if a node's siblings have been exhausted.
  39509. *
  39510. * @param {DOMElement|DOMTextNode} node
  39511. * @return {?DOMElement|DOMTextNode}
  39512. */
  39513. function getSiblingNode(node) {
  39514. while (node) {
  39515. if (node.nextSibling) {
  39516. return node.nextSibling;
  39517. }
  39518. node = node.parentNode;
  39519. }
  39520. }
  39521. /**
  39522. * Get object describing the nodes which contain characters at offset.
  39523. *
  39524. * @param {DOMElement|DOMTextNode} root
  39525. * @param {number} offset
  39526. * @return {?object}
  39527. */
  39528. function getNodeForCharacterOffset(root, offset) {
  39529. var node = getLeafNode(root);
  39530. var nodeStart = 0;
  39531. var nodeEnd = 0;
  39532. while (node) {
  39533. if (node.nodeType === TEXT_NODE) {
  39534. nodeEnd = nodeStart + node.textContent.length;
  39535. if (nodeStart <= offset && nodeEnd >= offset) {
  39536. return {
  39537. node: node,
  39538. offset: offset - nodeStart
  39539. };
  39540. }
  39541. nodeStart = nodeEnd;
  39542. }
  39543. node = getLeafNode(getSiblingNode(node));
  39544. }
  39545. }
  39546. /**
  39547. * @param {DOMElement} outerNode
  39548. * @return {?object}
  39549. */
  39550. function getOffsets(outerNode) {
  39551. var ownerDocument = outerNode.ownerDocument;
  39552. var win = ownerDocument && ownerDocument.defaultView || window;
  39553. var selection = win.getSelection && win.getSelection();
  39554. if (!selection || selection.rangeCount === 0) {
  39555. return null;
  39556. }
  39557. var anchorNode = selection.anchorNode,
  39558. anchorOffset = selection.anchorOffset,
  39559. focusNode = selection.focusNode,
  39560. focusOffset = selection.focusOffset;
  39561. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  39562. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  39563. // expose properties, triggering a "Permission denied error" if any of its
  39564. // properties are accessed. The only seemingly possible way to avoid erroring
  39565. // is to access a property that typically works for non-anonymous divs and
  39566. // catch any error that may otherwise arise. See
  39567. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  39568. try {
  39569. /* eslint-disable no-unused-expressions */
  39570. anchorNode.nodeType;
  39571. focusNode.nodeType;
  39572. /* eslint-enable no-unused-expressions */
  39573. } catch (e) {
  39574. return null;
  39575. }
  39576. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  39577. }
  39578. /**
  39579. * Returns {start, end} where `start` is the character/codepoint index of
  39580. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  39581. * `end` is the index of (focusNode, focusOffset).
  39582. *
  39583. * Returns null if you pass in garbage input but we should probably just crash.
  39584. *
  39585. * Exported only for testing.
  39586. */
  39587. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  39588. var length = 0;
  39589. var start = -1;
  39590. var end = -1;
  39591. var indexWithinAnchor = 0;
  39592. var indexWithinFocus = 0;
  39593. var node = outerNode;
  39594. var parentNode = null;
  39595. outer: while (true) {
  39596. var next = null;
  39597. while (true) {
  39598. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  39599. start = length + anchorOffset;
  39600. }
  39601. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  39602. end = length + focusOffset;
  39603. }
  39604. if (node.nodeType === TEXT_NODE) {
  39605. length += node.nodeValue.length;
  39606. }
  39607. if ((next = node.firstChild) === null) {
  39608. break;
  39609. }
  39610. // Moving from `node` to its first child `next`.
  39611. parentNode = node;
  39612. node = next;
  39613. }
  39614. while (true) {
  39615. if (node === outerNode) {
  39616. // If `outerNode` has children, this is always the second time visiting
  39617. // it. If it has no children, this is still the first loop, and the only
  39618. // valid selection is anchorNode and focusNode both equal to this node
  39619. // and both offsets 0, in which case we will have handled above.
  39620. break outer;
  39621. }
  39622. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  39623. start = length;
  39624. }
  39625. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  39626. end = length;
  39627. }
  39628. if ((next = node.nextSibling) !== null) {
  39629. break;
  39630. }
  39631. node = parentNode;
  39632. parentNode = node.parentNode;
  39633. }
  39634. // Moving from `node` to its next sibling `next`.
  39635. node = next;
  39636. }
  39637. if (start === -1 || end === -1) {
  39638. // This should never happen. (Would happen if the anchor/focus nodes aren't
  39639. // actually inside the passed-in node.)
  39640. return null;
  39641. }
  39642. return {
  39643. start: start,
  39644. end: end
  39645. };
  39646. }
  39647. /**
  39648. * In modern non-IE browsers, we can support both forward and backward
  39649. * selections.
  39650. *
  39651. * Note: IE10+ supports the Selection object, but it does not support
  39652. * the `extend` method, which means that even in modern IE, it's not possible
  39653. * to programmatically create a backward selection. Thus, for all IE
  39654. * versions, we use the old IE API to create our selections.
  39655. *
  39656. * @param {DOMElement|DOMTextNode} node
  39657. * @param {object} offsets
  39658. */
  39659. function setOffsets(node, offsets) {
  39660. var doc = node.ownerDocument || document;
  39661. var win = doc && doc.defaultView || window;
  39662. // Edge fails with "Object expected" in some scenarios.
  39663. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  39664. // fails when pasting 100+ items)
  39665. if (!win.getSelection) {
  39666. return;
  39667. }
  39668. var selection = win.getSelection();
  39669. var length = node.textContent.length;
  39670. var start = Math.min(offsets.start, length);
  39671. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  39672. // IE 11 uses modern selection, but doesn't support the extend method.
  39673. // Flip backward selections, so we can set with a single range.
  39674. if (!selection.extend && start > end) {
  39675. var temp = end;
  39676. end = start;
  39677. start = temp;
  39678. }
  39679. var startMarker = getNodeForCharacterOffset(node, start);
  39680. var endMarker = getNodeForCharacterOffset(node, end);
  39681. if (startMarker && endMarker) {
  39682. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  39683. return;
  39684. }
  39685. var range = doc.createRange();
  39686. range.setStart(startMarker.node, startMarker.offset);
  39687. selection.removeAllRanges();
  39688. if (start > end) {
  39689. selection.addRange(range);
  39690. selection.extend(endMarker.node, endMarker.offset);
  39691. } else {
  39692. range.setEnd(endMarker.node, endMarker.offset);
  39693. selection.addRange(range);
  39694. }
  39695. }
  39696. }
  39697. function isTextNode(node) {
  39698. return node && node.nodeType === TEXT_NODE;
  39699. }
  39700. function containsNode(outerNode, innerNode) {
  39701. if (!outerNode || !innerNode) {
  39702. return false;
  39703. } else if (outerNode === innerNode) {
  39704. return true;
  39705. } else if (isTextNode(outerNode)) {
  39706. return false;
  39707. } else if (isTextNode(innerNode)) {
  39708. return containsNode(outerNode, innerNode.parentNode);
  39709. } else if ('contains' in outerNode) {
  39710. return outerNode.contains(innerNode);
  39711. } else if (outerNode.compareDocumentPosition) {
  39712. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  39713. } else {
  39714. return false;
  39715. }
  39716. }
  39717. function isInDocument(node) {
  39718. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  39719. }
  39720. function isSameOriginFrame(iframe) {
  39721. try {
  39722. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  39723. // to throw, e.g. if it has a cross-origin src attribute.
  39724. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  39725. // iframe.contentDocument.defaultView;
  39726. // A safety way is to access one of the cross origin properties: Window or Location
  39727. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  39728. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  39729. return typeof iframe.contentWindow.location.href === 'string';
  39730. } catch (err) {
  39731. return false;
  39732. }
  39733. }
  39734. function getActiveElementDeep() {
  39735. var win = window;
  39736. var element = getActiveElement();
  39737. while (element instanceof win.HTMLIFrameElement) {
  39738. if (isSameOriginFrame(element)) {
  39739. win = element.contentWindow;
  39740. } else {
  39741. return element;
  39742. }
  39743. element = getActiveElement(win.document);
  39744. }
  39745. return element;
  39746. }
  39747. /**
  39748. * @ReactInputSelection: React input selection module. Based on Selection.js,
  39749. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  39750. * assume buttons have range selections allowed).
  39751. * Input selection module for React.
  39752. */
  39753. /**
  39754. * @hasSelectionCapabilities: we get the element types that support selection
  39755. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  39756. * and `selectionEnd` rows.
  39757. */
  39758. function hasSelectionCapabilities(elem) {
  39759. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  39760. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  39761. }
  39762. function getSelectionInformation() {
  39763. var focusedElem = getActiveElementDeep();
  39764. return {
  39765. focusedElem: focusedElem,
  39766. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  39767. };
  39768. }
  39769. /**
  39770. * @restoreSelection: If any selection information was potentially lost,
  39771. * restore it. This is useful when performing operations that could remove dom
  39772. * nodes and place them back in, resulting in focus being lost.
  39773. */
  39774. function restoreSelection(priorSelectionInformation) {
  39775. var curFocusedElem = getActiveElementDeep();
  39776. var priorFocusedElem = priorSelectionInformation.focusedElem;
  39777. var priorSelectionRange = priorSelectionInformation.selectionRange;
  39778. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  39779. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  39780. setSelection(priorFocusedElem, priorSelectionRange);
  39781. }
  39782. // Focusing a node can change the scroll position, which is undesirable
  39783. var ancestors = [];
  39784. var ancestor = priorFocusedElem;
  39785. while (ancestor = ancestor.parentNode) {
  39786. if (ancestor.nodeType === ELEMENT_NODE) {
  39787. ancestors.push({
  39788. element: ancestor,
  39789. left: ancestor.scrollLeft,
  39790. top: ancestor.scrollTop
  39791. });
  39792. }
  39793. }
  39794. if (typeof priorFocusedElem.focus === 'function') {
  39795. priorFocusedElem.focus();
  39796. }
  39797. for (var i = 0; i < ancestors.length; i++) {
  39798. var info = ancestors[i];
  39799. info.element.scrollLeft = info.left;
  39800. info.element.scrollTop = info.top;
  39801. }
  39802. }
  39803. }
  39804. /**
  39805. * @getSelection: Gets the selection bounds of a focused textarea, input or
  39806. * contentEditable node.
  39807. * -@input: Look up selection bounds of this input
  39808. * -@return {start: selectionStart, end: selectionEnd}
  39809. */
  39810. function getSelection$1(input) {
  39811. var selection = void 0;
  39812. if ('selectionStart' in input) {
  39813. // Modern browser with input or textarea.
  39814. selection = {
  39815. start: input.selectionStart,
  39816. end: input.selectionEnd
  39817. };
  39818. } else {
  39819. // Content editable or old IE textarea.
  39820. selection = getOffsets(input);
  39821. }
  39822. return selection || { start: 0, end: 0 };
  39823. }
  39824. /**
  39825. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  39826. * the input.
  39827. * -@input Set selection bounds of this input or textarea
  39828. * -@offsets Object of same form that is returned from get*
  39829. */
  39830. function setSelection(input, offsets) {
  39831. var start = offsets.start,
  39832. end = offsets.end;
  39833. if (end === undefined) {
  39834. end = start;
  39835. }
  39836. if ('selectionStart' in input) {
  39837. input.selectionStart = start;
  39838. input.selectionEnd = Math.min(end, input.value.length);
  39839. } else {
  39840. setOffsets(input, offsets);
  39841. }
  39842. }
  39843. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  39844. var eventTypes$3 = {
  39845. select: {
  39846. phasedRegistrationNames: {
  39847. bubbled: 'onSelect',
  39848. captured: 'onSelectCapture'
  39849. },
  39850. 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]
  39851. }
  39852. };
  39853. var activeElement$1 = null;
  39854. var activeElementInst$1 = null;
  39855. var lastSelection = null;
  39856. var mouseDown = false;
  39857. /**
  39858. * Get an object which is a unique representation of the current selection.
  39859. *
  39860. * The return value will not be consistent across nodes or browsers, but
  39861. * two identical selections on the same node will return identical objects.
  39862. *
  39863. * @param {DOMElement} node
  39864. * @return {object}
  39865. */
  39866. function getSelection(node) {
  39867. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  39868. return {
  39869. start: node.selectionStart,
  39870. end: node.selectionEnd
  39871. };
  39872. } else {
  39873. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  39874. var selection = win.getSelection();
  39875. return {
  39876. anchorNode: selection.anchorNode,
  39877. anchorOffset: selection.anchorOffset,
  39878. focusNode: selection.focusNode,
  39879. focusOffset: selection.focusOffset
  39880. };
  39881. }
  39882. }
  39883. /**
  39884. * Get document associated with the event target.
  39885. *
  39886. * @param {object} nativeEventTarget
  39887. * @return {Document}
  39888. */
  39889. function getEventTargetDocument(eventTarget) {
  39890. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  39891. }
  39892. /**
  39893. * Poll selection to see whether it's changed.
  39894. *
  39895. * @param {object} nativeEvent
  39896. * @param {object} nativeEventTarget
  39897. * @return {?SyntheticEvent}
  39898. */
  39899. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  39900. // Ensure we have the right element, and that the user is not dragging a
  39901. // selection (this matches native `select` event behavior). In HTML5, select
  39902. // fires only on input and textarea thus if there's no focused element we
  39903. // won't dispatch.
  39904. var doc = getEventTargetDocument(nativeEventTarget);
  39905. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  39906. return null;
  39907. }
  39908. // Only fire when selection has actually changed.
  39909. var currentSelection = getSelection(activeElement$1);
  39910. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  39911. lastSelection = currentSelection;
  39912. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  39913. syntheticEvent.type = 'select';
  39914. syntheticEvent.target = activeElement$1;
  39915. accumulateTwoPhaseDispatches(syntheticEvent);
  39916. return syntheticEvent;
  39917. }
  39918. return null;
  39919. }
  39920. /**
  39921. * This plugin creates an `onSelect` event that normalizes select events
  39922. * across form elements.
  39923. *
  39924. * Supported elements are:
  39925. * - input (see `isTextInputElement`)
  39926. * - textarea
  39927. * - contentEditable
  39928. *
  39929. * This differs from native browser implementations in the following ways:
  39930. * - Fires on contentEditable fields as well as inputs.
  39931. * - Fires for collapsed selection.
  39932. * - Fires after user input.
  39933. */
  39934. var SelectEventPlugin = {
  39935. eventTypes: eventTypes$3,
  39936. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  39937. var doc = getEventTargetDocument(nativeEventTarget);
  39938. // Track whether all listeners exists for this plugin. If none exist, we do
  39939. // not extract events. See #3639.
  39940. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  39941. return null;
  39942. }
  39943. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  39944. switch (topLevelType) {
  39945. // Track the input node that has focus.
  39946. case TOP_FOCUS:
  39947. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  39948. activeElement$1 = targetNode;
  39949. activeElementInst$1 = targetInst;
  39950. lastSelection = null;
  39951. }
  39952. break;
  39953. case TOP_BLUR:
  39954. activeElement$1 = null;
  39955. activeElementInst$1 = null;
  39956. lastSelection = null;
  39957. break;
  39958. // Don't fire the event while the user is dragging. This matches the
  39959. // semantics of the native select event.
  39960. case TOP_MOUSE_DOWN:
  39961. mouseDown = true;
  39962. break;
  39963. case TOP_CONTEXT_MENU:
  39964. case TOP_MOUSE_UP:
  39965. case TOP_DRAG_END:
  39966. mouseDown = false;
  39967. return constructSelectEvent(nativeEvent, nativeEventTarget);
  39968. // Chrome and IE fire non-standard event when selection is changed (and
  39969. // sometimes when it hasn't). IE's event fires out of order with respect
  39970. // to key and input events on deletion, so we discard it.
  39971. //
  39972. // Firefox doesn't support selectionchange, so check selection status
  39973. // after each key entry. The selection changes after keydown and before
  39974. // keyup, but we check on keydown as well in the case of holding down a
  39975. // key, when multiple keydown events are fired but only one keyup is.
  39976. // This is also our approach for IE handling, for the reason above.
  39977. case TOP_SELECTION_CHANGE:
  39978. if (skipSelectionChangeEvent) {
  39979. break;
  39980. }
  39981. // falls through
  39982. case TOP_KEY_DOWN:
  39983. case TOP_KEY_UP:
  39984. return constructSelectEvent(nativeEvent, nativeEventTarget);
  39985. }
  39986. return null;
  39987. }
  39988. };
  39989. /**
  39990. * Inject modules for resolving DOM hierarchy and plugin ordering.
  39991. */
  39992. injection.injectEventPluginOrder(DOMEventPluginOrder);
  39993. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  39994. /**
  39995. * Some important event plugins included by default (without having to require
  39996. * them).
  39997. */
  39998. injection.injectEventPluginsByName({
  39999. SimpleEventPlugin: SimpleEventPlugin,
  40000. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  40001. ChangeEventPlugin: ChangeEventPlugin,
  40002. SelectEventPlugin: SelectEventPlugin,
  40003. BeforeInputEventPlugin: BeforeInputEventPlugin
  40004. });
  40005. function endsWith(subject, search) {
  40006. var length = subject.length;
  40007. return subject.substring(length - search.length, length) === search;
  40008. }
  40009. var didWarnSelectedSetOnOption = false;
  40010. var didWarnInvalidChild = false;
  40011. function flattenChildren(children) {
  40012. var content = '';
  40013. // Flatten children. We'll warn if they are invalid
  40014. // during validateProps() which runs for hydration too.
  40015. // Note that this would throw on non-element objects.
  40016. // Elements are stringified (which is normally irrelevant
  40017. // but matters for <fbt>).
  40018. React.Children.forEach(children, function (child) {
  40019. if (child == null) {
  40020. return;
  40021. }
  40022. content += child;
  40023. // Note: we don't warn about invalid children here.
  40024. // Instead, this is done separately below so that
  40025. // it happens during the hydration codepath too.
  40026. });
  40027. return content;
  40028. }
  40029. /**
  40030. * Implements an <option> host component that warns when `selected` is set.
  40031. */
  40032. function validateProps(element, props) {
  40033. {
  40034. // This mirrors the codepath above, but runs for hydration too.
  40035. // Warn about invalid children here so that client and hydration are consistent.
  40036. // TODO: this seems like it could cause a DEV-only throw for hydration
  40037. // if children contains a non-element object. We should try to avoid that.
  40038. if (typeof props.children === 'object' && props.children !== null) {
  40039. React.Children.forEach(props.children, function (child) {
  40040. if (child == null) {
  40041. return;
  40042. }
  40043. if (typeof child === 'string' || typeof child === 'number') {
  40044. return;
  40045. }
  40046. if (typeof child.type !== 'string') {
  40047. return;
  40048. }
  40049. if (!didWarnInvalidChild) {
  40050. didWarnInvalidChild = true;
  40051. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  40052. }
  40053. });
  40054. }
  40055. // TODO: Remove support for `selected` in <option>.
  40056. if (props.selected != null && !didWarnSelectedSetOnOption) {
  40057. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  40058. didWarnSelectedSetOnOption = true;
  40059. }
  40060. }
  40061. }
  40062. function postMountWrapper$1(element, props) {
  40063. // value="" should make a value attribute (#6219)
  40064. if (props.value != null) {
  40065. element.setAttribute('value', toString(getToStringValue(props.value)));
  40066. }
  40067. }
  40068. function getHostProps$1(element, props) {
  40069. var hostProps = _assign({ children: undefined }, props);
  40070. var content = flattenChildren(props.children);
  40071. if (content) {
  40072. hostProps.children = content;
  40073. }
  40074. return hostProps;
  40075. }
  40076. // TODO: direct imports like some-package/src/* are bad. Fix me.
  40077. var didWarnValueDefaultValue$1 = void 0;
  40078. {
  40079. didWarnValueDefaultValue$1 = false;
  40080. }
  40081. function getDeclarationErrorAddendum() {
  40082. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  40083. if (ownerName) {
  40084. return '\n\nCheck the render method of `' + ownerName + '`.';
  40085. }
  40086. return '';
  40087. }
  40088. var valuePropNames = ['value', 'defaultValue'];
  40089. /**
  40090. * Validation function for `value` and `defaultValue`.
  40091. */
  40092. function checkSelectPropTypes(props) {
  40093. ReactControlledValuePropTypes.checkPropTypes('select', props);
  40094. for (var i = 0; i < valuePropNames.length; i++) {
  40095. var propName = valuePropNames[i];
  40096. if (props[propName] == null) {
  40097. continue;
  40098. }
  40099. var isArray = Array.isArray(props[propName]);
  40100. if (props.multiple && !isArray) {
  40101. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  40102. } else if (!props.multiple && isArray) {
  40103. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  40104. }
  40105. }
  40106. }
  40107. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  40108. var options = node.options;
  40109. if (multiple) {
  40110. var selectedValues = propValue;
  40111. var selectedValue = {};
  40112. for (var i = 0; i < selectedValues.length; i++) {
  40113. // Prefix to avoid chaos with special keys.
  40114. selectedValue['$' + selectedValues[i]] = true;
  40115. }
  40116. for (var _i = 0; _i < options.length; _i++) {
  40117. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  40118. if (options[_i].selected !== selected) {
  40119. options[_i].selected = selected;
  40120. }
  40121. if (selected && setDefaultSelected) {
  40122. options[_i].defaultSelected = true;
  40123. }
  40124. }
  40125. } else {
  40126. // Do not set `select.value` as exact behavior isn't consistent across all
  40127. // browsers for all cases.
  40128. var _selectedValue = toString(getToStringValue(propValue));
  40129. var defaultSelected = null;
  40130. for (var _i2 = 0; _i2 < options.length; _i2++) {
  40131. if (options[_i2].value === _selectedValue) {
  40132. options[_i2].selected = true;
  40133. if (setDefaultSelected) {
  40134. options[_i2].defaultSelected = true;
  40135. }
  40136. return;
  40137. }
  40138. if (defaultSelected === null && !options[_i2].disabled) {
  40139. defaultSelected = options[_i2];
  40140. }
  40141. }
  40142. if (defaultSelected !== null) {
  40143. defaultSelected.selected = true;
  40144. }
  40145. }
  40146. }
  40147. /**
  40148. * Implements a <select> host component that allows optionally setting the
  40149. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  40150. * stringable. If `multiple` is true, the prop must be an array of stringables.
  40151. *
  40152. * If `value` is not supplied (or null/undefined), user actions that change the
  40153. * selected option will trigger updates to the rendered options.
  40154. *
  40155. * If it is supplied (and not null/undefined), the rendered options will not
  40156. * update in response to user actions. Instead, the `value` prop must change in
  40157. * order for the rendered options to update.
  40158. *
  40159. * If `defaultValue` is provided, any options with the supplied values will be
  40160. * selected.
  40161. */
  40162. function getHostProps$2(element, props) {
  40163. return _assign({}, props, {
  40164. value: undefined
  40165. });
  40166. }
  40167. function initWrapperState$1(element, props) {
  40168. var node = element;
  40169. {
  40170. checkSelectPropTypes(props);
  40171. }
  40172. node._wrapperState = {
  40173. wasMultiple: !!props.multiple
  40174. };
  40175. {
  40176. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  40177. 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');
  40178. didWarnValueDefaultValue$1 = true;
  40179. }
  40180. }
  40181. }
  40182. function postMountWrapper$2(element, props) {
  40183. var node = element;
  40184. node.multiple = !!props.multiple;
  40185. var value = props.value;
  40186. if (value != null) {
  40187. updateOptions(node, !!props.multiple, value, false);
  40188. } else if (props.defaultValue != null) {
  40189. updateOptions(node, !!props.multiple, props.defaultValue, true);
  40190. }
  40191. }
  40192. function postUpdateWrapper(element, props) {
  40193. var node = element;
  40194. var wasMultiple = node._wrapperState.wasMultiple;
  40195. node._wrapperState.wasMultiple = !!props.multiple;
  40196. var value = props.value;
  40197. if (value != null) {
  40198. updateOptions(node, !!props.multiple, value, false);
  40199. } else if (wasMultiple !== !!props.multiple) {
  40200. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  40201. if (props.defaultValue != null) {
  40202. updateOptions(node, !!props.multiple, props.defaultValue, true);
  40203. } else {
  40204. // Revert the select back to its default unselected state.
  40205. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  40206. }
  40207. }
  40208. }
  40209. function restoreControlledState$2(element, props) {
  40210. var node = element;
  40211. var value = props.value;
  40212. if (value != null) {
  40213. updateOptions(node, !!props.multiple, value, false);
  40214. }
  40215. }
  40216. var didWarnValDefaultVal = false;
  40217. /**
  40218. * Implements a <textarea> host component that allows setting `value`, and
  40219. * `defaultValue`. This differs from the traditional DOM API because value is
  40220. * usually set as PCDATA children.
  40221. *
  40222. * If `value` is not supplied (or null/undefined), user actions that affect the
  40223. * value will trigger updates to the element.
  40224. *
  40225. * If `value` is supplied (and not null/undefined), the rendered element will
  40226. * not trigger updates to the element. Instead, the `value` prop must change in
  40227. * order for the rendered element to be updated.
  40228. *
  40229. * The rendered element will be initialized with an empty value, the prop
  40230. * `defaultValue` if specified, or the children content (deprecated).
  40231. */
  40232. function getHostProps$3(element, props) {
  40233. var node = element;
  40234. (function () {
  40235. if (!(props.dangerouslySetInnerHTML == null)) {
  40236. {
  40237. throw ReactError(Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.'));
  40238. }
  40239. }
  40240. })();
  40241. // Always set children to the same thing. In IE9, the selection range will
  40242. // get reset if `textContent` is mutated. We could add a check in setTextContent
  40243. // to only set the value if/when the value differs from the node value (which would
  40244. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  40245. // solution. The value can be a boolean or object so that's why it's forced
  40246. // to be a string.
  40247. var hostProps = _assign({}, props, {
  40248. value: undefined,
  40249. defaultValue: undefined,
  40250. children: toString(node._wrapperState.initialValue)
  40251. });
  40252. return hostProps;
  40253. }
  40254. function initWrapperState$2(element, props) {
  40255. var node = element;
  40256. {
  40257. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  40258. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  40259. 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');
  40260. didWarnValDefaultVal = true;
  40261. }
  40262. }
  40263. var initialValue = props.value;
  40264. // Only bother fetching default value if we're going to use it
  40265. if (initialValue == null) {
  40266. var defaultValue = props.defaultValue;
  40267. // TODO (yungsters): Remove support for children content in <textarea>.
  40268. var children = props.children;
  40269. if (children != null) {
  40270. {
  40271. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  40272. }
  40273. (function () {
  40274. if (!(defaultValue == null)) {
  40275. {
  40276. throw ReactError(Error('If you supply `defaultValue` on a <textarea>, do not pass children.'));
  40277. }
  40278. }
  40279. })();
  40280. if (Array.isArray(children)) {
  40281. (function () {
  40282. if (!(children.length <= 1)) {
  40283. {
  40284. throw ReactError(Error('<textarea> can only have at most one child.'));
  40285. }
  40286. }
  40287. })();
  40288. children = children[0];
  40289. }
  40290. defaultValue = children;
  40291. }
  40292. if (defaultValue == null) {
  40293. defaultValue = '';
  40294. }
  40295. initialValue = defaultValue;
  40296. }
  40297. node._wrapperState = {
  40298. initialValue: getToStringValue(initialValue)
  40299. };
  40300. }
  40301. function updateWrapper$1(element, props) {
  40302. var node = element;
  40303. var value = getToStringValue(props.value);
  40304. var defaultValue = getToStringValue(props.defaultValue);
  40305. if (value != null) {
  40306. // Cast `value` to a string to ensure the value is set correctly. While
  40307. // browsers typically do this as necessary, jsdom doesn't.
  40308. var newValue = toString(value);
  40309. // To avoid side effects (such as losing text selection), only set value if changed
  40310. if (newValue !== node.value) {
  40311. node.value = newValue;
  40312. }
  40313. if (props.defaultValue == null && node.defaultValue !== newValue) {
  40314. node.defaultValue = newValue;
  40315. }
  40316. }
  40317. if (defaultValue != null) {
  40318. node.defaultValue = toString(defaultValue);
  40319. }
  40320. }
  40321. function postMountWrapper$3(element, props) {
  40322. var node = element;
  40323. // This is in postMount because we need access to the DOM node, which is not
  40324. // available until after the component has mounted.
  40325. var textContent = node.textContent;
  40326. // Only set node.value if textContent is equal to the expected
  40327. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  40328. // will populate textContent as well.
  40329. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  40330. if (textContent === node._wrapperState.initialValue) {
  40331. node.value = textContent;
  40332. }
  40333. }
  40334. function restoreControlledState$3(element, props) {
  40335. // DOM component is still mounted; update
  40336. updateWrapper$1(element, props);
  40337. }
  40338. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  40339. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  40340. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  40341. var Namespaces = {
  40342. html: HTML_NAMESPACE$1,
  40343. mathml: MATH_NAMESPACE,
  40344. svg: SVG_NAMESPACE
  40345. };
  40346. // Assumes there is no parent namespace.
  40347. function getIntrinsicNamespace(type) {
  40348. switch (type) {
  40349. case 'svg':
  40350. return SVG_NAMESPACE;
  40351. case 'math':
  40352. return MATH_NAMESPACE;
  40353. default:
  40354. return HTML_NAMESPACE$1;
  40355. }
  40356. }
  40357. function getChildNamespace(parentNamespace, type) {
  40358. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  40359. // No (or default) parent namespace: potential entry point.
  40360. return getIntrinsicNamespace(type);
  40361. }
  40362. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  40363. // We're leaving SVG.
  40364. return HTML_NAMESPACE$1;
  40365. }
  40366. // By default, pass namespace below.
  40367. return parentNamespace;
  40368. }
  40369. /* globals MSApp */
  40370. /**
  40371. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  40372. */
  40373. var createMicrosoftUnsafeLocalFunction = function (func) {
  40374. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  40375. return function (arg0, arg1, arg2, arg3) {
  40376. MSApp.execUnsafeLocalFunction(function () {
  40377. return func(arg0, arg1, arg2, arg3);
  40378. });
  40379. };
  40380. } else {
  40381. return func;
  40382. }
  40383. };
  40384. // SVG temp container for IE lacking innerHTML
  40385. var reusableSVGContainer = void 0;
  40386. /**
  40387. * Set the innerHTML property of a node
  40388. *
  40389. * @param {DOMElement} node
  40390. * @param {string} html
  40391. * @internal
  40392. */
  40393. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  40394. // IE does not have innerHTML for SVG nodes, so instead we inject the
  40395. // new markup in a temp node and then move the child nodes across into
  40396. // the target node
  40397. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  40398. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  40399. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  40400. var svgNode = reusableSVGContainer.firstChild;
  40401. while (node.firstChild) {
  40402. node.removeChild(node.firstChild);
  40403. }
  40404. while (svgNode.firstChild) {
  40405. node.appendChild(svgNode.firstChild);
  40406. }
  40407. } else {
  40408. node.innerHTML = html;
  40409. }
  40410. });
  40411. /**
  40412. * Set the textContent property of a node. For text updates, it's faster
  40413. * to set the `nodeValue` of the Text node directly instead of using
  40414. * `.textContent` which will remove the existing node and create a new one.
  40415. *
  40416. * @param {DOMElement} node
  40417. * @param {string} text
  40418. * @internal
  40419. */
  40420. var setTextContent = function (node, text) {
  40421. if (text) {
  40422. var firstChild = node.firstChild;
  40423. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  40424. firstChild.nodeValue = text;
  40425. return;
  40426. }
  40427. }
  40428. node.textContent = text;
  40429. };
  40430. // List derived from Gecko source code:
  40431. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  40432. var shorthandToLonghand = {
  40433. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  40434. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  40435. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  40436. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  40437. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  40438. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  40439. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  40440. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  40441. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  40442. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  40443. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  40444. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  40445. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  40446. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  40447. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  40448. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  40449. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  40450. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  40451. columns: ['columnCount', 'columnWidth'],
  40452. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  40453. flexFlow: ['flexDirection', 'flexWrap'],
  40454. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  40455. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  40456. gap: ['columnGap', 'rowGap'],
  40457. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  40458. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  40459. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  40460. gridColumnGap: ['columnGap'],
  40461. gridGap: ['columnGap', 'rowGap'],
  40462. gridRow: ['gridRowEnd', 'gridRowStart'],
  40463. gridRowGap: ['rowGap'],
  40464. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  40465. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  40466. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  40467. marker: ['markerEnd', 'markerMid', 'markerStart'],
  40468. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  40469. maskPosition: ['maskPositionX', 'maskPositionY'],
  40470. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  40471. overflow: ['overflowX', 'overflowY'],
  40472. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  40473. placeContent: ['alignContent', 'justifyContent'],
  40474. placeItems: ['alignItems', 'justifyItems'],
  40475. placeSelf: ['alignSelf', 'justifySelf'],
  40476. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  40477. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  40478. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  40479. wordWrap: ['overflowWrap']
  40480. };
  40481. /**
  40482. * CSS properties which accept numbers but are not in units of "px".
  40483. */
  40484. var isUnitlessNumber = {
  40485. animationIterationCount: true,
  40486. borderImageOutset: true,
  40487. borderImageSlice: true,
  40488. borderImageWidth: true,
  40489. boxFlex: true,
  40490. boxFlexGroup: true,
  40491. boxOrdinalGroup: true,
  40492. columnCount: true,
  40493. columns: true,
  40494. flex: true,
  40495. flexGrow: true,
  40496. flexPositive: true,
  40497. flexShrink: true,
  40498. flexNegative: true,
  40499. flexOrder: true,
  40500. gridArea: true,
  40501. gridRow: true,
  40502. gridRowEnd: true,
  40503. gridRowSpan: true,
  40504. gridRowStart: true,
  40505. gridColumn: true,
  40506. gridColumnEnd: true,
  40507. gridColumnSpan: true,
  40508. gridColumnStart: true,
  40509. fontWeight: true,
  40510. lineClamp: true,
  40511. lineHeight: true,
  40512. opacity: true,
  40513. order: true,
  40514. orphans: true,
  40515. tabSize: true,
  40516. widows: true,
  40517. zIndex: true,
  40518. zoom: true,
  40519. // SVG-related properties
  40520. fillOpacity: true,
  40521. floodOpacity: true,
  40522. stopOpacity: true,
  40523. strokeDasharray: true,
  40524. strokeDashoffset: true,
  40525. strokeMiterlimit: true,
  40526. strokeOpacity: true,
  40527. strokeWidth: true
  40528. };
  40529. /**
  40530. * @param {string} prefix vendor-specific prefix, eg: Webkit
  40531. * @param {string} key style name, eg: transitionDuration
  40532. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  40533. * WebkitTransitionDuration
  40534. */
  40535. function prefixKey(prefix, key) {
  40536. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  40537. }
  40538. /**
  40539. * Support style names that may come passed in prefixed by adding permutations
  40540. * of vendor prefixes.
  40541. */
  40542. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  40543. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  40544. // infinite loop, because it iterates over the newly added props too.
  40545. Object.keys(isUnitlessNumber).forEach(function (prop) {
  40546. prefixes.forEach(function (prefix) {
  40547. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  40548. });
  40549. });
  40550. /**
  40551. * Convert a value into the proper css writable value. The style name `name`
  40552. * should be logical (no hyphens), as specified
  40553. * in `CSSProperty.isUnitlessNumber`.
  40554. *
  40555. * @param {string} name CSS property name such as `topMargin`.
  40556. * @param {*} value CSS property value such as `10px`.
  40557. * @return {string} Normalized style value with dimensions applied.
  40558. */
  40559. function dangerousStyleValue(name, value, isCustomProperty) {
  40560. // Note that we've removed escapeTextForBrowser() calls here since the
  40561. // whole string will be escaped when the attribute is injected into
  40562. // the markup. If you provide unsafe user data here they can inject
  40563. // arbitrary CSS which may be problematic (I couldn't repro this):
  40564. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  40565. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  40566. // This is not an XSS hole but instead a potential CSS injection issue
  40567. // which has lead to a greater discussion about how we're going to
  40568. // trust URLs moving forward. See #2115901
  40569. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  40570. if (isEmpty) {
  40571. return '';
  40572. }
  40573. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  40574. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  40575. }
  40576. return ('' + value).trim();
  40577. }
  40578. var uppercasePattern = /([A-Z])/g;
  40579. var msPattern = /^ms-/;
  40580. /**
  40581. * Hyphenates a camelcased CSS property name, for example:
  40582. *
  40583. * > hyphenateStyleName('backgroundColor')
  40584. * < "background-color"
  40585. * > hyphenateStyleName('MozTransition')
  40586. * < "-moz-transition"
  40587. * > hyphenateStyleName('msTransition')
  40588. * < "-ms-transition"
  40589. *
  40590. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  40591. * is converted to `-ms-`.
  40592. */
  40593. function hyphenateStyleName(name) {
  40594. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  40595. }
  40596. var warnValidStyle = function () {};
  40597. {
  40598. // 'msTransform' is correct, but the other prefixes should be capitalized
  40599. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  40600. var msPattern$1 = /^-ms-/;
  40601. var hyphenPattern = /-(.)/g;
  40602. // style values shouldn't contain a semicolon
  40603. var badStyleValueWithSemicolonPattern = /;\s*$/;
  40604. var warnedStyleNames = {};
  40605. var warnedStyleValues = {};
  40606. var warnedForNaNValue = false;
  40607. var warnedForInfinityValue = false;
  40608. var camelize = function (string) {
  40609. return string.replace(hyphenPattern, function (_, character) {
  40610. return character.toUpperCase();
  40611. });
  40612. };
  40613. var warnHyphenatedStyleName = function (name) {
  40614. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  40615. return;
  40616. }
  40617. warnedStyleNames[name] = true;
  40618. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  40619. // As Andi Smith suggests
  40620. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  40621. // is converted to lowercase `ms`.
  40622. camelize(name.replace(msPattern$1, 'ms-')));
  40623. };
  40624. var warnBadVendoredStyleName = function (name) {
  40625. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  40626. return;
  40627. }
  40628. warnedStyleNames[name] = true;
  40629. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  40630. };
  40631. var warnStyleValueWithSemicolon = function (name, value) {
  40632. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  40633. return;
  40634. }
  40635. warnedStyleValues[value] = true;
  40636. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  40637. };
  40638. var warnStyleValueIsNaN = function (name, value) {
  40639. if (warnedForNaNValue) {
  40640. return;
  40641. }
  40642. warnedForNaNValue = true;
  40643. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  40644. };
  40645. var warnStyleValueIsInfinity = function (name, value) {
  40646. if (warnedForInfinityValue) {
  40647. return;
  40648. }
  40649. warnedForInfinityValue = true;
  40650. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  40651. };
  40652. warnValidStyle = function (name, value) {
  40653. if (name.indexOf('-') > -1) {
  40654. warnHyphenatedStyleName(name);
  40655. } else if (badVendoredStyleNamePattern.test(name)) {
  40656. warnBadVendoredStyleName(name);
  40657. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  40658. warnStyleValueWithSemicolon(name, value);
  40659. }
  40660. if (typeof value === 'number') {
  40661. if (isNaN(value)) {
  40662. warnStyleValueIsNaN(name, value);
  40663. } else if (!isFinite(value)) {
  40664. warnStyleValueIsInfinity(name, value);
  40665. }
  40666. }
  40667. };
  40668. }
  40669. var warnValidStyle$1 = warnValidStyle;
  40670. /**
  40671. * Operations for dealing with CSS properties.
  40672. */
  40673. /**
  40674. * This creates a string that is expected to be equivalent to the style
  40675. * attribute generated by server-side rendering. It by-passes warnings and
  40676. * security checks so it's not safe to use this value for anything other than
  40677. * comparison. It is only used in DEV for SSR validation.
  40678. */
  40679. function createDangerousStringForStyles(styles) {
  40680. {
  40681. var serialized = '';
  40682. var delimiter = '';
  40683. for (var styleName in styles) {
  40684. if (!styles.hasOwnProperty(styleName)) {
  40685. continue;
  40686. }
  40687. var styleValue = styles[styleName];
  40688. if (styleValue != null) {
  40689. var isCustomProperty = styleName.indexOf('--') === 0;
  40690. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  40691. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  40692. delimiter = ';';
  40693. }
  40694. }
  40695. return serialized || null;
  40696. }
  40697. }
  40698. /**
  40699. * Sets the value for multiple styles on a node. If a value is specified as
  40700. * '' (empty string), the corresponding style property will be unset.
  40701. *
  40702. * @param {DOMElement} node
  40703. * @param {object} styles
  40704. */
  40705. function setValueForStyles(node, styles) {
  40706. var style = node.style;
  40707. for (var styleName in styles) {
  40708. if (!styles.hasOwnProperty(styleName)) {
  40709. continue;
  40710. }
  40711. var isCustomProperty = styleName.indexOf('--') === 0;
  40712. {
  40713. if (!isCustomProperty) {
  40714. warnValidStyle$1(styleName, styles[styleName]);
  40715. }
  40716. }
  40717. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  40718. if (styleName === 'float') {
  40719. styleName = 'cssFloat';
  40720. }
  40721. if (isCustomProperty) {
  40722. style.setProperty(styleName, styleValue);
  40723. } else {
  40724. style[styleName] = styleValue;
  40725. }
  40726. }
  40727. }
  40728. function isValueEmpty(value) {
  40729. return value == null || typeof value === 'boolean' || value === '';
  40730. }
  40731. /**
  40732. * Given {color: 'red', overflow: 'hidden'} returns {
  40733. * color: 'color',
  40734. * overflowX: 'overflow',
  40735. * overflowY: 'overflow',
  40736. * }. This can be read as "the overflowY property was set by the overflow
  40737. * shorthand". That is, the values are the property that each was derived from.
  40738. */
  40739. function expandShorthandMap(styles) {
  40740. var expanded = {};
  40741. for (var key in styles) {
  40742. var longhands = shorthandToLonghand[key] || [key];
  40743. for (var i = 0; i < longhands.length; i++) {
  40744. expanded[longhands[i]] = key;
  40745. }
  40746. }
  40747. return expanded;
  40748. }
  40749. /**
  40750. * When mixing shorthand and longhand property names, we warn during updates if
  40751. * we expect an incorrect result to occur. In particular, we warn for:
  40752. *
  40753. * Updating a shorthand property (longhand gets overwritten):
  40754. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  40755. * becomes .style.font = 'baz'
  40756. * Removing a shorthand property (longhand gets lost too):
  40757. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  40758. * becomes .style.font = ''
  40759. * Removing a longhand property (should revert to shorthand; doesn't):
  40760. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  40761. * becomes .style.fontVariant = ''
  40762. */
  40763. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  40764. if (!warnAboutShorthandPropertyCollision) {
  40765. return;
  40766. }
  40767. if (!nextStyles) {
  40768. return;
  40769. }
  40770. var expandedUpdates = expandShorthandMap(styleUpdates);
  40771. var expandedStyles = expandShorthandMap(nextStyles);
  40772. var warnedAbout = {};
  40773. for (var key in expandedUpdates) {
  40774. var originalKey = expandedUpdates[key];
  40775. var correctOriginalKey = expandedStyles[key];
  40776. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  40777. var warningKey = originalKey + ',' + correctOriginalKey;
  40778. if (warnedAbout[warningKey]) {
  40779. continue;
  40780. }
  40781. warnedAbout[warningKey] = true;
  40782. warning$1(false, '%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
  40783. }
  40784. }
  40785. }
  40786. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  40787. // those special-case tags.
  40788. var omittedCloseTags = {
  40789. area: true,
  40790. base: true,
  40791. br: true,
  40792. col: true,
  40793. embed: true,
  40794. hr: true,
  40795. img: true,
  40796. input: true,
  40797. keygen: true,
  40798. link: true,
  40799. meta: true,
  40800. param: true,
  40801. source: true,
  40802. track: true,
  40803. wbr: true
  40804. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  40805. };
  40806. // For HTML, certain tags cannot have children. This has the same purpose as
  40807. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  40808. var voidElementTags = _assign({
  40809. menuitem: true
  40810. }, omittedCloseTags);
  40811. // TODO: We can remove this if we add invariantWithStack()
  40812. // or add stack by default to invariants where possible.
  40813. var HTML$1 = '__html';
  40814. var ReactDebugCurrentFrame$3 = null;
  40815. {
  40816. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  40817. }
  40818. function assertValidProps(tag, props) {
  40819. if (!props) {
  40820. return;
  40821. }
  40822. // Note the use of `==` which checks for null or undefined.
  40823. if (voidElementTags[tag]) {
  40824. (function () {
  40825. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  40826. {
  40827. throw ReactError(Error(tag + ' is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  40828. }
  40829. }
  40830. })();
  40831. }
  40832. if (props.dangerouslySetInnerHTML != null) {
  40833. (function () {
  40834. if (!(props.children == null)) {
  40835. {
  40836. throw ReactError(Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.'));
  40837. }
  40838. }
  40839. })();
  40840. (function () {
  40841. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML)) {
  40842. {
  40843. throw ReactError(Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.'));
  40844. }
  40845. }
  40846. })();
  40847. }
  40848. {
  40849. !(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;
  40850. }
  40851. (function () {
  40852. if (!(props.style == null || typeof props.style === 'object')) {
  40853. {
  40854. throw ReactError(Error('The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  40855. }
  40856. }
  40857. })();
  40858. }
  40859. function isCustomComponent(tagName, props) {
  40860. if (tagName.indexOf('-') === -1) {
  40861. return typeof props.is === 'string';
  40862. }
  40863. switch (tagName) {
  40864. // These are reserved SVG and MathML elements.
  40865. // We don't mind this whitelist too much because we expect it to never grow.
  40866. // The alternative is to track the namespace in a few places which is convoluted.
  40867. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  40868. case 'annotation-xml':
  40869. case 'color-profile':
  40870. case 'font-face':
  40871. case 'font-face-src':
  40872. case 'font-face-uri':
  40873. case 'font-face-format':
  40874. case 'font-face-name':
  40875. case 'missing-glyph':
  40876. return false;
  40877. default:
  40878. return true;
  40879. }
  40880. }
  40881. // When adding attributes to the HTML or SVG whitelist, be sure to
  40882. // also add them to this module to ensure casing and incorrect name
  40883. // warnings.
  40884. var possibleStandardNames = {
  40885. // HTML
  40886. accept: 'accept',
  40887. acceptcharset: 'acceptCharset',
  40888. 'accept-charset': 'acceptCharset',
  40889. accesskey: 'accessKey',
  40890. action: 'action',
  40891. allowfullscreen: 'allowFullScreen',
  40892. alt: 'alt',
  40893. as: 'as',
  40894. async: 'async',
  40895. autocapitalize: 'autoCapitalize',
  40896. autocomplete: 'autoComplete',
  40897. autocorrect: 'autoCorrect',
  40898. autofocus: 'autoFocus',
  40899. autoplay: 'autoPlay',
  40900. autosave: 'autoSave',
  40901. capture: 'capture',
  40902. cellpadding: 'cellPadding',
  40903. cellspacing: 'cellSpacing',
  40904. challenge: 'challenge',
  40905. charset: 'charSet',
  40906. checked: 'checked',
  40907. children: 'children',
  40908. cite: 'cite',
  40909. class: 'className',
  40910. classid: 'classID',
  40911. classname: 'className',
  40912. cols: 'cols',
  40913. colspan: 'colSpan',
  40914. content: 'content',
  40915. contenteditable: 'contentEditable',
  40916. contextmenu: 'contextMenu',
  40917. controls: 'controls',
  40918. controlslist: 'controlsList',
  40919. coords: 'coords',
  40920. crossorigin: 'crossOrigin',
  40921. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  40922. data: 'data',
  40923. datetime: 'dateTime',
  40924. default: 'default',
  40925. defaultchecked: 'defaultChecked',
  40926. defaultvalue: 'defaultValue',
  40927. defer: 'defer',
  40928. dir: 'dir',
  40929. disabled: 'disabled',
  40930. disablepictureinpicture: 'disablePictureInPicture',
  40931. download: 'download',
  40932. draggable: 'draggable',
  40933. enctype: 'encType',
  40934. for: 'htmlFor',
  40935. form: 'form',
  40936. formmethod: 'formMethod',
  40937. formaction: 'formAction',
  40938. formenctype: 'formEncType',
  40939. formnovalidate: 'formNoValidate',
  40940. formtarget: 'formTarget',
  40941. frameborder: 'frameBorder',
  40942. headers: 'headers',
  40943. height: 'height',
  40944. hidden: 'hidden',
  40945. high: 'high',
  40946. href: 'href',
  40947. hreflang: 'hrefLang',
  40948. htmlfor: 'htmlFor',
  40949. httpequiv: 'httpEquiv',
  40950. 'http-equiv': 'httpEquiv',
  40951. icon: 'icon',
  40952. id: 'id',
  40953. innerhtml: 'innerHTML',
  40954. inputmode: 'inputMode',
  40955. integrity: 'integrity',
  40956. is: 'is',
  40957. itemid: 'itemID',
  40958. itemprop: 'itemProp',
  40959. itemref: 'itemRef',
  40960. itemscope: 'itemScope',
  40961. itemtype: 'itemType',
  40962. keyparams: 'keyParams',
  40963. keytype: 'keyType',
  40964. kind: 'kind',
  40965. label: 'label',
  40966. lang: 'lang',
  40967. list: 'list',
  40968. loop: 'loop',
  40969. low: 'low',
  40970. manifest: 'manifest',
  40971. marginwidth: 'marginWidth',
  40972. marginheight: 'marginHeight',
  40973. max: 'max',
  40974. maxlength: 'maxLength',
  40975. media: 'media',
  40976. mediagroup: 'mediaGroup',
  40977. method: 'method',
  40978. min: 'min',
  40979. minlength: 'minLength',
  40980. multiple: 'multiple',
  40981. muted: 'muted',
  40982. name: 'name',
  40983. nomodule: 'noModule',
  40984. nonce: 'nonce',
  40985. novalidate: 'noValidate',
  40986. open: 'open',
  40987. optimum: 'optimum',
  40988. pattern: 'pattern',
  40989. placeholder: 'placeholder',
  40990. playsinline: 'playsInline',
  40991. poster: 'poster',
  40992. preload: 'preload',
  40993. profile: 'profile',
  40994. radiogroup: 'radioGroup',
  40995. readonly: 'readOnly',
  40996. referrerpolicy: 'referrerPolicy',
  40997. rel: 'rel',
  40998. required: 'required',
  40999. reversed: 'reversed',
  41000. role: 'role',
  41001. rows: 'rows',
  41002. rowspan: 'rowSpan',
  41003. sandbox: 'sandbox',
  41004. scope: 'scope',
  41005. scoped: 'scoped',
  41006. scrolling: 'scrolling',
  41007. seamless: 'seamless',
  41008. selected: 'selected',
  41009. shape: 'shape',
  41010. size: 'size',
  41011. sizes: 'sizes',
  41012. span: 'span',
  41013. spellcheck: 'spellCheck',
  41014. src: 'src',
  41015. srcdoc: 'srcDoc',
  41016. srclang: 'srcLang',
  41017. srcset: 'srcSet',
  41018. start: 'start',
  41019. step: 'step',
  41020. style: 'style',
  41021. summary: 'summary',
  41022. tabindex: 'tabIndex',
  41023. target: 'target',
  41024. title: 'title',
  41025. type: 'type',
  41026. usemap: 'useMap',
  41027. value: 'value',
  41028. width: 'width',
  41029. wmode: 'wmode',
  41030. wrap: 'wrap',
  41031. // SVG
  41032. about: 'about',
  41033. accentheight: 'accentHeight',
  41034. 'accent-height': 'accentHeight',
  41035. accumulate: 'accumulate',
  41036. additive: 'additive',
  41037. alignmentbaseline: 'alignmentBaseline',
  41038. 'alignment-baseline': 'alignmentBaseline',
  41039. allowreorder: 'allowReorder',
  41040. alphabetic: 'alphabetic',
  41041. amplitude: 'amplitude',
  41042. arabicform: 'arabicForm',
  41043. 'arabic-form': 'arabicForm',
  41044. ascent: 'ascent',
  41045. attributename: 'attributeName',
  41046. attributetype: 'attributeType',
  41047. autoreverse: 'autoReverse',
  41048. azimuth: 'azimuth',
  41049. basefrequency: 'baseFrequency',
  41050. baselineshift: 'baselineShift',
  41051. 'baseline-shift': 'baselineShift',
  41052. baseprofile: 'baseProfile',
  41053. bbox: 'bbox',
  41054. begin: 'begin',
  41055. bias: 'bias',
  41056. by: 'by',
  41057. calcmode: 'calcMode',
  41058. capheight: 'capHeight',
  41059. 'cap-height': 'capHeight',
  41060. clip: 'clip',
  41061. clippath: 'clipPath',
  41062. 'clip-path': 'clipPath',
  41063. clippathunits: 'clipPathUnits',
  41064. cliprule: 'clipRule',
  41065. 'clip-rule': 'clipRule',
  41066. color: 'color',
  41067. colorinterpolation: 'colorInterpolation',
  41068. 'color-interpolation': 'colorInterpolation',
  41069. colorinterpolationfilters: 'colorInterpolationFilters',
  41070. 'color-interpolation-filters': 'colorInterpolationFilters',
  41071. colorprofile: 'colorProfile',
  41072. 'color-profile': 'colorProfile',
  41073. colorrendering: 'colorRendering',
  41074. 'color-rendering': 'colorRendering',
  41075. contentscripttype: 'contentScriptType',
  41076. contentstyletype: 'contentStyleType',
  41077. cursor: 'cursor',
  41078. cx: 'cx',
  41079. cy: 'cy',
  41080. d: 'd',
  41081. datatype: 'datatype',
  41082. decelerate: 'decelerate',
  41083. descent: 'descent',
  41084. diffuseconstant: 'diffuseConstant',
  41085. direction: 'direction',
  41086. display: 'display',
  41087. divisor: 'divisor',
  41088. dominantbaseline: 'dominantBaseline',
  41089. 'dominant-baseline': 'dominantBaseline',
  41090. dur: 'dur',
  41091. dx: 'dx',
  41092. dy: 'dy',
  41093. edgemode: 'edgeMode',
  41094. elevation: 'elevation',
  41095. enablebackground: 'enableBackground',
  41096. 'enable-background': 'enableBackground',
  41097. end: 'end',
  41098. exponent: 'exponent',
  41099. externalresourcesrequired: 'externalResourcesRequired',
  41100. fill: 'fill',
  41101. fillopacity: 'fillOpacity',
  41102. 'fill-opacity': 'fillOpacity',
  41103. fillrule: 'fillRule',
  41104. 'fill-rule': 'fillRule',
  41105. filter: 'filter',
  41106. filterres: 'filterRes',
  41107. filterunits: 'filterUnits',
  41108. floodopacity: 'floodOpacity',
  41109. 'flood-opacity': 'floodOpacity',
  41110. floodcolor: 'floodColor',
  41111. 'flood-color': 'floodColor',
  41112. focusable: 'focusable',
  41113. fontfamily: 'fontFamily',
  41114. 'font-family': 'fontFamily',
  41115. fontsize: 'fontSize',
  41116. 'font-size': 'fontSize',
  41117. fontsizeadjust: 'fontSizeAdjust',
  41118. 'font-size-adjust': 'fontSizeAdjust',
  41119. fontstretch: 'fontStretch',
  41120. 'font-stretch': 'fontStretch',
  41121. fontstyle: 'fontStyle',
  41122. 'font-style': 'fontStyle',
  41123. fontvariant: 'fontVariant',
  41124. 'font-variant': 'fontVariant',
  41125. fontweight: 'fontWeight',
  41126. 'font-weight': 'fontWeight',
  41127. format: 'format',
  41128. from: 'from',
  41129. fx: 'fx',
  41130. fy: 'fy',
  41131. g1: 'g1',
  41132. g2: 'g2',
  41133. glyphname: 'glyphName',
  41134. 'glyph-name': 'glyphName',
  41135. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  41136. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  41137. glyphorientationvertical: 'glyphOrientationVertical',
  41138. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  41139. glyphref: 'glyphRef',
  41140. gradienttransform: 'gradientTransform',
  41141. gradientunits: 'gradientUnits',
  41142. hanging: 'hanging',
  41143. horizadvx: 'horizAdvX',
  41144. 'horiz-adv-x': 'horizAdvX',
  41145. horizoriginx: 'horizOriginX',
  41146. 'horiz-origin-x': 'horizOriginX',
  41147. ideographic: 'ideographic',
  41148. imagerendering: 'imageRendering',
  41149. 'image-rendering': 'imageRendering',
  41150. in2: 'in2',
  41151. in: 'in',
  41152. inlist: 'inlist',
  41153. intercept: 'intercept',
  41154. k1: 'k1',
  41155. k2: 'k2',
  41156. k3: 'k3',
  41157. k4: 'k4',
  41158. k: 'k',
  41159. kernelmatrix: 'kernelMatrix',
  41160. kernelunitlength: 'kernelUnitLength',
  41161. kerning: 'kerning',
  41162. keypoints: 'keyPoints',
  41163. keysplines: 'keySplines',
  41164. keytimes: 'keyTimes',
  41165. lengthadjust: 'lengthAdjust',
  41166. letterspacing: 'letterSpacing',
  41167. 'letter-spacing': 'letterSpacing',
  41168. lightingcolor: 'lightingColor',
  41169. 'lighting-color': 'lightingColor',
  41170. limitingconeangle: 'limitingConeAngle',
  41171. local: 'local',
  41172. markerend: 'markerEnd',
  41173. 'marker-end': 'markerEnd',
  41174. markerheight: 'markerHeight',
  41175. markermid: 'markerMid',
  41176. 'marker-mid': 'markerMid',
  41177. markerstart: 'markerStart',
  41178. 'marker-start': 'markerStart',
  41179. markerunits: 'markerUnits',
  41180. markerwidth: 'markerWidth',
  41181. mask: 'mask',
  41182. maskcontentunits: 'maskContentUnits',
  41183. maskunits: 'maskUnits',
  41184. mathematical: 'mathematical',
  41185. mode: 'mode',
  41186. numoctaves: 'numOctaves',
  41187. offset: 'offset',
  41188. opacity: 'opacity',
  41189. operator: 'operator',
  41190. order: 'order',
  41191. orient: 'orient',
  41192. orientation: 'orientation',
  41193. origin: 'origin',
  41194. overflow: 'overflow',
  41195. overlineposition: 'overlinePosition',
  41196. 'overline-position': 'overlinePosition',
  41197. overlinethickness: 'overlineThickness',
  41198. 'overline-thickness': 'overlineThickness',
  41199. paintorder: 'paintOrder',
  41200. 'paint-order': 'paintOrder',
  41201. panose1: 'panose1',
  41202. 'panose-1': 'panose1',
  41203. pathlength: 'pathLength',
  41204. patterncontentunits: 'patternContentUnits',
  41205. patterntransform: 'patternTransform',
  41206. patternunits: 'patternUnits',
  41207. pointerevents: 'pointerEvents',
  41208. 'pointer-events': 'pointerEvents',
  41209. points: 'points',
  41210. pointsatx: 'pointsAtX',
  41211. pointsaty: 'pointsAtY',
  41212. pointsatz: 'pointsAtZ',
  41213. prefix: 'prefix',
  41214. preservealpha: 'preserveAlpha',
  41215. preserveaspectratio: 'preserveAspectRatio',
  41216. primitiveunits: 'primitiveUnits',
  41217. property: 'property',
  41218. r: 'r',
  41219. radius: 'radius',
  41220. refx: 'refX',
  41221. refy: 'refY',
  41222. renderingintent: 'renderingIntent',
  41223. 'rendering-intent': 'renderingIntent',
  41224. repeatcount: 'repeatCount',
  41225. repeatdur: 'repeatDur',
  41226. requiredextensions: 'requiredExtensions',
  41227. requiredfeatures: 'requiredFeatures',
  41228. resource: 'resource',
  41229. restart: 'restart',
  41230. result: 'result',
  41231. results: 'results',
  41232. rotate: 'rotate',
  41233. rx: 'rx',
  41234. ry: 'ry',
  41235. scale: 'scale',
  41236. security: 'security',
  41237. seed: 'seed',
  41238. shaperendering: 'shapeRendering',
  41239. 'shape-rendering': 'shapeRendering',
  41240. slope: 'slope',
  41241. spacing: 'spacing',
  41242. specularconstant: 'specularConstant',
  41243. specularexponent: 'specularExponent',
  41244. speed: 'speed',
  41245. spreadmethod: 'spreadMethod',
  41246. startoffset: 'startOffset',
  41247. stddeviation: 'stdDeviation',
  41248. stemh: 'stemh',
  41249. stemv: 'stemv',
  41250. stitchtiles: 'stitchTiles',
  41251. stopcolor: 'stopColor',
  41252. 'stop-color': 'stopColor',
  41253. stopopacity: 'stopOpacity',
  41254. 'stop-opacity': 'stopOpacity',
  41255. strikethroughposition: 'strikethroughPosition',
  41256. 'strikethrough-position': 'strikethroughPosition',
  41257. strikethroughthickness: 'strikethroughThickness',
  41258. 'strikethrough-thickness': 'strikethroughThickness',
  41259. string: 'string',
  41260. stroke: 'stroke',
  41261. strokedasharray: 'strokeDasharray',
  41262. 'stroke-dasharray': 'strokeDasharray',
  41263. strokedashoffset: 'strokeDashoffset',
  41264. 'stroke-dashoffset': 'strokeDashoffset',
  41265. strokelinecap: 'strokeLinecap',
  41266. 'stroke-linecap': 'strokeLinecap',
  41267. strokelinejoin: 'strokeLinejoin',
  41268. 'stroke-linejoin': 'strokeLinejoin',
  41269. strokemiterlimit: 'strokeMiterlimit',
  41270. 'stroke-miterlimit': 'strokeMiterlimit',
  41271. strokewidth: 'strokeWidth',
  41272. 'stroke-width': 'strokeWidth',
  41273. strokeopacity: 'strokeOpacity',
  41274. 'stroke-opacity': 'strokeOpacity',
  41275. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  41276. suppresshydrationwarning: 'suppressHydrationWarning',
  41277. surfacescale: 'surfaceScale',
  41278. systemlanguage: 'systemLanguage',
  41279. tablevalues: 'tableValues',
  41280. targetx: 'targetX',
  41281. targety: 'targetY',
  41282. textanchor: 'textAnchor',
  41283. 'text-anchor': 'textAnchor',
  41284. textdecoration: 'textDecoration',
  41285. 'text-decoration': 'textDecoration',
  41286. textlength: 'textLength',
  41287. textrendering: 'textRendering',
  41288. 'text-rendering': 'textRendering',
  41289. to: 'to',
  41290. transform: 'transform',
  41291. typeof: 'typeof',
  41292. u1: 'u1',
  41293. u2: 'u2',
  41294. underlineposition: 'underlinePosition',
  41295. 'underline-position': 'underlinePosition',
  41296. underlinethickness: 'underlineThickness',
  41297. 'underline-thickness': 'underlineThickness',
  41298. unicode: 'unicode',
  41299. unicodebidi: 'unicodeBidi',
  41300. 'unicode-bidi': 'unicodeBidi',
  41301. unicoderange: 'unicodeRange',
  41302. 'unicode-range': 'unicodeRange',
  41303. unitsperem: 'unitsPerEm',
  41304. 'units-per-em': 'unitsPerEm',
  41305. unselectable: 'unselectable',
  41306. valphabetic: 'vAlphabetic',
  41307. 'v-alphabetic': 'vAlphabetic',
  41308. values: 'values',
  41309. vectoreffect: 'vectorEffect',
  41310. 'vector-effect': 'vectorEffect',
  41311. version: 'version',
  41312. vertadvy: 'vertAdvY',
  41313. 'vert-adv-y': 'vertAdvY',
  41314. vertoriginx: 'vertOriginX',
  41315. 'vert-origin-x': 'vertOriginX',
  41316. vertoriginy: 'vertOriginY',
  41317. 'vert-origin-y': 'vertOriginY',
  41318. vhanging: 'vHanging',
  41319. 'v-hanging': 'vHanging',
  41320. videographic: 'vIdeographic',
  41321. 'v-ideographic': 'vIdeographic',
  41322. viewbox: 'viewBox',
  41323. viewtarget: 'viewTarget',
  41324. visibility: 'visibility',
  41325. vmathematical: 'vMathematical',
  41326. 'v-mathematical': 'vMathematical',
  41327. vocab: 'vocab',
  41328. widths: 'widths',
  41329. wordspacing: 'wordSpacing',
  41330. 'word-spacing': 'wordSpacing',
  41331. writingmode: 'writingMode',
  41332. 'writing-mode': 'writingMode',
  41333. x1: 'x1',
  41334. x2: 'x2',
  41335. x: 'x',
  41336. xchannelselector: 'xChannelSelector',
  41337. xheight: 'xHeight',
  41338. 'x-height': 'xHeight',
  41339. xlinkactuate: 'xlinkActuate',
  41340. 'xlink:actuate': 'xlinkActuate',
  41341. xlinkarcrole: 'xlinkArcrole',
  41342. 'xlink:arcrole': 'xlinkArcrole',
  41343. xlinkhref: 'xlinkHref',
  41344. 'xlink:href': 'xlinkHref',
  41345. xlinkrole: 'xlinkRole',
  41346. 'xlink:role': 'xlinkRole',
  41347. xlinkshow: 'xlinkShow',
  41348. 'xlink:show': 'xlinkShow',
  41349. xlinktitle: 'xlinkTitle',
  41350. 'xlink:title': 'xlinkTitle',
  41351. xlinktype: 'xlinkType',
  41352. 'xlink:type': 'xlinkType',
  41353. xmlbase: 'xmlBase',
  41354. 'xml:base': 'xmlBase',
  41355. xmllang: 'xmlLang',
  41356. 'xml:lang': 'xmlLang',
  41357. xmlns: 'xmlns',
  41358. 'xml:space': 'xmlSpace',
  41359. xmlnsxlink: 'xmlnsXlink',
  41360. 'xmlns:xlink': 'xmlnsXlink',
  41361. xmlspace: 'xmlSpace',
  41362. y1: 'y1',
  41363. y2: 'y2',
  41364. y: 'y',
  41365. ychannelselector: 'yChannelSelector',
  41366. z: 'z',
  41367. zoomandpan: 'zoomAndPan'
  41368. };
  41369. var ariaProperties = {
  41370. 'aria-current': 0, // state
  41371. 'aria-details': 0,
  41372. 'aria-disabled': 0, // state
  41373. 'aria-hidden': 0, // state
  41374. 'aria-invalid': 0, // state
  41375. 'aria-keyshortcuts': 0,
  41376. 'aria-label': 0,
  41377. 'aria-roledescription': 0,
  41378. // Widget Attributes
  41379. 'aria-autocomplete': 0,
  41380. 'aria-checked': 0,
  41381. 'aria-expanded': 0,
  41382. 'aria-haspopup': 0,
  41383. 'aria-level': 0,
  41384. 'aria-modal': 0,
  41385. 'aria-multiline': 0,
  41386. 'aria-multiselectable': 0,
  41387. 'aria-orientation': 0,
  41388. 'aria-placeholder': 0,
  41389. 'aria-pressed': 0,
  41390. 'aria-readonly': 0,
  41391. 'aria-required': 0,
  41392. 'aria-selected': 0,
  41393. 'aria-sort': 0,
  41394. 'aria-valuemax': 0,
  41395. 'aria-valuemin': 0,
  41396. 'aria-valuenow': 0,
  41397. 'aria-valuetext': 0,
  41398. // Live Region Attributes
  41399. 'aria-atomic': 0,
  41400. 'aria-busy': 0,
  41401. 'aria-live': 0,
  41402. 'aria-relevant': 0,
  41403. // Drag-and-Drop Attributes
  41404. 'aria-dropeffect': 0,
  41405. 'aria-grabbed': 0,
  41406. // Relationship Attributes
  41407. 'aria-activedescendant': 0,
  41408. 'aria-colcount': 0,
  41409. 'aria-colindex': 0,
  41410. 'aria-colspan': 0,
  41411. 'aria-controls': 0,
  41412. 'aria-describedby': 0,
  41413. 'aria-errormessage': 0,
  41414. 'aria-flowto': 0,
  41415. 'aria-labelledby': 0,
  41416. 'aria-owns': 0,
  41417. 'aria-posinset': 0,
  41418. 'aria-rowcount': 0,
  41419. 'aria-rowindex': 0,
  41420. 'aria-rowspan': 0,
  41421. 'aria-setsize': 0
  41422. };
  41423. var warnedProperties = {};
  41424. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  41425. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  41426. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  41427. function validateProperty(tagName, name) {
  41428. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  41429. return true;
  41430. }
  41431. if (rARIACamel.test(name)) {
  41432. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  41433. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  41434. // If this is an aria-* attribute, but is not listed in the known DOM
  41435. // DOM properties, then it is an invalid aria-* attribute.
  41436. if (correctName == null) {
  41437. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  41438. warnedProperties[name] = true;
  41439. return true;
  41440. }
  41441. // aria-* attributes should be lowercase; suggest the lowercase version.
  41442. if (name !== correctName) {
  41443. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  41444. warnedProperties[name] = true;
  41445. return true;
  41446. }
  41447. }
  41448. if (rARIA.test(name)) {
  41449. var lowerCasedName = name.toLowerCase();
  41450. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  41451. // If this is an aria-* attribute, but is not listed in the known DOM
  41452. // DOM properties, then it is an invalid aria-* attribute.
  41453. if (standardName == null) {
  41454. warnedProperties[name] = true;
  41455. return false;
  41456. }
  41457. // aria-* attributes should be lowercase; suggest the lowercase version.
  41458. if (name !== standardName) {
  41459. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  41460. warnedProperties[name] = true;
  41461. return true;
  41462. }
  41463. }
  41464. return true;
  41465. }
  41466. function warnInvalidARIAProps(type, props) {
  41467. var invalidProps = [];
  41468. for (var key in props) {
  41469. var isValid = validateProperty(type, key);
  41470. if (!isValid) {
  41471. invalidProps.push(key);
  41472. }
  41473. }
  41474. var unknownPropString = invalidProps.map(function (prop) {
  41475. return '`' + prop + '`';
  41476. }).join(', ');
  41477. if (invalidProps.length === 1) {
  41478. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  41479. } else if (invalidProps.length > 1) {
  41480. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  41481. }
  41482. }
  41483. function validateProperties(type, props) {
  41484. if (isCustomComponent(type, props)) {
  41485. return;
  41486. }
  41487. warnInvalidARIAProps(type, props);
  41488. }
  41489. var didWarnValueNull = false;
  41490. function validateProperties$1(type, props) {
  41491. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  41492. return;
  41493. }
  41494. if (props != null && props.value === null && !didWarnValueNull) {
  41495. didWarnValueNull = true;
  41496. if (type === 'select' && props.multiple) {
  41497. 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);
  41498. } else {
  41499. 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);
  41500. }
  41501. }
  41502. }
  41503. var validateProperty$1 = function () {};
  41504. {
  41505. var warnedProperties$1 = {};
  41506. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  41507. var EVENT_NAME_REGEX = /^on./;
  41508. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  41509. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  41510. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  41511. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  41512. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  41513. return true;
  41514. }
  41515. var lowerCasedName = name.toLowerCase();
  41516. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  41517. 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.');
  41518. warnedProperties$1[name] = true;
  41519. return true;
  41520. }
  41521. // We can't rely on the event system being injected on the server.
  41522. if (canUseEventSystem) {
  41523. if (registrationNameModules.hasOwnProperty(name)) {
  41524. return true;
  41525. }
  41526. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  41527. if (registrationName != null) {
  41528. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  41529. warnedProperties$1[name] = true;
  41530. return true;
  41531. }
  41532. if (EVENT_NAME_REGEX.test(name)) {
  41533. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  41534. warnedProperties$1[name] = true;
  41535. return true;
  41536. }
  41537. } else if (EVENT_NAME_REGEX.test(name)) {
  41538. // If no event plugins have been injected, we are in a server environment.
  41539. // So we can't tell if the event name is correct for sure, but we can filter
  41540. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  41541. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  41542. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  41543. }
  41544. warnedProperties$1[name] = true;
  41545. return true;
  41546. }
  41547. // Let the ARIA attribute hook validate ARIA attributes
  41548. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  41549. return true;
  41550. }
  41551. if (lowerCasedName === 'innerhtml') {
  41552. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  41553. warnedProperties$1[name] = true;
  41554. return true;
  41555. }
  41556. if (lowerCasedName === 'aria') {
  41557. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  41558. warnedProperties$1[name] = true;
  41559. return true;
  41560. }
  41561. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  41562. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  41563. warnedProperties$1[name] = true;
  41564. return true;
  41565. }
  41566. if (typeof value === 'number' && isNaN(value)) {
  41567. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  41568. warnedProperties$1[name] = true;
  41569. return true;
  41570. }
  41571. var propertyInfo = getPropertyInfo(name);
  41572. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  41573. // Known attributes should match the casing specified in the property config.
  41574. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  41575. var standardName = possibleStandardNames[lowerCasedName];
  41576. if (standardName !== name) {
  41577. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  41578. warnedProperties$1[name] = true;
  41579. return true;
  41580. }
  41581. } else if (!isReserved && name !== lowerCasedName) {
  41582. // Unknown attributes should have lowercase casing since that's how they
  41583. // will be cased anyway with server rendering.
  41584. 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);
  41585. warnedProperties$1[name] = true;
  41586. return true;
  41587. }
  41588. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  41589. if (value) {
  41590. 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);
  41591. } else {
  41592. 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);
  41593. }
  41594. warnedProperties$1[name] = true;
  41595. return true;
  41596. }
  41597. // Now that we've validated casing, do not validate
  41598. // data types for reserved props
  41599. if (isReserved) {
  41600. return true;
  41601. }
  41602. // Warn when a known attribute is a bad type
  41603. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  41604. warnedProperties$1[name] = true;
  41605. return false;
  41606. }
  41607. // Warn when passing the strings 'false' or 'true' into a boolean prop
  41608. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  41609. 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);
  41610. warnedProperties$1[name] = true;
  41611. return true;
  41612. }
  41613. return true;
  41614. };
  41615. }
  41616. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  41617. var unknownProps = [];
  41618. for (var key in props) {
  41619. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  41620. if (!isValid) {
  41621. unknownProps.push(key);
  41622. }
  41623. }
  41624. var unknownPropString = unknownProps.map(function (prop) {
  41625. return '`' + prop + '`';
  41626. }).join(', ');
  41627. if (unknownProps.length === 1) {
  41628. 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);
  41629. } else if (unknownProps.length > 1) {
  41630. 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);
  41631. }
  41632. };
  41633. function validateProperties$2(type, props, canUseEventSystem) {
  41634. if (isCustomComponent(type, props)) {
  41635. return;
  41636. }
  41637. warnUnknownProperties(type, props, canUseEventSystem);
  41638. }
  41639. // TODO: direct imports like some-package/src/* are bad. Fix me.
  41640. var didWarnInvalidHydration = false;
  41641. var didWarnShadyDOM = false;
  41642. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  41643. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  41644. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  41645. var AUTOFOCUS = 'autoFocus';
  41646. var CHILDREN = 'children';
  41647. var STYLE$1 = 'style';
  41648. var HTML = '__html';
  41649. var LISTENERS = 'listeners';
  41650. var HTML_NAMESPACE = Namespaces.html;
  41651. var warnedUnknownTags = void 0;
  41652. var suppressHydrationWarning = void 0;
  41653. var validatePropertiesInDevelopment = void 0;
  41654. var warnForTextDifference = void 0;
  41655. var warnForPropDifference = void 0;
  41656. var warnForExtraAttributes = void 0;
  41657. var warnForInvalidEventListener = void 0;
  41658. var canDiffStyleForHydrationWarning = void 0;
  41659. var normalizeMarkupForTextOrAttribute = void 0;
  41660. var normalizeHTML = void 0;
  41661. {
  41662. warnedUnknownTags = {
  41663. // Chrome is the only major browser not shipping <time>. But as of July
  41664. // 2017 it intends to ship it due to widespread usage. We intentionally
  41665. // *don't* warn for <time> even if it's unrecognized by Chrome because
  41666. // it soon will be, and many apps have been using it anyway.
  41667. time: true,
  41668. // There are working polyfills for <dialog>. Let people use it.
  41669. dialog: true,
  41670. // Electron ships a custom <webview> tag to display external web content in
  41671. // an isolated frame and process.
  41672. // This tag is not present in non Electron environments such as JSDom which
  41673. // is often used for testing purposes.
  41674. // @see https://electronjs.org/docs/api/webview-tag
  41675. webview: true
  41676. };
  41677. validatePropertiesInDevelopment = function (type, props) {
  41678. validateProperties(type, props);
  41679. validateProperties$1(type, props);
  41680. validateProperties$2(type, props, /* canUseEventSystem */true);
  41681. };
  41682. // IE 11 parses & normalizes the style attribute as opposed to other
  41683. // browsers. It adds spaces and sorts the properties in some
  41684. // non-alphabetical order. Handling that would require sorting CSS
  41685. // properties in the client & server versions or applying
  41686. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  41687. // normalized. Since it only affects IE, we're skipping style warnings
  41688. // in that browser completely in favor of doing all that work.
  41689. // See https://github.com/facebook/react/issues/11807
  41690. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  41691. // HTML parsing normalizes CR and CRLF to LF.
  41692. // It also can turn \u0000 into \uFFFD inside attributes.
  41693. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  41694. // If we have a mismatch, it might be caused by that.
  41695. // We will still patch up in this case but not fire the warning.
  41696. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  41697. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  41698. normalizeMarkupForTextOrAttribute = function (markup) {
  41699. var markupString = typeof markup === 'string' ? markup : '' + markup;
  41700. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  41701. };
  41702. warnForTextDifference = function (serverText, clientText) {
  41703. if (didWarnInvalidHydration) {
  41704. return;
  41705. }
  41706. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  41707. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  41708. if (normalizedServerText === normalizedClientText) {
  41709. return;
  41710. }
  41711. didWarnInvalidHydration = true;
  41712. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  41713. };
  41714. warnForPropDifference = function (propName, serverValue, clientValue) {
  41715. if (didWarnInvalidHydration) {
  41716. return;
  41717. }
  41718. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  41719. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  41720. if (normalizedServerValue === normalizedClientValue) {
  41721. return;
  41722. }
  41723. didWarnInvalidHydration = true;
  41724. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  41725. };
  41726. warnForExtraAttributes = function (attributeNames) {
  41727. if (didWarnInvalidHydration) {
  41728. return;
  41729. }
  41730. didWarnInvalidHydration = true;
  41731. var names = [];
  41732. attributeNames.forEach(function (name) {
  41733. names.push(name);
  41734. });
  41735. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  41736. };
  41737. warnForInvalidEventListener = function (registrationName, listener) {
  41738. if (listener === false) {
  41739. 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);
  41740. } else {
  41741. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  41742. }
  41743. };
  41744. // Parse the HTML and read it back to normalize the HTML string so that it
  41745. // can be used for comparison.
  41746. normalizeHTML = function (parent, html) {
  41747. // We could have created a separate document here to avoid
  41748. // re-initializing custom elements if they exist. But this breaks
  41749. // how <noscript> is being handled. So we use the same document.
  41750. // See the discussion in https://github.com/facebook/react/pull/11157.
  41751. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  41752. testElement.innerHTML = html;
  41753. return testElement.innerHTML;
  41754. };
  41755. }
  41756. function ensureListeningTo(rootContainerElement, registrationName) {
  41757. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  41758. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  41759. listenTo(registrationName, doc);
  41760. }
  41761. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  41762. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  41763. }
  41764. function noop() {}
  41765. function trapClickOnNonInteractiveElement(node) {
  41766. // Mobile Safari does not fire properly bubble click events on
  41767. // non-interactive elements, which means delegated click listeners do not
  41768. // fire. The workaround for this bug involves attaching an empty click
  41769. // listener on the target node.
  41770. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  41771. // Just set it using the onclick property so that we don't have to manage any
  41772. // bookkeeping for it. Not sure if we need to clear it when the listener is
  41773. // removed.
  41774. // TODO: Only do this for the relevant Safaris maybe?
  41775. node.onclick = noop;
  41776. }
  41777. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  41778. for (var propKey in nextProps) {
  41779. if (!nextProps.hasOwnProperty(propKey)) {
  41780. continue;
  41781. }
  41782. var nextProp = nextProps[propKey];
  41783. if (propKey === STYLE$1) {
  41784. {
  41785. if (nextProp) {
  41786. // Freeze the next style object so that we can assume it won't be
  41787. // mutated. We have already warned for this in the past.
  41788. Object.freeze(nextProp);
  41789. }
  41790. }
  41791. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  41792. setValueForStyles(domElement, nextProp);
  41793. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  41794. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  41795. if (nextHtml != null) {
  41796. setInnerHTML(domElement, nextHtml);
  41797. }
  41798. } else if (propKey === CHILDREN) {
  41799. if (typeof nextProp === 'string') {
  41800. // Avoid setting initial textContent when the text is empty. In IE11 setting
  41801. // textContent on a <textarea> will cause the placeholder to not
  41802. // show within the <textarea> until it has been focused and blurred again.
  41803. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  41804. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  41805. if (canSetTextContent) {
  41806. setTextContent(domElement, nextProp);
  41807. }
  41808. } else if (typeof nextProp === 'number') {
  41809. setTextContent(domElement, '' + nextProp);
  41810. }
  41811. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  41812. // Noop
  41813. } else if (propKey === AUTOFOCUS) {
  41814. // We polyfill it separately on the client during commit.
  41815. // We could have excluded it in the property list instead of
  41816. // adding a special case here, but then it wouldn't be emitted
  41817. // on server rendering (but we *do* want to emit it in SSR).
  41818. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  41819. if (nextProp != null) {
  41820. if ( true && typeof nextProp !== 'function') {
  41821. warnForInvalidEventListener(propKey, nextProp);
  41822. }
  41823. ensureListeningTo(rootContainerElement, propKey);
  41824. }
  41825. } else if (nextProp != null) {
  41826. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  41827. }
  41828. }
  41829. }
  41830. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  41831. // TODO: Handle wasCustomComponentTag
  41832. for (var i = 0; i < updatePayload.length; i += 2) {
  41833. var propKey = updatePayload[i];
  41834. var propValue = updatePayload[i + 1];
  41835. if (propKey === STYLE$1) {
  41836. setValueForStyles(domElement, propValue);
  41837. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  41838. setInnerHTML(domElement, propValue);
  41839. } else if (propKey === CHILDREN) {
  41840. setTextContent(domElement, propValue);
  41841. } else {
  41842. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  41843. }
  41844. }
  41845. }
  41846. function createElement(type, props, rootContainerElement, parentNamespace) {
  41847. var isCustomComponentTag = void 0;
  41848. // We create tags in the namespace of their parent container, except HTML
  41849. // tags get no namespace.
  41850. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  41851. var domElement = void 0;
  41852. var namespaceURI = parentNamespace;
  41853. if (namespaceURI === HTML_NAMESPACE) {
  41854. namespaceURI = getIntrinsicNamespace(type);
  41855. }
  41856. if (namespaceURI === HTML_NAMESPACE) {
  41857. {
  41858. isCustomComponentTag = isCustomComponent(type, props);
  41859. // Should this check be gated by parent namespace? Not sure we want to
  41860. // allow <SVG> or <mATH>.
  41861. !(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;
  41862. }
  41863. if (type === 'script') {
  41864. // Create the script via .innerHTML so its "parser-inserted" flag is
  41865. // set to true and it does not execute
  41866. var div = ownerDocument.createElement('div');
  41867. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  41868. // This is guaranteed to yield a script element.
  41869. var firstChild = div.firstChild;
  41870. domElement = div.removeChild(firstChild);
  41871. } else if (typeof props.is === 'string') {
  41872. // $FlowIssue `createElement` should be updated for Web Components
  41873. domElement = ownerDocument.createElement(type, { is: props.is });
  41874. } else {
  41875. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  41876. // See discussion in https://github.com/facebook/react/pull/6896
  41877. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  41878. domElement = ownerDocument.createElement(type);
  41879. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  41880. // attributes on `select`s needs to be added before `option`s are inserted.
  41881. // This prevents:
  41882. // - a bug where the `select` does not scroll to the correct option because singular
  41883. // `select` elements automatically pick the first item #13222
  41884. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  41885. // See https://github.com/facebook/react/issues/13222
  41886. // and https://github.com/facebook/react/issues/14239
  41887. if (type === 'select') {
  41888. var node = domElement;
  41889. if (props.multiple) {
  41890. node.multiple = true;
  41891. } else if (props.size) {
  41892. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  41893. // it is possible that no option is selected.
  41894. //
  41895. // This is only necessary when a select in "single selection mode".
  41896. node.size = props.size;
  41897. }
  41898. }
  41899. }
  41900. } else {
  41901. domElement = ownerDocument.createElementNS(namespaceURI, type);
  41902. }
  41903. {
  41904. if (namespaceURI === HTML_NAMESPACE) {
  41905. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  41906. warnedUnknownTags[type] = true;
  41907. 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);
  41908. }
  41909. }
  41910. }
  41911. return domElement;
  41912. }
  41913. function createTextNode(text, rootContainerElement) {
  41914. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  41915. }
  41916. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  41917. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  41918. {
  41919. validatePropertiesInDevelopment(tag, rawProps);
  41920. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  41921. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  41922. didWarnShadyDOM = true;
  41923. }
  41924. }
  41925. // TODO: Make sure that we check isMounted before firing any of these events.
  41926. var props = void 0;
  41927. switch (tag) {
  41928. case 'iframe':
  41929. case 'object':
  41930. case 'embed':
  41931. trapBubbledEvent(TOP_LOAD, domElement);
  41932. props = rawProps;
  41933. break;
  41934. case 'video':
  41935. case 'audio':
  41936. // Create listener for each media event
  41937. for (var i = 0; i < mediaEventTypes.length; i++) {
  41938. trapBubbledEvent(mediaEventTypes[i], domElement);
  41939. }
  41940. props = rawProps;
  41941. break;
  41942. case 'source':
  41943. trapBubbledEvent(TOP_ERROR, domElement);
  41944. props = rawProps;
  41945. break;
  41946. case 'img':
  41947. case 'image':
  41948. case 'link':
  41949. trapBubbledEvent(TOP_ERROR, domElement);
  41950. trapBubbledEvent(TOP_LOAD, domElement);
  41951. props = rawProps;
  41952. break;
  41953. case 'form':
  41954. trapBubbledEvent(TOP_RESET, domElement);
  41955. trapBubbledEvent(TOP_SUBMIT, domElement);
  41956. props = rawProps;
  41957. break;
  41958. case 'details':
  41959. trapBubbledEvent(TOP_TOGGLE, domElement);
  41960. props = rawProps;
  41961. break;
  41962. case 'input':
  41963. initWrapperState(domElement, rawProps);
  41964. props = getHostProps(domElement, rawProps);
  41965. trapBubbledEvent(TOP_INVALID, domElement);
  41966. // For controlled components we always need to ensure we're listening
  41967. // to onChange. Even if there is no listener.
  41968. ensureListeningTo(rootContainerElement, 'onChange');
  41969. break;
  41970. case 'option':
  41971. validateProps(domElement, rawProps);
  41972. props = getHostProps$1(domElement, rawProps);
  41973. break;
  41974. case 'select':
  41975. initWrapperState$1(domElement, rawProps);
  41976. props = getHostProps$2(domElement, rawProps);
  41977. trapBubbledEvent(TOP_INVALID, domElement);
  41978. // For controlled components we always need to ensure we're listening
  41979. // to onChange. Even if there is no listener.
  41980. ensureListeningTo(rootContainerElement, 'onChange');
  41981. break;
  41982. case 'textarea':
  41983. initWrapperState$2(domElement, rawProps);
  41984. props = getHostProps$3(domElement, rawProps);
  41985. trapBubbledEvent(TOP_INVALID, domElement);
  41986. // For controlled components we always need to ensure we're listening
  41987. // to onChange. Even if there is no listener.
  41988. ensureListeningTo(rootContainerElement, 'onChange');
  41989. break;
  41990. default:
  41991. props = rawProps;
  41992. }
  41993. assertValidProps(tag, props);
  41994. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  41995. switch (tag) {
  41996. case 'input':
  41997. // TODO: Make sure we check if this is still unmounted or do any clean
  41998. // up necessary since we never stop tracking anymore.
  41999. track(domElement);
  42000. postMountWrapper(domElement, rawProps, false);
  42001. break;
  42002. case 'textarea':
  42003. // TODO: Make sure we check if this is still unmounted or do any clean
  42004. // up necessary since we never stop tracking anymore.
  42005. track(domElement);
  42006. postMountWrapper$3(domElement, rawProps);
  42007. break;
  42008. case 'option':
  42009. postMountWrapper$1(domElement, rawProps);
  42010. break;
  42011. case 'select':
  42012. postMountWrapper$2(domElement, rawProps);
  42013. break;
  42014. default:
  42015. if (typeof props.onClick === 'function') {
  42016. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  42017. trapClickOnNonInteractiveElement(domElement);
  42018. }
  42019. break;
  42020. }
  42021. }
  42022. // Calculate the diff between the two objects.
  42023. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  42024. {
  42025. validatePropertiesInDevelopment(tag, nextRawProps);
  42026. }
  42027. var updatePayload = null;
  42028. var lastProps = void 0;
  42029. var nextProps = void 0;
  42030. switch (tag) {
  42031. case 'input':
  42032. lastProps = getHostProps(domElement, lastRawProps);
  42033. nextProps = getHostProps(domElement, nextRawProps);
  42034. updatePayload = [];
  42035. break;
  42036. case 'option':
  42037. lastProps = getHostProps$1(domElement, lastRawProps);
  42038. nextProps = getHostProps$1(domElement, nextRawProps);
  42039. updatePayload = [];
  42040. break;
  42041. case 'select':
  42042. lastProps = getHostProps$2(domElement, lastRawProps);
  42043. nextProps = getHostProps$2(domElement, nextRawProps);
  42044. updatePayload = [];
  42045. break;
  42046. case 'textarea':
  42047. lastProps = getHostProps$3(domElement, lastRawProps);
  42048. nextProps = getHostProps$3(domElement, nextRawProps);
  42049. updatePayload = [];
  42050. break;
  42051. default:
  42052. lastProps = lastRawProps;
  42053. nextProps = nextRawProps;
  42054. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  42055. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  42056. trapClickOnNonInteractiveElement(domElement);
  42057. }
  42058. break;
  42059. }
  42060. assertValidProps(tag, nextProps);
  42061. var propKey = void 0;
  42062. var styleName = void 0;
  42063. var styleUpdates = null;
  42064. for (propKey in lastProps) {
  42065. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  42066. continue;
  42067. }
  42068. if (propKey === STYLE$1) {
  42069. var lastStyle = lastProps[propKey];
  42070. for (styleName in lastStyle) {
  42071. if (lastStyle.hasOwnProperty(styleName)) {
  42072. if (!styleUpdates) {
  42073. styleUpdates = {};
  42074. }
  42075. styleUpdates[styleName] = '';
  42076. }
  42077. }
  42078. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  42079. // Noop. This is handled by the clear text mechanism.
  42080. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  42081. // Noop
  42082. } else if (propKey === AUTOFOCUS) {
  42083. // Noop. It doesn't work on updates anyway.
  42084. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  42085. // This is a special case. If any listener updates we need to ensure
  42086. // that the "current" fiber pointer gets updated so we need a commit
  42087. // to update this element.
  42088. if (!updatePayload) {
  42089. updatePayload = [];
  42090. }
  42091. } else {
  42092. // For all other deleted properties we add it to the queue. We use
  42093. // the whitelist in the commit phase instead.
  42094. (updatePayload = updatePayload || []).push(propKey, null);
  42095. }
  42096. }
  42097. for (propKey in nextProps) {
  42098. var nextProp = nextProps[propKey];
  42099. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  42100. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  42101. continue;
  42102. }
  42103. if (propKey === STYLE$1) {
  42104. {
  42105. if (nextProp) {
  42106. // Freeze the next style object so that we can assume it won't be
  42107. // mutated. We have already warned for this in the past.
  42108. Object.freeze(nextProp);
  42109. }
  42110. }
  42111. if (lastProp) {
  42112. // Unset styles on `lastProp` but not on `nextProp`.
  42113. for (styleName in lastProp) {
  42114. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  42115. if (!styleUpdates) {
  42116. styleUpdates = {};
  42117. }
  42118. styleUpdates[styleName] = '';
  42119. }
  42120. }
  42121. // Update styles that changed since `lastProp`.
  42122. for (styleName in nextProp) {
  42123. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  42124. if (!styleUpdates) {
  42125. styleUpdates = {};
  42126. }
  42127. styleUpdates[styleName] = nextProp[styleName];
  42128. }
  42129. }
  42130. } else {
  42131. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  42132. if (!styleUpdates) {
  42133. if (!updatePayload) {
  42134. updatePayload = [];
  42135. }
  42136. updatePayload.push(propKey, styleUpdates);
  42137. }
  42138. styleUpdates = nextProp;
  42139. }
  42140. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  42141. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  42142. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  42143. if (nextHtml != null) {
  42144. if (lastHtml !== nextHtml) {
  42145. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  42146. }
  42147. } else {
  42148. // TODO: It might be too late to clear this if we have children
  42149. // inserted already.
  42150. }
  42151. } else if (propKey === CHILDREN) {
  42152. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  42153. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  42154. }
  42155. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  42156. // Noop
  42157. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  42158. if (nextProp != null) {
  42159. // We eagerly listen to this even though we haven't committed yet.
  42160. if ( true && typeof nextProp !== 'function') {
  42161. warnForInvalidEventListener(propKey, nextProp);
  42162. }
  42163. ensureListeningTo(rootContainerElement, propKey);
  42164. }
  42165. if (!updatePayload && lastProp !== nextProp) {
  42166. // This is a special case. If any listener updates we need to ensure
  42167. // that the "current" props pointer gets updated so we need a commit
  42168. // to update this element.
  42169. updatePayload = [];
  42170. }
  42171. } else {
  42172. // For any other property we always add it to the queue and then we
  42173. // filter it out using the whitelist during the commit.
  42174. (updatePayload = updatePayload || []).push(propKey, nextProp);
  42175. }
  42176. }
  42177. if (styleUpdates) {
  42178. {
  42179. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]);
  42180. }
  42181. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  42182. }
  42183. return updatePayload;
  42184. }
  42185. // Apply the diff.
  42186. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  42187. // Update checked *before* name.
  42188. // In the middle of an update, it is possible to have multiple checked.
  42189. // When a checked radio tries to change name, browser makes another radio's checked false.
  42190. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  42191. updateChecked(domElement, nextRawProps);
  42192. }
  42193. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  42194. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  42195. // Apply the diff.
  42196. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  42197. // TODO: Ensure that an update gets scheduled if any of the special props
  42198. // changed.
  42199. switch (tag) {
  42200. case 'input':
  42201. // Update the wrapper around inputs *after* updating props. This has to
  42202. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  42203. // raise warnings and prevent the new value from being assigned.
  42204. updateWrapper(domElement, nextRawProps);
  42205. break;
  42206. case 'textarea':
  42207. updateWrapper$1(domElement, nextRawProps);
  42208. break;
  42209. case 'select':
  42210. // <select> value update needs to occur after <option> children
  42211. // reconciliation
  42212. postUpdateWrapper(domElement, nextRawProps);
  42213. break;
  42214. }
  42215. }
  42216. function getPossibleStandardName(propName) {
  42217. {
  42218. var lowerCasedName = propName.toLowerCase();
  42219. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  42220. return null;
  42221. }
  42222. return possibleStandardNames[lowerCasedName] || null;
  42223. }
  42224. return null;
  42225. }
  42226. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  42227. var isCustomComponentTag = void 0;
  42228. var extraAttributeNames = void 0;
  42229. {
  42230. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  42231. isCustomComponentTag = isCustomComponent(tag, rawProps);
  42232. validatePropertiesInDevelopment(tag, rawProps);
  42233. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  42234. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  42235. didWarnShadyDOM = true;
  42236. }
  42237. }
  42238. // TODO: Make sure that we check isMounted before firing any of these events.
  42239. switch (tag) {
  42240. case 'iframe':
  42241. case 'object':
  42242. case 'embed':
  42243. trapBubbledEvent(TOP_LOAD, domElement);
  42244. break;
  42245. case 'video':
  42246. case 'audio':
  42247. // Create listener for each media event
  42248. for (var i = 0; i < mediaEventTypes.length; i++) {
  42249. trapBubbledEvent(mediaEventTypes[i], domElement);
  42250. }
  42251. break;
  42252. case 'source':
  42253. trapBubbledEvent(TOP_ERROR, domElement);
  42254. break;
  42255. case 'img':
  42256. case 'image':
  42257. case 'link':
  42258. trapBubbledEvent(TOP_ERROR, domElement);
  42259. trapBubbledEvent(TOP_LOAD, domElement);
  42260. break;
  42261. case 'form':
  42262. trapBubbledEvent(TOP_RESET, domElement);
  42263. trapBubbledEvent(TOP_SUBMIT, domElement);
  42264. break;
  42265. case 'details':
  42266. trapBubbledEvent(TOP_TOGGLE, domElement);
  42267. break;
  42268. case 'input':
  42269. initWrapperState(domElement, rawProps);
  42270. trapBubbledEvent(TOP_INVALID, domElement);
  42271. // For controlled components we always need to ensure we're listening
  42272. // to onChange. Even if there is no listener.
  42273. ensureListeningTo(rootContainerElement, 'onChange');
  42274. break;
  42275. case 'option':
  42276. validateProps(domElement, rawProps);
  42277. break;
  42278. case 'select':
  42279. initWrapperState$1(domElement, rawProps);
  42280. trapBubbledEvent(TOP_INVALID, domElement);
  42281. // For controlled components we always need to ensure we're listening
  42282. // to onChange. Even if there is no listener.
  42283. ensureListeningTo(rootContainerElement, 'onChange');
  42284. break;
  42285. case 'textarea':
  42286. initWrapperState$2(domElement, rawProps);
  42287. trapBubbledEvent(TOP_INVALID, domElement);
  42288. // For controlled components we always need to ensure we're listening
  42289. // to onChange. Even if there is no listener.
  42290. ensureListeningTo(rootContainerElement, 'onChange');
  42291. break;
  42292. }
  42293. assertValidProps(tag, rawProps);
  42294. {
  42295. extraAttributeNames = new Set();
  42296. var attributes = domElement.attributes;
  42297. for (var _i = 0; _i < attributes.length; _i++) {
  42298. var name = attributes[_i].name.toLowerCase();
  42299. switch (name) {
  42300. // Built-in SSR attribute is whitelisted
  42301. case 'data-reactroot':
  42302. break;
  42303. // Controlled attributes are not validated
  42304. // TODO: Only ignore them on controlled tags.
  42305. case 'value':
  42306. break;
  42307. case 'checked':
  42308. break;
  42309. case 'selected':
  42310. break;
  42311. default:
  42312. // Intentionally use the original name.
  42313. // See discussion in https://github.com/facebook/react/pull/10676.
  42314. extraAttributeNames.add(attributes[_i].name);
  42315. }
  42316. }
  42317. }
  42318. var updatePayload = null;
  42319. for (var propKey in rawProps) {
  42320. if (!rawProps.hasOwnProperty(propKey)) {
  42321. continue;
  42322. }
  42323. var nextProp = rawProps[propKey];
  42324. if (propKey === CHILDREN) {
  42325. // For text content children we compare against textContent. This
  42326. // might match additional HTML that is hidden when we read it using
  42327. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  42328. // satisfies our requirement. Our requirement is not to produce perfect
  42329. // HTML and attributes. Ideally we should preserve structure but it's
  42330. // ok not to if the visible content is still enough to indicate what
  42331. // even listeners these nodes might be wired up to.
  42332. // TODO: Warn if there is more than a single textNode as a child.
  42333. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  42334. if (typeof nextProp === 'string') {
  42335. if (domElement.textContent !== nextProp) {
  42336. if ( true && !suppressHydrationWarning) {
  42337. warnForTextDifference(domElement.textContent, nextProp);
  42338. }
  42339. updatePayload = [CHILDREN, nextProp];
  42340. }
  42341. } else if (typeof nextProp === 'number') {
  42342. if (domElement.textContent !== '' + nextProp) {
  42343. if ( true && !suppressHydrationWarning) {
  42344. warnForTextDifference(domElement.textContent, nextProp);
  42345. }
  42346. updatePayload = [CHILDREN, '' + nextProp];
  42347. }
  42348. }
  42349. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  42350. if (nextProp != null) {
  42351. if ( true && typeof nextProp !== 'function') {
  42352. warnForInvalidEventListener(propKey, nextProp);
  42353. }
  42354. ensureListeningTo(rootContainerElement, propKey);
  42355. }
  42356. } else if ( true &&
  42357. // Convince Flow we've calculated it (it's DEV-only in this method.)
  42358. typeof isCustomComponentTag === 'boolean') {
  42359. // Validate that the properties correspond to their expected values.
  42360. var serverValue = void 0;
  42361. var propertyInfo = getPropertyInfo(propKey);
  42362. if (suppressHydrationWarning) {
  42363. // Don't bother comparing. We're ignoring all these warnings.
  42364. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  42365. // Controlled attributes are not validated
  42366. // TODO: Only ignore them on controlled tags.
  42367. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  42368. // Noop
  42369. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  42370. var serverHTML = domElement.innerHTML;
  42371. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  42372. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  42373. if (expectedHTML !== serverHTML) {
  42374. warnForPropDifference(propKey, serverHTML, expectedHTML);
  42375. }
  42376. } else if (propKey === STYLE$1) {
  42377. // $FlowFixMe - Should be inferred as not undefined.
  42378. extraAttributeNames.delete(propKey);
  42379. if (canDiffStyleForHydrationWarning) {
  42380. var expectedStyle = createDangerousStringForStyles(nextProp);
  42381. serverValue = domElement.getAttribute('style');
  42382. if (expectedStyle !== serverValue) {
  42383. warnForPropDifference(propKey, serverValue, expectedStyle);
  42384. }
  42385. }
  42386. } else if (isCustomComponentTag) {
  42387. // $FlowFixMe - Should be inferred as not undefined.
  42388. extraAttributeNames.delete(propKey.toLowerCase());
  42389. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  42390. if (nextProp !== serverValue) {
  42391. warnForPropDifference(propKey, serverValue, nextProp);
  42392. }
  42393. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  42394. var isMismatchDueToBadCasing = false;
  42395. if (propertyInfo !== null) {
  42396. // $FlowFixMe - Should be inferred as not undefined.
  42397. extraAttributeNames.delete(propertyInfo.attributeName);
  42398. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  42399. } else {
  42400. var ownNamespace = parentNamespace;
  42401. if (ownNamespace === HTML_NAMESPACE) {
  42402. ownNamespace = getIntrinsicNamespace(tag);
  42403. }
  42404. if (ownNamespace === HTML_NAMESPACE) {
  42405. // $FlowFixMe - Should be inferred as not undefined.
  42406. extraAttributeNames.delete(propKey.toLowerCase());
  42407. } else {
  42408. var standardName = getPossibleStandardName(propKey);
  42409. if (standardName !== null && standardName !== propKey) {
  42410. // If an SVG prop is supplied with bad casing, it will
  42411. // be successfully parsed from HTML, but will produce a mismatch
  42412. // (and would be incorrectly rendered on the client).
  42413. // However, we already warn about bad casing elsewhere.
  42414. // So we'll skip the misleading extra mismatch warning in this case.
  42415. isMismatchDueToBadCasing = true;
  42416. // $FlowFixMe - Should be inferred as not undefined.
  42417. extraAttributeNames.delete(standardName);
  42418. }
  42419. // $FlowFixMe - Should be inferred as not undefined.
  42420. extraAttributeNames.delete(propKey);
  42421. }
  42422. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  42423. }
  42424. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  42425. warnForPropDifference(propKey, serverValue, nextProp);
  42426. }
  42427. }
  42428. }
  42429. }
  42430. {
  42431. // $FlowFixMe - Should be inferred as not undefined.
  42432. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  42433. // $FlowFixMe - Should be inferred as not undefined.
  42434. warnForExtraAttributes(extraAttributeNames);
  42435. }
  42436. }
  42437. switch (tag) {
  42438. case 'input':
  42439. // TODO: Make sure we check if this is still unmounted or do any clean
  42440. // up necessary since we never stop tracking anymore.
  42441. track(domElement);
  42442. postMountWrapper(domElement, rawProps, true);
  42443. break;
  42444. case 'textarea':
  42445. // TODO: Make sure we check if this is still unmounted or do any clean
  42446. // up necessary since we never stop tracking anymore.
  42447. track(domElement);
  42448. postMountWrapper$3(domElement, rawProps);
  42449. break;
  42450. case 'select':
  42451. case 'option':
  42452. // For input and textarea we current always set the value property at
  42453. // post mount to force it to diverge from attributes. However, for
  42454. // option and select we don't quite do the same thing and select
  42455. // is not resilient to the DOM state changing so we don't do that here.
  42456. // TODO: Consider not doing this for input and textarea.
  42457. break;
  42458. default:
  42459. if (typeof rawProps.onClick === 'function') {
  42460. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  42461. trapClickOnNonInteractiveElement(domElement);
  42462. }
  42463. break;
  42464. }
  42465. return updatePayload;
  42466. }
  42467. function diffHydratedText(textNode, text) {
  42468. var isDifferent = textNode.nodeValue !== text;
  42469. return isDifferent;
  42470. }
  42471. function warnForUnmatchedText(textNode, text) {
  42472. {
  42473. warnForTextDifference(textNode.nodeValue, text);
  42474. }
  42475. }
  42476. function warnForDeletedHydratableElement(parentNode, child) {
  42477. {
  42478. if (didWarnInvalidHydration) {
  42479. return;
  42480. }
  42481. didWarnInvalidHydration = true;
  42482. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  42483. }
  42484. }
  42485. function warnForDeletedHydratableText(parentNode, child) {
  42486. {
  42487. if (didWarnInvalidHydration) {
  42488. return;
  42489. }
  42490. didWarnInvalidHydration = true;
  42491. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  42492. }
  42493. }
  42494. function warnForInsertedHydratedElement(parentNode, tag, props) {
  42495. {
  42496. if (didWarnInvalidHydration) {
  42497. return;
  42498. }
  42499. didWarnInvalidHydration = true;
  42500. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  42501. }
  42502. }
  42503. function warnForInsertedHydratedText(parentNode, text) {
  42504. {
  42505. if (text === '') {
  42506. // We expect to insert empty text nodes since they're not represented in
  42507. // the HTML.
  42508. // TODO: Remove this special case if we can just avoid inserting empty
  42509. // text nodes.
  42510. return;
  42511. }
  42512. if (didWarnInvalidHydration) {
  42513. return;
  42514. }
  42515. didWarnInvalidHydration = true;
  42516. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  42517. }
  42518. }
  42519. function restoreControlledState$1(domElement, tag, props) {
  42520. switch (tag) {
  42521. case 'input':
  42522. restoreControlledState(domElement, props);
  42523. return;
  42524. case 'textarea':
  42525. restoreControlledState$3(domElement, props);
  42526. return;
  42527. case 'select':
  42528. restoreControlledState$2(domElement, props);
  42529. return;
  42530. }
  42531. }
  42532. function listenToEventResponderEventTypes(eventTypes, element) {
  42533. if (enableFlareAPI) {
  42534. // Get the listening Set for this element. We use this to track
  42535. // what events we're listening to.
  42536. var listeningSet = getListeningSetForElement(element);
  42537. // Go through each target event type of the event responder
  42538. for (var i = 0, length = eventTypes.length; i < length; ++i) {
  42539. var eventType = eventTypes[i];
  42540. var isPassive = !endsWith(eventType, '_active');
  42541. var eventKey = isPassive ? eventType + '_passive' : eventType;
  42542. var targetEventType = isPassive ? eventType : eventType.substring(0, eventType.length - 7);
  42543. if (!listeningSet.has(eventKey)) {
  42544. trapEventForResponderEventSystem(element, targetEventType, isPassive);
  42545. listeningSet.add(eventKey);
  42546. }
  42547. }
  42548. }
  42549. }
  42550. // We can remove this once the event API is stable and out of a flag
  42551. if (enableFlareAPI) {
  42552. setListenToResponderEventTypes(listenToEventResponderEventTypes);
  42553. }
  42554. // TODO: direct imports like some-package/src/* are bad. Fix me.
  42555. var validateDOMNesting = function () {};
  42556. var updatedAncestorInfo = function () {};
  42557. {
  42558. // This validation code was written based on the HTML5 parsing spec:
  42559. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  42560. //
  42561. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  42562. // not clear what practical benefit doing so provides); instead, we warn only
  42563. // for cases where the parser will give a parse tree differing from what React
  42564. // intended. For example, <b><div></div></b> is invalid but we don't warn
  42565. // because it still parses correctly; we do warn for other cases like nested
  42566. // <p> tags where the beginning of the second element implicitly closes the
  42567. // first, causing a confusing mess.
  42568. // https://html.spec.whatwg.org/multipage/syntax.html#special
  42569. 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'];
  42570. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  42571. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  42572. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  42573. // TODO: Distinguish by namespace here -- for <title>, including it here
  42574. // errs on the side of fewer warnings
  42575. 'foreignObject', 'desc', 'title'];
  42576. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  42577. var buttonScopeTags = inScopeTags.concat(['button']);
  42578. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  42579. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  42580. var emptyAncestorInfo = {
  42581. current: null,
  42582. formTag: null,
  42583. aTagInScope: null,
  42584. buttonTagInScope: null,
  42585. nobrTagInScope: null,
  42586. pTagInButtonScope: null,
  42587. listItemTagAutoclosing: null,
  42588. dlItemTagAutoclosing: null
  42589. };
  42590. updatedAncestorInfo = function (oldInfo, tag) {
  42591. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  42592. var info = { tag: tag };
  42593. if (inScopeTags.indexOf(tag) !== -1) {
  42594. ancestorInfo.aTagInScope = null;
  42595. ancestorInfo.buttonTagInScope = null;
  42596. ancestorInfo.nobrTagInScope = null;
  42597. }
  42598. if (buttonScopeTags.indexOf(tag) !== -1) {
  42599. ancestorInfo.pTagInButtonScope = null;
  42600. }
  42601. // See rules for 'li', 'dd', 'dt' start tags in
  42602. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  42603. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  42604. ancestorInfo.listItemTagAutoclosing = null;
  42605. ancestorInfo.dlItemTagAutoclosing = null;
  42606. }
  42607. ancestorInfo.current = info;
  42608. if (tag === 'form') {
  42609. ancestorInfo.formTag = info;
  42610. }
  42611. if (tag === 'a') {
  42612. ancestorInfo.aTagInScope = info;
  42613. }
  42614. if (tag === 'button') {
  42615. ancestorInfo.buttonTagInScope = info;
  42616. }
  42617. if (tag === 'nobr') {
  42618. ancestorInfo.nobrTagInScope = info;
  42619. }
  42620. if (tag === 'p') {
  42621. ancestorInfo.pTagInButtonScope = info;
  42622. }
  42623. if (tag === 'li') {
  42624. ancestorInfo.listItemTagAutoclosing = info;
  42625. }
  42626. if (tag === 'dd' || tag === 'dt') {
  42627. ancestorInfo.dlItemTagAutoclosing = info;
  42628. }
  42629. return ancestorInfo;
  42630. };
  42631. /**
  42632. * Returns whether
  42633. */
  42634. var isTagValidWithParent = function (tag, parentTag) {
  42635. // First, let's check if we're in an unusual parsing mode...
  42636. switch (parentTag) {
  42637. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  42638. case 'select':
  42639. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  42640. case 'optgroup':
  42641. return tag === 'option' || tag === '#text';
  42642. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  42643. // but
  42644. case 'option':
  42645. return tag === '#text';
  42646. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  42647. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  42648. // No special behavior since these rules fall back to "in body" mode for
  42649. // all except special table nodes which cause bad parsing behavior anyway.
  42650. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  42651. case 'tr':
  42652. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  42653. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  42654. case 'tbody':
  42655. case 'thead':
  42656. case 'tfoot':
  42657. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  42658. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  42659. case 'colgroup':
  42660. return tag === 'col' || tag === 'template';
  42661. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  42662. case 'table':
  42663. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  42664. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  42665. case 'head':
  42666. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  42667. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  42668. case 'html':
  42669. return tag === 'head' || tag === 'body' || tag === 'frameset';
  42670. case 'frameset':
  42671. return tag === 'frame';
  42672. case '#document':
  42673. return tag === 'html';
  42674. }
  42675. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  42676. // where the parsing rules cause implicit opens or closes to be added.
  42677. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  42678. switch (tag) {
  42679. case 'h1':
  42680. case 'h2':
  42681. case 'h3':
  42682. case 'h4':
  42683. case 'h5':
  42684. case 'h6':
  42685. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  42686. case 'rp':
  42687. case 'rt':
  42688. return impliedEndTags.indexOf(parentTag) === -1;
  42689. case 'body':
  42690. case 'caption':
  42691. case 'col':
  42692. case 'colgroup':
  42693. case 'frameset':
  42694. case 'frame':
  42695. case 'head':
  42696. case 'html':
  42697. case 'tbody':
  42698. case 'td':
  42699. case 'tfoot':
  42700. case 'th':
  42701. case 'thead':
  42702. case 'tr':
  42703. // These tags are only valid with a few parents that have special child
  42704. // parsing rules -- if we're down here, then none of those matched and
  42705. // so we allow it only if we don't know what the parent is, as all other
  42706. // cases are invalid.
  42707. return parentTag == null;
  42708. }
  42709. return true;
  42710. };
  42711. /**
  42712. * Returns whether
  42713. */
  42714. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  42715. switch (tag) {
  42716. case 'address':
  42717. case 'article':
  42718. case 'aside':
  42719. case 'blockquote':
  42720. case 'center':
  42721. case 'details':
  42722. case 'dialog':
  42723. case 'dir':
  42724. case 'div':
  42725. case 'dl':
  42726. case 'fieldset':
  42727. case 'figcaption':
  42728. case 'figure':
  42729. case 'footer':
  42730. case 'header':
  42731. case 'hgroup':
  42732. case 'main':
  42733. case 'menu':
  42734. case 'nav':
  42735. case 'ol':
  42736. case 'p':
  42737. case 'section':
  42738. case 'summary':
  42739. case 'ul':
  42740. case 'pre':
  42741. case 'listing':
  42742. case 'table':
  42743. case 'hr':
  42744. case 'xmp':
  42745. case 'h1':
  42746. case 'h2':
  42747. case 'h3':
  42748. case 'h4':
  42749. case 'h5':
  42750. case 'h6':
  42751. return ancestorInfo.pTagInButtonScope;
  42752. case 'form':
  42753. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  42754. case 'li':
  42755. return ancestorInfo.listItemTagAutoclosing;
  42756. case 'dd':
  42757. case 'dt':
  42758. return ancestorInfo.dlItemTagAutoclosing;
  42759. case 'button':
  42760. return ancestorInfo.buttonTagInScope;
  42761. case 'a':
  42762. // Spec says something about storing a list of markers, but it sounds
  42763. // equivalent to this check.
  42764. return ancestorInfo.aTagInScope;
  42765. case 'nobr':
  42766. return ancestorInfo.nobrTagInScope;
  42767. }
  42768. return null;
  42769. };
  42770. var didWarn$1 = {};
  42771. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  42772. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  42773. var parentInfo = ancestorInfo.current;
  42774. var parentTag = parentInfo && parentInfo.tag;
  42775. if (childText != null) {
  42776. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  42777. childTag = '#text';
  42778. }
  42779. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  42780. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  42781. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  42782. if (!invalidParentOrAncestor) {
  42783. return;
  42784. }
  42785. var ancestorTag = invalidParentOrAncestor.tag;
  42786. var addendum = getCurrentFiberStackInDev();
  42787. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  42788. if (didWarn$1[warnKey]) {
  42789. return;
  42790. }
  42791. didWarn$1[warnKey] = true;
  42792. var tagDisplayName = childTag;
  42793. var whitespaceInfo = '';
  42794. if (childTag === '#text') {
  42795. if (/\S/.test(childText)) {
  42796. tagDisplayName = 'Text nodes';
  42797. } else {
  42798. tagDisplayName = 'Whitespace text nodes';
  42799. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  42800. }
  42801. } else {
  42802. tagDisplayName = '<' + childTag + '>';
  42803. }
  42804. if (invalidParent) {
  42805. var info = '';
  42806. if (ancestorTag === 'table' && childTag === 'tr') {
  42807. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  42808. }
  42809. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  42810. } else {
  42811. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  42812. }
  42813. };
  42814. }
  42815. // Renderers that don't support persistence
  42816. // can re-export everything from this module.
  42817. function shim() {
  42818. (function () {
  42819. {
  42820. {
  42821. throw ReactError(Error('The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.'));
  42822. }
  42823. }
  42824. })();
  42825. }
  42826. // Persistence (when unsupported)
  42827. var supportsPersistence = false;
  42828. var cloneInstance = shim;
  42829. var cloneFundamentalInstance = shim;
  42830. var createContainerChildSet = shim;
  42831. var appendChildToContainerChildSet = shim;
  42832. var finalizeContainerChildren = shim;
  42833. var replaceContainerChildren = shim;
  42834. var cloneHiddenInstance = shim;
  42835. var cloneHiddenTextInstance = shim;
  42836. var SUPPRESS_HYDRATION_WARNING = void 0;
  42837. {
  42838. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  42839. }
  42840. var SUSPENSE_START_DATA = '$';
  42841. var SUSPENSE_END_DATA = '/$';
  42842. var SUSPENSE_PENDING_START_DATA = '$?';
  42843. var SUSPENSE_FALLBACK_START_DATA = '$!';
  42844. var STYLE = 'style';
  42845. var eventsEnabled = null;
  42846. var selectionInformation = null;
  42847. function shouldAutoFocusHostComponent(type, props) {
  42848. switch (type) {
  42849. case 'button':
  42850. case 'input':
  42851. case 'select':
  42852. case 'textarea':
  42853. return !!props.autoFocus;
  42854. }
  42855. return false;
  42856. }
  42857. function getRootHostContext(rootContainerInstance) {
  42858. var type = void 0;
  42859. var namespace = void 0;
  42860. var nodeType = rootContainerInstance.nodeType;
  42861. switch (nodeType) {
  42862. case DOCUMENT_NODE:
  42863. case DOCUMENT_FRAGMENT_NODE:
  42864. {
  42865. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  42866. var root = rootContainerInstance.documentElement;
  42867. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  42868. break;
  42869. }
  42870. default:
  42871. {
  42872. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  42873. var ownNamespace = container.namespaceURI || null;
  42874. type = container.tagName;
  42875. namespace = getChildNamespace(ownNamespace, type);
  42876. break;
  42877. }
  42878. }
  42879. {
  42880. var validatedTag = type.toLowerCase();
  42881. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  42882. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  42883. }
  42884. return namespace;
  42885. }
  42886. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  42887. {
  42888. var parentHostContextDev = parentHostContext;
  42889. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  42890. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  42891. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  42892. }
  42893. var parentNamespace = parentHostContext;
  42894. return getChildNamespace(parentNamespace, type);
  42895. }
  42896. function getPublicInstance(instance) {
  42897. return instance;
  42898. }
  42899. function prepareForCommit(containerInfo) {
  42900. eventsEnabled = isEnabled();
  42901. selectionInformation = getSelectionInformation();
  42902. setEnabled(false);
  42903. }
  42904. function resetAfterCommit(containerInfo) {
  42905. restoreSelection(selectionInformation);
  42906. selectionInformation = null;
  42907. setEnabled(eventsEnabled);
  42908. eventsEnabled = null;
  42909. }
  42910. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  42911. var parentNamespace = void 0;
  42912. {
  42913. // TODO: take namespace into account when validating.
  42914. var hostContextDev = hostContext;
  42915. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  42916. if (typeof props.children === 'string' || typeof props.children === 'number') {
  42917. var string = '' + props.children;
  42918. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  42919. validateDOMNesting(null, string, ownAncestorInfo);
  42920. }
  42921. parentNamespace = hostContextDev.namespace;
  42922. }
  42923. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  42924. precacheFiberNode(internalInstanceHandle, domElement);
  42925. updateFiberProps(domElement, props);
  42926. return domElement;
  42927. }
  42928. function appendInitialChild(parentInstance, child) {
  42929. parentInstance.appendChild(child);
  42930. }
  42931. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  42932. setInitialProperties(domElement, type, props, rootContainerInstance);
  42933. return shouldAutoFocusHostComponent(type, props);
  42934. }
  42935. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  42936. {
  42937. var hostContextDev = hostContext;
  42938. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  42939. var string = '' + newProps.children;
  42940. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  42941. validateDOMNesting(null, string, ownAncestorInfo);
  42942. }
  42943. }
  42944. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  42945. }
  42946. function shouldSetTextContent(type, props) {
  42947. 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;
  42948. }
  42949. function shouldDeprioritizeSubtree(type, props) {
  42950. return !!props.hidden;
  42951. }
  42952. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  42953. {
  42954. var hostContextDev = hostContext;
  42955. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  42956. }
  42957. var textNode = createTextNode(text, rootContainerInstance);
  42958. precacheFiberNode(internalInstanceHandle, textNode);
  42959. return textNode;
  42960. }
  42961. var isPrimaryRenderer = true;
  42962. var warnsIfNotActing = true;
  42963. // This initialization code may run even on server environments
  42964. // if a component just imports ReactDOM (e.g. for findDOMNode).
  42965. // Some environments might not have setTimeout or clearTimeout.
  42966. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  42967. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  42968. var noTimeout = -1;
  42969. // -------------------
  42970. // Mutation
  42971. // -------------------
  42972. var supportsMutation = true;
  42973. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  42974. // Despite the naming that might imply otherwise, this method only
  42975. // fires if there is an `Update` effect scheduled during mounting.
  42976. // This happens if `finalizeInitialChildren` returns `true` (which it
  42977. // does to implement the `autoFocus` attribute on the client). But
  42978. // there are also other cases when this might happen (such as patching
  42979. // up text content during hydration mismatch). So we'll check this again.
  42980. if (shouldAutoFocusHostComponent(type, newProps)) {
  42981. domElement.focus();
  42982. }
  42983. }
  42984. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  42985. // Update the props handle so that we know which props are the ones with
  42986. // with current event handlers.
  42987. updateFiberProps(domElement, newProps);
  42988. // Apply the diff to the DOM node.
  42989. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  42990. }
  42991. function resetTextContent(domElement) {
  42992. setTextContent(domElement, '');
  42993. }
  42994. function commitTextUpdate(textInstance, oldText, newText) {
  42995. textInstance.nodeValue = newText;
  42996. }
  42997. function appendChild(parentInstance, child) {
  42998. parentInstance.appendChild(child);
  42999. }
  43000. function appendChildToContainer(container, child) {
  43001. var parentNode = void 0;
  43002. if (container.nodeType === COMMENT_NODE) {
  43003. parentNode = container.parentNode;
  43004. parentNode.insertBefore(child, container);
  43005. } else {
  43006. parentNode = container;
  43007. parentNode.appendChild(child);
  43008. }
  43009. // This container might be used for a portal.
  43010. // If something inside a portal is clicked, that click should bubble
  43011. // through the React tree. However, on Mobile Safari the click would
  43012. // never bubble through the *DOM* tree unless an ancestor with onclick
  43013. // event exists. So we wouldn't see it and dispatch it.
  43014. // This is why we ensure that non React root containers have inline onclick
  43015. // defined.
  43016. // https://github.com/facebook/react/issues/11918
  43017. var reactRootContainer = container._reactRootContainer;
  43018. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  43019. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  43020. trapClickOnNonInteractiveElement(parentNode);
  43021. }
  43022. }
  43023. function insertBefore(parentInstance, child, beforeChild) {
  43024. parentInstance.insertBefore(child, beforeChild);
  43025. }
  43026. function insertInContainerBefore(container, child, beforeChild) {
  43027. if (container.nodeType === COMMENT_NODE) {
  43028. container.parentNode.insertBefore(child, beforeChild);
  43029. } else {
  43030. container.insertBefore(child, beforeChild);
  43031. }
  43032. }
  43033. function removeChild(parentInstance, child) {
  43034. parentInstance.removeChild(child);
  43035. }
  43036. function removeChildFromContainer(container, child) {
  43037. if (container.nodeType === COMMENT_NODE) {
  43038. container.parentNode.removeChild(child);
  43039. } else {
  43040. container.removeChild(child);
  43041. }
  43042. }
  43043. function clearSuspenseBoundary(parentInstance, suspenseInstance) {
  43044. var node = suspenseInstance;
  43045. // Delete all nodes within this suspense boundary.
  43046. // There might be nested nodes so we need to keep track of how
  43047. // deep we are and only break out when we're back on top.
  43048. var depth = 0;
  43049. do {
  43050. var nextNode = node.nextSibling;
  43051. parentInstance.removeChild(node);
  43052. if (nextNode && nextNode.nodeType === COMMENT_NODE) {
  43053. var data = nextNode.data;
  43054. if (data === SUSPENSE_END_DATA) {
  43055. if (depth === 0) {
  43056. parentInstance.removeChild(nextNode);
  43057. return;
  43058. } else {
  43059. depth--;
  43060. }
  43061. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
  43062. depth++;
  43063. }
  43064. }
  43065. node = nextNode;
  43066. } while (node);
  43067. // TODO: Warn, we didn't find the end comment boundary.
  43068. }
  43069. function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
  43070. if (container.nodeType === COMMENT_NODE) {
  43071. clearSuspenseBoundary(container.parentNode, suspenseInstance);
  43072. } else if (container.nodeType === ELEMENT_NODE) {
  43073. clearSuspenseBoundary(container, suspenseInstance);
  43074. } else {
  43075. // Document nodes should never contain suspense boundaries.
  43076. }
  43077. }
  43078. function hideInstance(instance) {
  43079. // TODO: Does this work for all element types? What about MathML? Should we
  43080. // pass host context to this method?
  43081. instance = instance;
  43082. var style = instance.style;
  43083. if (typeof style.setProperty === 'function') {
  43084. style.setProperty('display', 'none', 'important');
  43085. } else {
  43086. style.display = 'none';
  43087. }
  43088. }
  43089. function hideTextInstance(textInstance) {
  43090. textInstance.nodeValue = '';
  43091. }
  43092. function unhideInstance(instance, props) {
  43093. instance = instance;
  43094. var styleProp = props[STYLE];
  43095. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  43096. instance.style.display = dangerousStyleValue('display', display);
  43097. }
  43098. function unhideTextInstance(textInstance, text) {
  43099. textInstance.nodeValue = text;
  43100. }
  43101. // -------------------
  43102. // Hydration
  43103. // -------------------
  43104. var supportsHydration = true;
  43105. function canHydrateInstance(instance, type, props) {
  43106. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  43107. return null;
  43108. }
  43109. // This has now been refined to an element node.
  43110. return instance;
  43111. }
  43112. function canHydrateTextInstance(instance, text) {
  43113. if (text === '' || instance.nodeType !== TEXT_NODE) {
  43114. // Empty strings are not parsed by HTML so there won't be a correct match here.
  43115. return null;
  43116. }
  43117. // This has now been refined to a text node.
  43118. return instance;
  43119. }
  43120. function canHydrateSuspenseInstance(instance) {
  43121. if (instance.nodeType !== COMMENT_NODE) {
  43122. // Empty strings are not parsed by HTML so there won't be a correct match here.
  43123. return null;
  43124. }
  43125. // This has now been refined to a suspense node.
  43126. return instance;
  43127. }
  43128. function isSuspenseInstancePending(instance) {
  43129. return instance.data === SUSPENSE_PENDING_START_DATA;
  43130. }
  43131. function isSuspenseInstanceFallback(instance) {
  43132. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  43133. }
  43134. function registerSuspenseInstanceRetry(instance, callback) {
  43135. instance._reactRetry = callback;
  43136. }
  43137. function getNextHydratable(node) {
  43138. // Skip non-hydratable nodes.
  43139. for (; node != null; node = node.nextSibling) {
  43140. var nodeType = node.nodeType;
  43141. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  43142. break;
  43143. }
  43144. if (enableSuspenseServerRenderer) {
  43145. if (nodeType === COMMENT_NODE) {
  43146. break;
  43147. }
  43148. var nodeData = node.data;
  43149. if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
  43150. break;
  43151. }
  43152. }
  43153. }
  43154. return node;
  43155. }
  43156. function getNextHydratableSibling(instance) {
  43157. return getNextHydratable(instance.nextSibling);
  43158. }
  43159. function getFirstHydratableChild(parentInstance) {
  43160. return getNextHydratable(parentInstance.firstChild);
  43161. }
  43162. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  43163. precacheFiberNode(internalInstanceHandle, instance);
  43164. // TODO: Possibly defer this until the commit phase where all the events
  43165. // get attached.
  43166. updateFiberProps(instance, props);
  43167. var parentNamespace = void 0;
  43168. {
  43169. var hostContextDev = hostContext;
  43170. parentNamespace = hostContextDev.namespace;
  43171. }
  43172. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  43173. }
  43174. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  43175. precacheFiberNode(internalInstanceHandle, textInstance);
  43176. return diffHydratedText(textInstance, text);
  43177. }
  43178. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  43179. var node = suspenseInstance.nextSibling;
  43180. // Skip past all nodes within this suspense boundary.
  43181. // There might be nested nodes so we need to keep track of how
  43182. // deep we are and only break out when we're back on top.
  43183. var depth = 0;
  43184. while (node) {
  43185. if (node.nodeType === COMMENT_NODE) {
  43186. var data = node.data;
  43187. if (data === SUSPENSE_END_DATA) {
  43188. if (depth === 0) {
  43189. return getNextHydratableSibling(node);
  43190. } else {
  43191. depth--;
  43192. }
  43193. } else if (data === SUSPENSE_START_DATA) {
  43194. depth++;
  43195. }
  43196. }
  43197. node = node.nextSibling;
  43198. }
  43199. // TODO: Warn, we didn't find the end comment boundary.
  43200. return null;
  43201. }
  43202. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  43203. {
  43204. warnForUnmatchedText(textInstance, text);
  43205. }
  43206. }
  43207. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  43208. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43209. warnForUnmatchedText(textInstance, text);
  43210. }
  43211. }
  43212. function didNotHydrateContainerInstance(parentContainer, instance) {
  43213. {
  43214. if (instance.nodeType === ELEMENT_NODE) {
  43215. warnForDeletedHydratableElement(parentContainer, instance);
  43216. } else if (instance.nodeType === COMMENT_NODE) {
  43217. // TODO: warnForDeletedHydratableSuspenseBoundary
  43218. } else {
  43219. warnForDeletedHydratableText(parentContainer, instance);
  43220. }
  43221. }
  43222. }
  43223. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  43224. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43225. if (instance.nodeType === ELEMENT_NODE) {
  43226. warnForDeletedHydratableElement(parentInstance, instance);
  43227. } else if (instance.nodeType === COMMENT_NODE) {
  43228. // TODO: warnForDeletedHydratableSuspenseBoundary
  43229. } else {
  43230. warnForDeletedHydratableText(parentInstance, instance);
  43231. }
  43232. }
  43233. }
  43234. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  43235. {
  43236. warnForInsertedHydratedElement(parentContainer, type, props);
  43237. }
  43238. }
  43239. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  43240. {
  43241. warnForInsertedHydratedText(parentContainer, text);
  43242. }
  43243. }
  43244. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  43245. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43246. warnForInsertedHydratedElement(parentInstance, type, props);
  43247. }
  43248. }
  43249. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  43250. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43251. warnForInsertedHydratedText(parentInstance, text);
  43252. }
  43253. }
  43254. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  43255. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43256. // TODO: warnForInsertedHydratedSuspense(parentInstance);
  43257. }
  43258. }
  43259. function mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance) {
  43260. // Listen to events
  43261. var doc = rootContainerInstance.ownerDocument;
  43262. var documentBody = doc.body || doc;
  43263. var _ref = responder,
  43264. rootEventTypes = _ref.rootEventTypes,
  43265. targetEventTypes = _ref.targetEventTypes;
  43266. if (targetEventTypes !== null) {
  43267. listenToEventResponderEventTypes(targetEventTypes, documentBody);
  43268. }
  43269. if (rootEventTypes !== null) {
  43270. addRootEventTypesForResponderInstance(responderInstance, rootEventTypes);
  43271. listenToEventResponderEventTypes(rootEventTypes, documentBody);
  43272. }
  43273. mountEventResponder(responder, responderInstance, responderProps, responderState);
  43274. return responderInstance;
  43275. }
  43276. function unmountResponderInstance(responderInstance) {
  43277. if (enableFlareAPI) {
  43278. // TODO stop listening to targetEventTypes
  43279. unmountEventResponder(responderInstance);
  43280. }
  43281. }
  43282. function getFundamentalComponentInstance(fundamentalInstance) {
  43283. if (enableFundamentalAPI) {
  43284. var currentFiber = fundamentalInstance.currentFiber,
  43285. impl = fundamentalInstance.impl,
  43286. _props = fundamentalInstance.props,
  43287. state = fundamentalInstance.state;
  43288. var instance = impl.getInstance(null, _props, state);
  43289. precacheFiberNode(currentFiber, instance);
  43290. return instance;
  43291. }
  43292. // Because of the flag above, this gets around the Flow error;
  43293. return null;
  43294. }
  43295. function mountFundamentalComponent(fundamentalInstance) {
  43296. if (enableFundamentalAPI) {
  43297. var impl = fundamentalInstance.impl,
  43298. instance = fundamentalInstance.instance,
  43299. _props2 = fundamentalInstance.props,
  43300. state = fundamentalInstance.state;
  43301. var onMount = impl.onMount;
  43302. if (onMount !== undefined) {
  43303. onMount(null, instance, _props2, state);
  43304. }
  43305. }
  43306. }
  43307. function shouldUpdateFundamentalComponent(fundamentalInstance) {
  43308. if (enableFundamentalAPI) {
  43309. var impl = fundamentalInstance.impl,
  43310. prevProps = fundamentalInstance.prevProps,
  43311. _props3 = fundamentalInstance.props,
  43312. state = fundamentalInstance.state;
  43313. var shouldUpdate = impl.shouldUpdate;
  43314. if (shouldUpdate !== undefined) {
  43315. return shouldUpdate(null, prevProps, _props3, state);
  43316. }
  43317. }
  43318. return true;
  43319. }
  43320. function updateFundamentalComponent(fundamentalInstance) {
  43321. if (enableFundamentalAPI) {
  43322. var impl = fundamentalInstance.impl,
  43323. instance = fundamentalInstance.instance,
  43324. prevProps = fundamentalInstance.prevProps,
  43325. _props4 = fundamentalInstance.props,
  43326. state = fundamentalInstance.state;
  43327. var onUpdate = impl.onUpdate;
  43328. if (onUpdate !== undefined) {
  43329. onUpdate(null, instance, prevProps, _props4, state);
  43330. }
  43331. }
  43332. }
  43333. function unmountFundamentalComponent(fundamentalInstance) {
  43334. if (enableFundamentalAPI) {
  43335. var impl = fundamentalInstance.impl,
  43336. instance = fundamentalInstance.instance,
  43337. _props5 = fundamentalInstance.props,
  43338. state = fundamentalInstance.state;
  43339. var onUnmount = impl.onUnmount;
  43340. if (onUnmount !== undefined) {
  43341. onUnmount(null, instance, _props5, state);
  43342. }
  43343. }
  43344. }
  43345. // Prefix measurements so that it's possible to filter them.
  43346. // Longer prefixes are hard to read in DevTools.
  43347. var reactEmoji = '\u269B';
  43348. var warningEmoji = '\u26D4';
  43349. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  43350. // Keep track of current fiber so that we know the path to unwind on pause.
  43351. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  43352. var currentFiber = null;
  43353. // If we're in the middle of user code, which fiber and method is it?
  43354. // Reusing `currentFiber` would be confusing for this because user code fiber
  43355. // can change during commit phase too, but we don't need to unwind it (since
  43356. // lifecycles in the commit phase don't resemble a tree).
  43357. var currentPhase = null;
  43358. var currentPhaseFiber = null;
  43359. // Did lifecycle hook schedule an update? This is often a performance problem,
  43360. // so we will keep track of it, and include it in the report.
  43361. // Track commits caused by cascading updates.
  43362. var isCommitting = false;
  43363. var hasScheduledUpdateInCurrentCommit = false;
  43364. var hasScheduledUpdateInCurrentPhase = false;
  43365. var commitCountInCurrentWorkLoop = 0;
  43366. var effectCountInCurrentCommit = 0;
  43367. var isWaitingForCallback = false;
  43368. // During commits, we only show a measurement once per method name
  43369. // to avoid stretch the commit phase with measurement overhead.
  43370. var labelsInCurrentCommit = new Set();
  43371. var formatMarkName = function (markName) {
  43372. return reactEmoji + ' ' + markName;
  43373. };
  43374. var formatLabel = function (label, warning) {
  43375. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  43376. var suffix = warning ? ' Warning: ' + warning : '';
  43377. return '' + prefix + label + suffix;
  43378. };
  43379. var beginMark = function (markName) {
  43380. performance.mark(formatMarkName(markName));
  43381. };
  43382. var clearMark = function (markName) {
  43383. performance.clearMarks(formatMarkName(markName));
  43384. };
  43385. var endMark = function (label, markName, warning) {
  43386. var formattedMarkName = formatMarkName(markName);
  43387. var formattedLabel = formatLabel(label, warning);
  43388. try {
  43389. performance.measure(formattedLabel, formattedMarkName);
  43390. } catch (err) {}
  43391. // If previous mark was missing for some reason, this will throw.
  43392. // This could only happen if React crashed in an unexpected place earlier.
  43393. // Don't pile on with more errors.
  43394. // Clear marks immediately to avoid growing buffer.
  43395. performance.clearMarks(formattedMarkName);
  43396. performance.clearMeasures(formattedLabel);
  43397. };
  43398. var getFiberMarkName = function (label, debugID) {
  43399. return label + ' (#' + debugID + ')';
  43400. };
  43401. var getFiberLabel = function (componentName, isMounted, phase) {
  43402. if (phase === null) {
  43403. // These are composite component total time measurements.
  43404. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  43405. } else {
  43406. // Composite component methods.
  43407. return componentName + '.' + phase;
  43408. }
  43409. };
  43410. var beginFiberMark = function (fiber, phase) {
  43411. var componentName = getComponentName(fiber.type) || 'Unknown';
  43412. var debugID = fiber._debugID;
  43413. var isMounted = fiber.alternate !== null;
  43414. var label = getFiberLabel(componentName, isMounted, phase);
  43415. if (isCommitting && labelsInCurrentCommit.has(label)) {
  43416. // During the commit phase, we don't show duplicate labels because
  43417. // there is a fixed overhead for every measurement, and we don't
  43418. // want to stretch the commit phase beyond necessary.
  43419. return false;
  43420. }
  43421. labelsInCurrentCommit.add(label);
  43422. var markName = getFiberMarkName(label, debugID);
  43423. beginMark(markName);
  43424. return true;
  43425. };
  43426. var clearFiberMark = function (fiber, phase) {
  43427. var componentName = getComponentName(fiber.type) || 'Unknown';
  43428. var debugID = fiber._debugID;
  43429. var isMounted = fiber.alternate !== null;
  43430. var label = getFiberLabel(componentName, isMounted, phase);
  43431. var markName = getFiberMarkName(label, debugID);
  43432. clearMark(markName);
  43433. };
  43434. var endFiberMark = function (fiber, phase, warning) {
  43435. var componentName = getComponentName(fiber.type) || 'Unknown';
  43436. var debugID = fiber._debugID;
  43437. var isMounted = fiber.alternate !== null;
  43438. var label = getFiberLabel(componentName, isMounted, phase);
  43439. var markName = getFiberMarkName(label, debugID);
  43440. endMark(label, markName, warning);
  43441. };
  43442. var shouldIgnoreFiber = function (fiber) {
  43443. // Host components should be skipped in the timeline.
  43444. // We could check typeof fiber.type, but does this work with RN?
  43445. switch (fiber.tag) {
  43446. case HostRoot:
  43447. case HostComponent:
  43448. case HostText:
  43449. case HostPortal:
  43450. case Fragment:
  43451. case ContextProvider:
  43452. case ContextConsumer:
  43453. case Mode:
  43454. return true;
  43455. default:
  43456. return false;
  43457. }
  43458. };
  43459. var clearPendingPhaseMeasurement = function () {
  43460. if (currentPhase !== null && currentPhaseFiber !== null) {
  43461. clearFiberMark(currentPhaseFiber, currentPhase);
  43462. }
  43463. currentPhaseFiber = null;
  43464. currentPhase = null;
  43465. hasScheduledUpdateInCurrentPhase = false;
  43466. };
  43467. var pauseTimers = function () {
  43468. // Stops all currently active measurements so that they can be resumed
  43469. // if we continue in a later deferred loop from the same unit of work.
  43470. var fiber = currentFiber;
  43471. while (fiber) {
  43472. if (fiber._debugIsCurrentlyTiming) {
  43473. endFiberMark(fiber, null, null);
  43474. }
  43475. fiber = fiber.return;
  43476. }
  43477. };
  43478. var resumeTimersRecursively = function (fiber) {
  43479. if (fiber.return !== null) {
  43480. resumeTimersRecursively(fiber.return);
  43481. }
  43482. if (fiber._debugIsCurrentlyTiming) {
  43483. beginFiberMark(fiber, null);
  43484. }
  43485. };
  43486. var resumeTimers = function () {
  43487. // Resumes all measurements that were active during the last deferred loop.
  43488. if (currentFiber !== null) {
  43489. resumeTimersRecursively(currentFiber);
  43490. }
  43491. };
  43492. function recordEffect() {
  43493. if (enableUserTimingAPI) {
  43494. effectCountInCurrentCommit++;
  43495. }
  43496. }
  43497. function recordScheduleUpdate() {
  43498. if (enableUserTimingAPI) {
  43499. if (isCommitting) {
  43500. hasScheduledUpdateInCurrentCommit = true;
  43501. }
  43502. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  43503. hasScheduledUpdateInCurrentPhase = true;
  43504. }
  43505. }
  43506. }
  43507. function startRequestCallbackTimer() {
  43508. if (enableUserTimingAPI) {
  43509. if (supportsUserTiming && !isWaitingForCallback) {
  43510. isWaitingForCallback = true;
  43511. beginMark('(Waiting for async callback...)');
  43512. }
  43513. }
  43514. }
  43515. function stopRequestCallbackTimer(didExpire) {
  43516. if (enableUserTimingAPI) {
  43517. if (supportsUserTiming) {
  43518. isWaitingForCallback = false;
  43519. var warning = didExpire ? 'Update expired; will flush synchronously' : null;
  43520. endMark('(Waiting for async callback...)', '(Waiting for async callback...)', warning);
  43521. }
  43522. }
  43523. }
  43524. function startWorkTimer(fiber) {
  43525. if (enableUserTimingAPI) {
  43526. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43527. return;
  43528. }
  43529. // If we pause, this is the fiber to unwind from.
  43530. currentFiber = fiber;
  43531. if (!beginFiberMark(fiber, null)) {
  43532. return;
  43533. }
  43534. fiber._debugIsCurrentlyTiming = true;
  43535. }
  43536. }
  43537. function cancelWorkTimer(fiber) {
  43538. if (enableUserTimingAPI) {
  43539. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43540. return;
  43541. }
  43542. // Remember we shouldn't complete measurement for this fiber.
  43543. // Otherwise flamechart will be deep even for small updates.
  43544. fiber._debugIsCurrentlyTiming = false;
  43545. clearFiberMark(fiber, null);
  43546. }
  43547. }
  43548. function stopWorkTimer(fiber) {
  43549. if (enableUserTimingAPI) {
  43550. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43551. return;
  43552. }
  43553. // If we pause, its parent is the fiber to unwind from.
  43554. currentFiber = fiber.return;
  43555. if (!fiber._debugIsCurrentlyTiming) {
  43556. return;
  43557. }
  43558. fiber._debugIsCurrentlyTiming = false;
  43559. endFiberMark(fiber, null, null);
  43560. }
  43561. }
  43562. function stopFailedWorkTimer(fiber) {
  43563. if (enableUserTimingAPI) {
  43564. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43565. return;
  43566. }
  43567. // If we pause, its parent is the fiber to unwind from.
  43568. currentFiber = fiber.return;
  43569. if (!fiber._debugIsCurrentlyTiming) {
  43570. return;
  43571. }
  43572. fiber._debugIsCurrentlyTiming = false;
  43573. var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  43574. endFiberMark(fiber, null, warning);
  43575. }
  43576. }
  43577. function startPhaseTimer(fiber, phase) {
  43578. if (enableUserTimingAPI) {
  43579. if (!supportsUserTiming) {
  43580. return;
  43581. }
  43582. clearPendingPhaseMeasurement();
  43583. if (!beginFiberMark(fiber, phase)) {
  43584. return;
  43585. }
  43586. currentPhaseFiber = fiber;
  43587. currentPhase = phase;
  43588. }
  43589. }
  43590. function stopPhaseTimer() {
  43591. if (enableUserTimingAPI) {
  43592. if (!supportsUserTiming) {
  43593. return;
  43594. }
  43595. if (currentPhase !== null && currentPhaseFiber !== null) {
  43596. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  43597. endFiberMark(currentPhaseFiber, currentPhase, warning);
  43598. }
  43599. currentPhase = null;
  43600. currentPhaseFiber = null;
  43601. }
  43602. }
  43603. function startWorkLoopTimer(nextUnitOfWork) {
  43604. if (enableUserTimingAPI) {
  43605. currentFiber = nextUnitOfWork;
  43606. if (!supportsUserTiming) {
  43607. return;
  43608. }
  43609. commitCountInCurrentWorkLoop = 0;
  43610. // This is top level call.
  43611. // Any other measurements are performed within.
  43612. beginMark('(React Tree Reconciliation)');
  43613. // Resume any measurements that were in progress during the last loop.
  43614. resumeTimers();
  43615. }
  43616. }
  43617. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  43618. if (enableUserTimingAPI) {
  43619. if (!supportsUserTiming) {
  43620. return;
  43621. }
  43622. var warning = null;
  43623. if (interruptedBy !== null) {
  43624. if (interruptedBy.tag === HostRoot) {
  43625. warning = 'A top-level update interrupted the previous render';
  43626. } else {
  43627. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  43628. warning = 'An update to ' + componentName + ' interrupted the previous render';
  43629. }
  43630. } else if (commitCountInCurrentWorkLoop > 1) {
  43631. warning = 'There were cascading updates';
  43632. }
  43633. commitCountInCurrentWorkLoop = 0;
  43634. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  43635. // Pause any measurements until the next loop.
  43636. pauseTimers();
  43637. endMark(label, '(React Tree Reconciliation)', warning);
  43638. }
  43639. }
  43640. function startCommitTimer() {
  43641. if (enableUserTimingAPI) {
  43642. if (!supportsUserTiming) {
  43643. return;
  43644. }
  43645. isCommitting = true;
  43646. hasScheduledUpdateInCurrentCommit = false;
  43647. labelsInCurrentCommit.clear();
  43648. beginMark('(Committing Changes)');
  43649. }
  43650. }
  43651. function stopCommitTimer() {
  43652. if (enableUserTimingAPI) {
  43653. if (!supportsUserTiming) {
  43654. return;
  43655. }
  43656. var warning = null;
  43657. if (hasScheduledUpdateInCurrentCommit) {
  43658. warning = 'Lifecycle hook scheduled a cascading update';
  43659. } else if (commitCountInCurrentWorkLoop > 0) {
  43660. warning = 'Caused by a cascading update in earlier commit';
  43661. }
  43662. hasScheduledUpdateInCurrentCommit = false;
  43663. commitCountInCurrentWorkLoop++;
  43664. isCommitting = false;
  43665. labelsInCurrentCommit.clear();
  43666. endMark('(Committing Changes)', '(Committing Changes)', warning);
  43667. }
  43668. }
  43669. function startCommitSnapshotEffectsTimer() {
  43670. if (enableUserTimingAPI) {
  43671. if (!supportsUserTiming) {
  43672. return;
  43673. }
  43674. effectCountInCurrentCommit = 0;
  43675. beginMark('(Committing Snapshot Effects)');
  43676. }
  43677. }
  43678. function stopCommitSnapshotEffectsTimer() {
  43679. if (enableUserTimingAPI) {
  43680. if (!supportsUserTiming) {
  43681. return;
  43682. }
  43683. var count = effectCountInCurrentCommit;
  43684. effectCountInCurrentCommit = 0;
  43685. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  43686. }
  43687. }
  43688. function startCommitHostEffectsTimer() {
  43689. if (enableUserTimingAPI) {
  43690. if (!supportsUserTiming) {
  43691. return;
  43692. }
  43693. effectCountInCurrentCommit = 0;
  43694. beginMark('(Committing Host Effects)');
  43695. }
  43696. }
  43697. function stopCommitHostEffectsTimer() {
  43698. if (enableUserTimingAPI) {
  43699. if (!supportsUserTiming) {
  43700. return;
  43701. }
  43702. var count = effectCountInCurrentCommit;
  43703. effectCountInCurrentCommit = 0;
  43704. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  43705. }
  43706. }
  43707. function startCommitLifeCyclesTimer() {
  43708. if (enableUserTimingAPI) {
  43709. if (!supportsUserTiming) {
  43710. return;
  43711. }
  43712. effectCountInCurrentCommit = 0;
  43713. beginMark('(Calling Lifecycle Methods)');
  43714. }
  43715. }
  43716. function stopCommitLifeCyclesTimer() {
  43717. if (enableUserTimingAPI) {
  43718. if (!supportsUserTiming) {
  43719. return;
  43720. }
  43721. var count = effectCountInCurrentCommit;
  43722. effectCountInCurrentCommit = 0;
  43723. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  43724. }
  43725. }
  43726. var valueStack = [];
  43727. var fiberStack = void 0;
  43728. {
  43729. fiberStack = [];
  43730. }
  43731. var index = -1;
  43732. function createCursor(defaultValue) {
  43733. return {
  43734. current: defaultValue
  43735. };
  43736. }
  43737. function pop(cursor, fiber) {
  43738. if (index < 0) {
  43739. {
  43740. warningWithoutStack$1(false, 'Unexpected pop.');
  43741. }
  43742. return;
  43743. }
  43744. {
  43745. if (fiber !== fiberStack[index]) {
  43746. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  43747. }
  43748. }
  43749. cursor.current = valueStack[index];
  43750. valueStack[index] = null;
  43751. {
  43752. fiberStack[index] = null;
  43753. }
  43754. index--;
  43755. }
  43756. function push(cursor, value, fiber) {
  43757. index++;
  43758. valueStack[index] = cursor.current;
  43759. {
  43760. fiberStack[index] = fiber;
  43761. }
  43762. cursor.current = value;
  43763. }
  43764. var warnedAboutMissingGetChildContext = void 0;
  43765. {
  43766. warnedAboutMissingGetChildContext = {};
  43767. }
  43768. var emptyContextObject = {};
  43769. {
  43770. Object.freeze(emptyContextObject);
  43771. }
  43772. // A cursor to the current merged context object on the stack.
  43773. var contextStackCursor = createCursor(emptyContextObject);
  43774. // A cursor to a boolean indicating whether the context has changed.
  43775. var didPerformWorkStackCursor = createCursor(false);
  43776. // Keep track of the previous context object that was on the stack.
  43777. // We use this to get access to the parent context after we have already
  43778. // pushed the next context provider, and now need to merge their contexts.
  43779. var previousContext = emptyContextObject;
  43780. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  43781. if (disableLegacyContext) {
  43782. return emptyContextObject;
  43783. } else {
  43784. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  43785. // If the fiber is a context provider itself, when we read its context
  43786. // we may have already pushed its own child context on the stack. A context
  43787. // provider should not "see" its own child context. Therefore we read the
  43788. // previous (parent) context instead for a context provider.
  43789. return previousContext;
  43790. }
  43791. return contextStackCursor.current;
  43792. }
  43793. }
  43794. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  43795. if (disableLegacyContext) {
  43796. return;
  43797. } else {
  43798. var instance = workInProgress.stateNode;
  43799. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  43800. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  43801. }
  43802. }
  43803. function getMaskedContext(workInProgress, unmaskedContext) {
  43804. if (disableLegacyContext) {
  43805. return emptyContextObject;
  43806. } else {
  43807. var type = workInProgress.type;
  43808. var contextTypes = type.contextTypes;
  43809. if (!contextTypes) {
  43810. return emptyContextObject;
  43811. }
  43812. // Avoid recreating masked context unless unmasked context has changed.
  43813. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  43814. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  43815. var instance = workInProgress.stateNode;
  43816. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  43817. return instance.__reactInternalMemoizedMaskedChildContext;
  43818. }
  43819. var context = {};
  43820. for (var key in contextTypes) {
  43821. context[key] = unmaskedContext[key];
  43822. }
  43823. {
  43824. var name = getComponentName(type) || 'Unknown';
  43825. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  43826. }
  43827. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  43828. // Context is created before the class component is instantiated so check for instance.
  43829. if (instance) {
  43830. cacheContext(workInProgress, unmaskedContext, context);
  43831. }
  43832. return context;
  43833. }
  43834. }
  43835. function hasContextChanged() {
  43836. if (disableLegacyContext) {
  43837. return false;
  43838. } else {
  43839. return didPerformWorkStackCursor.current;
  43840. }
  43841. }
  43842. function isContextProvider(type) {
  43843. if (disableLegacyContext) {
  43844. return false;
  43845. } else {
  43846. var childContextTypes = type.childContextTypes;
  43847. return childContextTypes !== null && childContextTypes !== undefined;
  43848. }
  43849. }
  43850. function popContext(fiber) {
  43851. if (disableLegacyContext) {
  43852. return;
  43853. } else {
  43854. pop(didPerformWorkStackCursor, fiber);
  43855. pop(contextStackCursor, fiber);
  43856. }
  43857. }
  43858. function popTopLevelContextObject(fiber) {
  43859. if (disableLegacyContext) {
  43860. return;
  43861. } else {
  43862. pop(didPerformWorkStackCursor, fiber);
  43863. pop(contextStackCursor, fiber);
  43864. }
  43865. }
  43866. function pushTopLevelContextObject(fiber, context, didChange) {
  43867. if (disableLegacyContext) {
  43868. return;
  43869. } else {
  43870. (function () {
  43871. if (!(contextStackCursor.current === emptyContextObject)) {
  43872. {
  43873. throw ReactError(Error('Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.'));
  43874. }
  43875. }
  43876. })();
  43877. push(contextStackCursor, context, fiber);
  43878. push(didPerformWorkStackCursor, didChange, fiber);
  43879. }
  43880. }
  43881. function processChildContext(fiber, type, parentContext) {
  43882. if (disableLegacyContext) {
  43883. return parentContext;
  43884. } else {
  43885. var instance = fiber.stateNode;
  43886. var childContextTypes = type.childContextTypes;
  43887. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  43888. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  43889. if (typeof instance.getChildContext !== 'function') {
  43890. {
  43891. var componentName = getComponentName(type) || 'Unknown';
  43892. if (!warnedAboutMissingGetChildContext[componentName]) {
  43893. warnedAboutMissingGetChildContext[componentName] = true;
  43894. 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);
  43895. }
  43896. }
  43897. return parentContext;
  43898. }
  43899. var childContext = void 0;
  43900. {
  43901. setCurrentPhase('getChildContext');
  43902. }
  43903. startPhaseTimer(fiber, 'getChildContext');
  43904. childContext = instance.getChildContext();
  43905. stopPhaseTimer();
  43906. {
  43907. setCurrentPhase(null);
  43908. }
  43909. for (var contextKey in childContext) {
  43910. (function () {
  43911. if (!(contextKey in childContextTypes)) {
  43912. {
  43913. throw ReactError(Error((getComponentName(type) || 'Unknown') + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'));
  43914. }
  43915. }
  43916. })();
  43917. }
  43918. {
  43919. var name = getComponentName(type) || 'Unknown';
  43920. checkPropTypes(childContextTypes, childContext, 'child context', name,
  43921. // In practice, there is one case in which we won't get a stack. It's when
  43922. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  43923. // context from the parent component instance. The stack will be missing
  43924. // because it's outside of the reconciliation, and so the pointer has not
  43925. // been set. This is rare and doesn't matter. We'll also remove that API.
  43926. getCurrentFiberStackInDev);
  43927. }
  43928. return _assign({}, parentContext, childContext);
  43929. }
  43930. }
  43931. function pushContextProvider(workInProgress) {
  43932. if (disableLegacyContext) {
  43933. return false;
  43934. } else {
  43935. var instance = workInProgress.stateNode;
  43936. // We push the context as early as possible to ensure stack integrity.
  43937. // If the instance does not exist yet, we will push null at first,
  43938. // and replace it on the stack later when invalidating the context.
  43939. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  43940. // Remember the parent context so we can merge with it later.
  43941. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  43942. previousContext = contextStackCursor.current;
  43943. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  43944. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  43945. return true;
  43946. }
  43947. }
  43948. function invalidateContextProvider(workInProgress, type, didChange) {
  43949. if (disableLegacyContext) {
  43950. return;
  43951. } else {
  43952. var instance = workInProgress.stateNode;
  43953. (function () {
  43954. if (!instance) {
  43955. {
  43956. throw ReactError(Error('Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.'));
  43957. }
  43958. }
  43959. })();
  43960. if (didChange) {
  43961. // Merge parent and own context.
  43962. // Skip this if we're not updating due to sCU.
  43963. // This avoids unnecessarily recomputing memoized values.
  43964. var mergedContext = processChildContext(workInProgress, type, previousContext);
  43965. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  43966. // Replace the old (or empty) context with the new one.
  43967. // It is important to unwind the context in the reverse order.
  43968. pop(didPerformWorkStackCursor, workInProgress);
  43969. pop(contextStackCursor, workInProgress);
  43970. // Now push the new context and mark that it has changed.
  43971. push(contextStackCursor, mergedContext, workInProgress);
  43972. push(didPerformWorkStackCursor, didChange, workInProgress);
  43973. } else {
  43974. pop(didPerformWorkStackCursor, workInProgress);
  43975. push(didPerformWorkStackCursor, didChange, workInProgress);
  43976. }
  43977. }
  43978. }
  43979. function findCurrentUnmaskedContext(fiber) {
  43980. if (disableLegacyContext) {
  43981. return emptyContextObject;
  43982. } else {
  43983. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  43984. // makes sense elsewhere
  43985. (function () {
  43986. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  43987. {
  43988. throw ReactError(Error('Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.'));
  43989. }
  43990. }
  43991. })();
  43992. var node = fiber;
  43993. do {
  43994. switch (node.tag) {
  43995. case HostRoot:
  43996. return node.stateNode.context;
  43997. case ClassComponent:
  43998. {
  43999. var Component = node.type;
  44000. if (isContextProvider(Component)) {
  44001. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  44002. }
  44003. break;
  44004. }
  44005. }
  44006. node = node.return;
  44007. } while (node !== null);
  44008. (function () {
  44009. {
  44010. {
  44011. throw ReactError(Error('Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.'));
  44012. }
  44013. }
  44014. })();
  44015. }
  44016. }
  44017. var LegacyRoot = 0;
  44018. var BatchedRoot = 1;
  44019. var ConcurrentRoot = 2;
  44020. // Intentionally not named imports because Rollup would use dynamic dispatch for
  44021. // CommonJS interop named imports.
  44022. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority;
  44023. var Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback;
  44024. var Scheduler_cancelCallback = Scheduler.unstable_cancelCallback;
  44025. var Scheduler_shouldYield = Scheduler.unstable_shouldYield;
  44026. var Scheduler_requestPaint = Scheduler.unstable_requestPaint;
  44027. var Scheduler_now = Scheduler.unstable_now;
  44028. var Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
  44029. var Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority;
  44030. var Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  44031. var Scheduler_NormalPriority = Scheduler.unstable_NormalPriority;
  44032. var Scheduler_LowPriority = Scheduler.unstable_LowPriority;
  44033. var Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  44034. if (enableSchedulerTracing) {
  44035. // Provide explicit error message when production+profiling bundle of e.g.
  44036. // react-dom is used with production (non-profiling) bundle of
  44037. // scheduler/tracing
  44038. (function () {
  44039. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  44040. {
  44041. throw ReactError(Error('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'));
  44042. }
  44043. }
  44044. })();
  44045. }
  44046. var fakeCallbackNode = {};
  44047. // Except for NoPriority, these correspond to Scheduler priorities. We use
  44048. // ascending numbers so we can compare them like numbers. They start at 90 to
  44049. // avoid clashing with Scheduler's priorities.
  44050. var ImmediatePriority = 99;
  44051. var UserBlockingPriority$2 = 98;
  44052. var NormalPriority = 97;
  44053. var LowPriority = 96;
  44054. var IdlePriority = 95;
  44055. // NoPriority is the absence of priority. Also React-only.
  44056. var NoPriority = 90;
  44057. var shouldYield = Scheduler_shouldYield;
  44058. var requestPaint =
  44059. // Fall back gracefully if we're running an older version of Scheduler.
  44060. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  44061. var syncQueue = null;
  44062. var immediateQueueCallbackNode = null;
  44063. var isFlushingSyncQueue = false;
  44064. var initialTimeMs = Scheduler_now();
  44065. // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  44066. // This will be the case for modern browsers that support `performance.now`. In
  44067. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  44068. // timestamp. In that case, subtract the module initialization time to simulate
  44069. // the behavior of performance.now and keep our times small enough to fit
  44070. // within 32 bits.
  44071. // TODO: Consider lifting this into Scheduler.
  44072. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  44073. return Scheduler_now() - initialTimeMs;
  44074. };
  44075. function getCurrentPriorityLevel() {
  44076. switch (Scheduler_getCurrentPriorityLevel()) {
  44077. case Scheduler_ImmediatePriority:
  44078. return ImmediatePriority;
  44079. case Scheduler_UserBlockingPriority:
  44080. return UserBlockingPriority$2;
  44081. case Scheduler_NormalPriority:
  44082. return NormalPriority;
  44083. case Scheduler_LowPriority:
  44084. return LowPriority;
  44085. case Scheduler_IdlePriority:
  44086. return IdlePriority;
  44087. default:
  44088. (function () {
  44089. {
  44090. {
  44091. throw ReactError(Error('Unknown priority level.'));
  44092. }
  44093. }
  44094. })();
  44095. }
  44096. }
  44097. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  44098. switch (reactPriorityLevel) {
  44099. case ImmediatePriority:
  44100. return Scheduler_ImmediatePriority;
  44101. case UserBlockingPriority$2:
  44102. return Scheduler_UserBlockingPriority;
  44103. case NormalPriority:
  44104. return Scheduler_NormalPriority;
  44105. case LowPriority:
  44106. return Scheduler_LowPriority;
  44107. case IdlePriority:
  44108. return Scheduler_IdlePriority;
  44109. default:
  44110. (function () {
  44111. {
  44112. {
  44113. throw ReactError(Error('Unknown priority level.'));
  44114. }
  44115. }
  44116. })();
  44117. }
  44118. }
  44119. function runWithPriority$2(reactPriorityLevel, fn) {
  44120. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  44121. return Scheduler_runWithPriority(priorityLevel, fn);
  44122. }
  44123. function scheduleCallback(reactPriorityLevel, callback, options) {
  44124. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  44125. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  44126. }
  44127. function scheduleSyncCallback(callback) {
  44128. // Push this callback into an internal queue. We'll flush these either in
  44129. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  44130. if (syncQueue === null) {
  44131. syncQueue = [callback];
  44132. // Flush the queue in the next tick, at the earliest.
  44133. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  44134. } else {
  44135. // Push onto existing queue. Don't need to schedule a callback because
  44136. // we already scheduled one when we created the queue.
  44137. syncQueue.push(callback);
  44138. }
  44139. return fakeCallbackNode;
  44140. }
  44141. function cancelCallback(callbackNode) {
  44142. if (callbackNode !== fakeCallbackNode) {
  44143. Scheduler_cancelCallback(callbackNode);
  44144. }
  44145. }
  44146. function flushSyncCallbackQueue() {
  44147. if (immediateQueueCallbackNode !== null) {
  44148. Scheduler_cancelCallback(immediateQueueCallbackNode);
  44149. }
  44150. flushSyncCallbackQueueImpl();
  44151. }
  44152. function flushSyncCallbackQueueImpl() {
  44153. if (!isFlushingSyncQueue && syncQueue !== null) {
  44154. // Prevent re-entrancy.
  44155. isFlushingSyncQueue = true;
  44156. var i = 0;
  44157. try {
  44158. var _isSync = true;
  44159. var queue = syncQueue;
  44160. runWithPriority$2(ImmediatePriority, function () {
  44161. for (; i < queue.length; i++) {
  44162. var callback = queue[i];
  44163. do {
  44164. callback = callback(_isSync);
  44165. } while (callback !== null);
  44166. }
  44167. });
  44168. syncQueue = null;
  44169. } catch (error) {
  44170. // If something throws, leave the remaining callbacks on the queue.
  44171. if (syncQueue !== null) {
  44172. syncQueue = syncQueue.slice(i + 1);
  44173. }
  44174. // Resume flushing in the next tick
  44175. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  44176. throw error;
  44177. } finally {
  44178. isFlushingSyncQueue = false;
  44179. }
  44180. }
  44181. }
  44182. var NoMode = 0;
  44183. var StrictMode = 1;
  44184. // TODO: Remove BatchedMode and ConcurrentMode by reading from the root
  44185. // tag instead
  44186. var BatchedMode = 2;
  44187. var ConcurrentMode = 4;
  44188. var ProfileMode = 8;
  44189. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  44190. // Math.pow(2, 30) - 1
  44191. // 0b111111111111111111111111111111
  44192. var MAX_SIGNED_31_BIT_INT = 1073741823;
  44193. var NoWork = 0;
  44194. var Never = 1;
  44195. var Sync = MAX_SIGNED_31_BIT_INT;
  44196. var Batched = Sync - 1;
  44197. var UNIT_SIZE = 10;
  44198. var MAGIC_NUMBER_OFFSET = Batched - 1;
  44199. // 1 unit of expiration time represents 10ms.
  44200. function msToExpirationTime(ms) {
  44201. // Always add an offset so that we don't clash with the magic number for NoWork.
  44202. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  44203. }
  44204. function expirationTimeToMs(expirationTime) {
  44205. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  44206. }
  44207. function ceiling(num, precision) {
  44208. return ((num / precision | 0) + 1) * precision;
  44209. }
  44210. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  44211. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  44212. }
  44213. // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  44214. // the names to reflect.
  44215. var LOW_PRIORITY_EXPIRATION = 5000;
  44216. var LOW_PRIORITY_BATCH_SIZE = 250;
  44217. function computeAsyncExpiration(currentTime) {
  44218. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  44219. }
  44220. function computeSuspenseExpiration(currentTime, timeoutMs) {
  44221. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  44222. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  44223. }
  44224. // We intentionally set a higher expiration time for interactive updates in
  44225. // dev than in production.
  44226. //
  44227. // If the main thread is being blocked so long that you hit the expiration,
  44228. // it's a problem that could be solved with better scheduling.
  44229. //
  44230. // People will be more likely to notice this and fix it with the long
  44231. // expiration time in development.
  44232. //
  44233. // In production we opt for better UX at the risk of masking scheduling
  44234. // problems, by expiring fast.
  44235. var HIGH_PRIORITY_EXPIRATION = 500;
  44236. var HIGH_PRIORITY_BATCH_SIZE = 100;
  44237. function computeInteractiveExpiration(currentTime) {
  44238. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  44239. }
  44240. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  44241. if (expirationTime === Sync) {
  44242. return ImmediatePriority;
  44243. }
  44244. if (expirationTime === Never) {
  44245. return IdlePriority;
  44246. }
  44247. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  44248. if (msUntil <= 0) {
  44249. return ImmediatePriority;
  44250. }
  44251. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  44252. return UserBlockingPriority$2;
  44253. }
  44254. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  44255. return NormalPriority;
  44256. }
  44257. // TODO: Handle LowPriority
  44258. // Assume anything lower has idle priority
  44259. return IdlePriority;
  44260. }
  44261. /**
  44262. * Forked from fbjs/warning:
  44263. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  44264. *
  44265. * Only change is we use console.warn instead of console.error,
  44266. * and do nothing when 'console' is not supported.
  44267. * This really simplifies the code.
  44268. * ---
  44269. * Similar to invariant but only logs a warning if the condition is not met.
  44270. * This can be used to log issues in development environments in critical
  44271. * paths. Removing the logging code for production environments will keep the
  44272. * same logic and follow the same code paths.
  44273. */
  44274. var lowPriorityWarning = function () {};
  44275. {
  44276. var printWarning = function (format) {
  44277. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  44278. args[_key - 1] = arguments[_key];
  44279. }
  44280. var argIndex = 0;
  44281. var message = 'Warning: ' + format.replace(/%s/g, function () {
  44282. return args[argIndex++];
  44283. });
  44284. if (typeof console !== 'undefined') {
  44285. console.warn(message);
  44286. }
  44287. try {
  44288. // --- Welcome to debugging React ---
  44289. // This error was thrown as a convenience so that you can use this stack
  44290. // to find the callsite that caused this warning to fire.
  44291. throw new Error(message);
  44292. } catch (x) {}
  44293. };
  44294. lowPriorityWarning = function (condition, format) {
  44295. if (format === undefined) {
  44296. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  44297. }
  44298. if (!condition) {
  44299. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  44300. args[_key2 - 2] = arguments[_key2];
  44301. }
  44302. printWarning.apply(undefined, [format].concat(args));
  44303. }
  44304. };
  44305. }
  44306. var lowPriorityWarning$1 = lowPriorityWarning;
  44307. var ReactStrictModeWarnings = {
  44308. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  44309. flushPendingUnsafeLifecycleWarnings: function () {},
  44310. recordLegacyContextWarning: function (fiber, instance) {},
  44311. flushLegacyContextWarning: function () {},
  44312. discardPendingWarnings: function () {}
  44313. };
  44314. {
  44315. var findStrictRoot = function (fiber) {
  44316. var maybeStrictRoot = null;
  44317. var node = fiber;
  44318. while (node !== null) {
  44319. if (node.mode & StrictMode) {
  44320. maybeStrictRoot = node;
  44321. }
  44322. node = node.return;
  44323. }
  44324. return maybeStrictRoot;
  44325. };
  44326. var setToSortedString = function (set) {
  44327. var array = [];
  44328. set.forEach(function (value) {
  44329. array.push(value);
  44330. });
  44331. return array.sort().join(', ');
  44332. };
  44333. var pendingComponentWillMountWarnings = [];
  44334. var pendingUNSAFE_ComponentWillMountWarnings = [];
  44335. var pendingComponentWillReceivePropsWarnings = [];
  44336. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  44337. var pendingComponentWillUpdateWarnings = [];
  44338. var pendingUNSAFE_ComponentWillUpdateWarnings = [];
  44339. // Tracks components we have already warned about.
  44340. var didWarnAboutUnsafeLifecycles = new Set();
  44341. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  44342. // Dedup strategy: Warn once per component.
  44343. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  44344. return;
  44345. }
  44346. if (typeof instance.componentWillMount === 'function' &&
  44347. // Don't warn about react-lifecycles-compat polyfilled components.
  44348. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  44349. pendingComponentWillMountWarnings.push(fiber);
  44350. }
  44351. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  44352. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  44353. }
  44354. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  44355. pendingComponentWillReceivePropsWarnings.push(fiber);
  44356. }
  44357. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  44358. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  44359. }
  44360. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  44361. pendingComponentWillUpdateWarnings.push(fiber);
  44362. }
  44363. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  44364. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  44365. }
  44366. };
  44367. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  44368. // We do an initial pass to gather component names
  44369. var componentWillMountUniqueNames = new Set();
  44370. if (pendingComponentWillMountWarnings.length > 0) {
  44371. pendingComponentWillMountWarnings.forEach(function (fiber) {
  44372. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44373. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44374. });
  44375. pendingComponentWillMountWarnings = [];
  44376. }
  44377. var UNSAFE_componentWillMountUniqueNames = new Set();
  44378. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  44379. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  44380. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44381. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44382. });
  44383. pendingUNSAFE_ComponentWillMountWarnings = [];
  44384. }
  44385. var componentWillReceivePropsUniqueNames = new Set();
  44386. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  44387. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  44388. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44389. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44390. });
  44391. pendingComponentWillReceivePropsWarnings = [];
  44392. }
  44393. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  44394. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  44395. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  44396. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44397. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44398. });
  44399. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  44400. }
  44401. var componentWillUpdateUniqueNames = new Set();
  44402. if (pendingComponentWillUpdateWarnings.length > 0) {
  44403. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  44404. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44405. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44406. });
  44407. pendingComponentWillUpdateWarnings = [];
  44408. }
  44409. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  44410. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  44411. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  44412. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44413. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44414. });
  44415. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  44416. }
  44417. // Finally, we flush all the warnings
  44418. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  44419. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  44420. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  44421. warningWithoutStack$1(false, 'Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
  44422. }
  44423. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  44424. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  44425. warningWithoutStack$1(false, 'Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
  44426. }
  44427. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  44428. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  44429. warningWithoutStack$1(false, 'Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
  44430. }
  44431. if (componentWillMountUniqueNames.size > 0) {
  44432. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  44433. lowPriorityWarning$1(false, 'componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
  44434. }
  44435. if (componentWillReceivePropsUniqueNames.size > 0) {
  44436. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  44437. lowPriorityWarning$1(false, 'componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
  44438. }
  44439. if (componentWillUpdateUniqueNames.size > 0) {
  44440. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  44441. lowPriorityWarning$1(false, 'componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
  44442. }
  44443. };
  44444. var pendingLegacyContextWarning = new Map();
  44445. // Tracks components we have already warned about.
  44446. var didWarnAboutLegacyContext = new Set();
  44447. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  44448. var strictRoot = findStrictRoot(fiber);
  44449. if (strictRoot === null) {
  44450. 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.');
  44451. return;
  44452. }
  44453. // Dedup strategy: Warn once per component.
  44454. if (didWarnAboutLegacyContext.has(fiber.type)) {
  44455. return;
  44456. }
  44457. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  44458. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  44459. if (warningsForRoot === undefined) {
  44460. warningsForRoot = [];
  44461. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  44462. }
  44463. warningsForRoot.push(fiber);
  44464. }
  44465. };
  44466. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  44467. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  44468. var uniqueNames = new Set();
  44469. fiberArray.forEach(function (fiber) {
  44470. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  44471. didWarnAboutLegacyContext.add(fiber.type);
  44472. });
  44473. var sortedNames = setToSortedString(uniqueNames);
  44474. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  44475. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-legacy-context', strictRootComponentStack, sortedNames);
  44476. });
  44477. };
  44478. ReactStrictModeWarnings.discardPendingWarnings = function () {
  44479. pendingComponentWillMountWarnings = [];
  44480. pendingUNSAFE_ComponentWillMountWarnings = [];
  44481. pendingComponentWillReceivePropsWarnings = [];
  44482. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  44483. pendingComponentWillUpdateWarnings = [];
  44484. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  44485. pendingLegacyContextWarning = new Map();
  44486. };
  44487. }
  44488. // Resolves type to a family.
  44489. // Used by React Refresh runtime through DevTools Global Hook.
  44490. var resolveFamily = null;
  44491. // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  44492. var failedBoundaries = null;
  44493. var setRefreshHandler = function (handler) {
  44494. {
  44495. resolveFamily = handler;
  44496. }
  44497. };
  44498. function resolveFunctionForHotReloading(type) {
  44499. {
  44500. if (resolveFamily === null) {
  44501. // Hot reloading is disabled.
  44502. return type;
  44503. }
  44504. var family = resolveFamily(type);
  44505. if (family === undefined) {
  44506. return type;
  44507. }
  44508. // Use the latest known implementation.
  44509. return family.current;
  44510. }
  44511. }
  44512. function resolveClassForHotReloading(type) {
  44513. // No implementation differences.
  44514. return resolveFunctionForHotReloading(type);
  44515. }
  44516. function resolveForwardRefForHotReloading(type) {
  44517. {
  44518. if (resolveFamily === null) {
  44519. // Hot reloading is disabled.
  44520. return type;
  44521. }
  44522. var family = resolveFamily(type);
  44523. if (family === undefined) {
  44524. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  44525. if (type !== null && type !== undefined && typeof type.render === 'function') {
  44526. // ForwardRef is special because its resolved .type is an object,
  44527. // but it's possible that we only have its inner render function in the map.
  44528. // If that inner render function is different, we'll build a new forwardRef type.
  44529. var currentRender = resolveFunctionForHotReloading(type.render);
  44530. if (type.render !== currentRender) {
  44531. var syntheticType = {
  44532. $$typeof: REACT_FORWARD_REF_TYPE,
  44533. render: currentRender
  44534. };
  44535. if (type.displayName !== undefined) {
  44536. syntheticType.displayName = type.displayName;
  44537. }
  44538. return syntheticType;
  44539. }
  44540. }
  44541. return type;
  44542. }
  44543. // Use the latest known implementation.
  44544. return family.current;
  44545. }
  44546. }
  44547. function isCompatibleFamilyForHotReloading(fiber, element) {
  44548. {
  44549. if (resolveFamily === null) {
  44550. // Hot reloading is disabled.
  44551. return false;
  44552. }
  44553. var prevType = fiber.elementType;
  44554. var nextType = element.type;
  44555. // If we got here, we know types aren't === equal.
  44556. var needsCompareFamilies = false;
  44557. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  44558. switch (fiber.tag) {
  44559. case ClassComponent:
  44560. {
  44561. if (typeof nextType === 'function') {
  44562. needsCompareFamilies = true;
  44563. }
  44564. break;
  44565. }
  44566. case FunctionComponent:
  44567. {
  44568. if (typeof nextType === 'function') {
  44569. needsCompareFamilies = true;
  44570. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  44571. // We don't know the inner type yet.
  44572. // We're going to assume that the lazy inner type is stable,
  44573. // and so it is sufficient to avoid reconciling it away.
  44574. // We're not going to unwrap or actually use the new lazy type.
  44575. needsCompareFamilies = true;
  44576. }
  44577. break;
  44578. }
  44579. case ForwardRef:
  44580. {
  44581. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  44582. needsCompareFamilies = true;
  44583. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  44584. needsCompareFamilies = true;
  44585. }
  44586. break;
  44587. }
  44588. case MemoComponent:
  44589. case SimpleMemoComponent:
  44590. {
  44591. if ($$typeofNextType === REACT_MEMO_TYPE) {
  44592. // TODO: if it was but can no longer be simple,
  44593. // we shouldn't set this.
  44594. needsCompareFamilies = true;
  44595. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  44596. needsCompareFamilies = true;
  44597. }
  44598. break;
  44599. }
  44600. default:
  44601. return false;
  44602. }
  44603. // Check if both types have a family and it's the same one.
  44604. if (needsCompareFamilies) {
  44605. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  44606. // This means both of them need to be registered to preserve state.
  44607. // If we unwrapped and compared the inner types for wrappers instead,
  44608. // then we would risk falsely saying two separate memo(Foo)
  44609. // calls are equivalent because they wrap the same Foo function.
  44610. var prevFamily = resolveFamily(prevType);
  44611. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  44612. return true;
  44613. }
  44614. }
  44615. return false;
  44616. }
  44617. }
  44618. function markFailedErrorBoundaryForHotReloading(fiber) {
  44619. {
  44620. if (resolveFamily === null) {
  44621. // Hot reloading is disabled.
  44622. return;
  44623. }
  44624. if (typeof WeakSet !== 'function') {
  44625. return;
  44626. }
  44627. if (failedBoundaries === null) {
  44628. failedBoundaries = new WeakSet();
  44629. }
  44630. failedBoundaries.add(fiber);
  44631. }
  44632. }
  44633. var scheduleRefresh = function (root, update) {
  44634. {
  44635. if (resolveFamily === null) {
  44636. // Hot reloading is disabled.
  44637. return;
  44638. }
  44639. var _staleFamilies = update.staleFamilies,
  44640. _updatedFamilies = update.updatedFamilies;
  44641. flushPassiveEffects();
  44642. flushSync(function () {
  44643. scheduleFibersWithFamiliesRecursively(root.current, _updatedFamilies, _staleFamilies);
  44644. });
  44645. }
  44646. };
  44647. var scheduleRoot = function (root, element) {
  44648. {
  44649. if (root.context !== emptyContextObject) {
  44650. // Super edge case: root has a legacy _renderSubtree context
  44651. // but we don't know the parentComponent so we can't pass it.
  44652. // Just ignore. We'll delete this with _renderSubtree code path later.
  44653. return;
  44654. }
  44655. flushPassiveEffects();
  44656. updateContainerAtExpirationTime(element, root, null, Sync, null);
  44657. }
  44658. };
  44659. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  44660. {
  44661. var alternate = fiber.alternate,
  44662. child = fiber.child,
  44663. sibling = fiber.sibling,
  44664. tag = fiber.tag,
  44665. type = fiber.type;
  44666. var candidateType = null;
  44667. switch (tag) {
  44668. case FunctionComponent:
  44669. case SimpleMemoComponent:
  44670. case ClassComponent:
  44671. candidateType = type;
  44672. break;
  44673. case ForwardRef:
  44674. candidateType = type.render;
  44675. break;
  44676. default:
  44677. break;
  44678. }
  44679. if (resolveFamily === null) {
  44680. throw new Error('Expected resolveFamily to be set during hot reload.');
  44681. }
  44682. var needsRender = false;
  44683. var needsRemount = false;
  44684. if (candidateType !== null) {
  44685. var family = resolveFamily(candidateType);
  44686. if (family !== undefined) {
  44687. if (staleFamilies.has(family)) {
  44688. needsRemount = true;
  44689. } else if (updatedFamilies.has(family)) {
  44690. needsRender = true;
  44691. }
  44692. }
  44693. }
  44694. if (failedBoundaries !== null) {
  44695. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  44696. needsRemount = true;
  44697. }
  44698. }
  44699. if (needsRemount) {
  44700. fiber._debugNeedsRemount = true;
  44701. }
  44702. if (needsRemount || needsRender) {
  44703. scheduleWork(fiber, Sync);
  44704. }
  44705. if (child !== null && !needsRemount) {
  44706. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  44707. }
  44708. if (sibling !== null) {
  44709. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  44710. }
  44711. }
  44712. }
  44713. var findHostInstancesForRefresh = function (root, families) {
  44714. {
  44715. var hostInstances = new Set();
  44716. var types = new Set(families.map(function (family) {
  44717. return family.current;
  44718. }));
  44719. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  44720. return hostInstances;
  44721. }
  44722. };
  44723. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  44724. {
  44725. var child = fiber.child,
  44726. sibling = fiber.sibling,
  44727. tag = fiber.tag,
  44728. type = fiber.type;
  44729. var candidateType = null;
  44730. switch (tag) {
  44731. case FunctionComponent:
  44732. case SimpleMemoComponent:
  44733. case ClassComponent:
  44734. candidateType = type;
  44735. break;
  44736. case ForwardRef:
  44737. candidateType = type.render;
  44738. break;
  44739. default:
  44740. break;
  44741. }
  44742. var didMatch = false;
  44743. if (candidateType !== null) {
  44744. if (types.has(candidateType)) {
  44745. didMatch = true;
  44746. }
  44747. }
  44748. if (didMatch) {
  44749. // We have a match. This only drills down to the closest host components.
  44750. // There's no need to search deeper because for the purpose of giving
  44751. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  44752. findHostInstancesForFiberShallowly(fiber, hostInstances);
  44753. } else {
  44754. // If there's no match, maybe there will be one further down in the child tree.
  44755. if (child !== null) {
  44756. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  44757. }
  44758. }
  44759. if (sibling !== null) {
  44760. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  44761. }
  44762. }
  44763. }
  44764. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  44765. {
  44766. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  44767. if (foundHostInstances) {
  44768. return;
  44769. }
  44770. // If we didn't find any host children, fallback to closest host parent.
  44771. var node = fiber;
  44772. while (true) {
  44773. switch (node.tag) {
  44774. case HostComponent:
  44775. hostInstances.add(node.stateNode);
  44776. return;
  44777. case HostPortal:
  44778. hostInstances.add(node.stateNode.containerInfo);
  44779. return;
  44780. case HostRoot:
  44781. hostInstances.add(node.stateNode.containerInfo);
  44782. return;
  44783. }
  44784. if (node.return === null) {
  44785. throw new Error('Expected to reach root first.');
  44786. }
  44787. node = node.return;
  44788. }
  44789. }
  44790. }
  44791. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  44792. {
  44793. var node = fiber;
  44794. var foundHostInstances = false;
  44795. while (true) {
  44796. if (node.tag === HostComponent) {
  44797. // We got a match.
  44798. foundHostInstances = true;
  44799. hostInstances.add(node.stateNode);
  44800. // There may still be more, so keep searching.
  44801. } else if (node.child !== null) {
  44802. node.child.return = node;
  44803. node = node.child;
  44804. continue;
  44805. }
  44806. if (node === fiber) {
  44807. return foundHostInstances;
  44808. }
  44809. while (node.sibling === null) {
  44810. if (node.return === null || node.return === fiber) {
  44811. return foundHostInstances;
  44812. }
  44813. node = node.return;
  44814. }
  44815. node.sibling.return = node.return;
  44816. node = node.sibling;
  44817. }
  44818. }
  44819. return false;
  44820. }
  44821. function resolveDefaultProps(Component, baseProps) {
  44822. if (Component && Component.defaultProps) {
  44823. // Resolve default props. Taken from ReactElement
  44824. var props = _assign({}, baseProps);
  44825. var defaultProps = Component.defaultProps;
  44826. for (var propName in defaultProps) {
  44827. if (props[propName] === undefined) {
  44828. props[propName] = defaultProps[propName];
  44829. }
  44830. }
  44831. return props;
  44832. }
  44833. return baseProps;
  44834. }
  44835. function readLazyComponentType(lazyComponent) {
  44836. var status = lazyComponent._status;
  44837. var result = lazyComponent._result;
  44838. switch (status) {
  44839. case Resolved:
  44840. {
  44841. var Component = result;
  44842. return Component;
  44843. }
  44844. case Rejected:
  44845. {
  44846. var error = result;
  44847. throw error;
  44848. }
  44849. case Pending:
  44850. {
  44851. var thenable = result;
  44852. throw thenable;
  44853. }
  44854. default:
  44855. {
  44856. lazyComponent._status = Pending;
  44857. var ctor = lazyComponent._ctor;
  44858. var _thenable = ctor();
  44859. _thenable.then(function (moduleObject) {
  44860. if (lazyComponent._status === Pending) {
  44861. var defaultExport = moduleObject.default;
  44862. {
  44863. if (defaultExport === undefined) {
  44864. 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);
  44865. }
  44866. }
  44867. lazyComponent._status = Resolved;
  44868. lazyComponent._result = defaultExport;
  44869. }
  44870. }, function (error) {
  44871. if (lazyComponent._status === Pending) {
  44872. lazyComponent._status = Rejected;
  44873. lazyComponent._result = error;
  44874. }
  44875. });
  44876. // Handle synchronous thenables.
  44877. switch (lazyComponent._status) {
  44878. case Resolved:
  44879. return lazyComponent._result;
  44880. case Rejected:
  44881. throw lazyComponent._result;
  44882. }
  44883. lazyComponent._result = _thenable;
  44884. throw _thenable;
  44885. }
  44886. }
  44887. }
  44888. var valueCursor = createCursor(null);
  44889. var rendererSigil = void 0;
  44890. {
  44891. // Use this to detect multiple renderers using the same context
  44892. rendererSigil = {};
  44893. }
  44894. var currentlyRenderingFiber = null;
  44895. var lastContextDependency = null;
  44896. var lastContextWithAllBitsObserved = null;
  44897. var isDisallowedContextReadInDEV = false;
  44898. function resetContextDependencies() {
  44899. // This is called right before React yields execution, to ensure `readContext`
  44900. // cannot be called outside the render phase.
  44901. currentlyRenderingFiber = null;
  44902. lastContextDependency = null;
  44903. lastContextWithAllBitsObserved = null;
  44904. {
  44905. isDisallowedContextReadInDEV = false;
  44906. }
  44907. }
  44908. function enterDisallowedContextReadInDEV() {
  44909. {
  44910. isDisallowedContextReadInDEV = true;
  44911. }
  44912. }
  44913. function exitDisallowedContextReadInDEV() {
  44914. {
  44915. isDisallowedContextReadInDEV = false;
  44916. }
  44917. }
  44918. function pushProvider(providerFiber, nextValue) {
  44919. var context = providerFiber.type._context;
  44920. if (isPrimaryRenderer) {
  44921. push(valueCursor, context._currentValue, providerFiber);
  44922. context._currentValue = nextValue;
  44923. {
  44924. !(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;
  44925. context._currentRenderer = rendererSigil;
  44926. }
  44927. } else {
  44928. push(valueCursor, context._currentValue2, providerFiber);
  44929. context._currentValue2 = nextValue;
  44930. {
  44931. !(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;
  44932. context._currentRenderer2 = rendererSigil;
  44933. }
  44934. }
  44935. }
  44936. function popProvider(providerFiber) {
  44937. var currentValue = valueCursor.current;
  44938. pop(valueCursor, providerFiber);
  44939. var context = providerFiber.type._context;
  44940. if (isPrimaryRenderer) {
  44941. context._currentValue = currentValue;
  44942. } else {
  44943. context._currentValue2 = currentValue;
  44944. }
  44945. }
  44946. function calculateChangedBits(context, newValue, oldValue) {
  44947. if (is(oldValue, newValue)) {
  44948. // No change
  44949. return 0;
  44950. } else {
  44951. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  44952. {
  44953. !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  44954. }
  44955. return changedBits | 0;
  44956. }
  44957. }
  44958. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  44959. // Update the child expiration time of all the ancestors, including
  44960. // the alternates.
  44961. var node = parent;
  44962. while (node !== null) {
  44963. var alternate = node.alternate;
  44964. if (node.childExpirationTime < renderExpirationTime) {
  44965. node.childExpirationTime = renderExpirationTime;
  44966. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44967. alternate.childExpirationTime = renderExpirationTime;
  44968. }
  44969. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44970. alternate.childExpirationTime = renderExpirationTime;
  44971. } else {
  44972. // Neither alternate was updated, which means the rest of the
  44973. // ancestor path already has sufficient priority.
  44974. break;
  44975. }
  44976. node = node.return;
  44977. }
  44978. }
  44979. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  44980. var fiber = workInProgress.child;
  44981. if (fiber !== null) {
  44982. // Set the return pointer of the child to the work-in-progress fiber.
  44983. fiber.return = workInProgress;
  44984. }
  44985. while (fiber !== null) {
  44986. var nextFiber = void 0;
  44987. // Visit this fiber.
  44988. var list = fiber.dependencies;
  44989. if (list !== null) {
  44990. nextFiber = fiber.child;
  44991. var dependency = list.firstContext;
  44992. while (dependency !== null) {
  44993. // Check if the context matches.
  44994. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  44995. // Match! Schedule an update on this fiber.
  44996. if (fiber.tag === ClassComponent) {
  44997. // Schedule a force update on the work-in-progress.
  44998. var update = createUpdate(renderExpirationTime, null);
  44999. update.tag = ForceUpdate;
  45000. // TODO: Because we don't have a work-in-progress, this will add the
  45001. // update to the current fiber, too, which means it will persist even if
  45002. // this render is thrown away. Since it's a race condition, not sure it's
  45003. // worth fixing.
  45004. enqueueUpdate(fiber, update);
  45005. }
  45006. if (fiber.expirationTime < renderExpirationTime) {
  45007. fiber.expirationTime = renderExpirationTime;
  45008. }
  45009. var alternate = fiber.alternate;
  45010. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  45011. alternate.expirationTime = renderExpirationTime;
  45012. }
  45013. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  45014. // Mark the expiration time on the list, too.
  45015. if (list.expirationTime < renderExpirationTime) {
  45016. list.expirationTime = renderExpirationTime;
  45017. }
  45018. // Since we already found a match, we can stop traversing the
  45019. // dependency list.
  45020. break;
  45021. }
  45022. dependency = dependency.next;
  45023. }
  45024. } else if (fiber.tag === ContextProvider) {
  45025. // Don't scan deeper if this is a matching provider
  45026. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  45027. } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) {
  45028. // If a dehydrated suspense component is in this subtree, we don't know
  45029. // if it will have any context consumers in it. The best we can do is
  45030. // mark it as having updates on its children.
  45031. if (fiber.expirationTime < renderExpirationTime) {
  45032. fiber.expirationTime = renderExpirationTime;
  45033. }
  45034. var _alternate = fiber.alternate;
  45035. if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) {
  45036. _alternate.expirationTime = renderExpirationTime;
  45037. }
  45038. // This is intentionally passing this fiber as the parent
  45039. // because we want to schedule this fiber as having work
  45040. // on its children. We'll use the childExpirationTime on
  45041. // this fiber to indicate that a context has changed.
  45042. scheduleWorkOnParentPath(fiber, renderExpirationTime);
  45043. nextFiber = fiber.sibling;
  45044. } else {
  45045. // Traverse down.
  45046. nextFiber = fiber.child;
  45047. }
  45048. if (nextFiber !== null) {
  45049. // Set the return pointer of the child to the work-in-progress fiber.
  45050. nextFiber.return = fiber;
  45051. } else {
  45052. // No child. Traverse to next sibling.
  45053. nextFiber = fiber;
  45054. while (nextFiber !== null) {
  45055. if (nextFiber === workInProgress) {
  45056. // We're back to the root of this subtree. Exit.
  45057. nextFiber = null;
  45058. break;
  45059. }
  45060. var sibling = nextFiber.sibling;
  45061. if (sibling !== null) {
  45062. // Set the return pointer of the sibling to the work-in-progress fiber.
  45063. sibling.return = nextFiber.return;
  45064. nextFiber = sibling;
  45065. break;
  45066. }
  45067. // No more siblings. Traverse up.
  45068. nextFiber = nextFiber.return;
  45069. }
  45070. }
  45071. fiber = nextFiber;
  45072. }
  45073. }
  45074. function prepareToReadContext(workInProgress, renderExpirationTime) {
  45075. currentlyRenderingFiber = workInProgress;
  45076. lastContextDependency = null;
  45077. lastContextWithAllBitsObserved = null;
  45078. var dependencies = workInProgress.dependencies;
  45079. if (dependencies !== null) {
  45080. var firstContext = dependencies.firstContext;
  45081. if (firstContext !== null) {
  45082. if (dependencies.expirationTime >= renderExpirationTime) {
  45083. // Context list has a pending update. Mark that this fiber performed work.
  45084. markWorkInProgressReceivedUpdate();
  45085. }
  45086. // Reset the work-in-progress list
  45087. dependencies.firstContext = null;
  45088. }
  45089. }
  45090. }
  45091. function readContext(context, observedBits) {
  45092. {
  45093. // This warning would fire if you read context inside a Hook like useMemo.
  45094. // Unlike the class check below, it's not enforced in production for perf.
  45095. !!isDisallowedContextReadInDEV ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0;
  45096. }
  45097. if (lastContextWithAllBitsObserved === context) {
  45098. // Nothing to do. We already observe everything in this context.
  45099. } else if (observedBits === false || observedBits === 0) {
  45100. // Do not observe any updates.
  45101. } else {
  45102. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  45103. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  45104. // Observe all updates.
  45105. lastContextWithAllBitsObserved = context;
  45106. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  45107. } else {
  45108. resolvedObservedBits = observedBits;
  45109. }
  45110. var contextItem = {
  45111. context: context,
  45112. observedBits: resolvedObservedBits,
  45113. next: null
  45114. };
  45115. if (lastContextDependency === null) {
  45116. (function () {
  45117. if (!(currentlyRenderingFiber !== null)) {
  45118. {
  45119. throw ReactError(Error('Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().'));
  45120. }
  45121. }
  45122. })();
  45123. // This is the first dependency for this component. Create a new list.
  45124. lastContextDependency = contextItem;
  45125. currentlyRenderingFiber.dependencies = {
  45126. expirationTime: NoWork,
  45127. firstContext: contextItem,
  45128. responders: null
  45129. };
  45130. } else {
  45131. // Append a new context item.
  45132. lastContextDependency = lastContextDependency.next = contextItem;
  45133. }
  45134. }
  45135. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  45136. }
  45137. // UpdateQueue is a linked list of prioritized updates.
  45138. //
  45139. // Like fibers, update queues come in pairs: a current queue, which represents
  45140. // the visible state of the screen, and a work-in-progress queue, which can be
  45141. // mutated and processed asynchronously before it is committed — a form of
  45142. // double buffering. If a work-in-progress render is discarded before finishing,
  45143. // we create a new work-in-progress by cloning the current queue.
  45144. //
  45145. // Both queues share a persistent, singly-linked list structure. To schedule an
  45146. // update, we append it to the end of both queues. Each queue maintains a
  45147. // pointer to first update in the persistent list that hasn't been processed.
  45148. // The work-in-progress pointer always has a position equal to or greater than
  45149. // the current queue, since we always work on that one. The current queue's
  45150. // pointer is only updated during the commit phase, when we swap in the
  45151. // work-in-progress.
  45152. //
  45153. // For example:
  45154. //
  45155. // Current pointer: A - B - C - D - E - F
  45156. // Work-in-progress pointer: D - E - F
  45157. // ^
  45158. // The work-in-progress queue has
  45159. // processed more updates than current.
  45160. //
  45161. // The reason we append to both queues is because otherwise we might drop
  45162. // updates without ever processing them. For example, if we only add updates to
  45163. // the work-in-progress queue, some updates could be lost whenever a work-in
  45164. // -progress render restarts by cloning from current. Similarly, if we only add
  45165. // updates to the current queue, the updates will be lost whenever an already
  45166. // in-progress queue commits and swaps with the current queue. However, by
  45167. // adding to both queues, we guarantee that the update will be part of the next
  45168. // work-in-progress. (And because the work-in-progress queue becomes the
  45169. // current queue once it commits, there's no danger of applying the same
  45170. // update twice.)
  45171. //
  45172. // Prioritization
  45173. // --------------
  45174. //
  45175. // Updates are not sorted by priority, but by insertion; new updates are always
  45176. // appended to the end of the list.
  45177. //
  45178. // The priority is still important, though. When processing the update queue
  45179. // during the render phase, only the updates with sufficient priority are
  45180. // included in the result. If we skip an update because it has insufficient
  45181. // priority, it remains in the queue to be processed later, during a lower
  45182. // priority render. Crucially, all updates subsequent to a skipped update also
  45183. // remain in the queue *regardless of their priority*. That means high priority
  45184. // updates are sometimes processed twice, at two separate priorities. We also
  45185. // keep track of a base state, that represents the state before the first
  45186. // update in the queue is applied.
  45187. //
  45188. // For example:
  45189. //
  45190. // Given a base state of '', and the following queue of updates
  45191. //
  45192. // A1 - B2 - C1 - D2
  45193. //
  45194. // where the number indicates the priority, and the update is applied to the
  45195. // previous state by appending a letter, React will process these updates as
  45196. // two separate renders, one per distinct priority level:
  45197. //
  45198. // First render, at priority 1:
  45199. // Base state: ''
  45200. // Updates: [A1, C1]
  45201. // Result state: 'AC'
  45202. //
  45203. // Second render, at priority 2:
  45204. // Base state: 'A' <- The base state does not include C1,
  45205. // because B2 was skipped.
  45206. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  45207. // Result state: 'ABCD'
  45208. //
  45209. // Because we process updates in insertion order, and rebase high priority
  45210. // updates when preceding updates are skipped, the final result is deterministic
  45211. // regardless of priority. Intermediate state may vary according to system
  45212. // resources, but the final state is always the same.
  45213. var UpdateState = 0;
  45214. var ReplaceState = 1;
  45215. var ForceUpdate = 2;
  45216. var CaptureUpdate = 3;
  45217. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  45218. // It should only be read right after calling `processUpdateQueue`, via
  45219. // `checkHasForceUpdateAfterProcessing`.
  45220. var hasForceUpdate = false;
  45221. var didWarnUpdateInsideUpdate = void 0;
  45222. var currentlyProcessingQueue = void 0;
  45223. {
  45224. didWarnUpdateInsideUpdate = false;
  45225. currentlyProcessingQueue = null;
  45226. }
  45227. function createUpdateQueue(baseState) {
  45228. var queue = {
  45229. baseState: baseState,
  45230. firstUpdate: null,
  45231. lastUpdate: null,
  45232. firstCapturedUpdate: null,
  45233. lastCapturedUpdate: null,
  45234. firstEffect: null,
  45235. lastEffect: null,
  45236. firstCapturedEffect: null,
  45237. lastCapturedEffect: null
  45238. };
  45239. return queue;
  45240. }
  45241. function cloneUpdateQueue(currentQueue) {
  45242. var queue = {
  45243. baseState: currentQueue.baseState,
  45244. firstUpdate: currentQueue.firstUpdate,
  45245. lastUpdate: currentQueue.lastUpdate,
  45246. // TODO: With resuming, if we bail out and resuse the child tree, we should
  45247. // keep these effects.
  45248. firstCapturedUpdate: null,
  45249. lastCapturedUpdate: null,
  45250. firstEffect: null,
  45251. lastEffect: null,
  45252. firstCapturedEffect: null,
  45253. lastCapturedEffect: null
  45254. };
  45255. return queue;
  45256. }
  45257. function createUpdate(expirationTime, suspenseConfig) {
  45258. var update = {
  45259. expirationTime: expirationTime,
  45260. suspenseConfig: suspenseConfig,
  45261. tag: UpdateState,
  45262. payload: null,
  45263. callback: null,
  45264. next: null,
  45265. nextEffect: null
  45266. };
  45267. {
  45268. update.priority = getCurrentPriorityLevel();
  45269. }
  45270. return update;
  45271. }
  45272. function appendUpdateToQueue(queue, update) {
  45273. // Append the update to the end of the list.
  45274. if (queue.lastUpdate === null) {
  45275. // Queue is empty
  45276. queue.firstUpdate = queue.lastUpdate = update;
  45277. } else {
  45278. queue.lastUpdate.next = update;
  45279. queue.lastUpdate = update;
  45280. }
  45281. }
  45282. function enqueueUpdate(fiber, update) {
  45283. // Update queues are created lazily.
  45284. var alternate = fiber.alternate;
  45285. var queue1 = void 0;
  45286. var queue2 = void 0;
  45287. if (alternate === null) {
  45288. // There's only one fiber.
  45289. queue1 = fiber.updateQueue;
  45290. queue2 = null;
  45291. if (queue1 === null) {
  45292. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  45293. }
  45294. } else {
  45295. // There are two owners.
  45296. queue1 = fiber.updateQueue;
  45297. queue2 = alternate.updateQueue;
  45298. if (queue1 === null) {
  45299. if (queue2 === null) {
  45300. // Neither fiber has an update queue. Create new ones.
  45301. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  45302. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  45303. } else {
  45304. // Only one fiber has an update queue. Clone to create a new one.
  45305. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  45306. }
  45307. } else {
  45308. if (queue2 === null) {
  45309. // Only one fiber has an update queue. Clone to create a new one.
  45310. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  45311. } else {
  45312. // Both owners have an update queue.
  45313. }
  45314. }
  45315. }
  45316. if (queue2 === null || queue1 === queue2) {
  45317. // There's only a single queue.
  45318. appendUpdateToQueue(queue1, update);
  45319. } else {
  45320. // There are two queues. We need to append the update to both queues,
  45321. // while accounting for the persistent structure of the list — we don't
  45322. // want the same update to be added multiple times.
  45323. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  45324. // One of the queues is not empty. We must add the update to both queues.
  45325. appendUpdateToQueue(queue1, update);
  45326. appendUpdateToQueue(queue2, update);
  45327. } else {
  45328. // Both queues are non-empty. The last update is the same in both lists,
  45329. // because of structural sharing. So, only append to one of the lists.
  45330. appendUpdateToQueue(queue1, update);
  45331. // But we still need to update the `lastUpdate` pointer of queue2.
  45332. queue2.lastUpdate = update;
  45333. }
  45334. }
  45335. {
  45336. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  45337. 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.');
  45338. didWarnUpdateInsideUpdate = true;
  45339. }
  45340. }
  45341. }
  45342. function enqueueCapturedUpdate(workInProgress, update) {
  45343. // Captured updates go into a separate list, and only on the work-in-
  45344. // progress queue.
  45345. var workInProgressQueue = workInProgress.updateQueue;
  45346. if (workInProgressQueue === null) {
  45347. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  45348. } else {
  45349. // TODO: I put this here rather than createWorkInProgress so that we don't
  45350. // clone the queue unnecessarily. There's probably a better way to
  45351. // structure this.
  45352. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  45353. }
  45354. // Append the update to the end of the list.
  45355. if (workInProgressQueue.lastCapturedUpdate === null) {
  45356. // This is the first render phase update
  45357. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  45358. } else {
  45359. workInProgressQueue.lastCapturedUpdate.next = update;
  45360. workInProgressQueue.lastCapturedUpdate = update;
  45361. }
  45362. }
  45363. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  45364. var current = workInProgress.alternate;
  45365. if (current !== null) {
  45366. // If the work-in-progress queue is equal to the current queue,
  45367. // we need to clone it first.
  45368. if (queue === current.updateQueue) {
  45369. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  45370. }
  45371. }
  45372. return queue;
  45373. }
  45374. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  45375. switch (update.tag) {
  45376. case ReplaceState:
  45377. {
  45378. var _payload = update.payload;
  45379. if (typeof _payload === 'function') {
  45380. // Updater function
  45381. {
  45382. enterDisallowedContextReadInDEV();
  45383. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45384. _payload.call(instance, prevState, nextProps);
  45385. }
  45386. }
  45387. var nextState = _payload.call(instance, prevState, nextProps);
  45388. {
  45389. exitDisallowedContextReadInDEV();
  45390. }
  45391. return nextState;
  45392. }
  45393. // State object
  45394. return _payload;
  45395. }
  45396. case CaptureUpdate:
  45397. {
  45398. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  45399. }
  45400. // Intentional fallthrough
  45401. case UpdateState:
  45402. {
  45403. var _payload2 = update.payload;
  45404. var partialState = void 0;
  45405. if (typeof _payload2 === 'function') {
  45406. // Updater function
  45407. {
  45408. enterDisallowedContextReadInDEV();
  45409. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45410. _payload2.call(instance, prevState, nextProps);
  45411. }
  45412. }
  45413. partialState = _payload2.call(instance, prevState, nextProps);
  45414. {
  45415. exitDisallowedContextReadInDEV();
  45416. }
  45417. } else {
  45418. // Partial state object
  45419. partialState = _payload2;
  45420. }
  45421. if (partialState === null || partialState === undefined) {
  45422. // Null and undefined are treated as no-ops.
  45423. return prevState;
  45424. }
  45425. // Merge the partial state and the previous state.
  45426. return _assign({}, prevState, partialState);
  45427. }
  45428. case ForceUpdate:
  45429. {
  45430. hasForceUpdate = true;
  45431. return prevState;
  45432. }
  45433. }
  45434. return prevState;
  45435. }
  45436. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  45437. hasForceUpdate = false;
  45438. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  45439. {
  45440. currentlyProcessingQueue = queue;
  45441. }
  45442. // These values may change as we process the queue.
  45443. var newBaseState = queue.baseState;
  45444. var newFirstUpdate = null;
  45445. var newExpirationTime = NoWork;
  45446. // Iterate through the list of updates to compute the result.
  45447. var update = queue.firstUpdate;
  45448. var resultState = newBaseState;
  45449. while (update !== null) {
  45450. var updateExpirationTime = update.expirationTime;
  45451. if (updateExpirationTime < renderExpirationTime) {
  45452. // This update does not have sufficient priority. Skip it.
  45453. if (newFirstUpdate === null) {
  45454. // This is the first skipped update. It will be the first update in
  45455. // the new list.
  45456. newFirstUpdate = update;
  45457. // Since this is the first update that was skipped, the current result
  45458. // is the new base state.
  45459. newBaseState = resultState;
  45460. }
  45461. // Since this update will remain in the list, update the remaining
  45462. // expiration time.
  45463. if (newExpirationTime < updateExpirationTime) {
  45464. newExpirationTime = updateExpirationTime;
  45465. }
  45466. } else {
  45467. // This update does have sufficient priority.
  45468. // Mark the event time of this update as relevant to this render pass.
  45469. // TODO: This should ideally use the true event time of this update rather than
  45470. // its priority which is a derived and not reverseable value.
  45471. // TODO: We should skip this update if it was already committed but currently
  45472. // we have no way of detecting the difference between a committed and suspended
  45473. // update here.
  45474. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig);
  45475. // Process it and compute a new result.
  45476. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  45477. var _callback = update.callback;
  45478. if (_callback !== null) {
  45479. workInProgress.effectTag |= Callback;
  45480. // Set this to null, in case it was mutated during an aborted render.
  45481. update.nextEffect = null;
  45482. if (queue.lastEffect === null) {
  45483. queue.firstEffect = queue.lastEffect = update;
  45484. } else {
  45485. queue.lastEffect.nextEffect = update;
  45486. queue.lastEffect = update;
  45487. }
  45488. }
  45489. }
  45490. // Continue to the next update.
  45491. update = update.next;
  45492. }
  45493. // Separately, iterate though the list of captured updates.
  45494. var newFirstCapturedUpdate = null;
  45495. update = queue.firstCapturedUpdate;
  45496. while (update !== null) {
  45497. var _updateExpirationTime = update.expirationTime;
  45498. if (_updateExpirationTime < renderExpirationTime) {
  45499. // This update does not have sufficient priority. Skip it.
  45500. if (newFirstCapturedUpdate === null) {
  45501. // This is the first skipped captured update. It will be the first
  45502. // update in the new list.
  45503. newFirstCapturedUpdate = update;
  45504. // If this is the first update that was skipped, the current result is
  45505. // the new base state.
  45506. if (newFirstUpdate === null) {
  45507. newBaseState = resultState;
  45508. }
  45509. }
  45510. // Since this update will remain in the list, update the remaining
  45511. // expiration time.
  45512. if (newExpirationTime < _updateExpirationTime) {
  45513. newExpirationTime = _updateExpirationTime;
  45514. }
  45515. } else {
  45516. // This update does have sufficient priority. Process it and compute
  45517. // a new result.
  45518. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  45519. var _callback2 = update.callback;
  45520. if (_callback2 !== null) {
  45521. workInProgress.effectTag |= Callback;
  45522. // Set this to null, in case it was mutated during an aborted render.
  45523. update.nextEffect = null;
  45524. if (queue.lastCapturedEffect === null) {
  45525. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  45526. } else {
  45527. queue.lastCapturedEffect.nextEffect = update;
  45528. queue.lastCapturedEffect = update;
  45529. }
  45530. }
  45531. }
  45532. update = update.next;
  45533. }
  45534. if (newFirstUpdate === null) {
  45535. queue.lastUpdate = null;
  45536. }
  45537. if (newFirstCapturedUpdate === null) {
  45538. queue.lastCapturedUpdate = null;
  45539. } else {
  45540. workInProgress.effectTag |= Callback;
  45541. }
  45542. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  45543. // We processed every update, without skipping. That means the new base
  45544. // state is the same as the result state.
  45545. newBaseState = resultState;
  45546. }
  45547. queue.baseState = newBaseState;
  45548. queue.firstUpdate = newFirstUpdate;
  45549. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  45550. // Set the remaining expiration time to be whatever is remaining in the queue.
  45551. // This should be fine because the only two other things that contribute to
  45552. // expiration time are props and context. We're already in the middle of the
  45553. // begin phase by the time we start processing the queue, so we've already
  45554. // dealt with the props. Context in components that specify
  45555. // shouldComponentUpdate is tricky; but we'll have to account for
  45556. // that regardless.
  45557. workInProgress.expirationTime = newExpirationTime;
  45558. workInProgress.memoizedState = resultState;
  45559. {
  45560. currentlyProcessingQueue = null;
  45561. }
  45562. }
  45563. function callCallback(callback, context) {
  45564. (function () {
  45565. if (!(typeof callback === 'function')) {
  45566. {
  45567. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + callback));
  45568. }
  45569. }
  45570. })();
  45571. callback.call(context);
  45572. }
  45573. function resetHasForceUpdateBeforeProcessing() {
  45574. hasForceUpdate = false;
  45575. }
  45576. function checkHasForceUpdateAfterProcessing() {
  45577. return hasForceUpdate;
  45578. }
  45579. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  45580. // If the finished render included captured updates, and there are still
  45581. // lower priority updates left over, we need to keep the captured updates
  45582. // in the queue so that they are rebased and not dropped once we process the
  45583. // queue again at the lower priority.
  45584. if (finishedQueue.firstCapturedUpdate !== null) {
  45585. // Join the captured update list to the end of the normal list.
  45586. if (finishedQueue.lastUpdate !== null) {
  45587. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  45588. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  45589. }
  45590. // Clear the list of captured updates.
  45591. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  45592. }
  45593. // Commit the effects
  45594. commitUpdateEffects(finishedQueue.firstEffect, instance);
  45595. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  45596. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  45597. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  45598. }
  45599. function commitUpdateEffects(effect, instance) {
  45600. while (effect !== null) {
  45601. var _callback3 = effect.callback;
  45602. if (_callback3 !== null) {
  45603. effect.callback = null;
  45604. callCallback(_callback3, instance);
  45605. }
  45606. effect = effect.nextEffect;
  45607. }
  45608. }
  45609. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  45610. function requestCurrentSuspenseConfig() {
  45611. return ReactCurrentBatchConfig.suspense;
  45612. }
  45613. var fakeInternalInstance = {};
  45614. var isArray$1 = Array.isArray;
  45615. // React.Component uses a shared frozen object by default.
  45616. // We'll use it to determine whether we need to initialize legacy refs.
  45617. var emptyRefsObject = new React.Component().refs;
  45618. var didWarnAboutStateAssignmentForComponent = void 0;
  45619. var didWarnAboutUninitializedState = void 0;
  45620. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  45621. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  45622. var didWarnAboutUndefinedDerivedState = void 0;
  45623. var warnOnUndefinedDerivedState = void 0;
  45624. var warnOnInvalidCallback$1 = void 0;
  45625. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  45626. var didWarnAboutContextTypeAndContextTypes = void 0;
  45627. var didWarnAboutInvalidateContextType = void 0;
  45628. {
  45629. didWarnAboutStateAssignmentForComponent = new Set();
  45630. didWarnAboutUninitializedState = new Set();
  45631. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  45632. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  45633. didWarnAboutDirectlyAssigningPropsToState = new Set();
  45634. didWarnAboutUndefinedDerivedState = new Set();
  45635. didWarnAboutContextTypeAndContextTypes = new Set();
  45636. didWarnAboutInvalidateContextType = new Set();
  45637. var didWarnOnInvalidCallback = new Set();
  45638. warnOnInvalidCallback$1 = function (callback, callerName) {
  45639. if (callback === null || typeof callback === 'function') {
  45640. return;
  45641. }
  45642. var key = callerName + '_' + callback;
  45643. if (!didWarnOnInvalidCallback.has(key)) {
  45644. didWarnOnInvalidCallback.add(key);
  45645. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  45646. }
  45647. };
  45648. warnOnUndefinedDerivedState = function (type, partialState) {
  45649. if (partialState === undefined) {
  45650. var componentName = getComponentName(type) || 'Component';
  45651. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  45652. didWarnAboutUndefinedDerivedState.add(componentName);
  45653. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  45654. }
  45655. }
  45656. };
  45657. // This is so gross but it's at least non-critical and can be removed if
  45658. // it causes problems. This is meant to give a nicer error message for
  45659. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  45660. // ...)) which otherwise throws a "_processChildContext is not a function"
  45661. // exception.
  45662. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  45663. enumerable: false,
  45664. value: function () {
  45665. (function () {
  45666. {
  45667. {
  45668. throw ReactError(Error('_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).'));
  45669. }
  45670. }
  45671. })();
  45672. }
  45673. });
  45674. Object.freeze(fakeInternalInstance);
  45675. }
  45676. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  45677. var prevState = workInProgress.memoizedState;
  45678. {
  45679. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45680. // Invoke the function an extra time to help detect side-effects.
  45681. getDerivedStateFromProps(nextProps, prevState);
  45682. }
  45683. }
  45684. var partialState = getDerivedStateFromProps(nextProps, prevState);
  45685. {
  45686. warnOnUndefinedDerivedState(ctor, partialState);
  45687. }
  45688. // Merge the partial state and the previous state.
  45689. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  45690. workInProgress.memoizedState = memoizedState;
  45691. // Once the update queue is empty, persist the derived state onto the
  45692. // base state.
  45693. var updateQueue = workInProgress.updateQueue;
  45694. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  45695. updateQueue.baseState = memoizedState;
  45696. }
  45697. }
  45698. var classComponentUpdater = {
  45699. isMounted: isMounted,
  45700. enqueueSetState: function (inst, payload, callback) {
  45701. var fiber = get(inst);
  45702. var currentTime = requestCurrentTime();
  45703. var suspenseConfig = requestCurrentSuspenseConfig();
  45704. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  45705. var update = createUpdate(expirationTime, suspenseConfig);
  45706. update.payload = payload;
  45707. if (callback !== undefined && callback !== null) {
  45708. {
  45709. warnOnInvalidCallback$1(callback, 'setState');
  45710. }
  45711. update.callback = callback;
  45712. }
  45713. if (revertPassiveEffectsChange) {
  45714. flushPassiveEffects();
  45715. }
  45716. enqueueUpdate(fiber, update);
  45717. scheduleWork(fiber, expirationTime);
  45718. },
  45719. enqueueReplaceState: function (inst, payload, callback) {
  45720. var fiber = get(inst);
  45721. var currentTime = requestCurrentTime();
  45722. var suspenseConfig = requestCurrentSuspenseConfig();
  45723. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  45724. var update = createUpdate(expirationTime, suspenseConfig);
  45725. update.tag = ReplaceState;
  45726. update.payload = payload;
  45727. if (callback !== undefined && callback !== null) {
  45728. {
  45729. warnOnInvalidCallback$1(callback, 'replaceState');
  45730. }
  45731. update.callback = callback;
  45732. }
  45733. if (revertPassiveEffectsChange) {
  45734. flushPassiveEffects();
  45735. }
  45736. enqueueUpdate(fiber, update);
  45737. scheduleWork(fiber, expirationTime);
  45738. },
  45739. enqueueForceUpdate: function (inst, callback) {
  45740. var fiber = get(inst);
  45741. var currentTime = requestCurrentTime();
  45742. var suspenseConfig = requestCurrentSuspenseConfig();
  45743. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  45744. var update = createUpdate(expirationTime, suspenseConfig);
  45745. update.tag = ForceUpdate;
  45746. if (callback !== undefined && callback !== null) {
  45747. {
  45748. warnOnInvalidCallback$1(callback, 'forceUpdate');
  45749. }
  45750. update.callback = callback;
  45751. }
  45752. if (revertPassiveEffectsChange) {
  45753. flushPassiveEffects();
  45754. }
  45755. enqueueUpdate(fiber, update);
  45756. scheduleWork(fiber, expirationTime);
  45757. }
  45758. };
  45759. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  45760. var instance = workInProgress.stateNode;
  45761. if (typeof instance.shouldComponentUpdate === 'function') {
  45762. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  45763. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  45764. stopPhaseTimer();
  45765. {
  45766. !(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;
  45767. }
  45768. return shouldUpdate;
  45769. }
  45770. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  45771. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  45772. }
  45773. return true;
  45774. }
  45775. function checkClassInstance(workInProgress, ctor, newProps) {
  45776. var instance = workInProgress.stateNode;
  45777. {
  45778. var name = getComponentName(ctor) || 'Component';
  45779. var renderPresent = instance.render;
  45780. if (!renderPresent) {
  45781. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  45782. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  45783. } else {
  45784. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  45785. }
  45786. }
  45787. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  45788. !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;
  45789. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  45790. !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;
  45791. var noInstancePropTypes = !instance.propTypes;
  45792. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  45793. var noInstanceContextType = !instance.contextType;
  45794. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  45795. if (disableLegacyContext) {
  45796. if (ctor.childContextTypes) {
  45797. warningWithoutStack$1(false, '%s uses the legacy childContextTypes API which is no longer supported. ' + 'Use React.createContext() instead.', name);
  45798. }
  45799. if (ctor.contextTypes) {
  45800. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with static contextType instead.', name);
  45801. }
  45802. } else {
  45803. var noInstanceContextTypes = !instance.contextTypes;
  45804. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  45805. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  45806. didWarnAboutContextTypeAndContextTypes.add(ctor);
  45807. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  45808. }
  45809. }
  45810. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  45811. !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;
  45812. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  45813. 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');
  45814. }
  45815. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  45816. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  45817. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  45818. !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;
  45819. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  45820. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  45821. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  45822. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  45823. var hasMutatedProps = instance.props !== newProps;
  45824. !(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;
  45825. var noInstanceDefaultProps = !instance.defaultProps;
  45826. !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;
  45827. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  45828. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  45829. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  45830. }
  45831. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  45832. !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;
  45833. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  45834. !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;
  45835. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  45836. !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;
  45837. var _state = instance.state;
  45838. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  45839. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  45840. }
  45841. if (typeof instance.getChildContext === 'function') {
  45842. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  45843. }
  45844. }
  45845. }
  45846. function adoptClassInstance(workInProgress, instance) {
  45847. instance.updater = classComponentUpdater;
  45848. workInProgress.stateNode = instance;
  45849. // The instance needs access to the fiber so that it can schedule updates
  45850. set(instance, workInProgress);
  45851. {
  45852. instance._reactInternalInstance = fakeInternalInstance;
  45853. }
  45854. }
  45855. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  45856. var isLegacyContextConsumer = false;
  45857. var unmaskedContext = emptyContextObject;
  45858. var context = emptyContextObject;
  45859. var contextType = ctor.contextType;
  45860. {
  45861. if ('contextType' in ctor) {
  45862. var isValid =
  45863. // Allow null for conditional declaration
  45864. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  45865. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  45866. didWarnAboutInvalidateContextType.add(ctor);
  45867. var addendum = '';
  45868. if (contextType === undefined) {
  45869. addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
  45870. } else if (typeof contextType !== 'object') {
  45871. addendum = ' However, it is set to a ' + typeof contextType + '.';
  45872. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  45873. addendum = ' Did you accidentally pass the Context.Provider instead?';
  45874. } else if (contextType._context !== undefined) {
  45875. // <Context.Consumer>
  45876. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  45877. } else {
  45878. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  45879. }
  45880. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  45881. }
  45882. }
  45883. }
  45884. if (typeof contextType === 'object' && contextType !== null) {
  45885. context = readContext(contextType);
  45886. } else if (!disableLegacyContext) {
  45887. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45888. var contextTypes = ctor.contextTypes;
  45889. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  45890. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  45891. }
  45892. // Instantiate twice to help detect side-effects.
  45893. {
  45894. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45895. new ctor(props, context); // eslint-disable-line no-new
  45896. }
  45897. }
  45898. var instance = new ctor(props, context);
  45899. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  45900. adoptClassInstance(workInProgress, instance);
  45901. {
  45902. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  45903. var componentName = getComponentName(ctor) || 'Component';
  45904. if (!didWarnAboutUninitializedState.has(componentName)) {
  45905. didWarnAboutUninitializedState.add(componentName);
  45906. 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);
  45907. }
  45908. }
  45909. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  45910. // Warn about these lifecycles if they are present.
  45911. // Don't warn about react-lifecycles-compat polyfilled methods though.
  45912. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  45913. var foundWillMountName = null;
  45914. var foundWillReceivePropsName = null;
  45915. var foundWillUpdateName = null;
  45916. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  45917. foundWillMountName = 'componentWillMount';
  45918. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45919. foundWillMountName = 'UNSAFE_componentWillMount';
  45920. }
  45921. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  45922. foundWillReceivePropsName = 'componentWillReceiveProps';
  45923. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45924. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  45925. }
  45926. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  45927. foundWillUpdateName = 'componentWillUpdate';
  45928. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  45929. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  45930. }
  45931. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  45932. var _componentName = getComponentName(ctor) || 'Component';
  45933. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  45934. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  45935. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  45936. 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 : '');
  45937. }
  45938. }
  45939. }
  45940. }
  45941. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  45942. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  45943. if (isLegacyContextConsumer) {
  45944. cacheContext(workInProgress, unmaskedContext, context);
  45945. }
  45946. return instance;
  45947. }
  45948. function callComponentWillMount(workInProgress, instance) {
  45949. startPhaseTimer(workInProgress, 'componentWillMount');
  45950. var oldState = instance.state;
  45951. if (typeof instance.componentWillMount === 'function') {
  45952. instance.componentWillMount();
  45953. }
  45954. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45955. instance.UNSAFE_componentWillMount();
  45956. }
  45957. stopPhaseTimer();
  45958. if (oldState !== instance.state) {
  45959. {
  45960. 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');
  45961. }
  45962. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45963. }
  45964. }
  45965. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  45966. var oldState = instance.state;
  45967. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  45968. if (typeof instance.componentWillReceiveProps === 'function') {
  45969. instance.componentWillReceiveProps(newProps, nextContext);
  45970. }
  45971. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45972. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  45973. }
  45974. stopPhaseTimer();
  45975. if (instance.state !== oldState) {
  45976. {
  45977. var componentName = getComponentName(workInProgress.type) || 'Component';
  45978. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  45979. didWarnAboutStateAssignmentForComponent.add(componentName);
  45980. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  45981. }
  45982. }
  45983. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45984. }
  45985. }
  45986. // Invokes the mount life-cycles on a previously never rendered instance.
  45987. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  45988. {
  45989. checkClassInstance(workInProgress, ctor, newProps);
  45990. }
  45991. var instance = workInProgress.stateNode;
  45992. instance.props = newProps;
  45993. instance.state = workInProgress.memoizedState;
  45994. instance.refs = emptyRefsObject;
  45995. var contextType = ctor.contextType;
  45996. if (typeof contextType === 'object' && contextType !== null) {
  45997. instance.context = readContext(contextType);
  45998. } else if (disableLegacyContext) {
  45999. instance.context = emptyContextObject;
  46000. } else {
  46001. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  46002. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  46003. }
  46004. {
  46005. if (instance.state === newProps) {
  46006. var componentName = getComponentName(ctor) || 'Component';
  46007. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  46008. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  46009. 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);
  46010. }
  46011. }
  46012. if (workInProgress.mode & StrictMode) {
  46013. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  46014. }
  46015. if (warnAboutDeprecatedLifecycles) {
  46016. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  46017. }
  46018. }
  46019. var updateQueue = workInProgress.updateQueue;
  46020. if (updateQueue !== null) {
  46021. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46022. instance.state = workInProgress.memoizedState;
  46023. }
  46024. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  46025. if (typeof getDerivedStateFromProps === 'function') {
  46026. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  46027. instance.state = workInProgress.memoizedState;
  46028. }
  46029. // In order to support react-lifecycles-compat polyfilled components,
  46030. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46031. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  46032. callComponentWillMount(workInProgress, instance);
  46033. // If we had additional state updates during this life-cycle, let's
  46034. // process them now.
  46035. updateQueue = workInProgress.updateQueue;
  46036. if (updateQueue !== null) {
  46037. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46038. instance.state = workInProgress.memoizedState;
  46039. }
  46040. }
  46041. if (typeof instance.componentDidMount === 'function') {
  46042. workInProgress.effectTag |= Update;
  46043. }
  46044. }
  46045. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  46046. var instance = workInProgress.stateNode;
  46047. var oldProps = workInProgress.memoizedProps;
  46048. instance.props = oldProps;
  46049. var oldContext = instance.context;
  46050. var contextType = ctor.contextType;
  46051. var nextContext = emptyContextObject;
  46052. if (typeof contextType === 'object' && contextType !== null) {
  46053. nextContext = readContext(contextType);
  46054. } else if (!disableLegacyContext) {
  46055. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  46056. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  46057. }
  46058. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  46059. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  46060. // Note: During these life-cycles, instance.props/instance.state are what
  46061. // ever the previously attempted to render - not the "current". However,
  46062. // during componentDidUpdate we pass the "current" props.
  46063. // In order to support react-lifecycles-compat polyfilled components,
  46064. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46065. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  46066. if (oldProps !== newProps || oldContext !== nextContext) {
  46067. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  46068. }
  46069. }
  46070. resetHasForceUpdateBeforeProcessing();
  46071. var oldState = workInProgress.memoizedState;
  46072. var newState = instance.state = oldState;
  46073. var updateQueue = workInProgress.updateQueue;
  46074. if (updateQueue !== null) {
  46075. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46076. newState = workInProgress.memoizedState;
  46077. }
  46078. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  46079. // If an update was already in progress, we should schedule an Update
  46080. // effect even though we're bailing out, so that cWU/cDU are called.
  46081. if (typeof instance.componentDidMount === 'function') {
  46082. workInProgress.effectTag |= Update;
  46083. }
  46084. return false;
  46085. }
  46086. if (typeof getDerivedStateFromProps === 'function') {
  46087. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  46088. newState = workInProgress.memoizedState;
  46089. }
  46090. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  46091. if (shouldUpdate) {
  46092. // In order to support react-lifecycles-compat polyfilled components,
  46093. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46094. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  46095. startPhaseTimer(workInProgress, 'componentWillMount');
  46096. if (typeof instance.componentWillMount === 'function') {
  46097. instance.componentWillMount();
  46098. }
  46099. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  46100. instance.UNSAFE_componentWillMount();
  46101. }
  46102. stopPhaseTimer();
  46103. }
  46104. if (typeof instance.componentDidMount === 'function') {
  46105. workInProgress.effectTag |= Update;
  46106. }
  46107. } else {
  46108. // If an update was already in progress, we should schedule an Update
  46109. // effect even though we're bailing out, so that cWU/cDU are called.
  46110. if (typeof instance.componentDidMount === 'function') {
  46111. workInProgress.effectTag |= Update;
  46112. }
  46113. // If shouldComponentUpdate returned false, we should still update the
  46114. // memoized state to indicate that this work can be reused.
  46115. workInProgress.memoizedProps = newProps;
  46116. workInProgress.memoizedState = newState;
  46117. }
  46118. // Update the existing instance's state, props, and context pointers even
  46119. // if shouldComponentUpdate returns false.
  46120. instance.props = newProps;
  46121. instance.state = newState;
  46122. instance.context = nextContext;
  46123. return shouldUpdate;
  46124. }
  46125. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  46126. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  46127. var instance = workInProgress.stateNode;
  46128. var oldProps = workInProgress.memoizedProps;
  46129. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  46130. var oldContext = instance.context;
  46131. var contextType = ctor.contextType;
  46132. var nextContext = emptyContextObject;
  46133. if (typeof contextType === 'object' && contextType !== null) {
  46134. nextContext = readContext(contextType);
  46135. } else if (!disableLegacyContext) {
  46136. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  46137. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  46138. }
  46139. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  46140. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  46141. // Note: During these life-cycles, instance.props/instance.state are what
  46142. // ever the previously attempted to render - not the "current". However,
  46143. // during componentDidUpdate we pass the "current" props.
  46144. // In order to support react-lifecycles-compat polyfilled components,
  46145. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46146. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  46147. if (oldProps !== newProps || oldContext !== nextContext) {
  46148. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  46149. }
  46150. }
  46151. resetHasForceUpdateBeforeProcessing();
  46152. var oldState = workInProgress.memoizedState;
  46153. var newState = instance.state = oldState;
  46154. var updateQueue = workInProgress.updateQueue;
  46155. if (updateQueue !== null) {
  46156. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46157. newState = workInProgress.memoizedState;
  46158. }
  46159. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  46160. // If an update was already in progress, we should schedule an Update
  46161. // effect even though we're bailing out, so that cWU/cDU are called.
  46162. if (typeof instance.componentDidUpdate === 'function') {
  46163. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46164. workInProgress.effectTag |= Update;
  46165. }
  46166. }
  46167. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  46168. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46169. workInProgress.effectTag |= Snapshot;
  46170. }
  46171. }
  46172. return false;
  46173. }
  46174. if (typeof getDerivedStateFromProps === 'function') {
  46175. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  46176. newState = workInProgress.memoizedState;
  46177. }
  46178. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  46179. if (shouldUpdate) {
  46180. // In order to support react-lifecycles-compat polyfilled components,
  46181. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46182. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  46183. startPhaseTimer(workInProgress, 'componentWillUpdate');
  46184. if (typeof instance.componentWillUpdate === 'function') {
  46185. instance.componentWillUpdate(newProps, newState, nextContext);
  46186. }
  46187. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  46188. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  46189. }
  46190. stopPhaseTimer();
  46191. }
  46192. if (typeof instance.componentDidUpdate === 'function') {
  46193. workInProgress.effectTag |= Update;
  46194. }
  46195. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  46196. workInProgress.effectTag |= Snapshot;
  46197. }
  46198. } else {
  46199. // If an update was already in progress, we should schedule an Update
  46200. // effect even though we're bailing out, so that cWU/cDU are called.
  46201. if (typeof instance.componentDidUpdate === 'function') {
  46202. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46203. workInProgress.effectTag |= Update;
  46204. }
  46205. }
  46206. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  46207. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46208. workInProgress.effectTag |= Snapshot;
  46209. }
  46210. }
  46211. // If shouldComponentUpdate returned false, we should still update the
  46212. // memoized props/state to indicate that this work can be reused.
  46213. workInProgress.memoizedProps = newProps;
  46214. workInProgress.memoizedState = newState;
  46215. }
  46216. // Update the existing instance's state, props, and context pointers even
  46217. // if shouldComponentUpdate returns false.
  46218. instance.props = newProps;
  46219. instance.state = newState;
  46220. instance.context = nextContext;
  46221. return shouldUpdate;
  46222. }
  46223. var didWarnAboutMaps = void 0;
  46224. var didWarnAboutGenerators = void 0;
  46225. var didWarnAboutStringRefInStrictMode = void 0;
  46226. var ownerHasKeyUseWarning = void 0;
  46227. var ownerHasFunctionTypeWarning = void 0;
  46228. var warnForMissingKey = function (child) {};
  46229. {
  46230. didWarnAboutMaps = false;
  46231. didWarnAboutGenerators = false;
  46232. didWarnAboutStringRefInStrictMode = {};
  46233. /**
  46234. * Warn if there's no key explicitly set on dynamic arrays of children or
  46235. * object keys are not valid. This allows us to keep track of children between
  46236. * updates.
  46237. */
  46238. ownerHasKeyUseWarning = {};
  46239. ownerHasFunctionTypeWarning = {};
  46240. warnForMissingKey = function (child) {
  46241. if (child === null || typeof child !== 'object') {
  46242. return;
  46243. }
  46244. if (!child._store || child._store.validated || child.key != null) {
  46245. return;
  46246. }
  46247. (function () {
  46248. if (!(typeof child._store === 'object')) {
  46249. {
  46250. throw ReactError(Error('React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.'));
  46251. }
  46252. }
  46253. })();
  46254. child._store.validated = true;
  46255. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  46256. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  46257. return;
  46258. }
  46259. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  46260. warning$1(false, 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  46261. };
  46262. }
  46263. var isArray = Array.isArray;
  46264. function coerceRef(returnFiber, current$$1, element) {
  46265. var mixedRef = element.ref;
  46266. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  46267. {
  46268. if (returnFiber.mode & StrictMode) {
  46269. var componentName = getComponentName(returnFiber.type) || 'Component';
  46270. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  46271. 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));
  46272. didWarnAboutStringRefInStrictMode[componentName] = true;
  46273. }
  46274. }
  46275. }
  46276. if (element._owner) {
  46277. var owner = element._owner;
  46278. var inst = void 0;
  46279. if (owner) {
  46280. var ownerFiber = owner;
  46281. (function () {
  46282. if (!(ownerFiber.tag === ClassComponent)) {
  46283. {
  46284. throw ReactError(Error('Function components cannot have refs. Did you mean to use React.forwardRef()?'));
  46285. }
  46286. }
  46287. })();
  46288. inst = ownerFiber.stateNode;
  46289. }
  46290. (function () {
  46291. if (!inst) {
  46292. {
  46293. throw ReactError(Error('Missing owner for string ref ' + mixedRef + '. This error is likely caused by a bug in React. Please file an issue.'));
  46294. }
  46295. }
  46296. })();
  46297. var stringRef = '' + mixedRef;
  46298. // Check if previous string ref matches new string ref
  46299. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  46300. return current$$1.ref;
  46301. }
  46302. var ref = function (value) {
  46303. var refs = inst.refs;
  46304. if (refs === emptyRefsObject) {
  46305. // This is a lazy pooled frozen object, so we need to initialize.
  46306. refs = inst.refs = {};
  46307. }
  46308. if (value === null) {
  46309. delete refs[stringRef];
  46310. } else {
  46311. refs[stringRef] = value;
  46312. }
  46313. };
  46314. ref._stringRef = stringRef;
  46315. return ref;
  46316. } else {
  46317. (function () {
  46318. if (!(typeof mixedRef === 'string')) {
  46319. {
  46320. throw ReactError(Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.'));
  46321. }
  46322. }
  46323. })();
  46324. (function () {
  46325. if (!element._owner) {
  46326. {
  46327. throw ReactError(Error('Element ref was specified as a string (' + mixedRef + ') 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.'));
  46328. }
  46329. }
  46330. })();
  46331. }
  46332. }
  46333. return mixedRef;
  46334. }
  46335. function throwOnInvalidObjectType(returnFiber, newChild) {
  46336. if (returnFiber.type !== 'textarea') {
  46337. var addendum = '';
  46338. {
  46339. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  46340. }
  46341. (function () {
  46342. {
  46343. {
  46344. throw ReactError(Error('Objects are not valid as a React child (found: ' + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + ').' + addendum));
  46345. }
  46346. }
  46347. })();
  46348. }
  46349. }
  46350. function warnOnFunctionType() {
  46351. 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();
  46352. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  46353. return;
  46354. }
  46355. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  46356. 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.');
  46357. }
  46358. // This wrapper function exists because I expect to clone the code in each path
  46359. // to be able to optimize each path individually by branching early. This needs
  46360. // a compiler or we can do it manually. Helpers that don't need this branching
  46361. // live outside of this function.
  46362. function ChildReconciler(shouldTrackSideEffects) {
  46363. function deleteChild(returnFiber, childToDelete) {
  46364. if (!shouldTrackSideEffects) {
  46365. // Noop.
  46366. return;
  46367. }
  46368. // Deletions are added in reversed order so we add it to the front.
  46369. // At this point, the return fiber's effect list is empty except for
  46370. // deletions, so we can just append the deletion to the list. The remaining
  46371. // effects aren't added until the complete phase. Once we implement
  46372. // resuming, this may not be true.
  46373. var last = returnFiber.lastEffect;
  46374. if (last !== null) {
  46375. last.nextEffect = childToDelete;
  46376. returnFiber.lastEffect = childToDelete;
  46377. } else {
  46378. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  46379. }
  46380. childToDelete.nextEffect = null;
  46381. childToDelete.effectTag = Deletion;
  46382. }
  46383. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  46384. if (!shouldTrackSideEffects) {
  46385. // Noop.
  46386. return null;
  46387. }
  46388. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  46389. // assuming that after the first child we've already added everything.
  46390. var childToDelete = currentFirstChild;
  46391. while (childToDelete !== null) {
  46392. deleteChild(returnFiber, childToDelete);
  46393. childToDelete = childToDelete.sibling;
  46394. }
  46395. return null;
  46396. }
  46397. function mapRemainingChildren(returnFiber, currentFirstChild) {
  46398. // Add the remaining children to a temporary map so that we can find them by
  46399. // keys quickly. Implicit (null) keys get added to this set with their index
  46400. var existingChildren = new Map();
  46401. var existingChild = currentFirstChild;
  46402. while (existingChild !== null) {
  46403. if (existingChild.key !== null) {
  46404. existingChildren.set(existingChild.key, existingChild);
  46405. } else {
  46406. existingChildren.set(existingChild.index, existingChild);
  46407. }
  46408. existingChild = existingChild.sibling;
  46409. }
  46410. return existingChildren;
  46411. }
  46412. function useFiber(fiber, pendingProps, expirationTime) {
  46413. // We currently set sibling to null and index to 0 here because it is easy
  46414. // to forget to do before returning it. E.g. for the single child case.
  46415. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  46416. clone.index = 0;
  46417. clone.sibling = null;
  46418. return clone;
  46419. }
  46420. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  46421. newFiber.index = newIndex;
  46422. if (!shouldTrackSideEffects) {
  46423. // Noop.
  46424. return lastPlacedIndex;
  46425. }
  46426. var current$$1 = newFiber.alternate;
  46427. if (current$$1 !== null) {
  46428. var oldIndex = current$$1.index;
  46429. if (oldIndex < lastPlacedIndex) {
  46430. // This is a move.
  46431. newFiber.effectTag = Placement;
  46432. return lastPlacedIndex;
  46433. } else {
  46434. // This item can stay in place.
  46435. return oldIndex;
  46436. }
  46437. } else {
  46438. // This is an insertion.
  46439. newFiber.effectTag = Placement;
  46440. return lastPlacedIndex;
  46441. }
  46442. }
  46443. function placeSingleChild(newFiber) {
  46444. // This is simpler for the single child case. We only need to do a
  46445. // placement for inserting new children.
  46446. if (shouldTrackSideEffects && newFiber.alternate === null) {
  46447. newFiber.effectTag = Placement;
  46448. }
  46449. return newFiber;
  46450. }
  46451. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  46452. if (current$$1 === null || current$$1.tag !== HostText) {
  46453. // Insert
  46454. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  46455. created.return = returnFiber;
  46456. return created;
  46457. } else {
  46458. // Update
  46459. var existing = useFiber(current$$1, textContent, expirationTime);
  46460. existing.return = returnFiber;
  46461. return existing;
  46462. }
  46463. }
  46464. function updateElement(returnFiber, current$$1, element, expirationTime) {
  46465. if (current$$1 !== null && (current$$1.elementType === element.type || (
  46466. // Keep this check inline so it only runs on the false path:
  46467. isCompatibleFamilyForHotReloading(current$$1, element)))) {
  46468. // Move based on index
  46469. var existing = useFiber(current$$1, element.props, expirationTime);
  46470. existing.ref = coerceRef(returnFiber, current$$1, element);
  46471. existing.return = returnFiber;
  46472. {
  46473. existing._debugSource = element._source;
  46474. existing._debugOwner = element._owner;
  46475. }
  46476. return existing;
  46477. } else {
  46478. // Insert
  46479. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  46480. created.ref = coerceRef(returnFiber, current$$1, element);
  46481. created.return = returnFiber;
  46482. return created;
  46483. }
  46484. }
  46485. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  46486. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  46487. // Insert
  46488. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  46489. created.return = returnFiber;
  46490. return created;
  46491. } else {
  46492. // Update
  46493. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  46494. existing.return = returnFiber;
  46495. return existing;
  46496. }
  46497. }
  46498. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  46499. if (current$$1 === null || current$$1.tag !== Fragment) {
  46500. // Insert
  46501. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  46502. created.return = returnFiber;
  46503. return created;
  46504. } else {
  46505. // Update
  46506. var existing = useFiber(current$$1, fragment, expirationTime);
  46507. existing.return = returnFiber;
  46508. return existing;
  46509. }
  46510. }
  46511. function createChild(returnFiber, newChild, expirationTime) {
  46512. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46513. // Text nodes don't have keys. If the previous node is implicitly keyed
  46514. // we can continue to replace it without aborting even if it is not a text
  46515. // node.
  46516. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  46517. created.return = returnFiber;
  46518. return created;
  46519. }
  46520. if (typeof newChild === 'object' && newChild !== null) {
  46521. switch (newChild.$$typeof) {
  46522. case REACT_ELEMENT_TYPE:
  46523. {
  46524. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  46525. _created.ref = coerceRef(returnFiber, null, newChild);
  46526. _created.return = returnFiber;
  46527. return _created;
  46528. }
  46529. case REACT_PORTAL_TYPE:
  46530. {
  46531. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  46532. _created2.return = returnFiber;
  46533. return _created2;
  46534. }
  46535. }
  46536. if (isArray(newChild) || getIteratorFn(newChild)) {
  46537. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  46538. _created3.return = returnFiber;
  46539. return _created3;
  46540. }
  46541. throwOnInvalidObjectType(returnFiber, newChild);
  46542. }
  46543. {
  46544. if (typeof newChild === 'function') {
  46545. warnOnFunctionType();
  46546. }
  46547. }
  46548. return null;
  46549. }
  46550. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  46551. // Update the fiber if the keys match, otherwise return null.
  46552. var key = oldFiber !== null ? oldFiber.key : null;
  46553. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46554. // Text nodes don't have keys. If the previous node is implicitly keyed
  46555. // we can continue to replace it without aborting even if it is not a text
  46556. // node.
  46557. if (key !== null) {
  46558. return null;
  46559. }
  46560. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  46561. }
  46562. if (typeof newChild === 'object' && newChild !== null) {
  46563. switch (newChild.$$typeof) {
  46564. case REACT_ELEMENT_TYPE:
  46565. {
  46566. if (newChild.key === key) {
  46567. if (newChild.type === REACT_FRAGMENT_TYPE) {
  46568. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  46569. }
  46570. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  46571. } else {
  46572. return null;
  46573. }
  46574. }
  46575. case REACT_PORTAL_TYPE:
  46576. {
  46577. if (newChild.key === key) {
  46578. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  46579. } else {
  46580. return null;
  46581. }
  46582. }
  46583. }
  46584. if (isArray(newChild) || getIteratorFn(newChild)) {
  46585. if (key !== null) {
  46586. return null;
  46587. }
  46588. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  46589. }
  46590. throwOnInvalidObjectType(returnFiber, newChild);
  46591. }
  46592. {
  46593. if (typeof newChild === 'function') {
  46594. warnOnFunctionType();
  46595. }
  46596. }
  46597. return null;
  46598. }
  46599. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  46600. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46601. // Text nodes don't have keys, so we neither have to check the old nor
  46602. // new node for the key. If both are text nodes, they match.
  46603. var matchedFiber = existingChildren.get(newIdx) || null;
  46604. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  46605. }
  46606. if (typeof newChild === 'object' && newChild !== null) {
  46607. switch (newChild.$$typeof) {
  46608. case REACT_ELEMENT_TYPE:
  46609. {
  46610. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  46611. if (newChild.type === REACT_FRAGMENT_TYPE) {
  46612. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  46613. }
  46614. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  46615. }
  46616. case REACT_PORTAL_TYPE:
  46617. {
  46618. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  46619. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  46620. }
  46621. }
  46622. if (isArray(newChild) || getIteratorFn(newChild)) {
  46623. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  46624. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  46625. }
  46626. throwOnInvalidObjectType(returnFiber, newChild);
  46627. }
  46628. {
  46629. if (typeof newChild === 'function') {
  46630. warnOnFunctionType();
  46631. }
  46632. }
  46633. return null;
  46634. }
  46635. /**
  46636. * Warns if there is a duplicate or missing key
  46637. */
  46638. function warnOnInvalidKey(child, knownKeys) {
  46639. {
  46640. if (typeof child !== 'object' || child === null) {
  46641. return knownKeys;
  46642. }
  46643. switch (child.$$typeof) {
  46644. case REACT_ELEMENT_TYPE:
  46645. case REACT_PORTAL_TYPE:
  46646. warnForMissingKey(child);
  46647. var key = child.key;
  46648. if (typeof key !== 'string') {
  46649. break;
  46650. }
  46651. if (knownKeys === null) {
  46652. knownKeys = new Set();
  46653. knownKeys.add(key);
  46654. break;
  46655. }
  46656. if (!knownKeys.has(key)) {
  46657. knownKeys.add(key);
  46658. break;
  46659. }
  46660. 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);
  46661. break;
  46662. default:
  46663. break;
  46664. }
  46665. }
  46666. return knownKeys;
  46667. }
  46668. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  46669. // This algorithm can't optimize by searching from both ends since we
  46670. // don't have backpointers on fibers. I'm trying to see how far we can get
  46671. // with that model. If it ends up not being worth the tradeoffs, we can
  46672. // add it later.
  46673. // Even with a two ended optimization, we'd want to optimize for the case
  46674. // where there are few changes and brute force the comparison instead of
  46675. // going for the Map. It'd like to explore hitting that path first in
  46676. // forward-only mode and only go for the Map once we notice that we need
  46677. // lots of look ahead. This doesn't handle reversal as well as two ended
  46678. // search but that's unusual. Besides, for the two ended optimization to
  46679. // work on Iterables, we'd need to copy the whole set.
  46680. // In this first iteration, we'll just live with hitting the bad case
  46681. // (adding everything to a Map) in for every insert/move.
  46682. // If you change this code, also update reconcileChildrenIterator() which
  46683. // uses the same algorithm.
  46684. {
  46685. // First, validate keys.
  46686. var knownKeys = null;
  46687. for (var i = 0; i < newChildren.length; i++) {
  46688. var child = newChildren[i];
  46689. knownKeys = warnOnInvalidKey(child, knownKeys);
  46690. }
  46691. }
  46692. var resultingFirstChild = null;
  46693. var previousNewFiber = null;
  46694. var oldFiber = currentFirstChild;
  46695. var lastPlacedIndex = 0;
  46696. var newIdx = 0;
  46697. var nextOldFiber = null;
  46698. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  46699. if (oldFiber.index > newIdx) {
  46700. nextOldFiber = oldFiber;
  46701. oldFiber = null;
  46702. } else {
  46703. nextOldFiber = oldFiber.sibling;
  46704. }
  46705. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  46706. if (newFiber === null) {
  46707. // TODO: This breaks on empty slots like null children. That's
  46708. // unfortunate because it triggers the slow path all the time. We need
  46709. // a better way to communicate whether this was a miss or null,
  46710. // boolean, undefined, etc.
  46711. if (oldFiber === null) {
  46712. oldFiber = nextOldFiber;
  46713. }
  46714. break;
  46715. }
  46716. if (shouldTrackSideEffects) {
  46717. if (oldFiber && newFiber.alternate === null) {
  46718. // We matched the slot, but we didn't reuse the existing fiber, so we
  46719. // need to delete the existing child.
  46720. deleteChild(returnFiber, oldFiber);
  46721. }
  46722. }
  46723. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  46724. if (previousNewFiber === null) {
  46725. // TODO: Move out of the loop. This only happens for the first run.
  46726. resultingFirstChild = newFiber;
  46727. } else {
  46728. // TODO: Defer siblings if we're not at the right index for this slot.
  46729. // I.e. if we had null values before, then we want to defer this
  46730. // for each null value. However, we also don't want to call updateSlot
  46731. // with the previous one.
  46732. previousNewFiber.sibling = newFiber;
  46733. }
  46734. previousNewFiber = newFiber;
  46735. oldFiber = nextOldFiber;
  46736. }
  46737. if (newIdx === newChildren.length) {
  46738. // We've reached the end of the new children. We can delete the rest.
  46739. deleteRemainingChildren(returnFiber, oldFiber);
  46740. return resultingFirstChild;
  46741. }
  46742. if (oldFiber === null) {
  46743. // If we don't have any more existing children we can choose a fast path
  46744. // since the rest will all be insertions.
  46745. for (; newIdx < newChildren.length; newIdx++) {
  46746. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  46747. if (_newFiber === null) {
  46748. continue;
  46749. }
  46750. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  46751. if (previousNewFiber === null) {
  46752. // TODO: Move out of the loop. This only happens for the first run.
  46753. resultingFirstChild = _newFiber;
  46754. } else {
  46755. previousNewFiber.sibling = _newFiber;
  46756. }
  46757. previousNewFiber = _newFiber;
  46758. }
  46759. return resultingFirstChild;
  46760. }
  46761. // Add all children to a key map for quick lookups.
  46762. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  46763. // Keep scanning and use the map to restore deleted items as moves.
  46764. for (; newIdx < newChildren.length; newIdx++) {
  46765. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  46766. if (_newFiber2 !== null) {
  46767. if (shouldTrackSideEffects) {
  46768. if (_newFiber2.alternate !== null) {
  46769. // The new fiber is a work in progress, but if there exists a
  46770. // current, that means that we reused the fiber. We need to delete
  46771. // it from the child list so that we don't add it to the deletion
  46772. // list.
  46773. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  46774. }
  46775. }
  46776. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  46777. if (previousNewFiber === null) {
  46778. resultingFirstChild = _newFiber2;
  46779. } else {
  46780. previousNewFiber.sibling = _newFiber2;
  46781. }
  46782. previousNewFiber = _newFiber2;
  46783. }
  46784. }
  46785. if (shouldTrackSideEffects) {
  46786. // Any existing children that weren't consumed above were deleted. We need
  46787. // to add them to the deletion list.
  46788. existingChildren.forEach(function (child) {
  46789. return deleteChild(returnFiber, child);
  46790. });
  46791. }
  46792. return resultingFirstChild;
  46793. }
  46794. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  46795. // This is the same implementation as reconcileChildrenArray(),
  46796. // but using the iterator instead.
  46797. var iteratorFn = getIteratorFn(newChildrenIterable);
  46798. (function () {
  46799. if (!(typeof iteratorFn === 'function')) {
  46800. {
  46801. throw ReactError(Error('An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.'));
  46802. }
  46803. }
  46804. })();
  46805. {
  46806. // We don't support rendering Generators because it's a mutation.
  46807. // See https://github.com/facebook/react/issues/12995
  46808. if (typeof Symbol === 'function' &&
  46809. // $FlowFixMe Flow doesn't know about toStringTag
  46810. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  46811. !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;
  46812. didWarnAboutGenerators = true;
  46813. }
  46814. // Warn about using Maps as children
  46815. if (newChildrenIterable.entries === iteratorFn) {
  46816. !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;
  46817. didWarnAboutMaps = true;
  46818. }
  46819. // First, validate keys.
  46820. // We'll get a different iterator later for the main pass.
  46821. var _newChildren = iteratorFn.call(newChildrenIterable);
  46822. if (_newChildren) {
  46823. var knownKeys = null;
  46824. var _step = _newChildren.next();
  46825. for (; !_step.done; _step = _newChildren.next()) {
  46826. var child = _step.value;
  46827. knownKeys = warnOnInvalidKey(child, knownKeys);
  46828. }
  46829. }
  46830. }
  46831. var newChildren = iteratorFn.call(newChildrenIterable);
  46832. (function () {
  46833. if (!(newChildren != null)) {
  46834. {
  46835. throw ReactError(Error('An iterable object provided no iterator.'));
  46836. }
  46837. }
  46838. })();
  46839. var resultingFirstChild = null;
  46840. var previousNewFiber = null;
  46841. var oldFiber = currentFirstChild;
  46842. var lastPlacedIndex = 0;
  46843. var newIdx = 0;
  46844. var nextOldFiber = null;
  46845. var step = newChildren.next();
  46846. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  46847. if (oldFiber.index > newIdx) {
  46848. nextOldFiber = oldFiber;
  46849. oldFiber = null;
  46850. } else {
  46851. nextOldFiber = oldFiber.sibling;
  46852. }
  46853. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  46854. if (newFiber === null) {
  46855. // TODO: This breaks on empty slots like null children. That's
  46856. // unfortunate because it triggers the slow path all the time. We need
  46857. // a better way to communicate whether this was a miss or null,
  46858. // boolean, undefined, etc.
  46859. if (oldFiber === null) {
  46860. oldFiber = nextOldFiber;
  46861. }
  46862. break;
  46863. }
  46864. if (shouldTrackSideEffects) {
  46865. if (oldFiber && newFiber.alternate === null) {
  46866. // We matched the slot, but we didn't reuse the existing fiber, so we
  46867. // need to delete the existing child.
  46868. deleteChild(returnFiber, oldFiber);
  46869. }
  46870. }
  46871. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  46872. if (previousNewFiber === null) {
  46873. // TODO: Move out of the loop. This only happens for the first run.
  46874. resultingFirstChild = newFiber;
  46875. } else {
  46876. // TODO: Defer siblings if we're not at the right index for this slot.
  46877. // I.e. if we had null values before, then we want to defer this
  46878. // for each null value. However, we also don't want to call updateSlot
  46879. // with the previous one.
  46880. previousNewFiber.sibling = newFiber;
  46881. }
  46882. previousNewFiber = newFiber;
  46883. oldFiber = nextOldFiber;
  46884. }
  46885. if (step.done) {
  46886. // We've reached the end of the new children. We can delete the rest.
  46887. deleteRemainingChildren(returnFiber, oldFiber);
  46888. return resultingFirstChild;
  46889. }
  46890. if (oldFiber === null) {
  46891. // If we don't have any more existing children we can choose a fast path
  46892. // since the rest will all be insertions.
  46893. for (; !step.done; newIdx++, step = newChildren.next()) {
  46894. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  46895. if (_newFiber3 === null) {
  46896. continue;
  46897. }
  46898. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  46899. if (previousNewFiber === null) {
  46900. // TODO: Move out of the loop. This only happens for the first run.
  46901. resultingFirstChild = _newFiber3;
  46902. } else {
  46903. previousNewFiber.sibling = _newFiber3;
  46904. }
  46905. previousNewFiber = _newFiber3;
  46906. }
  46907. return resultingFirstChild;
  46908. }
  46909. // Add all children to a key map for quick lookups.
  46910. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  46911. // Keep scanning and use the map to restore deleted items as moves.
  46912. for (; !step.done; newIdx++, step = newChildren.next()) {
  46913. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  46914. if (_newFiber4 !== null) {
  46915. if (shouldTrackSideEffects) {
  46916. if (_newFiber4.alternate !== null) {
  46917. // The new fiber is a work in progress, but if there exists a
  46918. // current, that means that we reused the fiber. We need to delete
  46919. // it from the child list so that we don't add it to the deletion
  46920. // list.
  46921. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  46922. }
  46923. }
  46924. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  46925. if (previousNewFiber === null) {
  46926. resultingFirstChild = _newFiber4;
  46927. } else {
  46928. previousNewFiber.sibling = _newFiber4;
  46929. }
  46930. previousNewFiber = _newFiber4;
  46931. }
  46932. }
  46933. if (shouldTrackSideEffects) {
  46934. // Any existing children that weren't consumed above were deleted. We need
  46935. // to add them to the deletion list.
  46936. existingChildren.forEach(function (child) {
  46937. return deleteChild(returnFiber, child);
  46938. });
  46939. }
  46940. return resultingFirstChild;
  46941. }
  46942. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  46943. // There's no need to check for keys on text nodes since we don't have a
  46944. // way to define them.
  46945. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  46946. // We already have an existing node so let's just update it and delete
  46947. // the rest.
  46948. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  46949. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  46950. existing.return = returnFiber;
  46951. return existing;
  46952. }
  46953. // The existing first child is not a text node so we need to create one
  46954. // and delete the existing ones.
  46955. deleteRemainingChildren(returnFiber, currentFirstChild);
  46956. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  46957. created.return = returnFiber;
  46958. return created;
  46959. }
  46960. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  46961. var key = element.key;
  46962. var child = currentFirstChild;
  46963. while (child !== null) {
  46964. // TODO: If key === null and child.key === null, then this only applies to
  46965. // the first item in the list.
  46966. if (child.key === key) {
  46967. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (
  46968. // Keep this check inline so it only runs on the false path:
  46969. isCompatibleFamilyForHotReloading(child, element))) {
  46970. deleteRemainingChildren(returnFiber, child.sibling);
  46971. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  46972. existing.ref = coerceRef(returnFiber, child, element);
  46973. existing.return = returnFiber;
  46974. {
  46975. existing._debugSource = element._source;
  46976. existing._debugOwner = element._owner;
  46977. }
  46978. return existing;
  46979. } else {
  46980. deleteRemainingChildren(returnFiber, child);
  46981. break;
  46982. }
  46983. } else {
  46984. deleteChild(returnFiber, child);
  46985. }
  46986. child = child.sibling;
  46987. }
  46988. if (element.type === REACT_FRAGMENT_TYPE) {
  46989. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  46990. created.return = returnFiber;
  46991. return created;
  46992. } else {
  46993. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  46994. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  46995. _created4.return = returnFiber;
  46996. return _created4;
  46997. }
  46998. }
  46999. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  47000. var key = portal.key;
  47001. var child = currentFirstChild;
  47002. while (child !== null) {
  47003. // TODO: If key === null and child.key === null, then this only applies to
  47004. // the first item in the list.
  47005. if (child.key === key) {
  47006. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  47007. deleteRemainingChildren(returnFiber, child.sibling);
  47008. var existing = useFiber(child, portal.children || [], expirationTime);
  47009. existing.return = returnFiber;
  47010. return existing;
  47011. } else {
  47012. deleteRemainingChildren(returnFiber, child);
  47013. break;
  47014. }
  47015. } else {
  47016. deleteChild(returnFiber, child);
  47017. }
  47018. child = child.sibling;
  47019. }
  47020. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  47021. created.return = returnFiber;
  47022. return created;
  47023. }
  47024. // This API will tag the children with the side-effect of the reconciliation
  47025. // itself. They will be added to the side-effect list as we pass through the
  47026. // children and the parent.
  47027. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  47028. // This function is not recursive.
  47029. // If the top level item is an array, we treat it as a set of children,
  47030. // not as a fragment. Nested arrays on the other hand will be treated as
  47031. // fragment nodes. Recursion happens at the normal flow.
  47032. // Handle top level unkeyed fragments as if they were arrays.
  47033. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  47034. // We treat the ambiguous cases above the same.
  47035. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  47036. if (isUnkeyedTopLevelFragment) {
  47037. newChild = newChild.props.children;
  47038. }
  47039. // Handle object types
  47040. var isObject = typeof newChild === 'object' && newChild !== null;
  47041. if (isObject) {
  47042. switch (newChild.$$typeof) {
  47043. case REACT_ELEMENT_TYPE:
  47044. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  47045. case REACT_PORTAL_TYPE:
  47046. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  47047. }
  47048. }
  47049. if (typeof newChild === 'string' || typeof newChild === 'number') {
  47050. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  47051. }
  47052. if (isArray(newChild)) {
  47053. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  47054. }
  47055. if (getIteratorFn(newChild)) {
  47056. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  47057. }
  47058. if (isObject) {
  47059. throwOnInvalidObjectType(returnFiber, newChild);
  47060. }
  47061. {
  47062. if (typeof newChild === 'function') {
  47063. warnOnFunctionType();
  47064. }
  47065. }
  47066. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  47067. // If the new child is undefined, and the return fiber is a composite
  47068. // component, throw an error. If Fiber return types are disabled,
  47069. // we already threw above.
  47070. switch (returnFiber.tag) {
  47071. case ClassComponent:
  47072. {
  47073. {
  47074. var instance = returnFiber.stateNode;
  47075. if (instance.render._isMockFunction) {
  47076. // We allow auto-mocks to proceed as if they're returning null.
  47077. break;
  47078. }
  47079. }
  47080. }
  47081. // Intentionally fall through to the next case, which handles both
  47082. // functions and classes
  47083. // eslint-disable-next-lined no-fallthrough
  47084. case FunctionComponent:
  47085. {
  47086. var Component = returnFiber.type;
  47087. (function () {
  47088. {
  47089. {
  47090. throw ReactError(Error((Component.displayName || Component.name || 'Component') + '(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.'));
  47091. }
  47092. }
  47093. })();
  47094. }
  47095. }
  47096. }
  47097. // Remaining cases are all treated as empty.
  47098. return deleteRemainingChildren(returnFiber, currentFirstChild);
  47099. }
  47100. return reconcileChildFibers;
  47101. }
  47102. var reconcileChildFibers = ChildReconciler(true);
  47103. var mountChildFibers = ChildReconciler(false);
  47104. function cloneChildFibers(current$$1, workInProgress) {
  47105. (function () {
  47106. if (!(current$$1 === null || workInProgress.child === current$$1.child)) {
  47107. {
  47108. throw ReactError(Error('Resuming work not yet implemented.'));
  47109. }
  47110. }
  47111. })();
  47112. if (workInProgress.child === null) {
  47113. return;
  47114. }
  47115. var currentChild = workInProgress.child;
  47116. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  47117. workInProgress.child = newChild;
  47118. newChild.return = workInProgress;
  47119. while (currentChild.sibling !== null) {
  47120. currentChild = currentChild.sibling;
  47121. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  47122. newChild.return = workInProgress;
  47123. }
  47124. newChild.sibling = null;
  47125. }
  47126. // Reset a workInProgress child set to prepare it for a second pass.
  47127. function resetChildFibers(workInProgress, renderExpirationTime) {
  47128. var child = workInProgress.child;
  47129. while (child !== null) {
  47130. resetWorkInProgress(child, renderExpirationTime);
  47131. child = child.sibling;
  47132. }
  47133. }
  47134. var NO_CONTEXT = {};
  47135. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  47136. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  47137. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  47138. function requiredContext(c) {
  47139. (function () {
  47140. if (!(c !== NO_CONTEXT)) {
  47141. {
  47142. throw ReactError(Error('Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.'));
  47143. }
  47144. }
  47145. })();
  47146. return c;
  47147. }
  47148. function getRootHostContainer() {
  47149. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  47150. return rootInstance;
  47151. }
  47152. function pushHostContainer(fiber, nextRootInstance) {
  47153. // Push current root instance onto the stack;
  47154. // This allows us to reset root when portals are popped.
  47155. push(rootInstanceStackCursor, nextRootInstance, fiber);
  47156. // Track the context and the Fiber that provided it.
  47157. // This enables us to pop only Fibers that provide unique contexts.
  47158. push(contextFiberStackCursor, fiber, fiber);
  47159. // Finally, we need to push the host context to the stack.
  47160. // However, we can't just call getRootHostContext() and push it because
  47161. // we'd have a different number of entries on the stack depending on
  47162. // whether getRootHostContext() throws somewhere in renderer code or not.
  47163. // So we push an empty value first. This lets us safely unwind on errors.
  47164. push(contextStackCursor$1, NO_CONTEXT, fiber);
  47165. var nextRootContext = getRootHostContext(nextRootInstance);
  47166. // Now that we know this function doesn't throw, replace it.
  47167. pop(contextStackCursor$1, fiber);
  47168. push(contextStackCursor$1, nextRootContext, fiber);
  47169. }
  47170. function popHostContainer(fiber) {
  47171. pop(contextStackCursor$1, fiber);
  47172. pop(contextFiberStackCursor, fiber);
  47173. pop(rootInstanceStackCursor, fiber);
  47174. }
  47175. function getHostContext() {
  47176. var context = requiredContext(contextStackCursor$1.current);
  47177. return context;
  47178. }
  47179. function pushHostContext(fiber) {
  47180. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  47181. var context = requiredContext(contextStackCursor$1.current);
  47182. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  47183. // Don't push this Fiber's context unless it's unique.
  47184. if (context === nextContext) {
  47185. return;
  47186. }
  47187. // Track the context and the Fiber that provided it.
  47188. // This enables us to pop only Fibers that provide unique contexts.
  47189. push(contextFiberStackCursor, fiber, fiber);
  47190. push(contextStackCursor$1, nextContext, fiber);
  47191. }
  47192. function popHostContext(fiber) {
  47193. // Do not pop unless this Fiber provided the current context.
  47194. // pushHostContext() only pushes Fibers that provide unique contexts.
  47195. if (contextFiberStackCursor.current !== fiber) {
  47196. return;
  47197. }
  47198. pop(contextStackCursor$1, fiber);
  47199. pop(contextFiberStackCursor, fiber);
  47200. }
  47201. var DefaultSuspenseContext = 0;
  47202. // The Suspense Context is split into two parts. The lower bits is
  47203. // inherited deeply down the subtree. The upper bits only affect
  47204. // this immediate suspense boundary and gets reset each new
  47205. // boundary or suspense list.
  47206. var SubtreeSuspenseContextMask = 1;
  47207. // Subtree Flags:
  47208. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  47209. // boundaries is not currently showing visible main content.
  47210. // Either because it is already showing a fallback or is not mounted at all.
  47211. // We can use this to determine if it is desirable to trigger a fallback at
  47212. // the parent. If not, then we might need to trigger undesirable boundaries
  47213. // and/or suspend the commit to avoid hiding the parent content.
  47214. var InvisibleParentSuspenseContext = 1;
  47215. // Shallow Flags:
  47216. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  47217. // items into their fallback state during one of the render passes.
  47218. var ForceSuspenseFallback = 2;
  47219. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  47220. function hasSuspenseContext(parentContext, flag) {
  47221. return (parentContext & flag) !== 0;
  47222. }
  47223. function setDefaultShallowSuspenseContext(parentContext) {
  47224. return parentContext & SubtreeSuspenseContextMask;
  47225. }
  47226. function setShallowSuspenseContext(parentContext, shallowContext) {
  47227. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  47228. }
  47229. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  47230. return parentContext | subtreeContext;
  47231. }
  47232. function pushSuspenseContext(fiber, newContext) {
  47233. push(suspenseStackCursor, newContext, fiber);
  47234. }
  47235. function popSuspenseContext(fiber) {
  47236. pop(suspenseStackCursor, fiber);
  47237. }
  47238. // TODO: This is now an empty object. Should we switch this to a boolean?
  47239. // Alternatively we can make this use an effect tag similar to SuspenseList.
  47240. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  47241. // If it was the primary children that just suspended, capture and render the
  47242. var nextState = workInProgress.memoizedState;
  47243. if (nextState !== null) {
  47244. return false;
  47245. }
  47246. var props = workInProgress.memoizedProps;
  47247. // In order to capture, the Suspense component must have a fallback prop.
  47248. if (props.fallback === undefined) {
  47249. return false;
  47250. }
  47251. // Regular boundaries always capture.
  47252. if (props.unstable_avoidThisFallback !== true) {
  47253. return true;
  47254. }
  47255. // If it's a boundary we should avoid, then we prefer to bubble up to the
  47256. // parent boundary if it is currently invisible.
  47257. if (hasInvisibleParent) {
  47258. return false;
  47259. }
  47260. // If the parent is not able to handle it, we must handle it.
  47261. return true;
  47262. }
  47263. function findFirstSuspended(row) {
  47264. var node = row;
  47265. while (node !== null) {
  47266. if (node.tag === SuspenseComponent) {
  47267. var state = node.memoizedState;
  47268. if (state !== null) {
  47269. return node;
  47270. }
  47271. } else if (node.tag === SuspenseListComponent &&
  47272. // revealOrder undefined can't be trusted because it don't
  47273. // keep track of whether it suspended or not.
  47274. node.memoizedProps.revealOrder !== undefined) {
  47275. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  47276. if (didSuspend) {
  47277. return node;
  47278. }
  47279. } else if (node.child !== null) {
  47280. node.child.return = node;
  47281. node = node.child;
  47282. continue;
  47283. }
  47284. if (node === row) {
  47285. return null;
  47286. }
  47287. while (node.sibling === null) {
  47288. if (node.return === null || node.return === row) {
  47289. return null;
  47290. }
  47291. node = node.return;
  47292. }
  47293. node.sibling.return = node.return;
  47294. node = node.sibling;
  47295. }
  47296. return null;
  47297. }
  47298. var NoEffect$1 = /* */0;
  47299. var UnmountSnapshot = /* */2;
  47300. var UnmountMutation = /* */4;
  47301. var MountMutation = /* */8;
  47302. var UnmountLayout = /* */16;
  47303. var MountLayout = /* */32;
  47304. var MountPassive = /* */64;
  47305. var UnmountPassive = /* */128;
  47306. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
  47307. var didWarnAboutMismatchedHooksForComponent = void 0;
  47308. {
  47309. didWarnAboutMismatchedHooksForComponent = new Set();
  47310. }
  47311. // These are set right before calling the component.
  47312. var renderExpirationTime$1 = NoWork;
  47313. // The work-in-progress fiber. I've named it differently to distinguish it from
  47314. // the work-in-progress hook.
  47315. var currentlyRenderingFiber$1 = null;
  47316. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  47317. // current hook list is the list that belongs to the current fiber. The
  47318. // work-in-progress hook list is a new list that will be added to the
  47319. // work-in-progress fiber.
  47320. var currentHook = null;
  47321. var nextCurrentHook = null;
  47322. var firstWorkInProgressHook = null;
  47323. var workInProgressHook = null;
  47324. var nextWorkInProgressHook = null;
  47325. var remainingExpirationTime = NoWork;
  47326. var componentUpdateQueue = null;
  47327. var sideEffectTag = 0;
  47328. // Updates scheduled during render will trigger an immediate re-render at the
  47329. // end of the current pass. We can't store these updates on the normal queue,
  47330. // because if the work is aborted, they should be discarded. Because this is
  47331. // a relatively rare case, we also don't want to add an additional field to
  47332. // either the hook or queue object types. So we store them in a lazily create
  47333. // map of queue -> render-phase updates, which are discarded once the component
  47334. // completes without re-rendering.
  47335. // Whether an update was scheduled during the currently executing render pass.
  47336. var didScheduleRenderPhaseUpdate = false;
  47337. // Lazily created map of render-phase updates
  47338. var renderPhaseUpdates = null;
  47339. // Counter to prevent infinite loops.
  47340. var numberOfReRenders = 0;
  47341. var RE_RENDER_LIMIT = 25;
  47342. // In DEV, this is the name of the currently executing primitive hook
  47343. var currentHookNameInDev = null;
  47344. // In DEV, this list ensures that hooks are called in the same order between renders.
  47345. // The list stores the order of hooks used during the initial render (mount).
  47346. // Subsequent renders (updates) reference this list.
  47347. var hookTypesDev = null;
  47348. var hookTypesUpdateIndexDev = -1;
  47349. // In DEV, this tracks whether currently rendering component needs to ignore
  47350. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  47351. // When true, such Hooks will always be "remounted". Only used during hot reload.
  47352. var ignorePreviousDependencies = false;
  47353. function mountHookTypesDev() {
  47354. {
  47355. var hookName = currentHookNameInDev;
  47356. if (hookTypesDev === null) {
  47357. hookTypesDev = [hookName];
  47358. } else {
  47359. hookTypesDev.push(hookName);
  47360. }
  47361. }
  47362. }
  47363. function updateHookTypesDev() {
  47364. {
  47365. var hookName = currentHookNameInDev;
  47366. if (hookTypesDev !== null) {
  47367. hookTypesUpdateIndexDev++;
  47368. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  47369. warnOnHookMismatchInDev(hookName);
  47370. }
  47371. }
  47372. }
  47373. }
  47374. function checkDepsAreArrayDev(deps) {
  47375. {
  47376. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  47377. // Verify deps, but only on mount to avoid extra checks.
  47378. // It's unlikely their type would change as usually you define them inline.
  47379. warning$1(false, '%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
  47380. }
  47381. }
  47382. }
  47383. function warnOnHookMismatchInDev(currentHookName) {
  47384. {
  47385. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  47386. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  47387. didWarnAboutMismatchedHooksForComponent.add(componentName);
  47388. if (hookTypesDev !== null) {
  47389. var table = '';
  47390. var secondColumnStart = 30;
  47391. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  47392. var oldHookName = hookTypesDev[i];
  47393. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  47394. var row = i + 1 + '. ' + oldHookName;
  47395. // Extra space so second column lines up
  47396. // lol @ IE not supporting String#repeat
  47397. while (row.length < secondColumnStart) {
  47398. row += ' ';
  47399. }
  47400. row += newHookName + '\n';
  47401. table += row;
  47402. }
  47403. warning$1(false, 'React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
  47404. }
  47405. }
  47406. }
  47407. }
  47408. function throwInvalidHookError() {
  47409. (function () {
  47410. {
  47411. {
  47412. throw ReactError(Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  47413. }
  47414. }
  47415. })();
  47416. }
  47417. function areHookInputsEqual(nextDeps, prevDeps) {
  47418. {
  47419. if (ignorePreviousDependencies) {
  47420. // Only true when this component is being hot reloaded.
  47421. return false;
  47422. }
  47423. }
  47424. if (prevDeps === null) {
  47425. {
  47426. warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
  47427. }
  47428. return false;
  47429. }
  47430. {
  47431. // Don't bother comparing lengths in prod because these arrays should be
  47432. // passed inline.
  47433. if (nextDeps.length !== prevDeps.length) {
  47434. warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + prevDeps.join(', ') + ']', '[' + nextDeps.join(', ') + ']');
  47435. }
  47436. }
  47437. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  47438. if (is(nextDeps[i], prevDeps[i])) {
  47439. continue;
  47440. }
  47441. return false;
  47442. }
  47443. return true;
  47444. }
  47445. function renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) {
  47446. renderExpirationTime$1 = nextRenderExpirationTime;
  47447. currentlyRenderingFiber$1 = workInProgress;
  47448. nextCurrentHook = current !== null ? current.memoizedState : null;
  47449. {
  47450. hookTypesDev = current !== null ? current._debugHookTypes : null;
  47451. hookTypesUpdateIndexDev = -1;
  47452. // Used for hot reloading:
  47453. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  47454. }
  47455. // The following should have already been reset
  47456. // currentHook = null;
  47457. // workInProgressHook = null;
  47458. // remainingExpirationTime = NoWork;
  47459. // componentUpdateQueue = null;
  47460. // didScheduleRenderPhaseUpdate = false;
  47461. // renderPhaseUpdates = null;
  47462. // numberOfReRenders = 0;
  47463. // sideEffectTag = 0;
  47464. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  47465. // Currently we will identify the update render as a mount because nextCurrentHook === null.
  47466. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  47467. // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used.
  47468. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  47469. // so nextCurrentHook would be null during updates and mounts.
  47470. {
  47471. if (nextCurrentHook !== null) {
  47472. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  47473. } else if (hookTypesDev !== null) {
  47474. // This dispatcher handles an edge case where a component is updating,
  47475. // but no stateful hooks have been used.
  47476. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  47477. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  47478. // This dispatcher does that.
  47479. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
  47480. } else {
  47481. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
  47482. }
  47483. }
  47484. var children = Component(props, refOrContext);
  47485. if (didScheduleRenderPhaseUpdate) {
  47486. do {
  47487. didScheduleRenderPhaseUpdate = false;
  47488. numberOfReRenders += 1;
  47489. // Start over from the beginning of the list
  47490. nextCurrentHook = current !== null ? current.memoizedState : null;
  47491. nextWorkInProgressHook = firstWorkInProgressHook;
  47492. currentHook = null;
  47493. workInProgressHook = null;
  47494. componentUpdateQueue = null;
  47495. {
  47496. // Also validate hook order for cascading updates.
  47497. hookTypesUpdateIndexDev = -1;
  47498. }
  47499. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  47500. children = Component(props, refOrContext);
  47501. } while (didScheduleRenderPhaseUpdate);
  47502. renderPhaseUpdates = null;
  47503. numberOfReRenders = 0;
  47504. }
  47505. // We can assume the previous dispatcher is always this one, since we set it
  47506. // at the beginning of the render phase and there's no re-entrancy.
  47507. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  47508. var renderedWork = currentlyRenderingFiber$1;
  47509. renderedWork.memoizedState = firstWorkInProgressHook;
  47510. renderedWork.expirationTime = remainingExpirationTime;
  47511. renderedWork.updateQueue = componentUpdateQueue;
  47512. renderedWork.effectTag |= sideEffectTag;
  47513. {
  47514. renderedWork._debugHookTypes = hookTypesDev;
  47515. }
  47516. // This check uses currentHook so that it works the same in DEV and prod bundles.
  47517. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  47518. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  47519. renderExpirationTime$1 = NoWork;
  47520. currentlyRenderingFiber$1 = null;
  47521. currentHook = null;
  47522. nextCurrentHook = null;
  47523. firstWorkInProgressHook = null;
  47524. workInProgressHook = null;
  47525. nextWorkInProgressHook = null;
  47526. {
  47527. currentHookNameInDev = null;
  47528. hookTypesDev = null;
  47529. hookTypesUpdateIndexDev = -1;
  47530. }
  47531. remainingExpirationTime = NoWork;
  47532. componentUpdateQueue = null;
  47533. sideEffectTag = 0;
  47534. // These were reset above
  47535. // didScheduleRenderPhaseUpdate = false;
  47536. // renderPhaseUpdates = null;
  47537. // numberOfReRenders = 0;
  47538. (function () {
  47539. if (!!didRenderTooFewHooks) {
  47540. {
  47541. throw ReactError(Error('Rendered fewer hooks than expected. This may be caused by an accidental early return statement.'));
  47542. }
  47543. }
  47544. })();
  47545. return children;
  47546. }
  47547. function bailoutHooks(current, workInProgress, expirationTime) {
  47548. workInProgress.updateQueue = current.updateQueue;
  47549. workInProgress.effectTag &= ~(Passive | Update);
  47550. if (current.expirationTime <= expirationTime) {
  47551. current.expirationTime = NoWork;
  47552. }
  47553. }
  47554. function resetHooks() {
  47555. // We can assume the previous dispatcher is always this one, since we set it
  47556. // at the beginning of the render phase and there's no re-entrancy.
  47557. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  47558. // This is used to reset the state of this module when a component throws.
  47559. // It's also called inside mountIndeterminateComponent if we determine the
  47560. // component is a module-style component.
  47561. renderExpirationTime$1 = NoWork;
  47562. currentlyRenderingFiber$1 = null;
  47563. currentHook = null;
  47564. nextCurrentHook = null;
  47565. firstWorkInProgressHook = null;
  47566. workInProgressHook = null;
  47567. nextWorkInProgressHook = null;
  47568. {
  47569. hookTypesDev = null;
  47570. hookTypesUpdateIndexDev = -1;
  47571. currentHookNameInDev = null;
  47572. }
  47573. remainingExpirationTime = NoWork;
  47574. componentUpdateQueue = null;
  47575. sideEffectTag = 0;
  47576. didScheduleRenderPhaseUpdate = false;
  47577. renderPhaseUpdates = null;
  47578. numberOfReRenders = 0;
  47579. }
  47580. function mountWorkInProgressHook() {
  47581. var hook = {
  47582. memoizedState: null,
  47583. baseState: null,
  47584. queue: null,
  47585. baseUpdate: null,
  47586. next: null
  47587. };
  47588. if (workInProgressHook === null) {
  47589. // This is the first hook in the list
  47590. firstWorkInProgressHook = workInProgressHook = hook;
  47591. } else {
  47592. // Append to the end of the list
  47593. workInProgressHook = workInProgressHook.next = hook;
  47594. }
  47595. return workInProgressHook;
  47596. }
  47597. function updateWorkInProgressHook() {
  47598. // This function is used both for updates and for re-renders triggered by a
  47599. // render phase update. It assumes there is either a current hook we can
  47600. // clone, or a work-in-progress hook from a previous render pass that we can
  47601. // use as a base. When we reach the end of the base list, we must switch to
  47602. // the dispatcher used for mounts.
  47603. if (nextWorkInProgressHook !== null) {
  47604. // There's already a work-in-progress. Reuse it.
  47605. workInProgressHook = nextWorkInProgressHook;
  47606. nextWorkInProgressHook = workInProgressHook.next;
  47607. currentHook = nextCurrentHook;
  47608. nextCurrentHook = currentHook !== null ? currentHook.next : null;
  47609. } else {
  47610. // Clone from the current hook.
  47611. (function () {
  47612. if (!(nextCurrentHook !== null)) {
  47613. {
  47614. throw ReactError(Error('Rendered more hooks than during the previous render.'));
  47615. }
  47616. }
  47617. })();
  47618. currentHook = nextCurrentHook;
  47619. var newHook = {
  47620. memoizedState: currentHook.memoizedState,
  47621. baseState: currentHook.baseState,
  47622. queue: currentHook.queue,
  47623. baseUpdate: currentHook.baseUpdate,
  47624. next: null
  47625. };
  47626. if (workInProgressHook === null) {
  47627. // This is the first hook in the list.
  47628. workInProgressHook = firstWorkInProgressHook = newHook;
  47629. } else {
  47630. // Append to the end of the list.
  47631. workInProgressHook = workInProgressHook.next = newHook;
  47632. }
  47633. nextCurrentHook = currentHook.next;
  47634. }
  47635. return workInProgressHook;
  47636. }
  47637. function createFunctionComponentUpdateQueue() {
  47638. return {
  47639. lastEffect: null
  47640. };
  47641. }
  47642. function basicStateReducer(state, action) {
  47643. return typeof action === 'function' ? action(state) : action;
  47644. }
  47645. function mountReducer(reducer, initialArg, init) {
  47646. var hook = mountWorkInProgressHook();
  47647. var initialState = void 0;
  47648. if (init !== undefined) {
  47649. initialState = init(initialArg);
  47650. } else {
  47651. initialState = initialArg;
  47652. }
  47653. hook.memoizedState = hook.baseState = initialState;
  47654. var queue = hook.queue = {
  47655. last: null,
  47656. dispatch: null,
  47657. lastRenderedReducer: reducer,
  47658. lastRenderedState: initialState
  47659. };
  47660. var dispatch = queue.dispatch = dispatchAction.bind(null,
  47661. // Flow doesn't know this is non-null, but we do.
  47662. currentlyRenderingFiber$1, queue);
  47663. return [hook.memoizedState, dispatch];
  47664. }
  47665. function updateReducer(reducer, initialArg, init) {
  47666. var hook = updateWorkInProgressHook();
  47667. var queue = hook.queue;
  47668. (function () {
  47669. if (!(queue !== null)) {
  47670. {
  47671. throw ReactError(Error('Should have a queue. This is likely a bug in React. Please file an issue.'));
  47672. }
  47673. }
  47674. })();
  47675. queue.lastRenderedReducer = reducer;
  47676. if (numberOfReRenders > 0) {
  47677. // This is a re-render. Apply the new render phase updates to the previous
  47678. var _dispatch = queue.dispatch;
  47679. if (renderPhaseUpdates !== null) {
  47680. // Render phase updates are stored in a map of queue -> linked list
  47681. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  47682. if (firstRenderPhaseUpdate !== undefined) {
  47683. renderPhaseUpdates.delete(queue);
  47684. var newState = hook.memoizedState;
  47685. var update = firstRenderPhaseUpdate;
  47686. do {
  47687. // Process this render phase update. We don't have to check the
  47688. // priority because it will always be the same as the current
  47689. // render's.
  47690. var _action = update.action;
  47691. newState = reducer(newState, _action);
  47692. update = update.next;
  47693. } while (update !== null);
  47694. // Mark that the fiber performed work, but only if the new state is
  47695. // different from the current state.
  47696. if (!is(newState, hook.memoizedState)) {
  47697. markWorkInProgressReceivedUpdate();
  47698. }
  47699. hook.memoizedState = newState;
  47700. // Don't persist the state accumulated from the render phase updates to
  47701. // the base state unless the queue is empty.
  47702. // TODO: Not sure if this is the desired semantics, but it's what we
  47703. // do for gDSFP. I can't remember why.
  47704. if (hook.baseUpdate === queue.last) {
  47705. hook.baseState = newState;
  47706. }
  47707. queue.lastRenderedState = newState;
  47708. return [newState, _dispatch];
  47709. }
  47710. }
  47711. return [hook.memoizedState, _dispatch];
  47712. }
  47713. // The last update in the entire queue
  47714. var last = queue.last;
  47715. // The last update that is part of the base state.
  47716. var baseUpdate = hook.baseUpdate;
  47717. var baseState = hook.baseState;
  47718. // Find the first unprocessed update.
  47719. var first = void 0;
  47720. if (baseUpdate !== null) {
  47721. if (last !== null) {
  47722. // For the first update, the queue is a circular linked list where
  47723. // `queue.last.next = queue.first`. Once the first update commits, and
  47724. // the `baseUpdate` is no longer empty, we can unravel the list.
  47725. last.next = null;
  47726. }
  47727. first = baseUpdate.next;
  47728. } else {
  47729. first = last !== null ? last.next : null;
  47730. }
  47731. if (first !== null) {
  47732. var _newState = baseState;
  47733. var newBaseState = null;
  47734. var newBaseUpdate = null;
  47735. var prevUpdate = baseUpdate;
  47736. var _update = first;
  47737. var didSkip = false;
  47738. do {
  47739. var updateExpirationTime = _update.expirationTime;
  47740. if (updateExpirationTime < renderExpirationTime$1) {
  47741. // Priority is insufficient. Skip this update. If this is the first
  47742. // skipped update, the previous update/state is the new base
  47743. // update/state.
  47744. if (!didSkip) {
  47745. didSkip = true;
  47746. newBaseUpdate = prevUpdate;
  47747. newBaseState = _newState;
  47748. }
  47749. // Update the remaining priority in the queue.
  47750. if (updateExpirationTime > remainingExpirationTime) {
  47751. remainingExpirationTime = updateExpirationTime;
  47752. }
  47753. } else {
  47754. // This update does have sufficient priority.
  47755. // Mark the event time of this update as relevant to this render pass.
  47756. // TODO: This should ideally use the true event time of this update rather than
  47757. // its priority which is a derived and not reverseable value.
  47758. // TODO: We should skip this update if it was already committed but currently
  47759. // we have no way of detecting the difference between a committed and suspended
  47760. // update here.
  47761. markRenderEventTimeAndConfig(updateExpirationTime, _update.suspenseConfig);
  47762. // Process this update.
  47763. if (_update.eagerReducer === reducer) {
  47764. // If this update was processed eagerly, and its reducer matches the
  47765. // current reducer, we can use the eagerly computed state.
  47766. _newState = _update.eagerState;
  47767. } else {
  47768. var _action2 = _update.action;
  47769. _newState = reducer(_newState, _action2);
  47770. }
  47771. }
  47772. prevUpdate = _update;
  47773. _update = _update.next;
  47774. } while (_update !== null && _update !== first);
  47775. if (!didSkip) {
  47776. newBaseUpdate = prevUpdate;
  47777. newBaseState = _newState;
  47778. }
  47779. // Mark that the fiber performed work, but only if the new state is
  47780. // different from the current state.
  47781. if (!is(_newState, hook.memoizedState)) {
  47782. markWorkInProgressReceivedUpdate();
  47783. }
  47784. hook.memoizedState = _newState;
  47785. hook.baseUpdate = newBaseUpdate;
  47786. hook.baseState = newBaseState;
  47787. queue.lastRenderedState = _newState;
  47788. }
  47789. var dispatch = queue.dispatch;
  47790. return [hook.memoizedState, dispatch];
  47791. }
  47792. function mountState(initialState) {
  47793. var hook = mountWorkInProgressHook();
  47794. if (typeof initialState === 'function') {
  47795. initialState = initialState();
  47796. }
  47797. hook.memoizedState = hook.baseState = initialState;
  47798. var queue = hook.queue = {
  47799. last: null,
  47800. dispatch: null,
  47801. lastRenderedReducer: basicStateReducer,
  47802. lastRenderedState: initialState
  47803. };
  47804. var dispatch = queue.dispatch = dispatchAction.bind(null,
  47805. // Flow doesn't know this is non-null, but we do.
  47806. currentlyRenderingFiber$1, queue);
  47807. return [hook.memoizedState, dispatch];
  47808. }
  47809. function updateState(initialState) {
  47810. return updateReducer(basicStateReducer, initialState);
  47811. }
  47812. function pushEffect(tag, create, destroy, deps) {
  47813. var effect = {
  47814. tag: tag,
  47815. create: create,
  47816. destroy: destroy,
  47817. deps: deps,
  47818. // Circular
  47819. next: null
  47820. };
  47821. if (componentUpdateQueue === null) {
  47822. componentUpdateQueue = createFunctionComponentUpdateQueue();
  47823. componentUpdateQueue.lastEffect = effect.next = effect;
  47824. } else {
  47825. var _lastEffect = componentUpdateQueue.lastEffect;
  47826. if (_lastEffect === null) {
  47827. componentUpdateQueue.lastEffect = effect.next = effect;
  47828. } else {
  47829. var firstEffect = _lastEffect.next;
  47830. _lastEffect.next = effect;
  47831. effect.next = firstEffect;
  47832. componentUpdateQueue.lastEffect = effect;
  47833. }
  47834. }
  47835. return effect;
  47836. }
  47837. function mountRef(initialValue) {
  47838. var hook = mountWorkInProgressHook();
  47839. var ref = { current: initialValue };
  47840. {
  47841. Object.seal(ref);
  47842. }
  47843. hook.memoizedState = ref;
  47844. return ref;
  47845. }
  47846. function updateRef(initialValue) {
  47847. var hook = updateWorkInProgressHook();
  47848. return hook.memoizedState;
  47849. }
  47850. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  47851. var hook = mountWorkInProgressHook();
  47852. var nextDeps = deps === undefined ? null : deps;
  47853. sideEffectTag |= fiberEffectTag;
  47854. hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps);
  47855. }
  47856. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  47857. var hook = updateWorkInProgressHook();
  47858. var nextDeps = deps === undefined ? null : deps;
  47859. var destroy = undefined;
  47860. if (currentHook !== null) {
  47861. var prevEffect = currentHook.memoizedState;
  47862. destroy = prevEffect.destroy;
  47863. if (nextDeps !== null) {
  47864. var prevDeps = prevEffect.deps;
  47865. if (areHookInputsEqual(nextDeps, prevDeps)) {
  47866. pushEffect(NoEffect$1, create, destroy, nextDeps);
  47867. return;
  47868. }
  47869. }
  47870. }
  47871. sideEffectTag |= fiberEffectTag;
  47872. hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps);
  47873. }
  47874. function mountEffect(create, deps) {
  47875. {
  47876. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  47877. if ('undefined' !== typeof jest) {
  47878. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  47879. }
  47880. }
  47881. return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  47882. }
  47883. function updateEffect(create, deps) {
  47884. {
  47885. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  47886. if ('undefined' !== typeof jest) {
  47887. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  47888. }
  47889. }
  47890. return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  47891. }
  47892. function mountLayoutEffect(create, deps) {
  47893. return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  47894. }
  47895. function updateLayoutEffect(create, deps) {
  47896. return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  47897. }
  47898. function imperativeHandleEffect(create, ref) {
  47899. if (typeof ref === 'function') {
  47900. var refCallback = ref;
  47901. var _inst = create();
  47902. refCallback(_inst);
  47903. return function () {
  47904. refCallback(null);
  47905. };
  47906. } else if (ref !== null && ref !== undefined) {
  47907. var refObject = ref;
  47908. {
  47909. !refObject.hasOwnProperty('current') ? warning$1(false, 'Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}') : void 0;
  47910. }
  47911. var _inst2 = create();
  47912. refObject.current = _inst2;
  47913. return function () {
  47914. refObject.current = null;
  47915. };
  47916. }
  47917. }
  47918. function mountImperativeHandle(ref, create, deps) {
  47919. {
  47920. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  47921. }
  47922. // TODO: If deps are provided, should we skip comparing the ref itself?
  47923. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  47924. return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  47925. }
  47926. function updateImperativeHandle(ref, create, deps) {
  47927. {
  47928. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  47929. }
  47930. // TODO: If deps are provided, should we skip comparing the ref itself?
  47931. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  47932. return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  47933. }
  47934. function mountDebugValue(value, formatterFn) {
  47935. // This hook is normally a no-op.
  47936. // The react-debug-hooks package injects its own implementation
  47937. // so that e.g. DevTools can display custom hook values.
  47938. }
  47939. var updateDebugValue = mountDebugValue;
  47940. function mountCallback(callback, deps) {
  47941. var hook = mountWorkInProgressHook();
  47942. var nextDeps = deps === undefined ? null : deps;
  47943. hook.memoizedState = [callback, nextDeps];
  47944. return callback;
  47945. }
  47946. function updateCallback(callback, deps) {
  47947. var hook = updateWorkInProgressHook();
  47948. var nextDeps = deps === undefined ? null : deps;
  47949. var prevState = hook.memoizedState;
  47950. if (prevState !== null) {
  47951. if (nextDeps !== null) {
  47952. var prevDeps = prevState[1];
  47953. if (areHookInputsEqual(nextDeps, prevDeps)) {
  47954. return prevState[0];
  47955. }
  47956. }
  47957. }
  47958. hook.memoizedState = [callback, nextDeps];
  47959. return callback;
  47960. }
  47961. function mountMemo(nextCreate, deps) {
  47962. var hook = mountWorkInProgressHook();
  47963. var nextDeps = deps === undefined ? null : deps;
  47964. var nextValue = nextCreate();
  47965. hook.memoizedState = [nextValue, nextDeps];
  47966. return nextValue;
  47967. }
  47968. function updateMemo(nextCreate, deps) {
  47969. var hook = updateWorkInProgressHook();
  47970. var nextDeps = deps === undefined ? null : deps;
  47971. var prevState = hook.memoizedState;
  47972. if (prevState !== null) {
  47973. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  47974. if (nextDeps !== null) {
  47975. var prevDeps = prevState[1];
  47976. if (areHookInputsEqual(nextDeps, prevDeps)) {
  47977. return prevState[0];
  47978. }
  47979. }
  47980. }
  47981. var nextValue = nextCreate();
  47982. hook.memoizedState = [nextValue, nextDeps];
  47983. return nextValue;
  47984. }
  47985. function dispatchAction(fiber, queue, action) {
  47986. (function () {
  47987. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  47988. {
  47989. throw ReactError(Error('Too many re-renders. React limits the number of renders to prevent an infinite loop.'));
  47990. }
  47991. }
  47992. })();
  47993. {
  47994. !(arguments.length <= 3) ? warning$1(false, "State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().') : void 0;
  47995. }
  47996. var alternate = fiber.alternate;
  47997. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  47998. // This is a render phase update. Stash it in a lazily-created map of
  47999. // queue -> linked list of updates. After this render pass, we'll restart
  48000. // and apply the stashed updates on top of the work-in-progress hook.
  48001. didScheduleRenderPhaseUpdate = true;
  48002. var update = {
  48003. expirationTime: renderExpirationTime$1,
  48004. suspenseConfig: null,
  48005. action: action,
  48006. eagerReducer: null,
  48007. eagerState: null,
  48008. next: null
  48009. };
  48010. {
  48011. update.priority = getCurrentPriorityLevel();
  48012. }
  48013. if (renderPhaseUpdates === null) {
  48014. renderPhaseUpdates = new Map();
  48015. }
  48016. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  48017. if (firstRenderPhaseUpdate === undefined) {
  48018. renderPhaseUpdates.set(queue, update);
  48019. } else {
  48020. // Append the update to the end of the list.
  48021. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  48022. while (lastRenderPhaseUpdate.next !== null) {
  48023. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  48024. }
  48025. lastRenderPhaseUpdate.next = update;
  48026. }
  48027. } else {
  48028. if (revertPassiveEffectsChange) {
  48029. flushPassiveEffects();
  48030. }
  48031. var currentTime = requestCurrentTime();
  48032. var _suspenseConfig = requestCurrentSuspenseConfig();
  48033. var _expirationTime = computeExpirationForFiber(currentTime, fiber, _suspenseConfig);
  48034. var _update2 = {
  48035. expirationTime: _expirationTime,
  48036. suspenseConfig: _suspenseConfig,
  48037. action: action,
  48038. eagerReducer: null,
  48039. eagerState: null,
  48040. next: null
  48041. };
  48042. {
  48043. _update2.priority = getCurrentPriorityLevel();
  48044. }
  48045. // Append the update to the end of the list.
  48046. var _last = queue.last;
  48047. if (_last === null) {
  48048. // This is the first update. Create a circular list.
  48049. _update2.next = _update2;
  48050. } else {
  48051. var first = _last.next;
  48052. if (first !== null) {
  48053. // Still circular.
  48054. _update2.next = first;
  48055. }
  48056. _last.next = _update2;
  48057. }
  48058. queue.last = _update2;
  48059. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  48060. // The queue is currently empty, which means we can eagerly compute the
  48061. // next state before entering the render phase. If the new state is the
  48062. // same as the current state, we may be able to bail out entirely.
  48063. var _lastRenderedReducer = queue.lastRenderedReducer;
  48064. if (_lastRenderedReducer !== null) {
  48065. var prevDispatcher = void 0;
  48066. {
  48067. prevDispatcher = ReactCurrentDispatcher$1.current;
  48068. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48069. }
  48070. try {
  48071. var currentState = queue.lastRenderedState;
  48072. var _eagerState = _lastRenderedReducer(currentState, action);
  48073. // Stash the eagerly computed state, and the reducer used to compute
  48074. // it, on the update object. If the reducer hasn't changed by the
  48075. // time we enter the render phase, then the eager state can be used
  48076. // without calling the reducer again.
  48077. _update2.eagerReducer = _lastRenderedReducer;
  48078. _update2.eagerState = _eagerState;
  48079. if (is(_eagerState, currentState)) {
  48080. // Fast path. We can bail out without scheduling React to re-render.
  48081. // It's still possible that we'll need to rebase this update later,
  48082. // if the component re-renders for a different reason and by that
  48083. // time the reducer has changed.
  48084. return;
  48085. }
  48086. } catch (error) {
  48087. // Suppress the error. It will throw again in the render phase.
  48088. } finally {
  48089. {
  48090. ReactCurrentDispatcher$1.current = prevDispatcher;
  48091. }
  48092. }
  48093. }
  48094. }
  48095. {
  48096. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  48097. if ('undefined' !== typeof jest) {
  48098. warnIfNotScopedWithMatchingAct(fiber);
  48099. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  48100. }
  48101. }
  48102. scheduleWork(fiber, _expirationTime);
  48103. }
  48104. }
  48105. var ContextOnlyDispatcher = {
  48106. readContext: readContext,
  48107. useCallback: throwInvalidHookError,
  48108. useContext: throwInvalidHookError,
  48109. useEffect: throwInvalidHookError,
  48110. useImperativeHandle: throwInvalidHookError,
  48111. useLayoutEffect: throwInvalidHookError,
  48112. useMemo: throwInvalidHookError,
  48113. useReducer: throwInvalidHookError,
  48114. useRef: throwInvalidHookError,
  48115. useState: throwInvalidHookError,
  48116. useDebugValue: throwInvalidHookError,
  48117. useResponder: throwInvalidHookError
  48118. };
  48119. var HooksDispatcherOnMountInDEV = null;
  48120. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  48121. var HooksDispatcherOnUpdateInDEV = null;
  48122. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  48123. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  48124. {
  48125. var warnInvalidContextAccess = function () {
  48126. warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
  48127. };
  48128. var warnInvalidHookAccess = function () {
  48129. warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');
  48130. };
  48131. HooksDispatcherOnMountInDEV = {
  48132. readContext: function (context, observedBits) {
  48133. return readContext(context, observedBits);
  48134. },
  48135. useCallback: function (callback, deps) {
  48136. currentHookNameInDev = 'useCallback';
  48137. mountHookTypesDev();
  48138. checkDepsAreArrayDev(deps);
  48139. return mountCallback(callback, deps);
  48140. },
  48141. useContext: function (context, observedBits) {
  48142. currentHookNameInDev = 'useContext';
  48143. mountHookTypesDev();
  48144. return readContext(context, observedBits);
  48145. },
  48146. useEffect: function (create, deps) {
  48147. currentHookNameInDev = 'useEffect';
  48148. mountHookTypesDev();
  48149. checkDepsAreArrayDev(deps);
  48150. return mountEffect(create, deps);
  48151. },
  48152. useImperativeHandle: function (ref, create, deps) {
  48153. currentHookNameInDev = 'useImperativeHandle';
  48154. mountHookTypesDev();
  48155. checkDepsAreArrayDev(deps);
  48156. return mountImperativeHandle(ref, create, deps);
  48157. },
  48158. useLayoutEffect: function (create, deps) {
  48159. currentHookNameInDev = 'useLayoutEffect';
  48160. mountHookTypesDev();
  48161. checkDepsAreArrayDev(deps);
  48162. return mountLayoutEffect(create, deps);
  48163. },
  48164. useMemo: function (create, deps) {
  48165. currentHookNameInDev = 'useMemo';
  48166. mountHookTypesDev();
  48167. checkDepsAreArrayDev(deps);
  48168. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48169. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48170. try {
  48171. return mountMemo(create, deps);
  48172. } finally {
  48173. ReactCurrentDispatcher$1.current = prevDispatcher;
  48174. }
  48175. },
  48176. useReducer: function (reducer, initialArg, init) {
  48177. currentHookNameInDev = 'useReducer';
  48178. mountHookTypesDev();
  48179. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48180. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48181. try {
  48182. return mountReducer(reducer, initialArg, init);
  48183. } finally {
  48184. ReactCurrentDispatcher$1.current = prevDispatcher;
  48185. }
  48186. },
  48187. useRef: function (initialValue) {
  48188. currentHookNameInDev = 'useRef';
  48189. mountHookTypesDev();
  48190. return mountRef(initialValue);
  48191. },
  48192. useState: function (initialState) {
  48193. currentHookNameInDev = 'useState';
  48194. mountHookTypesDev();
  48195. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48196. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48197. try {
  48198. return mountState(initialState);
  48199. } finally {
  48200. ReactCurrentDispatcher$1.current = prevDispatcher;
  48201. }
  48202. },
  48203. useDebugValue: function (value, formatterFn) {
  48204. currentHookNameInDev = 'useDebugValue';
  48205. mountHookTypesDev();
  48206. return mountDebugValue(value, formatterFn);
  48207. },
  48208. useResponder: function (responder, props) {
  48209. currentHookNameInDev = 'useResponder';
  48210. mountHookTypesDev();
  48211. return createResponderListener(responder, props);
  48212. }
  48213. };
  48214. HooksDispatcherOnMountWithHookTypesInDEV = {
  48215. readContext: function (context, observedBits) {
  48216. return readContext(context, observedBits);
  48217. },
  48218. useCallback: function (callback, deps) {
  48219. currentHookNameInDev = 'useCallback';
  48220. updateHookTypesDev();
  48221. return mountCallback(callback, deps);
  48222. },
  48223. useContext: function (context, observedBits) {
  48224. currentHookNameInDev = 'useContext';
  48225. updateHookTypesDev();
  48226. return readContext(context, observedBits);
  48227. },
  48228. useEffect: function (create, deps) {
  48229. currentHookNameInDev = 'useEffect';
  48230. updateHookTypesDev();
  48231. return mountEffect(create, deps);
  48232. },
  48233. useImperativeHandle: function (ref, create, deps) {
  48234. currentHookNameInDev = 'useImperativeHandle';
  48235. updateHookTypesDev();
  48236. return mountImperativeHandle(ref, create, deps);
  48237. },
  48238. useLayoutEffect: function (create, deps) {
  48239. currentHookNameInDev = 'useLayoutEffect';
  48240. updateHookTypesDev();
  48241. return mountLayoutEffect(create, deps);
  48242. },
  48243. useMemo: function (create, deps) {
  48244. currentHookNameInDev = 'useMemo';
  48245. updateHookTypesDev();
  48246. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48247. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48248. try {
  48249. return mountMemo(create, deps);
  48250. } finally {
  48251. ReactCurrentDispatcher$1.current = prevDispatcher;
  48252. }
  48253. },
  48254. useReducer: function (reducer, initialArg, init) {
  48255. currentHookNameInDev = 'useReducer';
  48256. updateHookTypesDev();
  48257. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48258. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48259. try {
  48260. return mountReducer(reducer, initialArg, init);
  48261. } finally {
  48262. ReactCurrentDispatcher$1.current = prevDispatcher;
  48263. }
  48264. },
  48265. useRef: function (initialValue) {
  48266. currentHookNameInDev = 'useRef';
  48267. updateHookTypesDev();
  48268. return mountRef(initialValue);
  48269. },
  48270. useState: function (initialState) {
  48271. currentHookNameInDev = 'useState';
  48272. updateHookTypesDev();
  48273. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48274. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48275. try {
  48276. return mountState(initialState);
  48277. } finally {
  48278. ReactCurrentDispatcher$1.current = prevDispatcher;
  48279. }
  48280. },
  48281. useDebugValue: function (value, formatterFn) {
  48282. currentHookNameInDev = 'useDebugValue';
  48283. updateHookTypesDev();
  48284. return mountDebugValue(value, formatterFn);
  48285. },
  48286. useResponder: function (responder, props) {
  48287. currentHookNameInDev = 'useResponder';
  48288. updateHookTypesDev();
  48289. return createResponderListener(responder, props);
  48290. }
  48291. };
  48292. HooksDispatcherOnUpdateInDEV = {
  48293. readContext: function (context, observedBits) {
  48294. return readContext(context, observedBits);
  48295. },
  48296. useCallback: function (callback, deps) {
  48297. currentHookNameInDev = 'useCallback';
  48298. updateHookTypesDev();
  48299. return updateCallback(callback, deps);
  48300. },
  48301. useContext: function (context, observedBits) {
  48302. currentHookNameInDev = 'useContext';
  48303. updateHookTypesDev();
  48304. return readContext(context, observedBits);
  48305. },
  48306. useEffect: function (create, deps) {
  48307. currentHookNameInDev = 'useEffect';
  48308. updateHookTypesDev();
  48309. return updateEffect(create, deps);
  48310. },
  48311. useImperativeHandle: function (ref, create, deps) {
  48312. currentHookNameInDev = 'useImperativeHandle';
  48313. updateHookTypesDev();
  48314. return updateImperativeHandle(ref, create, deps);
  48315. },
  48316. useLayoutEffect: function (create, deps) {
  48317. currentHookNameInDev = 'useLayoutEffect';
  48318. updateHookTypesDev();
  48319. return updateLayoutEffect(create, deps);
  48320. },
  48321. useMemo: function (create, deps) {
  48322. currentHookNameInDev = 'useMemo';
  48323. updateHookTypesDev();
  48324. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48325. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48326. try {
  48327. return updateMemo(create, deps);
  48328. } finally {
  48329. ReactCurrentDispatcher$1.current = prevDispatcher;
  48330. }
  48331. },
  48332. useReducer: function (reducer, initialArg, init) {
  48333. currentHookNameInDev = 'useReducer';
  48334. updateHookTypesDev();
  48335. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48336. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48337. try {
  48338. return updateReducer(reducer, initialArg, init);
  48339. } finally {
  48340. ReactCurrentDispatcher$1.current = prevDispatcher;
  48341. }
  48342. },
  48343. useRef: function (initialValue) {
  48344. currentHookNameInDev = 'useRef';
  48345. updateHookTypesDev();
  48346. return updateRef(initialValue);
  48347. },
  48348. useState: function (initialState) {
  48349. currentHookNameInDev = 'useState';
  48350. updateHookTypesDev();
  48351. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48352. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48353. try {
  48354. return updateState(initialState);
  48355. } finally {
  48356. ReactCurrentDispatcher$1.current = prevDispatcher;
  48357. }
  48358. },
  48359. useDebugValue: function (value, formatterFn) {
  48360. currentHookNameInDev = 'useDebugValue';
  48361. updateHookTypesDev();
  48362. return updateDebugValue(value, formatterFn);
  48363. },
  48364. useResponder: function (responder, props) {
  48365. currentHookNameInDev = 'useResponder';
  48366. updateHookTypesDev();
  48367. return createResponderListener(responder, props);
  48368. }
  48369. };
  48370. InvalidNestedHooksDispatcherOnMountInDEV = {
  48371. readContext: function (context, observedBits) {
  48372. warnInvalidContextAccess();
  48373. return readContext(context, observedBits);
  48374. },
  48375. useCallback: function (callback, deps) {
  48376. currentHookNameInDev = 'useCallback';
  48377. warnInvalidHookAccess();
  48378. mountHookTypesDev();
  48379. return mountCallback(callback, deps);
  48380. },
  48381. useContext: function (context, observedBits) {
  48382. currentHookNameInDev = 'useContext';
  48383. warnInvalidHookAccess();
  48384. mountHookTypesDev();
  48385. return readContext(context, observedBits);
  48386. },
  48387. useEffect: function (create, deps) {
  48388. currentHookNameInDev = 'useEffect';
  48389. warnInvalidHookAccess();
  48390. mountHookTypesDev();
  48391. return mountEffect(create, deps);
  48392. },
  48393. useImperativeHandle: function (ref, create, deps) {
  48394. currentHookNameInDev = 'useImperativeHandle';
  48395. warnInvalidHookAccess();
  48396. mountHookTypesDev();
  48397. return mountImperativeHandle(ref, create, deps);
  48398. },
  48399. useLayoutEffect: function (create, deps) {
  48400. currentHookNameInDev = 'useLayoutEffect';
  48401. warnInvalidHookAccess();
  48402. mountHookTypesDev();
  48403. return mountLayoutEffect(create, deps);
  48404. },
  48405. useMemo: function (create, deps) {
  48406. currentHookNameInDev = 'useMemo';
  48407. warnInvalidHookAccess();
  48408. mountHookTypesDev();
  48409. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48410. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48411. try {
  48412. return mountMemo(create, deps);
  48413. } finally {
  48414. ReactCurrentDispatcher$1.current = prevDispatcher;
  48415. }
  48416. },
  48417. useReducer: function (reducer, initialArg, init) {
  48418. currentHookNameInDev = 'useReducer';
  48419. warnInvalidHookAccess();
  48420. mountHookTypesDev();
  48421. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48422. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48423. try {
  48424. return mountReducer(reducer, initialArg, init);
  48425. } finally {
  48426. ReactCurrentDispatcher$1.current = prevDispatcher;
  48427. }
  48428. },
  48429. useRef: function (initialValue) {
  48430. currentHookNameInDev = 'useRef';
  48431. warnInvalidHookAccess();
  48432. mountHookTypesDev();
  48433. return mountRef(initialValue);
  48434. },
  48435. useState: function (initialState) {
  48436. currentHookNameInDev = 'useState';
  48437. warnInvalidHookAccess();
  48438. mountHookTypesDev();
  48439. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48440. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48441. try {
  48442. return mountState(initialState);
  48443. } finally {
  48444. ReactCurrentDispatcher$1.current = prevDispatcher;
  48445. }
  48446. },
  48447. useDebugValue: function (value, formatterFn) {
  48448. currentHookNameInDev = 'useDebugValue';
  48449. warnInvalidHookAccess();
  48450. mountHookTypesDev();
  48451. return mountDebugValue(value, formatterFn);
  48452. },
  48453. useResponder: function (responder, props) {
  48454. currentHookNameInDev = 'useResponder';
  48455. warnInvalidHookAccess();
  48456. mountHookTypesDev();
  48457. return createResponderListener(responder, props);
  48458. }
  48459. };
  48460. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  48461. readContext: function (context, observedBits) {
  48462. warnInvalidContextAccess();
  48463. return readContext(context, observedBits);
  48464. },
  48465. useCallback: function (callback, deps) {
  48466. currentHookNameInDev = 'useCallback';
  48467. warnInvalidHookAccess();
  48468. updateHookTypesDev();
  48469. return updateCallback(callback, deps);
  48470. },
  48471. useContext: function (context, observedBits) {
  48472. currentHookNameInDev = 'useContext';
  48473. warnInvalidHookAccess();
  48474. updateHookTypesDev();
  48475. return readContext(context, observedBits);
  48476. },
  48477. useEffect: function (create, deps) {
  48478. currentHookNameInDev = 'useEffect';
  48479. warnInvalidHookAccess();
  48480. updateHookTypesDev();
  48481. return updateEffect(create, deps);
  48482. },
  48483. useImperativeHandle: function (ref, create, deps) {
  48484. currentHookNameInDev = 'useImperativeHandle';
  48485. warnInvalidHookAccess();
  48486. updateHookTypesDev();
  48487. return updateImperativeHandle(ref, create, deps);
  48488. },
  48489. useLayoutEffect: function (create, deps) {
  48490. currentHookNameInDev = 'useLayoutEffect';
  48491. warnInvalidHookAccess();
  48492. updateHookTypesDev();
  48493. return updateLayoutEffect(create, deps);
  48494. },
  48495. useMemo: function (create, deps) {
  48496. currentHookNameInDev = 'useMemo';
  48497. warnInvalidHookAccess();
  48498. updateHookTypesDev();
  48499. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48500. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48501. try {
  48502. return updateMemo(create, deps);
  48503. } finally {
  48504. ReactCurrentDispatcher$1.current = prevDispatcher;
  48505. }
  48506. },
  48507. useReducer: function (reducer, initialArg, init) {
  48508. currentHookNameInDev = 'useReducer';
  48509. warnInvalidHookAccess();
  48510. updateHookTypesDev();
  48511. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48512. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48513. try {
  48514. return updateReducer(reducer, initialArg, init);
  48515. } finally {
  48516. ReactCurrentDispatcher$1.current = prevDispatcher;
  48517. }
  48518. },
  48519. useRef: function (initialValue) {
  48520. currentHookNameInDev = 'useRef';
  48521. warnInvalidHookAccess();
  48522. updateHookTypesDev();
  48523. return updateRef(initialValue);
  48524. },
  48525. useState: function (initialState) {
  48526. currentHookNameInDev = 'useState';
  48527. warnInvalidHookAccess();
  48528. updateHookTypesDev();
  48529. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48530. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48531. try {
  48532. return updateState(initialState);
  48533. } finally {
  48534. ReactCurrentDispatcher$1.current = prevDispatcher;
  48535. }
  48536. },
  48537. useDebugValue: function (value, formatterFn) {
  48538. currentHookNameInDev = 'useDebugValue';
  48539. warnInvalidHookAccess();
  48540. updateHookTypesDev();
  48541. return updateDebugValue(value, formatterFn);
  48542. },
  48543. useResponder: function (responder, props) {
  48544. currentHookNameInDev = 'useResponder';
  48545. warnInvalidHookAccess();
  48546. updateHookTypesDev();
  48547. return createResponderListener(responder, props);
  48548. }
  48549. };
  48550. }
  48551. // Intentionally not named imports because Rollup would use dynamic dispatch for
  48552. // CommonJS interop named imports.
  48553. var now$1 = Scheduler.unstable_now;
  48554. var commitTime = 0;
  48555. var profilerStartTime = -1;
  48556. function getCommitTime() {
  48557. return commitTime;
  48558. }
  48559. function recordCommitTime() {
  48560. if (!enableProfilerTimer) {
  48561. return;
  48562. }
  48563. commitTime = now$1();
  48564. }
  48565. function startProfilerTimer(fiber) {
  48566. if (!enableProfilerTimer) {
  48567. return;
  48568. }
  48569. profilerStartTime = now$1();
  48570. if (fiber.actualStartTime < 0) {
  48571. fiber.actualStartTime = now$1();
  48572. }
  48573. }
  48574. function stopProfilerTimerIfRunning(fiber) {
  48575. if (!enableProfilerTimer) {
  48576. return;
  48577. }
  48578. profilerStartTime = -1;
  48579. }
  48580. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  48581. if (!enableProfilerTimer) {
  48582. return;
  48583. }
  48584. if (profilerStartTime >= 0) {
  48585. var elapsedTime = now$1() - profilerStartTime;
  48586. fiber.actualDuration += elapsedTime;
  48587. if (overrideBaseTime) {
  48588. fiber.selfBaseDuration = elapsedTime;
  48589. }
  48590. profilerStartTime = -1;
  48591. }
  48592. }
  48593. // The deepest Fiber on the stack involved in a hydration context.
  48594. // This may have been an insertion or a hydration.
  48595. var hydrationParentFiber = null;
  48596. var nextHydratableInstance = null;
  48597. var isHydrating = false;
  48598. function enterHydrationState(fiber) {
  48599. if (!supportsHydration) {
  48600. return false;
  48601. }
  48602. var parentInstance = fiber.stateNode.containerInfo;
  48603. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  48604. hydrationParentFiber = fiber;
  48605. isHydrating = true;
  48606. return true;
  48607. }
  48608. function reenterHydrationStateFromDehydratedSuspenseInstance(fiber) {
  48609. if (!supportsHydration) {
  48610. return false;
  48611. }
  48612. var suspenseInstance = fiber.stateNode;
  48613. nextHydratableInstance = getNextHydratableSibling(suspenseInstance);
  48614. popToNextHostParent(fiber);
  48615. isHydrating = true;
  48616. return true;
  48617. }
  48618. function deleteHydratableInstance(returnFiber, instance) {
  48619. {
  48620. switch (returnFiber.tag) {
  48621. case HostRoot:
  48622. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  48623. break;
  48624. case HostComponent:
  48625. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  48626. break;
  48627. }
  48628. }
  48629. var childToDelete = createFiberFromHostInstanceForDeletion();
  48630. childToDelete.stateNode = instance;
  48631. childToDelete.return = returnFiber;
  48632. childToDelete.effectTag = Deletion;
  48633. // This might seem like it belongs on progressedFirstDeletion. However,
  48634. // these children are not part of the reconciliation list of children.
  48635. // Even if we abort and rereconcile the children, that will try to hydrate
  48636. // again and the nodes are still in the host tree so these will be
  48637. // recreated.
  48638. if (returnFiber.lastEffect !== null) {
  48639. returnFiber.lastEffect.nextEffect = childToDelete;
  48640. returnFiber.lastEffect = childToDelete;
  48641. } else {
  48642. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  48643. }
  48644. }
  48645. function insertNonHydratedInstance(returnFiber, fiber) {
  48646. fiber.effectTag |= Placement;
  48647. {
  48648. switch (returnFiber.tag) {
  48649. case HostRoot:
  48650. {
  48651. var parentContainer = returnFiber.stateNode.containerInfo;
  48652. switch (fiber.tag) {
  48653. case HostComponent:
  48654. var type = fiber.type;
  48655. var props = fiber.pendingProps;
  48656. didNotFindHydratableContainerInstance(parentContainer, type, props);
  48657. break;
  48658. case HostText:
  48659. var text = fiber.pendingProps;
  48660. didNotFindHydratableContainerTextInstance(parentContainer, text);
  48661. break;
  48662. case SuspenseComponent:
  48663. break;
  48664. }
  48665. break;
  48666. }
  48667. case HostComponent:
  48668. {
  48669. var parentType = returnFiber.type;
  48670. var parentProps = returnFiber.memoizedProps;
  48671. var parentInstance = returnFiber.stateNode;
  48672. switch (fiber.tag) {
  48673. case HostComponent:
  48674. var _type = fiber.type;
  48675. var _props = fiber.pendingProps;
  48676. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  48677. break;
  48678. case HostText:
  48679. var _text = fiber.pendingProps;
  48680. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  48681. break;
  48682. case SuspenseComponent:
  48683. didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance);
  48684. break;
  48685. }
  48686. break;
  48687. }
  48688. default:
  48689. return;
  48690. }
  48691. }
  48692. }
  48693. function tryHydrate(fiber, nextInstance) {
  48694. switch (fiber.tag) {
  48695. case HostComponent:
  48696. {
  48697. var type = fiber.type;
  48698. var props = fiber.pendingProps;
  48699. var instance = canHydrateInstance(nextInstance, type, props);
  48700. if (instance !== null) {
  48701. fiber.stateNode = instance;
  48702. return true;
  48703. }
  48704. return false;
  48705. }
  48706. case HostText:
  48707. {
  48708. var text = fiber.pendingProps;
  48709. var textInstance = canHydrateTextInstance(nextInstance, text);
  48710. if (textInstance !== null) {
  48711. fiber.stateNode = textInstance;
  48712. return true;
  48713. }
  48714. return false;
  48715. }
  48716. case SuspenseComponent:
  48717. {
  48718. if (enableSuspenseServerRenderer) {
  48719. var suspenseInstance = canHydrateSuspenseInstance(nextInstance);
  48720. if (suspenseInstance !== null) {
  48721. // Downgrade the tag to a dehydrated component until we've hydrated it.
  48722. fiber.tag = DehydratedSuspenseComponent;
  48723. fiber.stateNode = suspenseInstance;
  48724. return true;
  48725. }
  48726. }
  48727. return false;
  48728. }
  48729. default:
  48730. return false;
  48731. }
  48732. }
  48733. function tryToClaimNextHydratableInstance(fiber) {
  48734. if (!isHydrating) {
  48735. return;
  48736. }
  48737. var nextInstance = nextHydratableInstance;
  48738. if (!nextInstance) {
  48739. // Nothing to hydrate. Make it an insertion.
  48740. insertNonHydratedInstance(hydrationParentFiber, fiber);
  48741. isHydrating = false;
  48742. hydrationParentFiber = fiber;
  48743. return;
  48744. }
  48745. var firstAttemptedInstance = nextInstance;
  48746. if (!tryHydrate(fiber, nextInstance)) {
  48747. // If we can't hydrate this instance let's try the next one.
  48748. // We use this as a heuristic. It's based on intuition and not data so it
  48749. // might be flawed or unnecessary.
  48750. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  48751. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  48752. // Nothing to hydrate. Make it an insertion.
  48753. insertNonHydratedInstance(hydrationParentFiber, fiber);
  48754. isHydrating = false;
  48755. hydrationParentFiber = fiber;
  48756. return;
  48757. }
  48758. // We matched the next one, we'll now assume that the first one was
  48759. // superfluous and we'll delete it. Since we can't eagerly delete it
  48760. // we'll have to schedule a deletion. To do that, this node needs a dummy
  48761. // fiber associated with it.
  48762. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  48763. }
  48764. hydrationParentFiber = fiber;
  48765. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  48766. }
  48767. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  48768. if (!supportsHydration) {
  48769. (function () {
  48770. {
  48771. {
  48772. throw ReactError(Error('Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  48773. }
  48774. }
  48775. })();
  48776. }
  48777. var instance = fiber.stateNode;
  48778. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  48779. // TODO: Type this specific to this type of component.
  48780. fiber.updateQueue = updatePayload;
  48781. // If the update payload indicates that there is a change or if there
  48782. // is a new ref we mark this as an update.
  48783. if (updatePayload !== null) {
  48784. return true;
  48785. }
  48786. return false;
  48787. }
  48788. function prepareToHydrateHostTextInstance(fiber) {
  48789. if (!supportsHydration) {
  48790. (function () {
  48791. {
  48792. {
  48793. throw ReactError(Error('Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  48794. }
  48795. }
  48796. })();
  48797. }
  48798. var textInstance = fiber.stateNode;
  48799. var textContent = fiber.memoizedProps;
  48800. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  48801. {
  48802. if (shouldUpdate) {
  48803. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  48804. // hydration parent is the parent host component of this host text.
  48805. var returnFiber = hydrationParentFiber;
  48806. if (returnFiber !== null) {
  48807. switch (returnFiber.tag) {
  48808. case HostRoot:
  48809. {
  48810. var parentContainer = returnFiber.stateNode.containerInfo;
  48811. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  48812. break;
  48813. }
  48814. case HostComponent:
  48815. {
  48816. var parentType = returnFiber.type;
  48817. var parentProps = returnFiber.memoizedProps;
  48818. var parentInstance = returnFiber.stateNode;
  48819. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  48820. break;
  48821. }
  48822. }
  48823. }
  48824. }
  48825. }
  48826. return shouldUpdate;
  48827. }
  48828. function skipPastDehydratedSuspenseInstance(fiber) {
  48829. if (!supportsHydration) {
  48830. (function () {
  48831. {
  48832. {
  48833. throw ReactError(Error('Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  48834. }
  48835. }
  48836. })();
  48837. }
  48838. var suspenseInstance = fiber.stateNode;
  48839. (function () {
  48840. if (!suspenseInstance) {
  48841. {
  48842. throw ReactError(Error('Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.'));
  48843. }
  48844. }
  48845. })();
  48846. nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  48847. }
  48848. function popToNextHostParent(fiber) {
  48849. var parent = fiber.return;
  48850. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) {
  48851. parent = parent.return;
  48852. }
  48853. hydrationParentFiber = parent;
  48854. }
  48855. function popHydrationState(fiber) {
  48856. if (!supportsHydration) {
  48857. return false;
  48858. }
  48859. if (fiber !== hydrationParentFiber) {
  48860. // We're deeper than the current hydration context, inside an inserted
  48861. // tree.
  48862. return false;
  48863. }
  48864. if (!isHydrating) {
  48865. // If we're not currently hydrating but we're in a hydration context, then
  48866. // we were an insertion and now need to pop up reenter hydration of our
  48867. // siblings.
  48868. popToNextHostParent(fiber);
  48869. isHydrating = true;
  48870. return false;
  48871. }
  48872. var type = fiber.type;
  48873. // If we have any remaining hydratable nodes, we need to delete them now.
  48874. // We only do this deeper than head and body since they tend to have random
  48875. // other nodes in them. We also ignore components with pure text content in
  48876. // side of them.
  48877. // TODO: Better heuristic.
  48878. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  48879. var nextInstance = nextHydratableInstance;
  48880. while (nextInstance) {
  48881. deleteHydratableInstance(fiber, nextInstance);
  48882. nextInstance = getNextHydratableSibling(nextInstance);
  48883. }
  48884. }
  48885. popToNextHostParent(fiber);
  48886. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  48887. return true;
  48888. }
  48889. function resetHydrationState() {
  48890. if (!supportsHydration) {
  48891. return;
  48892. }
  48893. hydrationParentFiber = null;
  48894. nextHydratableInstance = null;
  48895. isHydrating = false;
  48896. }
  48897. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  48898. var didReceiveUpdate = false;
  48899. var didWarnAboutBadClass = void 0;
  48900. var didWarnAboutModulePatternComponent = void 0;
  48901. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  48902. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  48903. var didWarnAboutFunctionRefs = void 0;
  48904. var didWarnAboutReassigningProps = void 0;
  48905. var didWarnAboutMaxDuration = void 0;
  48906. var didWarnAboutRevealOrder = void 0;
  48907. var didWarnAboutTailOptions = void 0;
  48908. var didWarnAboutDefaultPropsOnFunctionComponent = void 0;
  48909. {
  48910. didWarnAboutBadClass = {};
  48911. didWarnAboutModulePatternComponent = {};
  48912. didWarnAboutContextTypeOnFunctionComponent = {};
  48913. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  48914. didWarnAboutFunctionRefs = {};
  48915. didWarnAboutReassigningProps = false;
  48916. didWarnAboutMaxDuration = false;
  48917. didWarnAboutRevealOrder = {};
  48918. didWarnAboutTailOptions = {};
  48919. didWarnAboutDefaultPropsOnFunctionComponent = {};
  48920. }
  48921. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  48922. if (current$$1 === null) {
  48923. // If this is a fresh new component that hasn't been rendered yet, we
  48924. // won't update its child set by applying minimal side-effects. Instead,
  48925. // we will add them all to the child before it gets rendered. That means
  48926. // we can optimize this reconciliation pass by not tracking side-effects.
  48927. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  48928. } else {
  48929. // If the current child is the same as the work in progress, it means that
  48930. // we haven't yet started any work on these children. Therefore, we use
  48931. // the clone algorithm to create a copy of all the current children.
  48932. // If we had any progressed work already, that is invalid at this point so
  48933. // let's throw it out.
  48934. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  48935. }
  48936. }
  48937. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  48938. // This function is fork of reconcileChildren. It's used in cases where we
  48939. // want to reconcile without matching against the existing set. This has the
  48940. // effect of all current children being unmounted; even if the type and key
  48941. // are the same, the old child is unmounted and a new child is created.
  48942. //
  48943. // To do this, we're going to go through the reconcile algorithm twice. In
  48944. // the first pass, we schedule a deletion for all the current children by
  48945. // passing null.
  48946. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  48947. // In the second pass, we mount the new children. The trick here is that we
  48948. // pass null in place of where we usually pass the current child set. This has
  48949. // the effect of remounting all children regardless of whether their their
  48950. // identity matches.
  48951. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  48952. }
  48953. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  48954. // TODO: current can be non-null here even if the component
  48955. // hasn't yet mounted. This happens after the first render suspends.
  48956. // We'll need to figure out if this is fine or can cause issues.
  48957. {
  48958. if (workInProgress.type !== workInProgress.elementType) {
  48959. // Lazy component props can't be validated in createElement
  48960. // because they're only guaranteed to be resolved here.
  48961. var innerPropTypes = Component.propTypes;
  48962. if (innerPropTypes) {
  48963. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  48964. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  48965. }
  48966. }
  48967. }
  48968. var render = Component.render;
  48969. var ref = workInProgress.ref;
  48970. // The rest is a fork of updateFunctionComponent
  48971. var nextChildren = void 0;
  48972. prepareToReadContext(workInProgress, renderExpirationTime);
  48973. {
  48974. ReactCurrentOwner$3.current = workInProgress;
  48975. setCurrentPhase('render');
  48976. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  48977. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  48978. // Only double-render components with Hooks
  48979. if (workInProgress.memoizedState !== null) {
  48980. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  48981. }
  48982. }
  48983. setCurrentPhase(null);
  48984. }
  48985. if (current$$1 !== null && !didReceiveUpdate) {
  48986. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  48987. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  48988. }
  48989. // React DevTools reads this flag.
  48990. workInProgress.effectTag |= PerformedWork;
  48991. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  48992. return workInProgress.child;
  48993. }
  48994. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  48995. if (current$$1 === null) {
  48996. var type = Component.type;
  48997. if (isSimpleFunctionComponent(type) && Component.compare === null &&
  48998. // SimpleMemoComponent codepath doesn't resolve outer props either.
  48999. Component.defaultProps === undefined) {
  49000. var resolvedType = type;
  49001. {
  49002. resolvedType = resolveFunctionForHotReloading(type);
  49003. }
  49004. // If this is a plain function component without default props,
  49005. // and with only the default shallow comparison, we upgrade it
  49006. // to a SimpleMemoComponent to allow fast path updates.
  49007. workInProgress.tag = SimpleMemoComponent;
  49008. workInProgress.type = resolvedType;
  49009. {
  49010. validateFunctionComponentInDev(workInProgress, type);
  49011. }
  49012. return updateSimpleMemoComponent(current$$1, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  49013. }
  49014. {
  49015. var innerPropTypes = type.propTypes;
  49016. if (innerPropTypes) {
  49017. // Inner memo component props aren't currently validated in createElement.
  49018. // We could move it there, but we'd still need this for lazy code path.
  49019. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  49020. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  49021. }
  49022. }
  49023. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  49024. child.ref = workInProgress.ref;
  49025. child.return = workInProgress;
  49026. workInProgress.child = child;
  49027. return child;
  49028. }
  49029. {
  49030. var _type = Component.type;
  49031. var _innerPropTypes = _type.propTypes;
  49032. if (_innerPropTypes) {
  49033. // Inner memo component props aren't currently validated in createElement.
  49034. // We could move it there, but we'd still need this for lazy code path.
  49035. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  49036. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  49037. }
  49038. }
  49039. var currentChild = current$$1.child; // This is always exactly one child
  49040. if (updateExpirationTime < renderExpirationTime) {
  49041. // This will be the props with resolved defaultProps,
  49042. // unlike current.memoizedProps which will be the unresolved ones.
  49043. var prevProps = currentChild.memoizedProps;
  49044. // Default to shallow comparison
  49045. var compare = Component.compare;
  49046. compare = compare !== null ? compare : shallowEqual;
  49047. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  49048. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49049. }
  49050. }
  49051. // React DevTools reads this flag.
  49052. workInProgress.effectTag |= PerformedWork;
  49053. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  49054. newChild.ref = workInProgress.ref;
  49055. newChild.return = workInProgress;
  49056. workInProgress.child = newChild;
  49057. return newChild;
  49058. }
  49059. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  49060. // TODO: current can be non-null here even if the component
  49061. // hasn't yet mounted. This happens when the inner render suspends.
  49062. // We'll need to figure out if this is fine or can cause issues.
  49063. {
  49064. if (workInProgress.type !== workInProgress.elementType) {
  49065. // Lazy component props can't be validated in createElement
  49066. // because they're only guaranteed to be resolved here.
  49067. var outerMemoType = workInProgress.elementType;
  49068. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  49069. // We warn when you define propTypes on lazy()
  49070. // so let's just skip over it to find memo() outer wrapper.
  49071. // Inner props for memo are validated later.
  49072. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  49073. }
  49074. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  49075. if (outerPropTypes) {
  49076. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  49077. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  49078. }
  49079. // Inner propTypes will be validated in the function component path.
  49080. }
  49081. }
  49082. if (current$$1 !== null) {
  49083. var prevProps = current$$1.memoizedProps;
  49084. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref && (
  49085. // Prevent bailout if the implementation changed due to hot reload:
  49086. workInProgress.type === current$$1.type)) {
  49087. didReceiveUpdate = false;
  49088. if (updateExpirationTime < renderExpirationTime) {
  49089. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49090. }
  49091. }
  49092. }
  49093. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  49094. }
  49095. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  49096. var nextChildren = workInProgress.pendingProps;
  49097. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49098. return workInProgress.child;
  49099. }
  49100. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  49101. var nextChildren = workInProgress.pendingProps.children;
  49102. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49103. return workInProgress.child;
  49104. }
  49105. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  49106. if (enableProfilerTimer) {
  49107. workInProgress.effectTag |= Update;
  49108. }
  49109. var nextProps = workInProgress.pendingProps;
  49110. var nextChildren = nextProps.children;
  49111. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49112. return workInProgress.child;
  49113. }
  49114. function markRef(current$$1, workInProgress) {
  49115. var ref = workInProgress.ref;
  49116. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  49117. // Schedule a Ref effect
  49118. workInProgress.effectTag |= Ref;
  49119. }
  49120. }
  49121. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  49122. {
  49123. if (workInProgress.type !== workInProgress.elementType) {
  49124. // Lazy component props can't be validated in createElement
  49125. // because they're only guaranteed to be resolved here.
  49126. var innerPropTypes = Component.propTypes;
  49127. if (innerPropTypes) {
  49128. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  49129. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  49130. }
  49131. }
  49132. }
  49133. var context = void 0;
  49134. if (!disableLegacyContext) {
  49135. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  49136. context = getMaskedContext(workInProgress, unmaskedContext);
  49137. }
  49138. var nextChildren = void 0;
  49139. prepareToReadContext(workInProgress, renderExpirationTime);
  49140. {
  49141. ReactCurrentOwner$3.current = workInProgress;
  49142. setCurrentPhase('render');
  49143. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  49144. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  49145. // Only double-render components with Hooks
  49146. if (workInProgress.memoizedState !== null) {
  49147. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  49148. }
  49149. }
  49150. setCurrentPhase(null);
  49151. }
  49152. if (current$$1 !== null && !didReceiveUpdate) {
  49153. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  49154. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49155. }
  49156. // React DevTools reads this flag.
  49157. workInProgress.effectTag |= PerformedWork;
  49158. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49159. return workInProgress.child;
  49160. }
  49161. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  49162. {
  49163. if (workInProgress.type !== workInProgress.elementType) {
  49164. // Lazy component props can't be validated in createElement
  49165. // because they're only guaranteed to be resolved here.
  49166. var innerPropTypes = Component.propTypes;
  49167. if (innerPropTypes) {
  49168. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  49169. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  49170. }
  49171. }
  49172. }
  49173. // Push context providers early to prevent context stack mismatches.
  49174. // During mounting we don't know the child context yet as the instance doesn't exist.
  49175. // We will invalidate the child context in finishClassComponent() right after rendering.
  49176. var hasContext = void 0;
  49177. if (isContextProvider(Component)) {
  49178. hasContext = true;
  49179. pushContextProvider(workInProgress);
  49180. } else {
  49181. hasContext = false;
  49182. }
  49183. prepareToReadContext(workInProgress, renderExpirationTime);
  49184. var instance = workInProgress.stateNode;
  49185. var shouldUpdate = void 0;
  49186. if (instance === null) {
  49187. if (current$$1 !== null) {
  49188. // An class component without an instance only mounts if it suspended
  49189. // inside a non- concurrent tree, in an inconsistent state. We want to
  49190. // tree it like a new mount, even though an empty version of it already
  49191. // committed. Disconnect the alternate pointers.
  49192. current$$1.alternate = null;
  49193. workInProgress.alternate = null;
  49194. // Since this is conceptually a new fiber, schedule a Placement effect
  49195. workInProgress.effectTag |= Placement;
  49196. }
  49197. // In the initial pass we might need to construct the instance.
  49198. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49199. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49200. shouldUpdate = true;
  49201. } else if (current$$1 === null) {
  49202. // In a resume, we'll already have an instance we can reuse.
  49203. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49204. } else {
  49205. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  49206. }
  49207. var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  49208. {
  49209. var inst = workInProgress.stateNode;
  49210. if (inst.props !== nextProps) {
  49211. !didWarnAboutReassigningProps ? warning$1(false, 'It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component') : void 0;
  49212. didWarnAboutReassigningProps = true;
  49213. }
  49214. }
  49215. return nextUnitOfWork;
  49216. }
  49217. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  49218. // Refs should update even if shouldComponentUpdate returns false
  49219. markRef(current$$1, workInProgress);
  49220. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  49221. if (!shouldUpdate && !didCaptureError) {
  49222. // Context providers should defer to sCU for rendering
  49223. if (hasContext) {
  49224. invalidateContextProvider(workInProgress, Component, false);
  49225. }
  49226. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49227. }
  49228. var instance = workInProgress.stateNode;
  49229. // Rerender
  49230. ReactCurrentOwner$3.current = workInProgress;
  49231. var nextChildren = void 0;
  49232. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  49233. // If we captured an error, but getDerivedStateFrom catch is not defined,
  49234. // unmount all the children. componentDidCatch will schedule an update to
  49235. // re-render a fallback. This is temporary until we migrate everyone to
  49236. // the new API.
  49237. // TODO: Warn in a future release.
  49238. nextChildren = null;
  49239. if (enableProfilerTimer) {
  49240. stopProfilerTimerIfRunning(workInProgress);
  49241. }
  49242. } else {
  49243. {
  49244. setCurrentPhase('render');
  49245. nextChildren = instance.render();
  49246. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  49247. instance.render();
  49248. }
  49249. setCurrentPhase(null);
  49250. }
  49251. }
  49252. // React DevTools reads this flag.
  49253. workInProgress.effectTag |= PerformedWork;
  49254. if (current$$1 !== null && didCaptureError) {
  49255. // If we're recovering from an error, reconcile without reusing any of
  49256. // the existing children. Conceptually, the normal children and the children
  49257. // that are shown on error are two different sets, so we shouldn't reuse
  49258. // normal children even if their identities match.
  49259. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49260. } else {
  49261. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49262. }
  49263. // Memoize state using the values we just used to render.
  49264. // TODO: Restructure so we never read values from the instance.
  49265. workInProgress.memoizedState = instance.state;
  49266. // The context might have changed so we need to recalculate it.
  49267. if (hasContext) {
  49268. invalidateContextProvider(workInProgress, Component, true);
  49269. }
  49270. return workInProgress.child;
  49271. }
  49272. function pushHostRootContext(workInProgress) {
  49273. var root = workInProgress.stateNode;
  49274. if (root.pendingContext) {
  49275. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  49276. } else if (root.context) {
  49277. // Should always be set
  49278. pushTopLevelContextObject(workInProgress, root.context, false);
  49279. }
  49280. pushHostContainer(workInProgress, root.containerInfo);
  49281. }
  49282. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  49283. pushHostRootContext(workInProgress);
  49284. var updateQueue = workInProgress.updateQueue;
  49285. (function () {
  49286. if (!(updateQueue !== null)) {
  49287. {
  49288. throw ReactError(Error('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.'));
  49289. }
  49290. }
  49291. })();
  49292. var nextProps = workInProgress.pendingProps;
  49293. var prevState = workInProgress.memoizedState;
  49294. var prevChildren = prevState !== null ? prevState.element : null;
  49295. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  49296. var nextState = workInProgress.memoizedState;
  49297. // Caution: React DevTools currently depends on this property
  49298. // being called "element".
  49299. var nextChildren = nextState.element;
  49300. if (nextChildren === prevChildren) {
  49301. // If the state is the same as before, that's a bailout because we had
  49302. // no work that expires at this time.
  49303. resetHydrationState();
  49304. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49305. }
  49306. var root = workInProgress.stateNode;
  49307. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  49308. // If we don't have any current children this might be the first pass.
  49309. // We always try to hydrate. If this isn't a hydration pass there won't
  49310. // be any children to hydrate which is effectively the same thing as
  49311. // not hydrating.
  49312. // This is a bit of a hack. We track the host root as a placement to
  49313. // know that we're currently in a mounting state. That way isMounted
  49314. // works as expected. We must reset this before committing.
  49315. // TODO: Delete this when we delete isMounted and findDOMNode.
  49316. workInProgress.effectTag |= Placement;
  49317. // Ensure that children mount into this root without tracking
  49318. // side-effects. This ensures that we don't store Placement effects on
  49319. // nodes that will be hydrated.
  49320. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  49321. } else {
  49322. // Otherwise reset hydration state in case we aborted and resumed another
  49323. // root.
  49324. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49325. resetHydrationState();
  49326. }
  49327. return workInProgress.child;
  49328. }
  49329. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  49330. pushHostContext(workInProgress);
  49331. if (current$$1 === null) {
  49332. tryToClaimNextHydratableInstance(workInProgress);
  49333. }
  49334. var type = workInProgress.type;
  49335. var nextProps = workInProgress.pendingProps;
  49336. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  49337. var nextChildren = nextProps.children;
  49338. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  49339. if (isDirectTextChild) {
  49340. // We special case a direct text child of a host node. This is a common
  49341. // case. We won't handle it as a reified child. We will instead handle
  49342. // this in the host environment that also have access to this prop. That
  49343. // avoids allocating another HostText fiber and traversing it.
  49344. nextChildren = null;
  49345. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  49346. // If we're switching from a direct text child to a normal child, or to
  49347. // empty, we need to schedule the text content to be reset.
  49348. workInProgress.effectTag |= ContentReset;
  49349. }
  49350. markRef(current$$1, workInProgress);
  49351. // Check the host config to see if the children are offscreen/hidden.
  49352. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  49353. if (enableSchedulerTracing) {
  49354. markSpawnedWork(Never);
  49355. }
  49356. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  49357. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  49358. return null;
  49359. }
  49360. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49361. return workInProgress.child;
  49362. }
  49363. function updateHostText(current$$1, workInProgress) {
  49364. if (current$$1 === null) {
  49365. tryToClaimNextHydratableInstance(workInProgress);
  49366. }
  49367. // Nothing to do here. This is terminal. We'll do the completion step
  49368. // immediately after.
  49369. return null;
  49370. }
  49371. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  49372. if (_current !== null) {
  49373. // An lazy component only mounts if it suspended inside a non-
  49374. // concurrent tree, in an inconsistent state. We want to treat it like
  49375. // a new mount, even though an empty version of it already committed.
  49376. // Disconnect the alternate pointers.
  49377. _current.alternate = null;
  49378. workInProgress.alternate = null;
  49379. // Since this is conceptually a new fiber, schedule a Placement effect
  49380. workInProgress.effectTag |= Placement;
  49381. }
  49382. var props = workInProgress.pendingProps;
  49383. // We can't start a User Timing measurement with correct label yet.
  49384. // Cancel and resume right after we know the tag.
  49385. cancelWorkTimer(workInProgress);
  49386. var Component = readLazyComponentType(elementType);
  49387. // Store the unwrapped component in the type.
  49388. workInProgress.type = Component;
  49389. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  49390. startWorkTimer(workInProgress);
  49391. var resolvedProps = resolveDefaultProps(Component, props);
  49392. var child = void 0;
  49393. switch (resolvedTag) {
  49394. case FunctionComponent:
  49395. {
  49396. {
  49397. validateFunctionComponentInDev(workInProgress, Component);
  49398. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  49399. }
  49400. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  49401. break;
  49402. }
  49403. case ClassComponent:
  49404. {
  49405. {
  49406. workInProgress.type = Component = resolveClassForHotReloading(Component);
  49407. }
  49408. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  49409. break;
  49410. }
  49411. case ForwardRef:
  49412. {
  49413. {
  49414. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  49415. }
  49416. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  49417. break;
  49418. }
  49419. case MemoComponent:
  49420. {
  49421. {
  49422. if (workInProgress.type !== workInProgress.elementType) {
  49423. var outerPropTypes = Component.propTypes;
  49424. if (outerPropTypes) {
  49425. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  49426. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  49427. }
  49428. }
  49429. }
  49430. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  49431. updateExpirationTime, renderExpirationTime);
  49432. break;
  49433. }
  49434. default:
  49435. {
  49436. var hint = '';
  49437. {
  49438. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  49439. hint = ' Did you wrap a component in React.lazy() more than once?';
  49440. }
  49441. }
  49442. // This message intentionally doesn't mention ForwardRef or MemoComponent
  49443. // because the fact that it's a separate type of work is an
  49444. // implementation detail.
  49445. (function () {
  49446. {
  49447. {
  49448. throw ReactError(Error('Element type is invalid. Received a promise that resolves to: ' + Component + '. Lazy element type must resolve to a class or function.' + hint));
  49449. }
  49450. }
  49451. })();
  49452. }
  49453. }
  49454. return child;
  49455. }
  49456. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  49457. if (_current !== null) {
  49458. // An incomplete component only mounts if it suspended inside a non-
  49459. // concurrent tree, in an inconsistent state. We want to treat it like
  49460. // a new mount, even though an empty version of it already committed.
  49461. // Disconnect the alternate pointers.
  49462. _current.alternate = null;
  49463. workInProgress.alternate = null;
  49464. // Since this is conceptually a new fiber, schedule a Placement effect
  49465. workInProgress.effectTag |= Placement;
  49466. }
  49467. // Promote the fiber to a class and try rendering again.
  49468. workInProgress.tag = ClassComponent;
  49469. // The rest of this function is a fork of `updateClassComponent`
  49470. // Push context providers early to prevent context stack mismatches.
  49471. // During mounting we don't know the child context yet as the instance doesn't exist.
  49472. // We will invalidate the child context in finishClassComponent() right after rendering.
  49473. var hasContext = void 0;
  49474. if (isContextProvider(Component)) {
  49475. hasContext = true;
  49476. pushContextProvider(workInProgress);
  49477. } else {
  49478. hasContext = false;
  49479. }
  49480. prepareToReadContext(workInProgress, renderExpirationTime);
  49481. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49482. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49483. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  49484. }
  49485. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  49486. if (_current !== null) {
  49487. // An indeterminate component only mounts if it suspended inside a non-
  49488. // concurrent tree, in an inconsistent state. We want to treat it like
  49489. // a new mount, even though an empty version of it already committed.
  49490. // Disconnect the alternate pointers.
  49491. _current.alternate = null;
  49492. workInProgress.alternate = null;
  49493. // Since this is conceptually a new fiber, schedule a Placement effect
  49494. workInProgress.effectTag |= Placement;
  49495. }
  49496. var props = workInProgress.pendingProps;
  49497. var context = void 0;
  49498. if (!disableLegacyContext) {
  49499. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  49500. context = getMaskedContext(workInProgress, unmaskedContext);
  49501. }
  49502. prepareToReadContext(workInProgress, renderExpirationTime);
  49503. var value = void 0;
  49504. {
  49505. if (Component.prototype && typeof Component.prototype.render === 'function') {
  49506. var componentName = getComponentName(Component) || 'Unknown';
  49507. if (!didWarnAboutBadClass[componentName]) {
  49508. 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);
  49509. didWarnAboutBadClass[componentName] = true;
  49510. }
  49511. }
  49512. if (workInProgress.mode & StrictMode) {
  49513. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  49514. }
  49515. ReactCurrentOwner$3.current = workInProgress;
  49516. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  49517. }
  49518. // React DevTools reads this flag.
  49519. workInProgress.effectTag |= PerformedWork;
  49520. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  49521. {
  49522. var _componentName = getComponentName(Component) || 'Unknown';
  49523. if (!didWarnAboutModulePatternComponent[_componentName]) {
  49524. warningWithoutStack$1(false, 'The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
  49525. didWarnAboutModulePatternComponent[_componentName] = true;
  49526. }
  49527. }
  49528. // Proceed under the assumption that this is a class instance
  49529. workInProgress.tag = ClassComponent;
  49530. // Throw out any hooks that were used.
  49531. resetHooks();
  49532. // Push context providers early to prevent context stack mismatches.
  49533. // During mounting we don't know the child context yet as the instance doesn't exist.
  49534. // We will invalidate the child context in finishClassComponent() right after rendering.
  49535. var hasContext = false;
  49536. if (isContextProvider(Component)) {
  49537. hasContext = true;
  49538. pushContextProvider(workInProgress);
  49539. } else {
  49540. hasContext = false;
  49541. }
  49542. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  49543. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  49544. if (typeof getDerivedStateFromProps === 'function') {
  49545. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  49546. }
  49547. adoptClassInstance(workInProgress, value);
  49548. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  49549. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  49550. } else {
  49551. // Proceed under the assumption that this is a function component
  49552. workInProgress.tag = FunctionComponent;
  49553. {
  49554. if (disableLegacyContext && Component.contextTypes) {
  49555. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with React.useContext() instead.', getComponentName(Component) || 'Unknown');
  49556. }
  49557. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  49558. // Only double-render components with Hooks
  49559. if (workInProgress.memoizedState !== null) {
  49560. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  49561. }
  49562. }
  49563. }
  49564. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  49565. {
  49566. validateFunctionComponentInDev(workInProgress, Component);
  49567. }
  49568. return workInProgress.child;
  49569. }
  49570. }
  49571. function validateFunctionComponentInDev(workInProgress, Component) {
  49572. if (Component) {
  49573. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  49574. }
  49575. if (workInProgress.ref !== null) {
  49576. var info = '';
  49577. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  49578. if (ownerName) {
  49579. info += '\n\nCheck the render method of `' + ownerName + '`.';
  49580. }
  49581. var warningKey = ownerName || workInProgress._debugID || '';
  49582. var debugSource = workInProgress._debugSource;
  49583. if (debugSource) {
  49584. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  49585. }
  49586. if (!didWarnAboutFunctionRefs[warningKey]) {
  49587. didWarnAboutFunctionRefs[warningKey] = true;
  49588. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  49589. }
  49590. }
  49591. if (warnAboutDefaultPropsOnFunctionComponents && Component.defaultProps !== undefined) {
  49592. var componentName = getComponentName(Component) || 'Unknown';
  49593. if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {
  49594. warningWithoutStack$1(false, '%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);
  49595. didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;
  49596. }
  49597. }
  49598. if (typeof Component.getDerivedStateFromProps === 'function') {
  49599. var _componentName2 = getComponentName(Component) || 'Unknown';
  49600. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  49601. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  49602. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  49603. }
  49604. }
  49605. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  49606. var _componentName3 = getComponentName(Component) || 'Unknown';
  49607. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  49608. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName3);
  49609. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  49610. }
  49611. }
  49612. }
  49613. // TODO: This is now an empty object. Should we just make it a boolean?
  49614. var SUSPENDED_MARKER = {};
  49615. function shouldRemainOnFallback(suspenseContext, current$$1, workInProgress) {
  49616. // If the context is telling us that we should show a fallback, and we're not
  49617. // already showing content, then we should show the fallback instead.
  49618. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current$$1 === null || current$$1.memoizedState !== null);
  49619. }
  49620. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  49621. var mode = workInProgress.mode;
  49622. var nextProps = workInProgress.pendingProps;
  49623. // This is used by DevTools to force a boundary to suspend.
  49624. {
  49625. if (shouldSuspend(workInProgress)) {
  49626. workInProgress.effectTag |= DidCapture;
  49627. }
  49628. }
  49629. var suspenseContext = suspenseStackCursor.current;
  49630. var nextState = null;
  49631. var nextDidTimeout = false;
  49632. if ((workInProgress.effectTag & DidCapture) !== NoEffect || shouldRemainOnFallback(suspenseContext, current$$1, workInProgress)) {
  49633. // Something in this boundary's subtree already suspended. Switch to
  49634. // rendering the fallback children.
  49635. nextState = SUSPENDED_MARKER;
  49636. nextDidTimeout = true;
  49637. workInProgress.effectTag &= ~DidCapture;
  49638. } else {
  49639. // Attempting the main content
  49640. if (current$$1 === null || current$$1.memoizedState !== null) {
  49641. // This is a new mount or this boundary is already showing a fallback state.
  49642. // Mark this subtree context as having at least one invisible parent that could
  49643. // handle the fallback state.
  49644. // Boundaries without fallbacks or should be avoided are not considered since
  49645. // they cannot handle preferred fallback states.
  49646. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  49647. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  49648. }
  49649. }
  49650. }
  49651. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  49652. pushSuspenseContext(workInProgress, suspenseContext);
  49653. {
  49654. if ('maxDuration' in nextProps) {
  49655. if (!didWarnAboutMaxDuration) {
  49656. didWarnAboutMaxDuration = true;
  49657. warning$1(false, 'maxDuration has been removed from React. ' + 'Remove the maxDuration prop.');
  49658. }
  49659. }
  49660. }
  49661. // This next part is a bit confusing. If the children timeout, we switch to
  49662. // showing the fallback children in place of the "primary" children.
  49663. // However, we don't want to delete the primary children because then their
  49664. // state will be lost (both the React state and the host state, e.g.
  49665. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  49666. // Both the fallback children AND the primary children are rendered at the
  49667. // same time. Once the primary children are un-suspended, we can delete
  49668. // the fallback children — don't need to preserve their state.
  49669. //
  49670. // The two sets of children are siblings in the host environment, but
  49671. // semantically, for purposes of reconciliation, they are two separate sets.
  49672. // So we store them using two fragment fibers.
  49673. //
  49674. // However, we want to avoid allocating extra fibers for every placeholder.
  49675. // They're only necessary when the children time out, because that's the
  49676. // only time when both sets are mounted.
  49677. //
  49678. // So, the extra fragment fibers are only used if the children time out.
  49679. // Otherwise, we render the primary children directly. This requires some
  49680. // custom reconciliation logic to preserve the state of the primary
  49681. // children. It's essentially a very basic form of re-parenting.
  49682. // `child` points to the child fiber. In the normal case, this is the first
  49683. // fiber of the primary children set. In the timed-out case, it's a
  49684. // a fragment fiber containing the primary children.
  49685. var child = void 0;
  49686. // `next` points to the next fiber React should render. In the normal case,
  49687. // it's the same as `child`: the first fiber of the primary children set.
  49688. // In the timed-out case, it's a fragment fiber containing the *fallback*
  49689. // children -- we skip over the primary children entirely.
  49690. var next = void 0;
  49691. if (current$$1 === null) {
  49692. if (enableSuspenseServerRenderer) {
  49693. // If we're currently hydrating, try to hydrate this boundary.
  49694. // But only if this has a fallback.
  49695. if (nextProps.fallback !== undefined) {
  49696. tryToClaimNextHydratableInstance(workInProgress);
  49697. // This could've changed the tag if this was a dehydrated suspense component.
  49698. if (workInProgress.tag === DehydratedSuspenseComponent) {
  49699. popSuspenseContext(workInProgress);
  49700. return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime);
  49701. }
  49702. }
  49703. }
  49704. // This is the initial mount. This branch is pretty simple because there's
  49705. // no previous state that needs to be preserved.
  49706. if (nextDidTimeout) {
  49707. // Mount separate fragments for primary and fallback children.
  49708. var nextFallbackChildren = nextProps.fallback;
  49709. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  49710. primaryChildFragment.return = workInProgress;
  49711. if ((workInProgress.mode & BatchedMode) === NoMode) {
  49712. // Outside of batched mode, we commit the effects from the
  49713. var progressedState = workInProgress.memoizedState;
  49714. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  49715. primaryChildFragment.child = progressedPrimaryChild;
  49716. var progressedChild = progressedPrimaryChild;
  49717. while (progressedChild !== null) {
  49718. progressedChild.return = primaryChildFragment;
  49719. progressedChild = progressedChild.sibling;
  49720. }
  49721. }
  49722. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  49723. fallbackChildFragment.return = workInProgress;
  49724. primaryChildFragment.sibling = fallbackChildFragment;
  49725. child = primaryChildFragment;
  49726. // Skip the primary children, and continue working on the
  49727. // fallback children.
  49728. next = fallbackChildFragment;
  49729. } else {
  49730. // Mount the primary children without an intermediate fragment fiber.
  49731. var nextPrimaryChildren = nextProps.children;
  49732. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  49733. }
  49734. } else {
  49735. // This is an update. This branch is more complicated because we need to
  49736. // ensure the state of the primary children is preserved.
  49737. var prevState = current$$1.memoizedState;
  49738. var prevDidTimeout = prevState !== null;
  49739. if (prevDidTimeout) {
  49740. // The current tree already timed out. That means each child set is
  49741. var currentPrimaryChildFragment = current$$1.child;
  49742. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  49743. if (nextDidTimeout) {
  49744. // Still timed out. Reuse the current primary children by cloning
  49745. // its fragment. We're going to skip over these entirely.
  49746. var _nextFallbackChildren = nextProps.fallback;
  49747. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  49748. _primaryChildFragment.return = workInProgress;
  49749. if ((workInProgress.mode & BatchedMode) === NoMode) {
  49750. // Outside of batched mode, we commit the effects from the
  49751. var _progressedState = workInProgress.memoizedState;
  49752. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  49753. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  49754. _primaryChildFragment.child = _progressedPrimaryChild;
  49755. var _progressedChild = _progressedPrimaryChild;
  49756. while (_progressedChild !== null) {
  49757. _progressedChild.return = _primaryChildFragment;
  49758. _progressedChild = _progressedChild.sibling;
  49759. }
  49760. }
  49761. }
  49762. // Because primaryChildFragment is a new fiber that we're inserting as the
  49763. // parent of a new tree, we need to set its treeBaseDuration.
  49764. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49765. // treeBaseDuration is the sum of all the child tree base durations.
  49766. var treeBaseDuration = 0;
  49767. var hiddenChild = _primaryChildFragment.child;
  49768. while (hiddenChild !== null) {
  49769. treeBaseDuration += hiddenChild.treeBaseDuration;
  49770. hiddenChild = hiddenChild.sibling;
  49771. }
  49772. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  49773. }
  49774. // Clone the fallback child fragment, too. These we'll continue
  49775. // working on.
  49776. var _fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  49777. _fallbackChildFragment.return = workInProgress;
  49778. _primaryChildFragment.sibling = _fallbackChildFragment;
  49779. child = _primaryChildFragment;
  49780. _primaryChildFragment.childExpirationTime = NoWork;
  49781. // Skip the primary children, and continue working on the
  49782. // fallback children.
  49783. next = _fallbackChildFragment;
  49784. } else {
  49785. // No longer suspended. Switch back to showing the primary children,
  49786. // and remove the intermediate fragment fiber.
  49787. var _nextPrimaryChildren = nextProps.children;
  49788. var currentPrimaryChild = currentPrimaryChildFragment.child;
  49789. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  49790. // If this render doesn't suspend, we need to delete the fallback
  49791. // children. Wait until the complete phase, after we've confirmed the
  49792. // fallback is no longer needed.
  49793. // TODO: Would it be better to store the fallback fragment on
  49794. // the stateNode?
  49795. // Continue rendering the children, like we normally do.
  49796. child = next = primaryChild;
  49797. }
  49798. } else {
  49799. // The current tree has not already timed out. That means the primary
  49800. // children are not wrapped in a fragment fiber.
  49801. var _currentPrimaryChild = current$$1.child;
  49802. if (nextDidTimeout) {
  49803. // Timed out. Wrap the children in a fragment fiber to keep them
  49804. // separate from the fallback children.
  49805. var _nextFallbackChildren2 = nextProps.fallback;
  49806. var _primaryChildFragment2 = createFiberFromFragment(
  49807. // It shouldn't matter what the pending props are because we aren't
  49808. // going to render this fragment.
  49809. null, mode, NoWork, null);
  49810. _primaryChildFragment2.return = workInProgress;
  49811. _primaryChildFragment2.child = _currentPrimaryChild;
  49812. if (_currentPrimaryChild !== null) {
  49813. _currentPrimaryChild.return = _primaryChildFragment2;
  49814. }
  49815. // Even though we're creating a new fiber, there are no new children,
  49816. // because we're reusing an already mounted tree. So we don't need to
  49817. // schedule a placement.
  49818. // primaryChildFragment.effectTag |= Placement;
  49819. if ((workInProgress.mode & BatchedMode) === NoMode) {
  49820. // Outside of batched mode, we commit the effects from the
  49821. var _progressedState2 = workInProgress.memoizedState;
  49822. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  49823. _primaryChildFragment2.child = _progressedPrimaryChild2;
  49824. var _progressedChild2 = _progressedPrimaryChild2;
  49825. while (_progressedChild2 !== null) {
  49826. _progressedChild2.return = _primaryChildFragment2;
  49827. _progressedChild2 = _progressedChild2.sibling;
  49828. }
  49829. }
  49830. // Because primaryChildFragment is a new fiber that we're inserting as the
  49831. // parent of a new tree, we need to set its treeBaseDuration.
  49832. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49833. // treeBaseDuration is the sum of all the child tree base durations.
  49834. var _treeBaseDuration = 0;
  49835. var _hiddenChild = _primaryChildFragment2.child;
  49836. while (_hiddenChild !== null) {
  49837. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  49838. _hiddenChild = _hiddenChild.sibling;
  49839. }
  49840. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  49841. }
  49842. // Create a fragment from the fallback children, too.
  49843. var _fallbackChildFragment2 = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  49844. _fallbackChildFragment2.return = workInProgress;
  49845. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  49846. _fallbackChildFragment2.effectTag |= Placement;
  49847. child = _primaryChildFragment2;
  49848. _primaryChildFragment2.childExpirationTime = NoWork;
  49849. // Skip the primary children, and continue working on the
  49850. // fallback children.
  49851. next = _fallbackChildFragment2;
  49852. } else {
  49853. // Still haven't timed out. Continue rendering the children, like we
  49854. // normally do.
  49855. var _nextPrimaryChildren2 = nextProps.children;
  49856. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  49857. }
  49858. }
  49859. workInProgress.stateNode = current$$1.stateNode;
  49860. }
  49861. workInProgress.memoizedState = nextState;
  49862. workInProgress.child = child;
  49863. return next;
  49864. }
  49865. function retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime) {
  49866. // Detach from the current dehydrated boundary.
  49867. current$$1.alternate = null;
  49868. workInProgress.alternate = null;
  49869. // Insert a deletion in the effect list.
  49870. var returnFiber = workInProgress.return;
  49871. (function () {
  49872. if (!(returnFiber !== null)) {
  49873. {
  49874. throw ReactError(Error('Suspense boundaries are never on the root. This is probably a bug in React.'));
  49875. }
  49876. }
  49877. })();
  49878. var last = returnFiber.lastEffect;
  49879. if (last !== null) {
  49880. last.nextEffect = current$$1;
  49881. returnFiber.lastEffect = current$$1;
  49882. } else {
  49883. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  49884. }
  49885. current$$1.nextEffect = null;
  49886. current$$1.effectTag = Deletion;
  49887. popSuspenseContext(workInProgress);
  49888. // Upgrade this work in progress to a real Suspense component.
  49889. workInProgress.tag = SuspenseComponent;
  49890. workInProgress.stateNode = null;
  49891. workInProgress.memoizedState = null;
  49892. // This is now an insertion.
  49893. workInProgress.effectTag |= Placement;
  49894. // Retry as a real Suspense component.
  49895. return updateSuspenseComponent(null, workInProgress, renderExpirationTime);
  49896. }
  49897. function updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  49898. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  49899. var suspenseInstance = workInProgress.stateNode;
  49900. if (current$$1 === null) {
  49901. // During the first pass, we'll bail out and not drill into the children.
  49902. // Instead, we'll leave the content in place and try to hydrate it later.
  49903. if (isSuspenseInstanceFallback(suspenseInstance)) {
  49904. // This is a client-only boundary. Since we won't get any content from the server
  49905. // for this, we need to schedule that at a higher priority based on when it would
  49906. // have timed out. In theory we could render it in this pass but it would have the
  49907. // wrong priority associated with it and will prevent hydration of parent path.
  49908. // Instead, we'll leave work left on it to render it in a separate commit.
  49909. // TODO This time should be the time at which the server rendered response that is
  49910. // a parent to this boundary was displayed. However, since we currently don't have
  49911. // a protocol to transfer that time, we'll just estimate it by using the current
  49912. // time. This will mean that Suspense timeouts are slightly shifted to later than
  49913. // they should be.
  49914. var serverDisplayTime = requestCurrentTime();
  49915. // Schedule a normal pri update to render this content.
  49916. workInProgress.expirationTime = computeAsyncExpiration(serverDisplayTime);
  49917. } else {
  49918. // We'll continue hydrating the rest at offscreen priority since we'll already
  49919. // be showing the right content coming from the server, it is no rush.
  49920. workInProgress.expirationTime = Never;
  49921. }
  49922. return null;
  49923. }
  49924. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  49925. // Something suspended. Leave the existing children in place.
  49926. // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far?
  49927. workInProgress.child = null;
  49928. return null;
  49929. }
  49930. if (isSuspenseInstanceFallback(suspenseInstance)) {
  49931. // This boundary is in a permanent fallback state. In this case, we'll never
  49932. // get an update and we'll never be able to hydrate the final content. Let's just try the
  49933. // client side render instead.
  49934. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  49935. }
  49936. // We use childExpirationTime to indicate that a child might depend on context, so if
  49937. // any context has changed, we need to treat is as if the input might have changed.
  49938. var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime;
  49939. if (didReceiveUpdate || hasContextChanged$$1) {
  49940. // This boundary has changed since the first render. This means that we are now unable to
  49941. // hydrate it. We might still be able to hydrate it using an earlier expiration time but
  49942. // during this render we can't. Instead, we're going to delete the whole subtree and
  49943. // instead inject a new real Suspense boundary to take its place, which may render content
  49944. // or fallback. The real Suspense boundary will suspend for a while so we have some time
  49945. // to ensure it can produce real content, but all state and pending events will be lost.
  49946. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  49947. } else if (isSuspenseInstancePending(suspenseInstance)) {
  49948. // This component is still pending more data from the server, so we can't hydrate its
  49949. // content. We treat it as if this component suspended itself. It might seem as if
  49950. // we could just try to render it client-side instead. However, this will perform a
  49951. // lot of unnecessary work and is unlikely to complete since it often will suspend
  49952. // on missing data anyway. Additionally, the server might be able to render more
  49953. // than we can on the client yet. In that case we'd end up with more fallback states
  49954. // on the client than if we just leave it alone. If the server times out or errors
  49955. // these should update this boundary to the permanent Fallback state instead.
  49956. // Mark it as having captured (i.e. suspended).
  49957. workInProgress.effectTag |= DidCapture;
  49958. // Leave the children in place. I.e. empty.
  49959. workInProgress.child = null;
  49960. // Register a callback to retry this boundary once the server has sent the result.
  49961. registerSuspenseInstanceRetry(suspenseInstance, retryTimedOutBoundary.bind(null, current$$1));
  49962. return null;
  49963. } else {
  49964. // This is the first attempt.
  49965. reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress);
  49966. var nextProps = workInProgress.pendingProps;
  49967. var nextChildren = nextProps.children;
  49968. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  49969. return workInProgress.child;
  49970. }
  49971. }
  49972. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  49973. // Mark any Suspense boundaries with fallbacks as having work to do.
  49974. // If they were previously forced into fallbacks, they may now be able
  49975. // to unblock.
  49976. var node = firstChild;
  49977. while (node !== null) {
  49978. if (node.tag === SuspenseComponent) {
  49979. var state = node.memoizedState;
  49980. if (state !== null) {
  49981. if (node.expirationTime < renderExpirationTime) {
  49982. node.expirationTime = renderExpirationTime;
  49983. }
  49984. var alternate = node.alternate;
  49985. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  49986. alternate.expirationTime = renderExpirationTime;
  49987. }
  49988. scheduleWorkOnParentPath(node.return, renderExpirationTime);
  49989. }
  49990. } else if (node.child !== null) {
  49991. node.child.return = node;
  49992. node = node.child;
  49993. continue;
  49994. }
  49995. if (node === workInProgress) {
  49996. return;
  49997. }
  49998. while (node.sibling === null) {
  49999. if (node.return === null || node.return === workInProgress) {
  50000. return;
  50001. }
  50002. node = node.return;
  50003. }
  50004. node.sibling.return = node.return;
  50005. node = node.sibling;
  50006. }
  50007. }
  50008. function findLastContentRow(firstChild) {
  50009. // This is going to find the last row among these children that is already
  50010. // showing content on the screen, as opposed to being in fallback state or
  50011. // new. If a row has multiple Suspense boundaries, any of them being in the
  50012. // fallback state, counts as the whole row being in a fallback state.
  50013. // Note that the "rows" will be workInProgress, but any nested children
  50014. // will still be current since we haven't rendered them yet. The mounted
  50015. // order may not be the same as the new order. We use the new order.
  50016. var row = firstChild;
  50017. var lastContentRow = null;
  50018. while (row !== null) {
  50019. var currentRow = row.alternate;
  50020. // New rows can't be content rows.
  50021. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  50022. lastContentRow = row;
  50023. }
  50024. row = row.sibling;
  50025. }
  50026. return lastContentRow;
  50027. }
  50028. function validateRevealOrder(revealOrder) {
  50029. {
  50030. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  50031. didWarnAboutRevealOrder[revealOrder] = true;
  50032. if (typeof revealOrder === 'string') {
  50033. switch (revealOrder.toLowerCase()) {
  50034. case 'together':
  50035. case 'forwards':
  50036. case 'backwards':
  50037. {
  50038. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  50039. break;
  50040. }
  50041. case 'forward':
  50042. case 'backward':
  50043. {
  50044. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
  50045. break;
  50046. }
  50047. default:
  50048. warning$1(false, '"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  50049. break;
  50050. }
  50051. } else {
  50052. warning$1(false, '%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  50053. }
  50054. }
  50055. }
  50056. }
  50057. function validateTailOptions(tailMode, revealOrder) {
  50058. {
  50059. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  50060. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  50061. didWarnAboutTailOptions[tailMode] = true;
  50062. warning$1(false, '"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  50063. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  50064. didWarnAboutTailOptions[tailMode] = true;
  50065. warning$1(false, '<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  50066. }
  50067. }
  50068. }
  50069. }
  50070. function validateSuspenseListNestedChild(childSlot, index) {
  50071. {
  50072. var isArray = Array.isArray(childSlot);
  50073. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  50074. if (isArray || isIterable) {
  50075. var type = isArray ? 'array' : 'iterable';
  50076. warning$1(false, 'A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
  50077. return false;
  50078. }
  50079. }
  50080. return true;
  50081. }
  50082. function validateSuspenseListChildren(children, revealOrder) {
  50083. {
  50084. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  50085. if (Array.isArray(children)) {
  50086. for (var i = 0; i < children.length; i++) {
  50087. if (!validateSuspenseListNestedChild(children[i], i)) {
  50088. return;
  50089. }
  50090. }
  50091. } else {
  50092. var iteratorFn = getIteratorFn(children);
  50093. if (typeof iteratorFn === 'function') {
  50094. var childrenIterator = iteratorFn.call(children);
  50095. if (childrenIterator) {
  50096. var step = childrenIterator.next();
  50097. var _i = 0;
  50098. for (; !step.done; step = childrenIterator.next()) {
  50099. if (!validateSuspenseListNestedChild(step.value, _i)) {
  50100. return;
  50101. }
  50102. _i++;
  50103. }
  50104. }
  50105. } else {
  50106. warning$1(false, 'A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
  50107. }
  50108. }
  50109. }
  50110. }
  50111. }
  50112. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
  50113. var renderState = workInProgress.memoizedState;
  50114. if (renderState === null) {
  50115. workInProgress.memoizedState = {
  50116. isBackwards: isBackwards,
  50117. rendering: null,
  50118. last: lastContentRow,
  50119. tail: tail,
  50120. tailExpiration: 0,
  50121. tailMode: tailMode
  50122. };
  50123. } else {
  50124. // We can reuse the existing object from previous renders.
  50125. renderState.isBackwards = isBackwards;
  50126. renderState.rendering = null;
  50127. renderState.last = lastContentRow;
  50128. renderState.tail = tail;
  50129. renderState.tailExpiration = 0;
  50130. renderState.tailMode = tailMode;
  50131. }
  50132. }
  50133. // This can end up rendering this component multiple passes.
  50134. // The first pass splits the children fibers into two sets. A head and tail.
  50135. // We first render the head. If anything is in fallback state, we do another
  50136. // pass through beginWork to rerender all children (including the tail) with
  50137. // the force suspend context. If the first render didn't have anything in
  50138. // in fallback state. Then we render each row in the tail one-by-one.
  50139. // That happens in the completeWork phase without going back to beginWork.
  50140. function updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime) {
  50141. var nextProps = workInProgress.pendingProps;
  50142. var revealOrder = nextProps.revealOrder;
  50143. var tailMode = nextProps.tail;
  50144. var newChildren = nextProps.children;
  50145. validateRevealOrder(revealOrder);
  50146. validateTailOptions(tailMode, revealOrder);
  50147. validateSuspenseListChildren(newChildren, revealOrder);
  50148. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  50149. var suspenseContext = suspenseStackCursor.current;
  50150. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  50151. if (shouldForceFallback) {
  50152. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  50153. workInProgress.effectTag |= DidCapture;
  50154. } else {
  50155. var didSuspendBefore = current$$1 !== null && (current$$1.effectTag & DidCapture) !== NoEffect;
  50156. if (didSuspendBefore) {
  50157. // If we previously forced a fallback, we need to schedule work
  50158. // on any nested boundaries to let them know to try to render
  50159. // again. This is the same as context updating.
  50160. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  50161. }
  50162. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  50163. }
  50164. pushSuspenseContext(workInProgress, suspenseContext);
  50165. if ((workInProgress.mode & BatchedMode) === NoMode) {
  50166. // Outside of batched mode, SuspenseList doesn't work so we just
  50167. // use make it a noop by treating it as the default revealOrder.
  50168. workInProgress.memoizedState = null;
  50169. } else {
  50170. switch (revealOrder) {
  50171. case 'forwards':
  50172. {
  50173. var lastContentRow = findLastContentRow(workInProgress.child);
  50174. var tail = void 0;
  50175. if (lastContentRow === null) {
  50176. // The whole list is part of the tail.
  50177. // TODO: We could fast path by just rendering the tail now.
  50178. tail = workInProgress.child;
  50179. workInProgress.child = null;
  50180. } else {
  50181. // Disconnect the tail rows after the content row.
  50182. // We're going to render them separately later.
  50183. tail = lastContentRow.sibling;
  50184. lastContentRow.sibling = null;
  50185. }
  50186. initSuspenseListRenderState(workInProgress, false, // isBackwards
  50187. tail, lastContentRow, tailMode);
  50188. break;
  50189. }
  50190. case 'backwards':
  50191. {
  50192. // We're going to find the first row that has existing content.
  50193. // At the same time we're going to reverse the list of everything
  50194. // we pass in the meantime. That's going to be our tail in reverse
  50195. // order.
  50196. var _tail = null;
  50197. var row = workInProgress.child;
  50198. workInProgress.child = null;
  50199. while (row !== null) {
  50200. var currentRow = row.alternate;
  50201. // New rows can't be content rows.
  50202. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  50203. // This is the beginning of the main content.
  50204. workInProgress.child = row;
  50205. break;
  50206. }
  50207. var nextRow = row.sibling;
  50208. row.sibling = _tail;
  50209. _tail = row;
  50210. row = nextRow;
  50211. }
  50212. // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  50213. initSuspenseListRenderState(workInProgress, true, // isBackwards
  50214. _tail, null, // last
  50215. tailMode);
  50216. break;
  50217. }
  50218. case 'together':
  50219. {
  50220. initSuspenseListRenderState(workInProgress, false, // isBackwards
  50221. null, // tail
  50222. null, // last
  50223. undefined);
  50224. break;
  50225. }
  50226. default:
  50227. {
  50228. // The default reveal order is the same as not having
  50229. // a boundary.
  50230. workInProgress.memoizedState = null;
  50231. }
  50232. }
  50233. }
  50234. return workInProgress.child;
  50235. }
  50236. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  50237. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  50238. var nextChildren = workInProgress.pendingProps;
  50239. if (current$$1 === null) {
  50240. // Portals are special because we don't append the children during mount
  50241. // but at commit. Therefore we need to track insertions which the normal
  50242. // flow doesn't do during mount. This doesn't happen at the root because
  50243. // the root always starts with a "current" with a null child.
  50244. // TODO: Consider unifying this with how the root works.
  50245. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  50246. } else {
  50247. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  50248. }
  50249. return workInProgress.child;
  50250. }
  50251. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  50252. var providerType = workInProgress.type;
  50253. var context = providerType._context;
  50254. var newProps = workInProgress.pendingProps;
  50255. var oldProps = workInProgress.memoizedProps;
  50256. var newValue = newProps.value;
  50257. {
  50258. var providerPropTypes = workInProgress.type.propTypes;
  50259. if (providerPropTypes) {
  50260. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  50261. }
  50262. }
  50263. pushProvider(workInProgress, newValue);
  50264. if (oldProps !== null) {
  50265. var oldValue = oldProps.value;
  50266. var changedBits = calculateChangedBits(context, newValue, oldValue);
  50267. if (changedBits === 0) {
  50268. // No change. Bailout early if children are the same.
  50269. if (oldProps.children === newProps.children && !hasContextChanged()) {
  50270. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  50271. }
  50272. } else {
  50273. // The context value changed. Search for matching consumers and schedule
  50274. // them to update.
  50275. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  50276. }
  50277. }
  50278. var newChildren = newProps.children;
  50279. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  50280. return workInProgress.child;
  50281. }
  50282. var hasWarnedAboutUsingContextAsConsumer = false;
  50283. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  50284. var context = workInProgress.type;
  50285. // The logic below for Context differs depending on PROD or DEV mode. In
  50286. // DEV mode, we create a separate object for Context.Consumer that acts
  50287. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  50288. // so we use the old behaviour (Context.Consumer references Context) to
  50289. // reduce size and overhead. The separate object references context via
  50290. // a property called "_context", which also gives us the ability to check
  50291. // in DEV mode if this property exists or not and warn if it does not.
  50292. {
  50293. if (context._context === undefined) {
  50294. // This may be because it's a Context (rather than a Consumer).
  50295. // Or it may be because it's older React where they're the same thing.
  50296. // We only want to warn if we're sure it's a new React.
  50297. if (context !== context.Consumer) {
  50298. if (!hasWarnedAboutUsingContextAsConsumer) {
  50299. hasWarnedAboutUsingContextAsConsumer = true;
  50300. 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?');
  50301. }
  50302. }
  50303. } else {
  50304. context = context._context;
  50305. }
  50306. }
  50307. var newProps = workInProgress.pendingProps;
  50308. var render = newProps.children;
  50309. {
  50310. !(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;
  50311. }
  50312. prepareToReadContext(workInProgress, renderExpirationTime);
  50313. var newValue = readContext(context, newProps.unstable_observedBits);
  50314. var newChildren = void 0;
  50315. {
  50316. ReactCurrentOwner$3.current = workInProgress;
  50317. setCurrentPhase('render');
  50318. newChildren = render(newValue);
  50319. setCurrentPhase(null);
  50320. }
  50321. // React DevTools reads this flag.
  50322. workInProgress.effectTag |= PerformedWork;
  50323. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  50324. return workInProgress.child;
  50325. }
  50326. function updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime) {
  50327. var fundamentalImpl = workInProgress.type.impl;
  50328. if (fundamentalImpl.reconcileChildren === false) {
  50329. return null;
  50330. }
  50331. var nextProps = workInProgress.pendingProps;
  50332. var nextChildren = nextProps.children;
  50333. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  50334. return workInProgress.child;
  50335. }
  50336. function markWorkInProgressReceivedUpdate() {
  50337. didReceiveUpdate = true;
  50338. }
  50339. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  50340. cancelWorkTimer(workInProgress);
  50341. if (current$$1 !== null) {
  50342. // Reuse previous dependencies
  50343. workInProgress.dependencies = current$$1.dependencies;
  50344. }
  50345. if (enableProfilerTimer) {
  50346. // Don't update "base" render times for bailouts.
  50347. stopProfilerTimerIfRunning(workInProgress);
  50348. }
  50349. // Check if the children have any pending work.
  50350. var childExpirationTime = workInProgress.childExpirationTime;
  50351. if (childExpirationTime < renderExpirationTime) {
  50352. // The children don't have any work either. We can skip them.
  50353. // TODO: Once we add back resuming, we should check if the children are
  50354. // a work-in-progress set. If so, we need to transfer their effects.
  50355. return null;
  50356. } else {
  50357. // This fiber doesn't have work, but its subtree does. Clone the child
  50358. // fibers and continue.
  50359. cloneChildFibers(current$$1, workInProgress);
  50360. return workInProgress.child;
  50361. }
  50362. }
  50363. function remountFiber(current$$1, oldWorkInProgress, newWorkInProgress) {
  50364. {
  50365. var returnFiber = oldWorkInProgress.return;
  50366. if (returnFiber === null) {
  50367. throw new Error('Cannot swap the root fiber.');
  50368. }
  50369. // Disconnect from the old current.
  50370. // It will get deleted.
  50371. current$$1.alternate = null;
  50372. oldWorkInProgress.alternate = null;
  50373. // Connect to the new tree.
  50374. newWorkInProgress.index = oldWorkInProgress.index;
  50375. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  50376. newWorkInProgress.return = oldWorkInProgress.return;
  50377. newWorkInProgress.ref = oldWorkInProgress.ref;
  50378. // Replace the child/sibling pointers above it.
  50379. if (oldWorkInProgress === returnFiber.child) {
  50380. returnFiber.child = newWorkInProgress;
  50381. } else {
  50382. var prevSibling = returnFiber.child;
  50383. if (prevSibling === null) {
  50384. throw new Error('Expected parent to have a child.');
  50385. }
  50386. while (prevSibling.sibling !== oldWorkInProgress) {
  50387. prevSibling = prevSibling.sibling;
  50388. if (prevSibling === null) {
  50389. throw new Error('Expected to find the previous sibling.');
  50390. }
  50391. }
  50392. prevSibling.sibling = newWorkInProgress;
  50393. }
  50394. // Delete the old fiber and place the new one.
  50395. // Since the old fiber is disconnected, we have to schedule it manually.
  50396. var last = returnFiber.lastEffect;
  50397. if (last !== null) {
  50398. last.nextEffect = current$$1;
  50399. returnFiber.lastEffect = current$$1;
  50400. } else {
  50401. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  50402. }
  50403. current$$1.nextEffect = null;
  50404. current$$1.effectTag = Deletion;
  50405. newWorkInProgress.effectTag |= Placement;
  50406. // Restart work from the new fiber.
  50407. return newWorkInProgress;
  50408. }
  50409. }
  50410. function beginWork$1(current$$1, workInProgress, renderExpirationTime) {
  50411. var updateExpirationTime = workInProgress.expirationTime;
  50412. {
  50413. if (workInProgress._debugNeedsRemount && current$$1 !== null) {
  50414. // This will restart the begin phase with a new fiber.
  50415. return remountFiber(current$$1, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  50416. }
  50417. }
  50418. if (current$$1 !== null) {
  50419. var oldProps = current$$1.memoizedProps;
  50420. var newProps = workInProgress.pendingProps;
  50421. if (oldProps !== newProps || hasContextChanged() || (
  50422. // Force a re-render if the implementation changed due to hot reload:
  50423. workInProgress.type !== current$$1.type)) {
  50424. // If props or context changed, mark the fiber as having performed work.
  50425. // This may be unset if the props are determined to be equal later (memo).
  50426. didReceiveUpdate = true;
  50427. } else if (updateExpirationTime < renderExpirationTime) {
  50428. didReceiveUpdate = false;
  50429. // This fiber does not have any pending work. Bailout without entering
  50430. // the begin phase. There's still some bookkeeping we that needs to be done
  50431. // in this optimized path, mostly pushing stuff onto the stack.
  50432. switch (workInProgress.tag) {
  50433. case HostRoot:
  50434. pushHostRootContext(workInProgress);
  50435. resetHydrationState();
  50436. break;
  50437. case HostComponent:
  50438. pushHostContext(workInProgress);
  50439. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  50440. if (enableSchedulerTracing) {
  50441. markSpawnedWork(Never);
  50442. }
  50443. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  50444. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  50445. return null;
  50446. }
  50447. break;
  50448. case ClassComponent:
  50449. {
  50450. var Component = workInProgress.type;
  50451. if (isContextProvider(Component)) {
  50452. pushContextProvider(workInProgress);
  50453. }
  50454. break;
  50455. }
  50456. case HostPortal:
  50457. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  50458. break;
  50459. case ContextProvider:
  50460. {
  50461. var newValue = workInProgress.memoizedProps.value;
  50462. pushProvider(workInProgress, newValue);
  50463. break;
  50464. }
  50465. case Profiler:
  50466. if (enableProfilerTimer) {
  50467. workInProgress.effectTag |= Update;
  50468. }
  50469. break;
  50470. case SuspenseComponent:
  50471. {
  50472. var state = workInProgress.memoizedState;
  50473. var didTimeout = state !== null;
  50474. if (didTimeout) {
  50475. // If this boundary is currently timed out, we need to decide
  50476. // whether to retry the primary children, or to skip over it and
  50477. // go straight to the fallback. Check the priority of the primary
  50478. var primaryChildFragment = workInProgress.child;
  50479. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  50480. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  50481. // The primary children have pending work. Use the normal path
  50482. // to attempt to render the primary children again.
  50483. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  50484. } else {
  50485. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  50486. // The primary children do not have pending work with sufficient
  50487. // priority. Bailout.
  50488. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  50489. if (child !== null) {
  50490. // The fallback children have pending work. Skip over the
  50491. // primary children and work on the fallback.
  50492. return child.sibling;
  50493. } else {
  50494. return null;
  50495. }
  50496. }
  50497. } else {
  50498. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  50499. }
  50500. break;
  50501. }
  50502. case DehydratedSuspenseComponent:
  50503. {
  50504. if (enableSuspenseServerRenderer) {
  50505. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  50506. // We know that this component will suspend again because if it has
  50507. // been unsuspended it has committed as a regular Suspense component.
  50508. // If it needs to be retried, it should have work scheduled on it.
  50509. workInProgress.effectTag |= DidCapture;
  50510. }
  50511. break;
  50512. }
  50513. case SuspenseListComponent:
  50514. {
  50515. var didSuspendBefore = (current$$1.effectTag & DidCapture) !== NoEffect;
  50516. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  50517. if (didSuspendBefore) {
  50518. if (hasChildWork) {
  50519. // If something was in fallback state last time, and we have all the
  50520. // same children then we're still in progressive loading state.
  50521. // Something might get unblocked by state updates or retries in the
  50522. // tree which will affect the tail. So we need to use the normal
  50523. // path to compute the correct tail.
  50524. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  50525. }
  50526. // If none of the children had any work, that means that none of
  50527. // them got retried so they'll still be blocked in the same way
  50528. // as before. We can fast bail out.
  50529. workInProgress.effectTag |= DidCapture;
  50530. }
  50531. // If nothing suspended before and we're rendering the same children,
  50532. // then the tail doesn't matter. Anything new that suspends will work
  50533. // in the "together" mode, so we can continue from the state we had.
  50534. var renderState = workInProgress.memoizedState;
  50535. if (renderState !== null) {
  50536. // Reset to the "together" mode in case we've started a different
  50537. // update in the past but didn't complete it.
  50538. renderState.rendering = null;
  50539. renderState.tail = null;
  50540. }
  50541. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  50542. if (hasChildWork) {
  50543. break;
  50544. } else {
  50545. // If none of the children had any work, that means that none of
  50546. // them got retried so they'll still be blocked in the same way
  50547. // as before. We can fast bail out.
  50548. return null;
  50549. }
  50550. }
  50551. }
  50552. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  50553. }
  50554. } else {
  50555. didReceiveUpdate = false;
  50556. }
  50557. // Before entering the begin phase, clear the expiration time.
  50558. workInProgress.expirationTime = NoWork;
  50559. switch (workInProgress.tag) {
  50560. case IndeterminateComponent:
  50561. {
  50562. return mountIndeterminateComponent(current$$1, workInProgress, workInProgress.type, renderExpirationTime);
  50563. }
  50564. case LazyComponent:
  50565. {
  50566. var elementType = workInProgress.elementType;
  50567. return mountLazyComponent(current$$1, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  50568. }
  50569. case FunctionComponent:
  50570. {
  50571. var _Component = workInProgress.type;
  50572. var unresolvedProps = workInProgress.pendingProps;
  50573. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  50574. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  50575. }
  50576. case ClassComponent:
  50577. {
  50578. var _Component2 = workInProgress.type;
  50579. var _unresolvedProps = workInProgress.pendingProps;
  50580. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  50581. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  50582. }
  50583. case HostRoot:
  50584. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  50585. case HostComponent:
  50586. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  50587. case HostText:
  50588. return updateHostText(current$$1, workInProgress);
  50589. case SuspenseComponent:
  50590. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  50591. case HostPortal:
  50592. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  50593. case ForwardRef:
  50594. {
  50595. var type = workInProgress.type;
  50596. var _unresolvedProps2 = workInProgress.pendingProps;
  50597. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  50598. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  50599. }
  50600. case Fragment:
  50601. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  50602. case Mode:
  50603. return updateMode(current$$1, workInProgress, renderExpirationTime);
  50604. case Profiler:
  50605. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  50606. case ContextProvider:
  50607. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  50608. case ContextConsumer:
  50609. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  50610. case MemoComponent:
  50611. {
  50612. var _type2 = workInProgress.type;
  50613. var _unresolvedProps3 = workInProgress.pendingProps;
  50614. // Resolve outer props first, then resolve inner props.
  50615. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  50616. {
  50617. if (workInProgress.type !== workInProgress.elementType) {
  50618. var outerPropTypes = _type2.propTypes;
  50619. if (outerPropTypes) {
  50620. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  50621. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  50622. }
  50623. }
  50624. }
  50625. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  50626. return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  50627. }
  50628. case SimpleMemoComponent:
  50629. {
  50630. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  50631. }
  50632. case IncompleteClassComponent:
  50633. {
  50634. var _Component3 = workInProgress.type;
  50635. var _unresolvedProps4 = workInProgress.pendingProps;
  50636. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  50637. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  50638. }
  50639. case DehydratedSuspenseComponent:
  50640. {
  50641. if (enableSuspenseServerRenderer) {
  50642. return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  50643. }
  50644. break;
  50645. }
  50646. case SuspenseListComponent:
  50647. {
  50648. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  50649. }
  50650. case FundamentalComponent:
  50651. {
  50652. if (enableFundamentalAPI) {
  50653. return updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime);
  50654. }
  50655. break;
  50656. }
  50657. }
  50658. (function () {
  50659. {
  50660. {
  50661. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  50662. }
  50663. }
  50664. })();
  50665. }
  50666. function createFundamentalStateInstance(currentFiber, props, impl, state) {
  50667. return {
  50668. currentFiber: currentFiber,
  50669. impl: impl,
  50670. instance: null,
  50671. prevProps: null,
  50672. props: props,
  50673. state: state
  50674. };
  50675. }
  50676. var emptyObject = {};
  50677. var isArray$2 = Array.isArray;
  50678. function markUpdate(workInProgress) {
  50679. // Tag the fiber with an update effect. This turns a Placement into
  50680. // a PlacementAndUpdate.
  50681. workInProgress.effectTag |= Update;
  50682. }
  50683. function markRef$1(workInProgress) {
  50684. workInProgress.effectTag |= Ref;
  50685. }
  50686. var appendAllChildren = void 0;
  50687. var updateHostContainer = void 0;
  50688. var updateHostComponent$1 = void 0;
  50689. var updateHostText$1 = void 0;
  50690. if (supportsMutation) {
  50691. // Mutation mode
  50692. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  50693. // We only have the top Fiber that was created but we need recurse down its
  50694. // children to find all the terminal nodes.
  50695. var node = workInProgress.child;
  50696. while (node !== null) {
  50697. if (node.tag === HostComponent || node.tag === HostText) {
  50698. appendInitialChild(parent, node.stateNode);
  50699. } else if (node.tag === FundamentalComponent) {
  50700. appendInitialChild(parent, node.stateNode.instance);
  50701. } else if (node.tag === HostPortal) {
  50702. // If we have a portal child, then we don't want to traverse
  50703. // down its children. Instead, we'll get insertions from each child in
  50704. // the portal directly.
  50705. } else if (node.child !== null) {
  50706. node.child.return = node;
  50707. node = node.child;
  50708. continue;
  50709. }
  50710. if (node === workInProgress) {
  50711. return;
  50712. }
  50713. while (node.sibling === null) {
  50714. if (node.return === null || node.return === workInProgress) {
  50715. return;
  50716. }
  50717. node = node.return;
  50718. }
  50719. node.sibling.return = node.return;
  50720. node = node.sibling;
  50721. }
  50722. };
  50723. updateHostContainer = function (workInProgress) {
  50724. // Noop
  50725. };
  50726. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  50727. // If we have an alternate, that means this is an update and we need to
  50728. // schedule a side-effect to do the updates.
  50729. var oldProps = current.memoizedProps;
  50730. if (oldProps === newProps) {
  50731. // In mutation mode, this is sufficient for a bailout because
  50732. // we won't touch this node even if children changed.
  50733. return;
  50734. }
  50735. // If we get updated because one of our children updated, we don't
  50736. // have newProps so we'll have to reuse them.
  50737. // TODO: Split the update API as separate for the props vs. children.
  50738. // Even better would be if children weren't special cased at all tho.
  50739. var instance = workInProgress.stateNode;
  50740. var currentHostContext = getHostContext();
  50741. // TODO: Experiencing an error where oldProps is null. Suggests a host
  50742. // component is hitting the resume path. Figure out why. Possibly
  50743. // related to `hidden`.
  50744. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  50745. // TODO: Type this specific to this type of component.
  50746. workInProgress.updateQueue = updatePayload;
  50747. // If the update payload indicates that there is a change or if there
  50748. // is a new ref we mark this as an update. All the work is done in commitWork.
  50749. if (updatePayload) {
  50750. markUpdate(workInProgress);
  50751. }
  50752. };
  50753. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  50754. // If the text differs, mark it as an update. All the work in done in commitWork.
  50755. if (oldText !== newText) {
  50756. markUpdate(workInProgress);
  50757. }
  50758. };
  50759. } else if (supportsPersistence) {
  50760. // Persistent host tree mode
  50761. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  50762. // We only have the top Fiber that was created but we need recurse down its
  50763. // children to find all the terminal nodes.
  50764. var node = workInProgress.child;
  50765. while (node !== null) {
  50766. // eslint-disable-next-line no-labels
  50767. branches: if (node.tag === HostComponent) {
  50768. var instance = node.stateNode;
  50769. if (needsVisibilityToggle && isHidden) {
  50770. // This child is inside a timed out tree. Hide it.
  50771. var props = node.memoizedProps;
  50772. var type = node.type;
  50773. instance = cloneHiddenInstance(instance, type, props, node);
  50774. }
  50775. appendInitialChild(parent, instance);
  50776. } else if (node.tag === HostText) {
  50777. var _instance = node.stateNode;
  50778. if (needsVisibilityToggle && isHidden) {
  50779. // This child is inside a timed out tree. Hide it.
  50780. var text = node.memoizedProps;
  50781. _instance = cloneHiddenTextInstance(_instance, text, node);
  50782. }
  50783. appendInitialChild(parent, _instance);
  50784. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  50785. var _instance2 = node.stateNode.instance;
  50786. if (needsVisibilityToggle && isHidden) {
  50787. // This child is inside a timed out tree. Hide it.
  50788. var _props = node.memoizedProps;
  50789. var _type = node.type;
  50790. _instance2 = cloneHiddenInstance(_instance2, _type, _props, node);
  50791. }
  50792. appendInitialChild(parent, _instance2);
  50793. } else if (node.tag === HostPortal) {
  50794. // If we have a portal child, then we don't want to traverse
  50795. // down its children. Instead, we'll get insertions from each child in
  50796. // the portal directly.
  50797. } else if (node.tag === SuspenseComponent) {
  50798. if ((node.effectTag & Update) !== NoEffect) {
  50799. // Need to toggle the visibility of the primary children.
  50800. var newIsHidden = node.memoizedState !== null;
  50801. if (newIsHidden) {
  50802. var primaryChildParent = node.child;
  50803. if (primaryChildParent !== null) {
  50804. if (primaryChildParent.child !== null) {
  50805. primaryChildParent.child.return = primaryChildParent;
  50806. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  50807. }
  50808. var fallbackChildParent = primaryChildParent.sibling;
  50809. if (fallbackChildParent !== null) {
  50810. fallbackChildParent.return = node;
  50811. node = fallbackChildParent;
  50812. continue;
  50813. }
  50814. }
  50815. }
  50816. }
  50817. if (node.child !== null) {
  50818. // Continue traversing like normal
  50819. node.child.return = node;
  50820. node = node.child;
  50821. continue;
  50822. }
  50823. } else if (node.child !== null) {
  50824. node.child.return = node;
  50825. node = node.child;
  50826. continue;
  50827. }
  50828. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  50829. node = node;
  50830. if (node === workInProgress) {
  50831. return;
  50832. }
  50833. while (node.sibling === null) {
  50834. if (node.return === null || node.return === workInProgress) {
  50835. return;
  50836. }
  50837. node = node.return;
  50838. }
  50839. node.sibling.return = node.return;
  50840. node = node.sibling;
  50841. }
  50842. };
  50843. // An unfortunate fork of appendAllChildren because we have two different parent types.
  50844. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  50845. // We only have the top Fiber that was created but we need recurse down its
  50846. // children to find all the terminal nodes.
  50847. var node = workInProgress.child;
  50848. while (node !== null) {
  50849. // eslint-disable-next-line no-labels
  50850. branches: if (node.tag === HostComponent) {
  50851. var instance = node.stateNode;
  50852. if (needsVisibilityToggle && isHidden) {
  50853. // This child is inside a timed out tree. Hide it.
  50854. var props = node.memoizedProps;
  50855. var type = node.type;
  50856. instance = cloneHiddenInstance(instance, type, props, node);
  50857. }
  50858. appendChildToContainerChildSet(containerChildSet, instance);
  50859. } else if (node.tag === HostText) {
  50860. var _instance3 = node.stateNode;
  50861. if (needsVisibilityToggle && isHidden) {
  50862. // This child is inside a timed out tree. Hide it.
  50863. var text = node.memoizedProps;
  50864. _instance3 = cloneHiddenTextInstance(_instance3, text, node);
  50865. }
  50866. appendChildToContainerChildSet(containerChildSet, _instance3);
  50867. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  50868. var _instance4 = node.stateNode.instance;
  50869. if (needsVisibilityToggle && isHidden) {
  50870. // This child is inside a timed out tree. Hide it.
  50871. var _props2 = node.memoizedProps;
  50872. var _type2 = node.type;
  50873. _instance4 = cloneHiddenInstance(_instance4, _type2, _props2, node);
  50874. }
  50875. appendChildToContainerChildSet(containerChildSet, _instance4);
  50876. } else if (node.tag === HostPortal) {
  50877. // If we have a portal child, then we don't want to traverse
  50878. // down its children. Instead, we'll get insertions from each child in
  50879. // the portal directly.
  50880. } else if (node.tag === SuspenseComponent) {
  50881. if ((node.effectTag & Update) !== NoEffect) {
  50882. // Need to toggle the visibility of the primary children.
  50883. var newIsHidden = node.memoizedState !== null;
  50884. if (newIsHidden) {
  50885. var primaryChildParent = node.child;
  50886. if (primaryChildParent !== null) {
  50887. if (primaryChildParent.child !== null) {
  50888. primaryChildParent.child.return = primaryChildParent;
  50889. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  50890. }
  50891. var fallbackChildParent = primaryChildParent.sibling;
  50892. if (fallbackChildParent !== null) {
  50893. fallbackChildParent.return = node;
  50894. node = fallbackChildParent;
  50895. continue;
  50896. }
  50897. }
  50898. }
  50899. }
  50900. if (node.child !== null) {
  50901. // Continue traversing like normal
  50902. node.child.return = node;
  50903. node = node.child;
  50904. continue;
  50905. }
  50906. } else if (node.child !== null) {
  50907. node.child.return = node;
  50908. node = node.child;
  50909. continue;
  50910. }
  50911. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  50912. node = node;
  50913. if (node === workInProgress) {
  50914. return;
  50915. }
  50916. while (node.sibling === null) {
  50917. if (node.return === null || node.return === workInProgress) {
  50918. return;
  50919. }
  50920. node = node.return;
  50921. }
  50922. node.sibling.return = node.return;
  50923. node = node.sibling;
  50924. }
  50925. };
  50926. updateHostContainer = function (workInProgress) {
  50927. var portalOrRoot = workInProgress.stateNode;
  50928. var childrenUnchanged = workInProgress.firstEffect === null;
  50929. if (childrenUnchanged) {
  50930. // No changes, just reuse the existing instance.
  50931. } else {
  50932. var container = portalOrRoot.containerInfo;
  50933. var newChildSet = createContainerChildSet(container);
  50934. // If children might have changed, we have to add them all to the set.
  50935. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  50936. portalOrRoot.pendingChildren = newChildSet;
  50937. // Schedule an update on the container to swap out the container.
  50938. markUpdate(workInProgress);
  50939. finalizeContainerChildren(container, newChildSet);
  50940. }
  50941. };
  50942. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  50943. var currentInstance = current.stateNode;
  50944. var oldProps = current.memoizedProps;
  50945. // If there are no effects associated with this node, then none of our children had any updates.
  50946. // This guarantees that we can reuse all of them.
  50947. var childrenUnchanged = workInProgress.firstEffect === null;
  50948. if (childrenUnchanged && oldProps === newProps) {
  50949. // No changes, just reuse the existing instance.
  50950. // Note that this might release a previous clone.
  50951. workInProgress.stateNode = currentInstance;
  50952. return;
  50953. }
  50954. var recyclableInstance = workInProgress.stateNode;
  50955. var currentHostContext = getHostContext();
  50956. var updatePayload = null;
  50957. if (oldProps !== newProps) {
  50958. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  50959. }
  50960. if (childrenUnchanged && updatePayload === null) {
  50961. // No changes, just reuse the existing instance.
  50962. // Note that this might release a previous clone.
  50963. workInProgress.stateNode = currentInstance;
  50964. return;
  50965. }
  50966. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  50967. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  50968. markUpdate(workInProgress);
  50969. }
  50970. workInProgress.stateNode = newInstance;
  50971. if (childrenUnchanged) {
  50972. // If there are no other effects in this tree, we need to flag this node as having one.
  50973. // Even though we're not going to use it for anything.
  50974. // Otherwise parents won't know that there are new children to propagate upwards.
  50975. markUpdate(workInProgress);
  50976. } else {
  50977. // If children might have changed, we have to add them all to the set.
  50978. appendAllChildren(newInstance, workInProgress, false, false);
  50979. }
  50980. };
  50981. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  50982. if (oldText !== newText) {
  50983. // If the text content differs, we'll create a new text instance for it.
  50984. var rootContainerInstance = getRootHostContainer();
  50985. var currentHostContext = getHostContext();
  50986. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  50987. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  50988. // This lets the parents know that at least one of their children has changed.
  50989. markUpdate(workInProgress);
  50990. }
  50991. };
  50992. } else {
  50993. // No host operations
  50994. updateHostContainer = function (workInProgress) {
  50995. // Noop
  50996. };
  50997. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  50998. // Noop
  50999. };
  51000. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  51001. // Noop
  51002. };
  51003. }
  51004. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  51005. switch (renderState.tailMode) {
  51006. case 'hidden':
  51007. {
  51008. // Any insertions at the end of the tail list after this point
  51009. // should be invisible. If there are already mounted boundaries
  51010. // anything before them are not considered for collapsing.
  51011. // Therefore we need to go through the whole tail to find if
  51012. // there are any.
  51013. var tailNode = renderState.tail;
  51014. var lastTailNode = null;
  51015. while (tailNode !== null) {
  51016. if (tailNode.alternate !== null) {
  51017. lastTailNode = tailNode;
  51018. }
  51019. tailNode = tailNode.sibling;
  51020. }
  51021. // Next we're simply going to delete all insertions after the
  51022. // last rendered item.
  51023. if (lastTailNode === null) {
  51024. // All remaining items in the tail are insertions.
  51025. renderState.tail = null;
  51026. } else {
  51027. // Detach the insertion after the last node that was already
  51028. // inserted.
  51029. lastTailNode.sibling = null;
  51030. }
  51031. break;
  51032. }
  51033. case 'collapsed':
  51034. {
  51035. // Any insertions at the end of the tail list after this point
  51036. // should be invisible. If there are already mounted boundaries
  51037. // anything before them are not considered for collapsing.
  51038. // Therefore we need to go through the whole tail to find if
  51039. // there are any.
  51040. var _tailNode = renderState.tail;
  51041. var _lastTailNode = null;
  51042. while (_tailNode !== null) {
  51043. if (_tailNode.alternate !== null) {
  51044. _lastTailNode = _tailNode;
  51045. }
  51046. _tailNode = _tailNode.sibling;
  51047. }
  51048. // Next we're simply going to delete all insertions after the
  51049. // last rendered item.
  51050. if (_lastTailNode === null) {
  51051. // All remaining items in the tail are insertions.
  51052. if (!hasRenderedATailFallback && renderState.tail !== null) {
  51053. // We suspended during the head. We want to show at least one
  51054. // row at the tail. So we'll keep on and cut off the rest.
  51055. renderState.tail.sibling = null;
  51056. } else {
  51057. renderState.tail = null;
  51058. }
  51059. } else {
  51060. // Detach the insertion after the last node that was already
  51061. // inserted.
  51062. _lastTailNode.sibling = null;
  51063. }
  51064. break;
  51065. }
  51066. }
  51067. }
  51068. function completeWork(current, workInProgress, renderExpirationTime) {
  51069. var newProps = workInProgress.pendingProps;
  51070. switch (workInProgress.tag) {
  51071. case IndeterminateComponent:
  51072. break;
  51073. case LazyComponent:
  51074. break;
  51075. case SimpleMemoComponent:
  51076. case FunctionComponent:
  51077. break;
  51078. case ClassComponent:
  51079. {
  51080. var Component = workInProgress.type;
  51081. if (isContextProvider(Component)) {
  51082. popContext(workInProgress);
  51083. }
  51084. break;
  51085. }
  51086. case HostRoot:
  51087. {
  51088. popHostContainer(workInProgress);
  51089. popTopLevelContextObject(workInProgress);
  51090. var fiberRoot = workInProgress.stateNode;
  51091. if (fiberRoot.pendingContext) {
  51092. fiberRoot.context = fiberRoot.pendingContext;
  51093. fiberRoot.pendingContext = null;
  51094. }
  51095. if (current === null || current.child === null) {
  51096. // If we hydrated, pop so that we can delete any remaining children
  51097. // that weren't hydrated.
  51098. popHydrationState(workInProgress);
  51099. // This resets the hacky state to fix isMounted before committing.
  51100. // TODO: Delete this when we delete isMounted and findDOMNode.
  51101. workInProgress.effectTag &= ~Placement;
  51102. }
  51103. updateHostContainer(workInProgress);
  51104. break;
  51105. }
  51106. case HostComponent:
  51107. {
  51108. popHostContext(workInProgress);
  51109. var rootContainerInstance = getRootHostContainer();
  51110. var type = workInProgress.type;
  51111. if (current !== null && workInProgress.stateNode != null) {
  51112. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  51113. if (enableFlareAPI) {
  51114. var prevListeners = current.memoizedProps.listeners;
  51115. var nextListeners = newProps.listeners;
  51116. var instance = workInProgress.stateNode;
  51117. if (prevListeners !== nextListeners) {
  51118. updateEventListeners(nextListeners, instance, rootContainerInstance, workInProgress);
  51119. }
  51120. }
  51121. if (current.ref !== workInProgress.ref) {
  51122. markRef$1(workInProgress);
  51123. }
  51124. } else {
  51125. if (!newProps) {
  51126. (function () {
  51127. if (!(workInProgress.stateNode !== null)) {
  51128. {
  51129. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  51130. }
  51131. }
  51132. })();
  51133. // This can happen when we abort work.
  51134. break;
  51135. }
  51136. var currentHostContext = getHostContext();
  51137. // TODO: Move createInstance to beginWork and keep it on a context
  51138. // "stack" as the parent. Then append children as we go in beginWork
  51139. // or completeWork depending on we want to add then top->down or
  51140. // bottom->up. Top->down is faster in IE11.
  51141. var wasHydrated = popHydrationState(workInProgress);
  51142. if (wasHydrated) {
  51143. // TODO: Move this and createInstance step into the beginPhase
  51144. // to consolidate.
  51145. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  51146. // If changes to the hydrated node needs to be applied at the
  51147. // commit-phase we mark this as such.
  51148. markUpdate(workInProgress);
  51149. }
  51150. } else {
  51151. var _instance5 = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  51152. appendAllChildren(_instance5, workInProgress, false, false);
  51153. if (enableFlareAPI) {
  51154. var listeners = newProps.listeners;
  51155. if (listeners != null) {
  51156. updateEventListeners(listeners, _instance5, rootContainerInstance, workInProgress);
  51157. }
  51158. }
  51159. // Certain renderers require commit-time effects for initial mount.
  51160. // (eg DOM renderer supports auto-focus for certain elements).
  51161. // Make sure such renderers get scheduled for later work.
  51162. if (finalizeInitialChildren(_instance5, type, newProps, rootContainerInstance, currentHostContext)) {
  51163. markUpdate(workInProgress);
  51164. }
  51165. workInProgress.stateNode = _instance5;
  51166. }
  51167. if (workInProgress.ref !== null) {
  51168. // If there is a ref on a host node we need to schedule a callback
  51169. markRef$1(workInProgress);
  51170. }
  51171. }
  51172. break;
  51173. }
  51174. case HostText:
  51175. {
  51176. var newText = newProps;
  51177. if (current && workInProgress.stateNode != null) {
  51178. var oldText = current.memoizedProps;
  51179. // If we have an alternate, that means this is an update and we need
  51180. // to schedule a side-effect to do the updates.
  51181. updateHostText$1(current, workInProgress, oldText, newText);
  51182. } else {
  51183. if (typeof newText !== 'string') {
  51184. (function () {
  51185. if (!(workInProgress.stateNode !== null)) {
  51186. {
  51187. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  51188. }
  51189. }
  51190. })();
  51191. // This can happen when we abort work.
  51192. }
  51193. var _rootContainerInstance = getRootHostContainer();
  51194. var _currentHostContext = getHostContext();
  51195. var _wasHydrated = popHydrationState(workInProgress);
  51196. if (_wasHydrated) {
  51197. if (prepareToHydrateHostTextInstance(workInProgress)) {
  51198. markUpdate(workInProgress);
  51199. }
  51200. } else {
  51201. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  51202. }
  51203. }
  51204. break;
  51205. }
  51206. case ForwardRef:
  51207. break;
  51208. case SuspenseComponent:
  51209. {
  51210. popSuspenseContext(workInProgress);
  51211. var nextState = workInProgress.memoizedState;
  51212. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  51213. // Something suspended. Re-render with the fallback children.
  51214. workInProgress.expirationTime = renderExpirationTime;
  51215. // Do not reset the effect list.
  51216. return workInProgress;
  51217. }
  51218. var nextDidTimeout = nextState !== null;
  51219. var prevDidTimeout = false;
  51220. if (current === null) {
  51221. // In cases where we didn't find a suitable hydration boundary we never
  51222. // downgraded this to a DehydratedSuspenseComponent, but we still need to
  51223. // pop the hydration state since we might be inside the insertion tree.
  51224. popHydrationState(workInProgress);
  51225. } else {
  51226. var prevState = current.memoizedState;
  51227. prevDidTimeout = prevState !== null;
  51228. if (!nextDidTimeout && prevState !== null) {
  51229. // We just switched from the fallback to the normal children.
  51230. // Delete the fallback.
  51231. // TODO: Would it be better to store the fallback fragment on
  51232. var currentFallbackChild = current.child.sibling;
  51233. if (currentFallbackChild !== null) {
  51234. // Deletions go at the beginning of the return fiber's effect list
  51235. var first = workInProgress.firstEffect;
  51236. if (first !== null) {
  51237. workInProgress.firstEffect = currentFallbackChild;
  51238. currentFallbackChild.nextEffect = first;
  51239. } else {
  51240. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  51241. currentFallbackChild.nextEffect = null;
  51242. }
  51243. currentFallbackChild.effectTag = Deletion;
  51244. }
  51245. }
  51246. }
  51247. if (nextDidTimeout && !prevDidTimeout) {
  51248. // If this subtreee is running in batched mode we can suspend,
  51249. // otherwise we won't suspend.
  51250. // TODO: This will still suspend a synchronous tree if anything
  51251. // in the concurrent tree already suspended during this render.
  51252. // This is a known bug.
  51253. if ((workInProgress.mode & BatchedMode) !== NoMode) {
  51254. // TODO: Move this back to throwException because this is too late
  51255. // if this is a large tree which is common for initial loads. We
  51256. // don't know if we should restart a render or not until we get
  51257. // this marker, and this is too late.
  51258. // If this render already had a ping or lower pri updates,
  51259. // and this is the first time we know we're going to suspend we
  51260. // should be able to immediately restart from within throwException.
  51261. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  51262. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  51263. // If this was in an invisible tree or a new render, then showing
  51264. // this boundary is ok.
  51265. renderDidSuspend();
  51266. } else {
  51267. // Otherwise, we're going to have to hide content so we should
  51268. // suspend for longer if possible.
  51269. renderDidSuspendDelayIfPossible();
  51270. }
  51271. }
  51272. }
  51273. if (supportsPersistence) {
  51274. // TODO: Only schedule updates if not prevDidTimeout.
  51275. if (nextDidTimeout) {
  51276. // If this boundary just timed out, schedule an effect to attach a
  51277. // retry listener to the proimse. This flag is also used to hide the
  51278. // primary children.
  51279. workInProgress.effectTag |= Update;
  51280. }
  51281. }
  51282. if (supportsMutation) {
  51283. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  51284. if (nextDidTimeout || prevDidTimeout) {
  51285. // If this boundary just timed out, schedule an effect to attach a
  51286. // retry listener to the proimse. This flag is also used to hide the
  51287. // primary children. In mutation mode, we also need the flag to
  51288. // *unhide* children that were previously hidden, so check if the
  51289. // is currently timed out, too.
  51290. workInProgress.effectTag |= Update;
  51291. }
  51292. }
  51293. if (enableSuspenseCallback && workInProgress.updateQueue !== null && workInProgress.memoizedProps.suspenseCallback != null) {
  51294. // Always notify the callback
  51295. workInProgress.effectTag |= Update;
  51296. }
  51297. break;
  51298. }
  51299. case Fragment:
  51300. break;
  51301. case Mode:
  51302. break;
  51303. case Profiler:
  51304. break;
  51305. case HostPortal:
  51306. popHostContainer(workInProgress);
  51307. updateHostContainer(workInProgress);
  51308. break;
  51309. case ContextProvider:
  51310. // Pop provider fiber
  51311. popProvider(workInProgress);
  51312. break;
  51313. case ContextConsumer:
  51314. break;
  51315. case MemoComponent:
  51316. break;
  51317. case IncompleteClassComponent:
  51318. {
  51319. // Same as class component case. I put it down here so that the tags are
  51320. // sequential to ensure this switch is compiled to a jump table.
  51321. var _Component = workInProgress.type;
  51322. if (isContextProvider(_Component)) {
  51323. popContext(workInProgress);
  51324. }
  51325. break;
  51326. }
  51327. case DehydratedSuspenseComponent:
  51328. {
  51329. if (enableSuspenseServerRenderer) {
  51330. popSuspenseContext(workInProgress);
  51331. if (current === null) {
  51332. var _wasHydrated2 = popHydrationState(workInProgress);
  51333. (function () {
  51334. if (!_wasHydrated2) {
  51335. {
  51336. throw ReactError(Error('A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.'));
  51337. }
  51338. }
  51339. })();
  51340. if (enableSchedulerTracing) {
  51341. markSpawnedWork(Never);
  51342. }
  51343. skipPastDehydratedSuspenseInstance(workInProgress);
  51344. } else if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  51345. // This boundary did not suspend so it's now hydrated.
  51346. // To handle any future suspense cases, we're going to now upgrade it
  51347. // to a Suspense component. We detach it from the existing current fiber.
  51348. current.alternate = null;
  51349. workInProgress.alternate = null;
  51350. workInProgress.tag = SuspenseComponent;
  51351. workInProgress.memoizedState = null;
  51352. workInProgress.stateNode = null;
  51353. }
  51354. }
  51355. break;
  51356. }
  51357. case SuspenseListComponent:
  51358. {
  51359. popSuspenseContext(workInProgress);
  51360. var renderState = workInProgress.memoizedState;
  51361. if (renderState === null) {
  51362. // We're running in the default, "independent" mode. We don't do anything
  51363. // in this mode.
  51364. break;
  51365. }
  51366. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  51367. var renderedTail = renderState.rendering;
  51368. if (renderedTail === null) {
  51369. // We just rendered the head.
  51370. if (!didSuspendAlready) {
  51371. // This is the first pass. We need to figure out if anything is still
  51372. // suspended in the rendered set.
  51373. // If new content unsuspended, but there's still some content that
  51374. // didn't. Then we need to do a second pass that forces everything
  51375. // to keep showing their fallbacks.
  51376. // We might be suspended if something in this render pass suspended, or
  51377. // something in the previous committed pass suspended. Otherwise,
  51378. // there's no chance so we can skip the expensive call to
  51379. // findFirstSuspended.
  51380. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  51381. if (!cannotBeSuspended) {
  51382. var row = workInProgress.child;
  51383. while (row !== null) {
  51384. var suspended = findFirstSuspended(row);
  51385. if (suspended !== null) {
  51386. didSuspendAlready = true;
  51387. workInProgress.effectTag |= DidCapture;
  51388. cutOffTailIfNeeded(renderState, false);
  51389. // If this is a newly suspended tree, it might not get committed as
  51390. // part of the second pass. In that case nothing will subscribe to
  51391. // its thennables. Instead, we'll transfer its thennables to the
  51392. // SuspenseList so that it can retry if they resolve.
  51393. // There might be multiple of these in the list but since we're
  51394. // going to wait for all of them anyway, it doesn't really matter
  51395. // which ones gets to ping. In theory we could get clever and keep
  51396. // track of how many dependencies remain but it gets tricky because
  51397. // in the meantime, we can add/remove/change items and dependencies.
  51398. // We might bail out of the loop before finding any but that
  51399. // doesn't matter since that means that the other boundaries that
  51400. // we did find already has their listeners attached.
  51401. var newThennables = suspended.updateQueue;
  51402. if (newThennables !== null) {
  51403. workInProgress.updateQueue = newThennables;
  51404. workInProgress.effectTag |= Update;
  51405. }
  51406. // Rerender the whole list, but this time, we'll force fallbacks
  51407. // to stay in place.
  51408. // Reset the effect list before doing the second pass since that's now invalid.
  51409. workInProgress.firstEffect = workInProgress.lastEffect = null;
  51410. // Reset the child fibers to their original state.
  51411. resetChildFibers(workInProgress, renderExpirationTime);
  51412. // Set up the Suspense Context to force suspense and immediately
  51413. // rerender the children.
  51414. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  51415. return workInProgress.child;
  51416. }
  51417. row = row.sibling;
  51418. }
  51419. }
  51420. } else {
  51421. cutOffTailIfNeeded(renderState, false);
  51422. }
  51423. // Next we're going to render the tail.
  51424. } else {
  51425. // Append the rendered row to the child list.
  51426. if (!didSuspendAlready) {
  51427. var _suspended = findFirstSuspended(renderedTail);
  51428. if (_suspended !== null) {
  51429. workInProgress.effectTag |= DidCapture;
  51430. didSuspendAlready = true;
  51431. cutOffTailIfNeeded(renderState, true);
  51432. // This might have been modified.
  51433. if (renderState.tail === null && renderState.tailMode === 'hidden') {
  51434. // We need to delete the row we just rendered.
  51435. // Ensure we transfer the update queue to the parent.
  51436. var _newThennables = _suspended.updateQueue;
  51437. if (_newThennables !== null) {
  51438. workInProgress.updateQueue = _newThennables;
  51439. workInProgress.effectTag |= Update;
  51440. }
  51441. // Reset the effect list to what it w as before we rendered this
  51442. // child. The nested children have already appended themselves.
  51443. var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
  51444. // Remove any effects that were appended after this point.
  51445. if (lastEffect !== null) {
  51446. lastEffect.nextEffect = null;
  51447. }
  51448. // We're done.
  51449. return null;
  51450. }
  51451. } else if (now() > renderState.tailExpiration && renderExpirationTime > Never) {
  51452. // We have now passed our CPU deadline and we'll just give up further
  51453. // attempts to render the main content and only render fallbacks.
  51454. // The assumption is that this is usually faster.
  51455. workInProgress.effectTag |= DidCapture;
  51456. didSuspendAlready = true;
  51457. cutOffTailIfNeeded(renderState, false);
  51458. // Since nothing actually suspended, there will nothing to ping this
  51459. // to get it started back up to attempt the next item. If we can show
  51460. // them, then they really have the same priority as this render.
  51461. // So we'll pick it back up the very next render pass once we've had
  51462. // an opportunity to yield for paint.
  51463. var nextPriority = renderExpirationTime - 1;
  51464. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  51465. if (enableSchedulerTracing) {
  51466. markSpawnedWork(nextPriority);
  51467. }
  51468. }
  51469. }
  51470. if (renderState.isBackwards) {
  51471. // The effect list of the backwards tail will have been added
  51472. // to the end. This breaks the guarantee that life-cycles fire in
  51473. // sibling order but that isn't a strong guarantee promised by React.
  51474. // Especially since these might also just pop in during future commits.
  51475. // Append to the beginning of the list.
  51476. renderedTail.sibling = workInProgress.child;
  51477. workInProgress.child = renderedTail;
  51478. } else {
  51479. var previousSibling = renderState.last;
  51480. if (previousSibling !== null) {
  51481. previousSibling.sibling = renderedTail;
  51482. } else {
  51483. workInProgress.child = renderedTail;
  51484. }
  51485. renderState.last = renderedTail;
  51486. }
  51487. }
  51488. if (renderState.tail !== null) {
  51489. // We still have tail rows to render.
  51490. if (renderState.tailExpiration === 0) {
  51491. // Heuristic for how long we're willing to spend rendering rows
  51492. // until we just give up and show what we have so far.
  51493. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  51494. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS;
  51495. }
  51496. // Pop a row.
  51497. var next = renderState.tail;
  51498. renderState.rendering = next;
  51499. renderState.tail = next.sibling;
  51500. renderState.lastEffect = workInProgress.lastEffect;
  51501. next.sibling = null;
  51502. // Restore the context.
  51503. // TODO: We can probably just avoid popping it instead and only
  51504. // setting it the first time we go from not suspended to suspended.
  51505. var suspenseContext = suspenseStackCursor.current;
  51506. if (didSuspendAlready) {
  51507. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  51508. } else {
  51509. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  51510. }
  51511. pushSuspenseContext(workInProgress, suspenseContext);
  51512. // Do a pass over the next row.
  51513. return next;
  51514. }
  51515. break;
  51516. }
  51517. case FundamentalComponent:
  51518. {
  51519. if (enableFundamentalAPI) {
  51520. var fundamentalImpl = workInProgress.type.impl;
  51521. var fundamentalInstance = workInProgress.stateNode;
  51522. if (fundamentalInstance === null) {
  51523. var getInitialState = fundamentalImpl.getInitialState;
  51524. var fundamentalState = void 0;
  51525. if (getInitialState !== undefined) {
  51526. fundamentalState = getInitialState(newProps);
  51527. }
  51528. fundamentalInstance = workInProgress.stateNode = createFundamentalStateInstance(workInProgress, newProps, fundamentalImpl, fundamentalState || {});
  51529. var _instance6 = getFundamentalComponentInstance(fundamentalInstance);
  51530. fundamentalInstance.instance = _instance6;
  51531. if (fundamentalImpl.reconcileChildren === false) {
  51532. return null;
  51533. }
  51534. appendAllChildren(_instance6, workInProgress, false, false);
  51535. mountFundamentalComponent(fundamentalInstance);
  51536. } else {
  51537. // We fire update in commit phase
  51538. var prevProps = fundamentalInstance.props;
  51539. fundamentalInstance.prevProps = prevProps;
  51540. fundamentalInstance.props = newProps;
  51541. fundamentalInstance.currentFiber = workInProgress;
  51542. if (supportsPersistence) {
  51543. var _instance7 = cloneFundamentalInstance(fundamentalInstance);
  51544. fundamentalInstance.instance = _instance7;
  51545. appendAllChildren(_instance7, workInProgress, false, false);
  51546. }
  51547. var shouldUpdate = shouldUpdateFundamentalComponent(fundamentalInstance);
  51548. if (shouldUpdate) {
  51549. markUpdate(workInProgress);
  51550. }
  51551. }
  51552. }
  51553. break;
  51554. }
  51555. default:
  51556. (function () {
  51557. {
  51558. {
  51559. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  51560. }
  51561. }
  51562. })();
  51563. }
  51564. return null;
  51565. }
  51566. function mountEventResponder$1(responder, responderProps, instance, rootContainerInstance, fiber, respondersMap) {
  51567. var responderState = emptyObject;
  51568. var getInitialState = responder.getInitialState;
  51569. if (getInitialState !== null) {
  51570. responderState = getInitialState(responderProps);
  51571. }
  51572. var responderInstance = createResponderInstance(responder, responderProps, responderState, instance, fiber);
  51573. mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance);
  51574. respondersMap.set(responder, responderInstance);
  51575. }
  51576. function updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance) {
  51577. var responder = void 0;
  51578. var props = void 0;
  51579. if (listener) {
  51580. responder = listener.responder;
  51581. props = listener.props;
  51582. }
  51583. (function () {
  51584. if (!(responder && responder.$$typeof === REACT_RESPONDER_TYPE)) {
  51585. {
  51586. throw ReactError(Error('An invalid value was used as an event listener. Expect one or many event listeners created via React.unstable_useResponer().'));
  51587. }
  51588. }
  51589. })();
  51590. var listenerProps = props;
  51591. if (visistedResponders.has(responder)) {
  51592. // show warning
  51593. {
  51594. warning$1(false, 'Duplicate event responder "%s" found in event listeners. ' + 'Event listeners passed to elements cannot use the same event responder more than once.', responder.displayName);
  51595. }
  51596. return;
  51597. }
  51598. visistedResponders.add(responder);
  51599. var responderInstance = respondersMap.get(responder);
  51600. if (responderInstance === undefined) {
  51601. // Mount
  51602. mountEventResponder$1(responder, listenerProps, instance, rootContainerInstance, fiber, respondersMap);
  51603. } else {
  51604. // Update
  51605. responderInstance.props = listenerProps;
  51606. responderInstance.fiber = fiber;
  51607. }
  51608. }
  51609. function updateEventListeners(listeners, instance, rootContainerInstance, fiber) {
  51610. var visistedResponders = new Set();
  51611. var dependencies = fiber.dependencies;
  51612. if (listeners != null) {
  51613. if (dependencies === null) {
  51614. dependencies = fiber.dependencies = {
  51615. expirationTime: NoWork,
  51616. firstContext: null,
  51617. responders: new Map()
  51618. };
  51619. }
  51620. var respondersMap = dependencies.responders;
  51621. if (respondersMap === null) {
  51622. respondersMap = new Map();
  51623. }
  51624. if (isArray$2(listeners)) {
  51625. for (var i = 0, length = listeners.length; i < length; i++) {
  51626. var listener = listeners[i];
  51627. updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  51628. }
  51629. } else {
  51630. updateEventListener(listeners, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  51631. }
  51632. }
  51633. if (dependencies !== null) {
  51634. var _respondersMap = dependencies.responders;
  51635. if (_respondersMap !== null) {
  51636. // Unmount
  51637. var mountedResponders = Array.from(_respondersMap.keys());
  51638. for (var _i = 0, _length = mountedResponders.length; _i < _length; _i++) {
  51639. var mountedResponder = mountedResponders[_i];
  51640. if (!visistedResponders.has(mountedResponder)) {
  51641. var responderInstance = _respondersMap.get(mountedResponder);
  51642. unmountResponderInstance(responderInstance);
  51643. _respondersMap.delete(mountedResponder);
  51644. }
  51645. }
  51646. }
  51647. }
  51648. }
  51649. function unwindWork(workInProgress, renderExpirationTime) {
  51650. switch (workInProgress.tag) {
  51651. case ClassComponent:
  51652. {
  51653. var Component = workInProgress.type;
  51654. if (isContextProvider(Component)) {
  51655. popContext(workInProgress);
  51656. }
  51657. var effectTag = workInProgress.effectTag;
  51658. if (effectTag & ShouldCapture) {
  51659. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  51660. return workInProgress;
  51661. }
  51662. return null;
  51663. }
  51664. case HostRoot:
  51665. {
  51666. popHostContainer(workInProgress);
  51667. popTopLevelContextObject(workInProgress);
  51668. var _effectTag = workInProgress.effectTag;
  51669. (function () {
  51670. if (!((_effectTag & DidCapture) === NoEffect)) {
  51671. {
  51672. throw ReactError(Error('The root failed to unmount after an error. This is likely a bug in React. Please file an issue.'));
  51673. }
  51674. }
  51675. })();
  51676. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  51677. return workInProgress;
  51678. }
  51679. case HostComponent:
  51680. {
  51681. // TODO: popHydrationState
  51682. popHostContext(workInProgress);
  51683. return null;
  51684. }
  51685. case SuspenseComponent:
  51686. {
  51687. popSuspenseContext(workInProgress);
  51688. var _effectTag2 = workInProgress.effectTag;
  51689. if (_effectTag2 & ShouldCapture) {
  51690. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  51691. // Captured a suspense effect. Re-render the boundary.
  51692. return workInProgress;
  51693. }
  51694. return null;
  51695. }
  51696. case DehydratedSuspenseComponent:
  51697. {
  51698. if (enableSuspenseServerRenderer) {
  51699. // TODO: popHydrationState
  51700. popSuspenseContext(workInProgress);
  51701. var _effectTag3 = workInProgress.effectTag;
  51702. if (_effectTag3 & ShouldCapture) {
  51703. workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;
  51704. // Captured a suspense effect. Re-render the boundary.
  51705. return workInProgress;
  51706. }
  51707. }
  51708. return null;
  51709. }
  51710. case SuspenseListComponent:
  51711. {
  51712. popSuspenseContext(workInProgress);
  51713. // SuspenseList doesn't actually catch anything. It should've been
  51714. // caught by a nested boundary. If not, it should bubble through.
  51715. return null;
  51716. }
  51717. case HostPortal:
  51718. popHostContainer(workInProgress);
  51719. return null;
  51720. case ContextProvider:
  51721. popProvider(workInProgress);
  51722. return null;
  51723. default:
  51724. return null;
  51725. }
  51726. }
  51727. function unwindInterruptedWork(interruptedWork) {
  51728. switch (interruptedWork.tag) {
  51729. case ClassComponent:
  51730. {
  51731. var childContextTypes = interruptedWork.type.childContextTypes;
  51732. if (childContextTypes !== null && childContextTypes !== undefined) {
  51733. popContext(interruptedWork);
  51734. }
  51735. break;
  51736. }
  51737. case HostRoot:
  51738. {
  51739. popHostContainer(interruptedWork);
  51740. popTopLevelContextObject(interruptedWork);
  51741. break;
  51742. }
  51743. case HostComponent:
  51744. {
  51745. popHostContext(interruptedWork);
  51746. break;
  51747. }
  51748. case HostPortal:
  51749. popHostContainer(interruptedWork);
  51750. break;
  51751. case SuspenseComponent:
  51752. popSuspenseContext(interruptedWork);
  51753. break;
  51754. case DehydratedSuspenseComponent:
  51755. if (enableSuspenseServerRenderer) {
  51756. // TODO: popHydrationState
  51757. popSuspenseContext(interruptedWork);
  51758. }
  51759. break;
  51760. case SuspenseListComponent:
  51761. popSuspenseContext(interruptedWork);
  51762. break;
  51763. case ContextProvider:
  51764. popProvider(interruptedWork);
  51765. break;
  51766. default:
  51767. break;
  51768. }
  51769. }
  51770. function createCapturedValue(value, source) {
  51771. // If the value is an error, call this function immediately after it is thrown
  51772. // so the stack is accurate.
  51773. return {
  51774. value: value,
  51775. source: source,
  51776. stack: getStackByFiberInDevAndProd(source)
  51777. };
  51778. }
  51779. // This module is forked in different environments.
  51780. // By default, return `true` to log errors to the console.
  51781. // Forks can return `false` if this isn't desirable.
  51782. function showErrorDialog(capturedError) {
  51783. return true;
  51784. }
  51785. function logCapturedError(capturedError) {
  51786. var logError = showErrorDialog(capturedError);
  51787. // Allow injected showErrorDialog() to prevent default console.error logging.
  51788. // This enables renderers like ReactNative to better manage redbox behavior.
  51789. if (logError === false) {
  51790. return;
  51791. }
  51792. var error = capturedError.error;
  51793. {
  51794. var componentName = capturedError.componentName,
  51795. componentStack = capturedError.componentStack,
  51796. errorBoundaryName = capturedError.errorBoundaryName,
  51797. errorBoundaryFound = capturedError.errorBoundaryFound,
  51798. willRetry = capturedError.willRetry;
  51799. // Browsers support silencing uncaught errors by calling
  51800. // `preventDefault()` in window `error` handler.
  51801. // We record this information as an expando on the error.
  51802. if (error != null && error._suppressLogging) {
  51803. if (errorBoundaryFound && willRetry) {
  51804. // The error is recoverable and was silenced.
  51805. // Ignore it and don't print the stack addendum.
  51806. // This is handy for testing error boundaries without noise.
  51807. return;
  51808. }
  51809. // The error is fatal. Since the silencing might have
  51810. // been accidental, we'll surface it anyway.
  51811. // However, the browser would have silenced the original error
  51812. // so we'll print it first, and then print the stack addendum.
  51813. console.error(error);
  51814. // For a more detailed description of this block, see:
  51815. // https://github.com/facebook/react/pull/13384
  51816. }
  51817. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  51818. var errorBoundaryMessage = void 0;
  51819. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  51820. if (errorBoundaryFound && errorBoundaryName) {
  51821. if (willRetry) {
  51822. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  51823. } else {
  51824. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  51825. }
  51826. } else {
  51827. 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.';
  51828. }
  51829. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  51830. // In development, we provide our own message with just the component stack.
  51831. // We don't include the original error message and JS stack because the browser
  51832. // has already printed it. Even if the application swallows the error, it is still
  51833. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  51834. console.error(combinedMessage);
  51835. }
  51836. }
  51837. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  51838. {
  51839. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  51840. }
  51841. var PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set;
  51842. function logError(boundary, errorInfo) {
  51843. var source = errorInfo.source;
  51844. var stack = errorInfo.stack;
  51845. if (stack === null && source !== null) {
  51846. stack = getStackByFiberInDevAndProd(source);
  51847. }
  51848. var capturedError = {
  51849. componentName: source !== null ? getComponentName(source.type) : null,
  51850. componentStack: stack !== null ? stack : '',
  51851. error: errorInfo.value,
  51852. errorBoundary: null,
  51853. errorBoundaryName: null,
  51854. errorBoundaryFound: false,
  51855. willRetry: false
  51856. };
  51857. if (boundary !== null && boundary.tag === ClassComponent) {
  51858. capturedError.errorBoundary = boundary.stateNode;
  51859. capturedError.errorBoundaryName = getComponentName(boundary.type);
  51860. capturedError.errorBoundaryFound = true;
  51861. capturedError.willRetry = true;
  51862. }
  51863. try {
  51864. logCapturedError(capturedError);
  51865. } catch (e) {
  51866. // This method must not throw, or React internal state will get messed up.
  51867. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  51868. // we want to report this error outside of the normal stack as a last resort.
  51869. // https://github.com/facebook/react/issues/13188
  51870. setTimeout(function () {
  51871. throw e;
  51872. });
  51873. }
  51874. }
  51875. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  51876. startPhaseTimer(current$$1, 'componentWillUnmount');
  51877. instance.props = current$$1.memoizedProps;
  51878. instance.state = current$$1.memoizedState;
  51879. instance.componentWillUnmount();
  51880. stopPhaseTimer();
  51881. };
  51882. // Capture errors so they don't interrupt unmounting.
  51883. function safelyCallComponentWillUnmount(current$$1, instance) {
  51884. {
  51885. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  51886. if (hasCaughtError()) {
  51887. var unmountError = clearCaughtError();
  51888. captureCommitPhaseError(current$$1, unmountError);
  51889. }
  51890. }
  51891. }
  51892. function safelyDetachRef(current$$1) {
  51893. var ref = current$$1.ref;
  51894. if (ref !== null) {
  51895. if (typeof ref === 'function') {
  51896. {
  51897. invokeGuardedCallback(null, ref, null, null);
  51898. if (hasCaughtError()) {
  51899. var refError = clearCaughtError();
  51900. captureCommitPhaseError(current$$1, refError);
  51901. }
  51902. }
  51903. } else {
  51904. ref.current = null;
  51905. }
  51906. }
  51907. }
  51908. function safelyCallDestroy(current$$1, destroy) {
  51909. {
  51910. invokeGuardedCallback(null, destroy, null);
  51911. if (hasCaughtError()) {
  51912. var error = clearCaughtError();
  51913. captureCommitPhaseError(current$$1, error);
  51914. }
  51915. }
  51916. }
  51917. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  51918. switch (finishedWork.tag) {
  51919. case FunctionComponent:
  51920. case ForwardRef:
  51921. case SimpleMemoComponent:
  51922. {
  51923. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  51924. return;
  51925. }
  51926. case ClassComponent:
  51927. {
  51928. if (finishedWork.effectTag & Snapshot) {
  51929. if (current$$1 !== null) {
  51930. var prevProps = current$$1.memoizedProps;
  51931. var prevState = current$$1.memoizedState;
  51932. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  51933. var instance = finishedWork.stateNode;
  51934. // We could update instance props and state here,
  51935. // but instead we rely on them being set during last render.
  51936. // TODO: revisit this when we implement resuming.
  51937. {
  51938. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  51939. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  51940. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  51941. }
  51942. }
  51943. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  51944. {
  51945. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  51946. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  51947. didWarnSet.add(finishedWork.type);
  51948. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  51949. }
  51950. }
  51951. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  51952. stopPhaseTimer();
  51953. }
  51954. }
  51955. return;
  51956. }
  51957. case HostRoot:
  51958. case HostComponent:
  51959. case HostText:
  51960. case HostPortal:
  51961. case IncompleteClassComponent:
  51962. // Nothing to do for these component types
  51963. return;
  51964. default:
  51965. {
  51966. (function () {
  51967. {
  51968. {
  51969. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  51970. }
  51971. }
  51972. })();
  51973. }
  51974. }
  51975. }
  51976. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  51977. var updateQueue = finishedWork.updateQueue;
  51978. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  51979. if (lastEffect !== null) {
  51980. var firstEffect = lastEffect.next;
  51981. var effect = firstEffect;
  51982. do {
  51983. if ((effect.tag & unmountTag) !== NoEffect$1) {
  51984. // Unmount
  51985. var destroy = effect.destroy;
  51986. effect.destroy = undefined;
  51987. if (destroy !== undefined) {
  51988. destroy();
  51989. }
  51990. }
  51991. if ((effect.tag & mountTag) !== NoEffect$1) {
  51992. // Mount
  51993. var create = effect.create;
  51994. effect.destroy = create();
  51995. {
  51996. var _destroy = effect.destroy;
  51997. if (_destroy !== undefined && typeof _destroy !== 'function') {
  51998. var addendum = void 0;
  51999. if (_destroy === null) {
  52000. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  52001. } else if (typeof _destroy.then === 'function') {
  52002. addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + '}, [someId]); // Or [] if effect doesn\'t need props or state\n\n' + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching';
  52003. } else {
  52004. addendum = ' You returned: ' + _destroy;
  52005. }
  52006. warningWithoutStack$1(false, 'An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  52007. }
  52008. }
  52009. }
  52010. effect = effect.next;
  52011. } while (effect !== firstEffect);
  52012. }
  52013. }
  52014. function commitPassiveHookEffects(finishedWork) {
  52015. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  52016. switch (finishedWork.tag) {
  52017. case FunctionComponent:
  52018. case ForwardRef:
  52019. case SimpleMemoComponent:
  52020. {
  52021. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  52022. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  52023. break;
  52024. }
  52025. default:
  52026. break;
  52027. }
  52028. }
  52029. }
  52030. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  52031. switch (finishedWork.tag) {
  52032. case FunctionComponent:
  52033. case ForwardRef:
  52034. case SimpleMemoComponent:
  52035. {
  52036. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  52037. break;
  52038. }
  52039. case ClassComponent:
  52040. {
  52041. var instance = finishedWork.stateNode;
  52042. if (finishedWork.effectTag & Update) {
  52043. if (current$$1 === null) {
  52044. startPhaseTimer(finishedWork, 'componentDidMount');
  52045. // We could update instance props and state here,
  52046. // but instead we rely on them being set during last render.
  52047. // TODO: revisit this when we implement resuming.
  52048. {
  52049. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  52050. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  52051. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  52052. }
  52053. }
  52054. instance.componentDidMount();
  52055. stopPhaseTimer();
  52056. } else {
  52057. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  52058. var prevState = current$$1.memoizedState;
  52059. startPhaseTimer(finishedWork, 'componentDidUpdate');
  52060. // We could update instance props and state here,
  52061. // but instead we rely on them being set during last render.
  52062. // TODO: revisit this when we implement resuming.
  52063. {
  52064. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  52065. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  52066. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  52067. }
  52068. }
  52069. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  52070. stopPhaseTimer();
  52071. }
  52072. }
  52073. var updateQueue = finishedWork.updateQueue;
  52074. if (updateQueue !== null) {
  52075. {
  52076. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  52077. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  52078. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  52079. }
  52080. }
  52081. // We could update instance props and state here,
  52082. // but instead we rely on them being set during last render.
  52083. // TODO: revisit this when we implement resuming.
  52084. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  52085. }
  52086. return;
  52087. }
  52088. case HostRoot:
  52089. {
  52090. var _updateQueue = finishedWork.updateQueue;
  52091. if (_updateQueue !== null) {
  52092. var _instance = null;
  52093. if (finishedWork.child !== null) {
  52094. switch (finishedWork.child.tag) {
  52095. case HostComponent:
  52096. _instance = getPublicInstance(finishedWork.child.stateNode);
  52097. break;
  52098. case ClassComponent:
  52099. _instance = finishedWork.child.stateNode;
  52100. break;
  52101. }
  52102. }
  52103. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  52104. }
  52105. return;
  52106. }
  52107. case HostComponent:
  52108. {
  52109. var _instance2 = finishedWork.stateNode;
  52110. // Renderers may schedule work to be done after host components are mounted
  52111. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  52112. // These effects should only be committed when components are first mounted,
  52113. // aka when there is no current/alternate.
  52114. if (current$$1 === null && finishedWork.effectTag & Update) {
  52115. var type = finishedWork.type;
  52116. var props = finishedWork.memoizedProps;
  52117. commitMount(_instance2, type, props, finishedWork);
  52118. }
  52119. return;
  52120. }
  52121. case HostText:
  52122. {
  52123. // We have no life-cycles associated with text.
  52124. return;
  52125. }
  52126. case HostPortal:
  52127. {
  52128. // We have no life-cycles associated with portals.
  52129. return;
  52130. }
  52131. case Profiler:
  52132. {
  52133. if (enableProfilerTimer) {
  52134. var onRender = finishedWork.memoizedProps.onRender;
  52135. if (typeof onRender === 'function') {
  52136. if (enableSchedulerTracing) {
  52137. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  52138. } else {
  52139. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  52140. }
  52141. }
  52142. }
  52143. return;
  52144. }
  52145. case SuspenseComponent:
  52146. case SuspenseListComponent:
  52147. case IncompleteClassComponent:
  52148. case FundamentalComponent:
  52149. return;
  52150. default:
  52151. {
  52152. (function () {
  52153. {
  52154. {
  52155. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  52156. }
  52157. }
  52158. })();
  52159. }
  52160. }
  52161. }
  52162. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  52163. if (supportsMutation) {
  52164. // We only have the top Fiber that was inserted but we need to recurse down its
  52165. var node = finishedWork;
  52166. while (true) {
  52167. if (node.tag === HostComponent) {
  52168. var instance = node.stateNode;
  52169. if (isHidden) {
  52170. hideInstance(instance);
  52171. } else {
  52172. unhideInstance(node.stateNode, node.memoizedProps);
  52173. }
  52174. } else if (node.tag === HostText) {
  52175. var _instance3 = node.stateNode;
  52176. if (isHidden) {
  52177. hideTextInstance(_instance3);
  52178. } else {
  52179. unhideTextInstance(_instance3, node.memoizedProps);
  52180. }
  52181. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  52182. // Found a nested Suspense component that timed out. Skip over the
  52183. var fallbackChildFragment = node.child.sibling;
  52184. fallbackChildFragment.return = node;
  52185. node = fallbackChildFragment;
  52186. continue;
  52187. } else if (node.child !== null) {
  52188. node.child.return = node;
  52189. node = node.child;
  52190. continue;
  52191. }
  52192. if (node === finishedWork) {
  52193. return;
  52194. }
  52195. while (node.sibling === null) {
  52196. if (node.return === null || node.return === finishedWork) {
  52197. return;
  52198. }
  52199. node = node.return;
  52200. }
  52201. node.sibling.return = node.return;
  52202. node = node.sibling;
  52203. }
  52204. }
  52205. }
  52206. function commitAttachRef(finishedWork) {
  52207. var ref = finishedWork.ref;
  52208. if (ref !== null) {
  52209. var instance = finishedWork.stateNode;
  52210. var instanceToUse = void 0;
  52211. switch (finishedWork.tag) {
  52212. case HostComponent:
  52213. instanceToUse = getPublicInstance(instance);
  52214. break;
  52215. default:
  52216. instanceToUse = instance;
  52217. }
  52218. if (typeof ref === 'function') {
  52219. ref(instanceToUse);
  52220. } else {
  52221. {
  52222. if (!ref.hasOwnProperty('current')) {
  52223. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  52224. }
  52225. }
  52226. ref.current = instanceToUse;
  52227. }
  52228. }
  52229. }
  52230. function commitDetachRef(current$$1) {
  52231. var currentRef = current$$1.ref;
  52232. if (currentRef !== null) {
  52233. if (typeof currentRef === 'function') {
  52234. currentRef(null);
  52235. } else {
  52236. currentRef.current = null;
  52237. }
  52238. }
  52239. }
  52240. // User-originating errors (lifecycles and refs) should not interrupt
  52241. // deletion, so don't let them throw. Host-originating errors should
  52242. // interrupt deletion, so it's okay
  52243. function commitUnmount(current$$1, renderPriorityLevel) {
  52244. onCommitUnmount(current$$1);
  52245. switch (current$$1.tag) {
  52246. case FunctionComponent:
  52247. case ForwardRef:
  52248. case MemoComponent:
  52249. case SimpleMemoComponent:
  52250. {
  52251. var updateQueue = current$$1.updateQueue;
  52252. if (updateQueue !== null) {
  52253. var lastEffect = updateQueue.lastEffect;
  52254. if (lastEffect !== null) {
  52255. var firstEffect = lastEffect.next;
  52256. // When the owner fiber is deleted, the destroy function of a passive
  52257. // effect hook is called during the synchronous commit phase. This is
  52258. // a concession to implementation complexity. Calling it in the
  52259. // passive effect phase (like they usually are, when dependencies
  52260. // change during an update) would require either traversing the
  52261. // children of the deleted fiber again, or including unmount effects
  52262. // as part of the fiber effect list.
  52263. //
  52264. // Because this is during the sync commit phase, we need to change
  52265. // the priority.
  52266. //
  52267. // TODO: Reconsider this implementation trade off.
  52268. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  52269. runWithPriority$2(priorityLevel, function () {
  52270. var effect = firstEffect;
  52271. do {
  52272. var destroy = effect.destroy;
  52273. if (destroy !== undefined) {
  52274. safelyCallDestroy(current$$1, destroy);
  52275. }
  52276. effect = effect.next;
  52277. } while (effect !== firstEffect);
  52278. });
  52279. }
  52280. }
  52281. break;
  52282. }
  52283. case ClassComponent:
  52284. {
  52285. safelyDetachRef(current$$1);
  52286. var instance = current$$1.stateNode;
  52287. if (typeof instance.componentWillUnmount === 'function') {
  52288. safelyCallComponentWillUnmount(current$$1, instance);
  52289. }
  52290. return;
  52291. }
  52292. case HostComponent:
  52293. {
  52294. if (enableFlareAPI) {
  52295. var dependencies = current$$1.dependencies;
  52296. if (dependencies !== null) {
  52297. var respondersMap = dependencies.responders;
  52298. if (respondersMap !== null) {
  52299. var responderInstances = Array.from(respondersMap.values());
  52300. for (var i = 0, length = responderInstances.length; i < length; i++) {
  52301. var responderInstance = responderInstances[i];
  52302. unmountResponderInstance(responderInstance);
  52303. }
  52304. dependencies.responders = null;
  52305. }
  52306. }
  52307. }
  52308. safelyDetachRef(current$$1);
  52309. return;
  52310. }
  52311. case HostPortal:
  52312. {
  52313. // TODO: this is recursive.
  52314. // We are also not using this parent because
  52315. // the portal will get pushed immediately.
  52316. if (supportsMutation) {
  52317. unmountHostComponents(current$$1, renderPriorityLevel);
  52318. } else if (supportsPersistence) {
  52319. emptyPortalContainer(current$$1);
  52320. }
  52321. return;
  52322. }
  52323. case FundamentalComponent:
  52324. {
  52325. if (enableFundamentalAPI) {
  52326. var fundamentalInstance = current$$1.stateNode;
  52327. if (fundamentalInstance !== null) {
  52328. unmountFundamentalComponent(fundamentalInstance);
  52329. current$$1.stateNode = null;
  52330. }
  52331. }
  52332. }
  52333. }
  52334. }
  52335. function commitNestedUnmounts(root, renderPriorityLevel) {
  52336. // While we're inside a removed host node we don't want to call
  52337. // removeChild on the inner nodes because they're removed by the top
  52338. // call anyway. We also want to call componentWillUnmount on all
  52339. // composites before this host node is removed from the tree. Therefore
  52340. var node = root;
  52341. while (true) {
  52342. commitUnmount(node, renderPriorityLevel);
  52343. // Visit children because they may contain more composite or host nodes.
  52344. // Skip portals because commitUnmount() currently visits them recursively.
  52345. if (node.child !== null && (
  52346. // If we use mutation we drill down into portals using commitUnmount above.
  52347. // If we don't use mutation we drill down into portals here instead.
  52348. !supportsMutation || node.tag !== HostPortal)) {
  52349. node.child.return = node;
  52350. node = node.child;
  52351. continue;
  52352. }
  52353. if (node === root) {
  52354. return;
  52355. }
  52356. while (node.sibling === null) {
  52357. if (node.return === null || node.return === root) {
  52358. return;
  52359. }
  52360. node = node.return;
  52361. }
  52362. node.sibling.return = node.return;
  52363. node = node.sibling;
  52364. }
  52365. }
  52366. function detachFiber(current$$1) {
  52367. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  52368. // should clear the child pointer of the parent alternate to let this
  52369. // get GC:ed but we don't know which for sure which parent is the current
  52370. // one so we'll settle for GC:ing the subtree of this child. This child
  52371. // itself will be GC:ed when the parent updates the next time.
  52372. current$$1.return = null;
  52373. current$$1.child = null;
  52374. current$$1.memoizedState = null;
  52375. current$$1.updateQueue = null;
  52376. current$$1.dependencies = null;
  52377. var alternate = current$$1.alternate;
  52378. if (alternate !== null) {
  52379. alternate.return = null;
  52380. alternate.child = null;
  52381. alternate.memoizedState = null;
  52382. alternate.updateQueue = null;
  52383. alternate.dependencies = null;
  52384. }
  52385. }
  52386. function emptyPortalContainer(current$$1) {
  52387. if (!supportsPersistence) {
  52388. return;
  52389. }
  52390. var portal = current$$1.stateNode;
  52391. var containerInfo = portal.containerInfo;
  52392. var emptyChildSet = createContainerChildSet(containerInfo);
  52393. replaceContainerChildren(containerInfo, emptyChildSet);
  52394. }
  52395. function commitContainer(finishedWork) {
  52396. if (!supportsPersistence) {
  52397. return;
  52398. }
  52399. switch (finishedWork.tag) {
  52400. case ClassComponent:
  52401. case HostComponent:
  52402. case HostText:
  52403. case FundamentalComponent:
  52404. {
  52405. return;
  52406. }
  52407. case HostRoot:
  52408. case HostPortal:
  52409. {
  52410. var portalOrRoot = finishedWork.stateNode;
  52411. var containerInfo = portalOrRoot.containerInfo,
  52412. _pendingChildren = portalOrRoot.pendingChildren;
  52413. replaceContainerChildren(containerInfo, _pendingChildren);
  52414. return;
  52415. }
  52416. default:
  52417. {
  52418. (function () {
  52419. {
  52420. {
  52421. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  52422. }
  52423. }
  52424. })();
  52425. }
  52426. }
  52427. }
  52428. function getHostParentFiber(fiber) {
  52429. var parent = fiber.return;
  52430. while (parent !== null) {
  52431. if (isHostParent(parent)) {
  52432. return parent;
  52433. }
  52434. parent = parent.return;
  52435. }
  52436. (function () {
  52437. {
  52438. {
  52439. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  52440. }
  52441. }
  52442. })();
  52443. }
  52444. function isHostParent(fiber) {
  52445. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  52446. }
  52447. function getHostSibling(fiber) {
  52448. // We're going to search forward into the tree until we find a sibling host
  52449. // node. Unfortunately, if multiple insertions are done in a row we have to
  52450. // search past them. This leads to exponential search for the next sibling.
  52451. var node = fiber;
  52452. siblings: while (true) {
  52453. // If we didn't find anything, let's try the next sibling.
  52454. while (node.sibling === null) {
  52455. if (node.return === null || isHostParent(node.return)) {
  52456. // If we pop out of the root or hit the parent the fiber we are the
  52457. // last sibling.
  52458. return null;
  52459. }
  52460. node = node.return;
  52461. }
  52462. node.sibling.return = node.return;
  52463. node = node.sibling;
  52464. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) {
  52465. // If it is not host node and, we might have a host node inside it.
  52466. // Try to search down until we find one.
  52467. if (node.effectTag & Placement) {
  52468. // If we don't have a child, try the siblings instead.
  52469. continue siblings;
  52470. }
  52471. // If we don't have a child, try the siblings instead.
  52472. // We also skip portals because they are not part of this host tree.
  52473. if (node.child === null || node.tag === HostPortal) {
  52474. continue siblings;
  52475. } else {
  52476. node.child.return = node;
  52477. node = node.child;
  52478. }
  52479. }
  52480. // Check if this host node is stable or about to be placed.
  52481. if (!(node.effectTag & Placement)) {
  52482. // Found it!
  52483. return node.stateNode;
  52484. }
  52485. }
  52486. }
  52487. function commitPlacement(finishedWork) {
  52488. if (!supportsMutation) {
  52489. return;
  52490. }
  52491. // Recursively insert all host nodes into the parent.
  52492. var parentFiber = getHostParentFiber(finishedWork);
  52493. // Note: these two variables *must* always be updated together.
  52494. var parent = void 0;
  52495. var isContainer = void 0;
  52496. var parentStateNode = parentFiber.stateNode;
  52497. switch (parentFiber.tag) {
  52498. case HostComponent:
  52499. parent = parentStateNode;
  52500. isContainer = false;
  52501. break;
  52502. case HostRoot:
  52503. parent = parentStateNode.containerInfo;
  52504. isContainer = true;
  52505. break;
  52506. case HostPortal:
  52507. parent = parentStateNode.containerInfo;
  52508. isContainer = true;
  52509. break;
  52510. case FundamentalComponent:
  52511. if (enableFundamentalAPI) {
  52512. parent = parentStateNode.instance;
  52513. isContainer = false;
  52514. }
  52515. // eslint-disable-next-line-no-fallthrough
  52516. default:
  52517. (function () {
  52518. {
  52519. {
  52520. throw ReactError(Error('Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.'));
  52521. }
  52522. }
  52523. })();
  52524. }
  52525. if (parentFiber.effectTag & ContentReset) {
  52526. // Reset the text content of the parent before doing any insertions
  52527. resetTextContent(parent);
  52528. // Clear ContentReset from the effect tag
  52529. parentFiber.effectTag &= ~ContentReset;
  52530. }
  52531. var before = getHostSibling(finishedWork);
  52532. // We only have the top Fiber that was inserted but we need to recurse down its
  52533. // children to find all the terminal nodes.
  52534. var node = finishedWork;
  52535. while (true) {
  52536. var isHost = node.tag === HostComponent || node.tag === HostText;
  52537. if (isHost || node.tag === FundamentalComponent) {
  52538. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  52539. if (before) {
  52540. if (isContainer) {
  52541. insertInContainerBefore(parent, stateNode, before);
  52542. } else {
  52543. insertBefore(parent, stateNode, before);
  52544. }
  52545. } else {
  52546. if (isContainer) {
  52547. appendChildToContainer(parent, stateNode);
  52548. } else {
  52549. appendChild(parent, stateNode);
  52550. }
  52551. }
  52552. } else if (node.tag === HostPortal) {
  52553. // If the insertion itself is a portal, then we don't want to traverse
  52554. // down its children. Instead, we'll get insertions from each child in
  52555. // the portal directly.
  52556. } else if (node.child !== null) {
  52557. node.child.return = node;
  52558. node = node.child;
  52559. continue;
  52560. }
  52561. if (node === finishedWork) {
  52562. return;
  52563. }
  52564. while (node.sibling === null) {
  52565. if (node.return === null || node.return === finishedWork) {
  52566. return;
  52567. }
  52568. node = node.return;
  52569. }
  52570. node.sibling.return = node.return;
  52571. node = node.sibling;
  52572. }
  52573. }
  52574. function unmountHostComponents(current$$1, renderPriorityLevel) {
  52575. // We only have the top Fiber that was deleted but we need to recurse down its
  52576. var node = current$$1;
  52577. // Each iteration, currentParent is populated with node's host parent if not
  52578. // currentParentIsValid.
  52579. var currentParentIsValid = false;
  52580. // Note: these two variables *must* always be updated together.
  52581. var currentParent = void 0;
  52582. var currentParentIsContainer = void 0;
  52583. while (true) {
  52584. if (!currentParentIsValid) {
  52585. var parent = node.return;
  52586. findParent: while (true) {
  52587. (function () {
  52588. if (!(parent !== null)) {
  52589. {
  52590. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  52591. }
  52592. }
  52593. })();
  52594. var parentStateNode = parent.stateNode;
  52595. switch (parent.tag) {
  52596. case HostComponent:
  52597. currentParent = parentStateNode;
  52598. currentParentIsContainer = false;
  52599. break findParent;
  52600. case HostRoot:
  52601. currentParent = parentStateNode.containerInfo;
  52602. currentParentIsContainer = true;
  52603. break findParent;
  52604. case HostPortal:
  52605. currentParent = parentStateNode.containerInfo;
  52606. currentParentIsContainer = true;
  52607. break findParent;
  52608. case FundamentalComponent:
  52609. if (enableFundamentalAPI) {
  52610. currentParent = parentStateNode.instance;
  52611. currentParentIsContainer = false;
  52612. }
  52613. }
  52614. parent = parent.return;
  52615. }
  52616. currentParentIsValid = true;
  52617. }
  52618. if (node.tag === HostComponent || node.tag === HostText) {
  52619. commitNestedUnmounts(node, renderPriorityLevel);
  52620. // After all the children have unmounted, it is now safe to remove the
  52621. // node from the tree.
  52622. if (currentParentIsContainer) {
  52623. removeChildFromContainer(currentParent, node.stateNode);
  52624. } else {
  52625. removeChild(currentParent, node.stateNode);
  52626. }
  52627. // Don't visit children because we already visited them.
  52628. } else if (node.tag === FundamentalComponent) {
  52629. var fundamentalNode = node.stateNode.instance;
  52630. commitNestedUnmounts(node, renderPriorityLevel);
  52631. // After all the children have unmounted, it is now safe to remove the
  52632. // node from the tree.
  52633. if (currentParentIsContainer) {
  52634. removeChildFromContainer(currentParent, fundamentalNode);
  52635. } else {
  52636. removeChild(currentParent, fundamentalNode);
  52637. }
  52638. } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) {
  52639. // Delete the dehydrated suspense boundary and all of its content.
  52640. if (currentParentIsContainer) {
  52641. clearSuspenseBoundaryFromContainer(currentParent, node.stateNode);
  52642. } else {
  52643. clearSuspenseBoundary(currentParent, node.stateNode);
  52644. }
  52645. } else if (node.tag === HostPortal) {
  52646. if (node.child !== null) {
  52647. // When we go into a portal, it becomes the parent to remove from.
  52648. // We will reassign it back when we pop the portal on the way up.
  52649. currentParent = node.stateNode.containerInfo;
  52650. currentParentIsContainer = true;
  52651. // Visit children because portals might contain host components.
  52652. node.child.return = node;
  52653. node = node.child;
  52654. continue;
  52655. }
  52656. } else {
  52657. commitUnmount(node, renderPriorityLevel);
  52658. // Visit children because we may find more host components below.
  52659. if (node.child !== null) {
  52660. node.child.return = node;
  52661. node = node.child;
  52662. continue;
  52663. }
  52664. }
  52665. if (node === current$$1) {
  52666. return;
  52667. }
  52668. while (node.sibling === null) {
  52669. if (node.return === null || node.return === current$$1) {
  52670. return;
  52671. }
  52672. node = node.return;
  52673. if (node.tag === HostPortal) {
  52674. // When we go out of the portal, we need to restore the parent.
  52675. // Since we don't keep a stack of them, we will search for it.
  52676. currentParentIsValid = false;
  52677. }
  52678. }
  52679. node.sibling.return = node.return;
  52680. node = node.sibling;
  52681. }
  52682. }
  52683. function commitDeletion(current$$1, renderPriorityLevel) {
  52684. if (supportsMutation) {
  52685. // Recursively delete all host nodes from the parent.
  52686. // Detach refs and call componentWillUnmount() on the whole subtree.
  52687. unmountHostComponents(current$$1, renderPriorityLevel);
  52688. } else {
  52689. // Detach refs and call componentWillUnmount() on the whole subtree.
  52690. commitNestedUnmounts(current$$1, renderPriorityLevel);
  52691. }
  52692. detachFiber(current$$1);
  52693. }
  52694. function commitWork(current$$1, finishedWork) {
  52695. if (!supportsMutation) {
  52696. switch (finishedWork.tag) {
  52697. case FunctionComponent:
  52698. case ForwardRef:
  52699. case MemoComponent:
  52700. case SimpleMemoComponent:
  52701. {
  52702. // Note: We currently never use MountMutation, but useLayout uses
  52703. // UnmountMutation.
  52704. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  52705. return;
  52706. }
  52707. case Profiler:
  52708. {
  52709. return;
  52710. }
  52711. case SuspenseComponent:
  52712. {
  52713. commitSuspenseComponent(finishedWork);
  52714. attachSuspenseRetryListeners(finishedWork);
  52715. return;
  52716. }
  52717. case SuspenseListComponent:
  52718. {
  52719. attachSuspenseRetryListeners(finishedWork);
  52720. return;
  52721. }
  52722. }
  52723. commitContainer(finishedWork);
  52724. return;
  52725. }
  52726. switch (finishedWork.tag) {
  52727. case FunctionComponent:
  52728. case ForwardRef:
  52729. case MemoComponent:
  52730. case SimpleMemoComponent:
  52731. {
  52732. // Note: We currently never use MountMutation, but useLayout uses
  52733. // UnmountMutation.
  52734. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  52735. return;
  52736. }
  52737. case ClassComponent:
  52738. {
  52739. return;
  52740. }
  52741. case HostComponent:
  52742. {
  52743. var instance = finishedWork.stateNode;
  52744. if (instance != null) {
  52745. // Commit the work prepared earlier.
  52746. var newProps = finishedWork.memoizedProps;
  52747. // For hydration we reuse the update path but we treat the oldProps
  52748. // as the newProps. The updatePayload will contain the real change in
  52749. // this case.
  52750. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  52751. var type = finishedWork.type;
  52752. // TODO: Type the updateQueue to be specific to host components.
  52753. var updatePayload = finishedWork.updateQueue;
  52754. finishedWork.updateQueue = null;
  52755. if (updatePayload !== null) {
  52756. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  52757. }
  52758. }
  52759. return;
  52760. }
  52761. case HostText:
  52762. {
  52763. (function () {
  52764. if (!(finishedWork.stateNode !== null)) {
  52765. {
  52766. throw ReactError(Error('This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.'));
  52767. }
  52768. }
  52769. })();
  52770. var textInstance = finishedWork.stateNode;
  52771. var newText = finishedWork.memoizedProps;
  52772. // For hydration we reuse the update path but we treat the oldProps
  52773. // as the newProps. The updatePayload will contain the real change in
  52774. // this case.
  52775. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  52776. commitTextUpdate(textInstance, oldText, newText);
  52777. return;
  52778. }
  52779. case HostRoot:
  52780. {
  52781. return;
  52782. }
  52783. case Profiler:
  52784. {
  52785. return;
  52786. }
  52787. case SuspenseComponent:
  52788. {
  52789. commitSuspenseComponent(finishedWork);
  52790. attachSuspenseRetryListeners(finishedWork);
  52791. return;
  52792. }
  52793. case SuspenseListComponent:
  52794. {
  52795. attachSuspenseRetryListeners(finishedWork);
  52796. return;
  52797. }
  52798. case IncompleteClassComponent:
  52799. {
  52800. return;
  52801. }
  52802. case FundamentalComponent:
  52803. {
  52804. if (enableFundamentalAPI) {
  52805. var fundamentalInstance = finishedWork.stateNode;
  52806. updateFundamentalComponent(fundamentalInstance);
  52807. }
  52808. return;
  52809. }
  52810. default:
  52811. {
  52812. (function () {
  52813. {
  52814. {
  52815. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  52816. }
  52817. }
  52818. })();
  52819. }
  52820. }
  52821. }
  52822. function commitSuspenseComponent(finishedWork) {
  52823. var newState = finishedWork.memoizedState;
  52824. var newDidTimeout = void 0;
  52825. var primaryChildParent = finishedWork;
  52826. if (newState === null) {
  52827. newDidTimeout = false;
  52828. } else {
  52829. newDidTimeout = true;
  52830. primaryChildParent = finishedWork.child;
  52831. markCommitTimeOfFallback();
  52832. }
  52833. if (supportsMutation && primaryChildParent !== null) {
  52834. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  52835. }
  52836. if (enableSuspenseCallback && newState !== null) {
  52837. var suspenseCallback = finishedWork.memoizedProps.suspenseCallback;
  52838. if (typeof suspenseCallback === 'function') {
  52839. var thenables = finishedWork.updateQueue;
  52840. if (thenables !== null) {
  52841. suspenseCallback(new Set(thenables));
  52842. }
  52843. } else {
  52844. if (suspenseCallback !== undefined) {
  52845. warning$1(false, 'Unexpected type for suspenseCallback.');
  52846. }
  52847. }
  52848. }
  52849. }
  52850. function attachSuspenseRetryListeners(finishedWork) {
  52851. // If this boundary just timed out, then it will have a set of thenables.
  52852. // For each thenable, attach a listener so that when it resolves, React
  52853. var thenables = finishedWork.updateQueue;
  52854. if (thenables !== null) {
  52855. finishedWork.updateQueue = null;
  52856. var retryCache = finishedWork.stateNode;
  52857. if (retryCache === null) {
  52858. retryCache = finishedWork.stateNode = new PossiblyWeakSet$1();
  52859. }
  52860. thenables.forEach(function (thenable) {
  52861. // Memoize using the boundary fiber to prevent redundant listeners.
  52862. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  52863. if (!retryCache.has(thenable)) {
  52864. if (enableSchedulerTracing) {
  52865. retry = tracing.unstable_wrap(retry);
  52866. }
  52867. retryCache.add(thenable);
  52868. thenable.then(retry, retry);
  52869. }
  52870. });
  52871. }
  52872. }
  52873. function commitResetTextContent(current$$1) {
  52874. if (!supportsMutation) {
  52875. return;
  52876. }
  52877. resetTextContent(current$$1.stateNode);
  52878. }
  52879. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  52880. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  52881. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  52882. var update = createUpdate(expirationTime, null);
  52883. // Unmount the root by rendering null.
  52884. update.tag = CaptureUpdate;
  52885. // Caution: React DevTools currently depends on this property
  52886. // being called "element".
  52887. update.payload = { element: null };
  52888. var error = errorInfo.value;
  52889. update.callback = function () {
  52890. onUncaughtError(error);
  52891. logError(fiber, errorInfo);
  52892. };
  52893. return update;
  52894. }
  52895. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  52896. var update = createUpdate(expirationTime, null);
  52897. update.tag = CaptureUpdate;
  52898. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  52899. if (typeof getDerivedStateFromError === 'function') {
  52900. var error = errorInfo.value;
  52901. update.payload = function () {
  52902. logError(fiber, errorInfo);
  52903. return getDerivedStateFromError(error);
  52904. };
  52905. }
  52906. var inst = fiber.stateNode;
  52907. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  52908. update.callback = function callback() {
  52909. {
  52910. markFailedErrorBoundaryForHotReloading(fiber);
  52911. }
  52912. if (typeof getDerivedStateFromError !== 'function') {
  52913. // To preserve the preexisting retry behavior of error boundaries,
  52914. // we keep track of which ones already failed during this batch.
  52915. // This gets reset before we yield back to the browser.
  52916. // TODO: Warn in strict mode if getDerivedStateFromError is
  52917. // not defined.
  52918. markLegacyErrorBoundaryAsFailed(this);
  52919. // Only log here if componentDidCatch is the only error boundary method defined
  52920. logError(fiber, errorInfo);
  52921. }
  52922. var error = errorInfo.value;
  52923. var stack = errorInfo.stack;
  52924. this.componentDidCatch(error, {
  52925. componentStack: stack !== null ? stack : ''
  52926. });
  52927. {
  52928. if (typeof getDerivedStateFromError !== 'function') {
  52929. // If componentDidCatch is the only error boundary method defined,
  52930. // then it needs to call setState to recover from errors.
  52931. // If no state update is scheduled then the boundary will swallow the error.
  52932. !(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;
  52933. }
  52934. }
  52935. };
  52936. } else {
  52937. update.callback = function () {
  52938. markFailedErrorBoundaryForHotReloading(fiber);
  52939. };
  52940. }
  52941. return update;
  52942. }
  52943. function attachPingListener(root, renderExpirationTime, thenable) {
  52944. // Attach a listener to the promise to "ping" the root and retry. But
  52945. // only if one does not already exist for the current render expiration
  52946. // time (which acts like a "thread ID" here).
  52947. var pingCache = root.pingCache;
  52948. var threadIDs = void 0;
  52949. if (pingCache === null) {
  52950. pingCache = root.pingCache = new PossiblyWeakMap$1();
  52951. threadIDs = new Set();
  52952. pingCache.set(thenable, threadIDs);
  52953. } else {
  52954. threadIDs = pingCache.get(thenable);
  52955. if (threadIDs === undefined) {
  52956. threadIDs = new Set();
  52957. pingCache.set(thenable, threadIDs);
  52958. }
  52959. }
  52960. if (!threadIDs.has(renderExpirationTime)) {
  52961. // Memoize using the thread ID to prevent redundant listeners.
  52962. threadIDs.add(renderExpirationTime);
  52963. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  52964. if (enableSchedulerTracing) {
  52965. ping = tracing.unstable_wrap(ping);
  52966. }
  52967. thenable.then(ping, ping);
  52968. }
  52969. }
  52970. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  52971. // The source fiber did not complete.
  52972. sourceFiber.effectTag |= Incomplete;
  52973. // Its effect list is no longer valid.
  52974. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  52975. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  52976. // This is a thenable.
  52977. var thenable = value;
  52978. checkForWrongSuspensePriorityInDEV(sourceFiber);
  52979. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext);
  52980. // Schedule the nearest Suspense to re-render the timed out view.
  52981. var _workInProgress = returnFiber;
  52982. do {
  52983. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  52984. // Found the nearest boundary.
  52985. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  52986. var thenables = _workInProgress.updateQueue;
  52987. if (thenables === null) {
  52988. var updateQueue = new Set();
  52989. updateQueue.add(thenable);
  52990. _workInProgress.updateQueue = updateQueue;
  52991. } else {
  52992. thenables.add(thenable);
  52993. }
  52994. // If the boundary is outside of batched mode, we should *not*
  52995. // suspend the commit. Pretend as if the suspended component rendered
  52996. // null and keep rendering. In the commit phase, we'll schedule a
  52997. // subsequent synchronous update to re-render the Suspense.
  52998. //
  52999. // Note: It doesn't matter whether the component that suspended was
  53000. // inside a batched mode tree. If the Suspense is outside of it, we
  53001. // should *not* suspend the commit.
  53002. if ((_workInProgress.mode & BatchedMode) === NoMode) {
  53003. _workInProgress.effectTag |= DidCapture;
  53004. // We're going to commit this fiber even though it didn't complete.
  53005. // But we shouldn't call any lifecycle methods or callbacks. Remove
  53006. // all lifecycle effect tags.
  53007. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  53008. if (sourceFiber.tag === ClassComponent) {
  53009. var currentSourceFiber = sourceFiber.alternate;
  53010. if (currentSourceFiber === null) {
  53011. // This is a new mount. Change the tag so it's not mistaken for a
  53012. // completed class component. For example, we should not call
  53013. // componentWillUnmount if it is deleted.
  53014. sourceFiber.tag = IncompleteClassComponent;
  53015. } else {
  53016. // When we try rendering again, we should not reuse the current fiber,
  53017. // since it's known to be in an inconsistent state. Use a force update to
  53018. // prevent a bail out.
  53019. var update = createUpdate(Sync, null);
  53020. update.tag = ForceUpdate;
  53021. enqueueUpdate(sourceFiber, update);
  53022. }
  53023. }
  53024. // The source fiber did not complete. Mark it with Sync priority to
  53025. // indicate that it still has pending work.
  53026. sourceFiber.expirationTime = Sync;
  53027. // Exit without suspending.
  53028. return;
  53029. }
  53030. // Confirmed that the boundary is in a concurrent mode tree. Continue
  53031. // with the normal suspend path.
  53032. //
  53033. // After this we'll use a set of heuristics to determine whether this
  53034. // render pass will run to completion or restart or "suspend" the commit.
  53035. // The actual logic for this is spread out in different places.
  53036. //
  53037. // This first principle is that if we're going to suspend when we complete
  53038. // a root, then we should also restart if we get an update or ping that
  53039. // might unsuspend it, and vice versa. The only reason to suspend is
  53040. // because you think you might want to restart before committing. However,
  53041. // it doesn't make sense to restart only while in the period we're suspended.
  53042. //
  53043. // Restarting too aggressively is also not good because it starves out any
  53044. // intermediate loading state. So we use heuristics to determine when.
  53045. // Suspense Heuristics
  53046. //
  53047. // If nothing threw a Promise or all the same fallbacks are already showing,
  53048. // then don't suspend/restart.
  53049. //
  53050. // If this is an initial render of a new tree of Suspense boundaries and
  53051. // those trigger a fallback, then don't suspend/restart. We want to ensure
  53052. // that we can show the initial loading state as quickly as possible.
  53053. //
  53054. // If we hit a "Delayed" case, such as when we'd switch from content back into
  53055. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  53056. // this case. If none is defined, JND is used instead.
  53057. //
  53058. // If we're already showing a fallback and it gets "retried", allowing us to show
  53059. // another level, but there's still an inner boundary that would show a fallback,
  53060. // then we suspend/restart for 500ms since the last time we showed a fallback
  53061. // anywhere in the tree. This effectively throttles progressive loading into a
  53062. // consistent train of commits. This also gives us an opportunity to restart to
  53063. // get to the completed state slightly earlier.
  53064. //
  53065. // If there's ambiguity due to batching it's resolved in preference of:
  53066. // 1) "delayed", 2) "initial render", 3) "retry".
  53067. //
  53068. // We want to ensure that a "busy" state doesn't get force committed. We want to
  53069. // ensure that new initial loading states can commit as soon as possible.
  53070. attachPingListener(root, renderExpirationTime, thenable);
  53071. _workInProgress.effectTag |= ShouldCapture;
  53072. _workInProgress.expirationTime = renderExpirationTime;
  53073. return;
  53074. } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) {
  53075. attachPingListener(root, renderExpirationTime, thenable);
  53076. // Since we already have a current fiber, we can eagerly add a retry listener.
  53077. var retryCache = _workInProgress.memoizedState;
  53078. if (retryCache === null) {
  53079. retryCache = _workInProgress.memoizedState = new PossiblyWeakSet();
  53080. var current$$1 = _workInProgress.alternate;
  53081. (function () {
  53082. if (!current$$1) {
  53083. {
  53084. throw ReactError(Error('A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.'));
  53085. }
  53086. }
  53087. })();
  53088. current$$1.memoizedState = retryCache;
  53089. }
  53090. // Memoize using the boundary fiber to prevent redundant listeners.
  53091. if (!retryCache.has(thenable)) {
  53092. retryCache.add(thenable);
  53093. var retry = resolveRetryThenable.bind(null, _workInProgress, thenable);
  53094. if (enableSchedulerTracing) {
  53095. retry = tracing.unstable_wrap(retry);
  53096. }
  53097. thenable.then(retry, retry);
  53098. }
  53099. _workInProgress.effectTag |= ShouldCapture;
  53100. _workInProgress.expirationTime = renderExpirationTime;
  53101. return;
  53102. }
  53103. // This boundary already captured during this render. Continue to the next
  53104. // boundary.
  53105. _workInProgress = _workInProgress.return;
  53106. } while (_workInProgress !== null);
  53107. // No boundary was found. Fallthrough to error mode.
  53108. // TODO: Use invariant so the message is stripped in prod?
  53109. 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));
  53110. }
  53111. // We didn't find a boundary that could handle this type of exception. Start
  53112. // over and traverse parent path again, this time treating the exception
  53113. // as an error.
  53114. renderDidError();
  53115. value = createCapturedValue(value, sourceFiber);
  53116. var workInProgress = returnFiber;
  53117. do {
  53118. switch (workInProgress.tag) {
  53119. case HostRoot:
  53120. {
  53121. var _errorInfo = value;
  53122. workInProgress.effectTag |= ShouldCapture;
  53123. workInProgress.expirationTime = renderExpirationTime;
  53124. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  53125. enqueueCapturedUpdate(workInProgress, _update);
  53126. return;
  53127. }
  53128. case ClassComponent:
  53129. // Capture and retry
  53130. var errorInfo = value;
  53131. var ctor = workInProgress.type;
  53132. var instance = workInProgress.stateNode;
  53133. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  53134. workInProgress.effectTag |= ShouldCapture;
  53135. workInProgress.expirationTime = renderExpirationTime;
  53136. // Schedule the error boundary to re-render using updated state
  53137. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  53138. enqueueCapturedUpdate(workInProgress, _update2);
  53139. return;
  53140. }
  53141. break;
  53142. default:
  53143. break;
  53144. }
  53145. workInProgress = workInProgress.return;
  53146. } while (workInProgress !== null);
  53147. }
  53148. // The scheduler is imported here *only* to detect whether it's been mocked
  53149. // DEV stuff
  53150. var ceil = Math.ceil;
  53151. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  53152. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  53153. var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  53154. var NoContext = /* */0;
  53155. var BatchedContext = /* */1;
  53156. var EventContext = /* */2;
  53157. var DiscreteEventContext = /* */4;
  53158. var LegacyUnbatchedContext = /* */8;
  53159. var RenderContext = /* */16;
  53160. var CommitContext = /* */32;
  53161. var RootIncomplete = 0;
  53162. var RootErrored = 1;
  53163. var RootSuspended = 2;
  53164. var RootSuspendedWithDelay = 3;
  53165. var RootCompleted = 4;
  53166. // Describes where we are in the React execution stack
  53167. var executionContext = NoContext;
  53168. // The root we're working on
  53169. var workInProgressRoot = null;
  53170. // The fiber we're working on
  53171. var workInProgress = null;
  53172. // The expiration time we're rendering
  53173. var renderExpirationTime = NoWork;
  53174. // Whether to root completed, errored, suspended, etc.
  53175. var workInProgressRootExitStatus = RootIncomplete;
  53176. // Most recent event time among processed updates during this render.
  53177. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  53178. // because we deal mostly with expiration times in the hot path, so this avoids
  53179. // the conversion happening in the hot path.
  53180. var workInProgressRootLatestProcessedExpirationTime = Sync;
  53181. var workInProgressRootLatestSuspenseTimeout = Sync;
  53182. var workInProgressRootCanSuspendUsingConfig = null;
  53183. // If we're pinged while rendering we don't always restart immediately.
  53184. // This flag determines if it might be worthwhile to restart if an opportunity
  53185. // happens latere.
  53186. var workInProgressRootHasPendingPing = false;
  53187. // The most recent time we committed a fallback. This lets us ensure a train
  53188. // model where we don't commit new loading states in too quick succession.
  53189. var globalMostRecentFallbackTime = 0;
  53190. var FALLBACK_THROTTLE_MS = 500;
  53191. var nextEffect = null;
  53192. var hasUncaughtError = false;
  53193. var firstUncaughtError = null;
  53194. var legacyErrorBoundariesThatAlreadyFailed = null;
  53195. var rootDoesHavePassiveEffects = false;
  53196. var rootWithPendingPassiveEffects = null;
  53197. var pendingPassiveEffectsRenderPriority = NoPriority;
  53198. var pendingPassiveEffectsExpirationTime = NoWork;
  53199. var rootsWithPendingDiscreteUpdates = null;
  53200. // Use these to prevent an infinite loop of nested updates
  53201. var NESTED_UPDATE_LIMIT = 50;
  53202. var nestedUpdateCount = 0;
  53203. var rootWithNestedUpdates = null;
  53204. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  53205. var nestedPassiveUpdateCount = 0;
  53206. var interruptedBy = null;
  53207. // Marks the need to reschedule pending interactions at these expiration times
  53208. // during the commit phase. This enables them to be traced across components
  53209. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  53210. // hydration or SuspenseList.
  53211. var spawnedWorkDuringRender = null;
  53212. // Expiration times are computed by adding to the current time (the start
  53213. // time). However, if two updates are scheduled within the same event, we
  53214. // should treat their start times as simultaneous, even if the actual clock
  53215. // time has advanced between the first and second call.
  53216. // In other words, because expiration times determine how updates are batched,
  53217. // we want all updates of like priority that occur within the same event to
  53218. // receive the same expiration time. Otherwise we get tearing.
  53219. var currentEventTime = NoWork;
  53220. function requestCurrentTime() {
  53221. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  53222. // We're inside React, so it's fine to read the actual time.
  53223. return msToExpirationTime(now());
  53224. }
  53225. // We're not inside React, so we may be in the middle of a browser event.
  53226. if (currentEventTime !== NoWork) {
  53227. // Use the same start time for all updates until we enter React again.
  53228. return currentEventTime;
  53229. }
  53230. // This is the first update since React yielded. Compute a new start time.
  53231. currentEventTime = msToExpirationTime(now());
  53232. return currentEventTime;
  53233. }
  53234. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  53235. var mode = fiber.mode;
  53236. if ((mode & BatchedMode) === NoMode) {
  53237. return Sync;
  53238. }
  53239. var priorityLevel = getCurrentPriorityLevel();
  53240. if ((mode & ConcurrentMode) === NoMode) {
  53241. return priorityLevel === ImmediatePriority ? Sync : Batched;
  53242. }
  53243. if ((executionContext & RenderContext) !== NoContext) {
  53244. // Use whatever time we're already rendering
  53245. return renderExpirationTime;
  53246. }
  53247. var expirationTime = void 0;
  53248. if (suspenseConfig !== null) {
  53249. // Compute an expiration time based on the Suspense timeout.
  53250. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  53251. } else {
  53252. // Compute an expiration time based on the Scheduler priority.
  53253. switch (priorityLevel) {
  53254. case ImmediatePriority:
  53255. expirationTime = Sync;
  53256. break;
  53257. case UserBlockingPriority$2:
  53258. // TODO: Rename this to computeUserBlockingExpiration
  53259. expirationTime = computeInteractiveExpiration(currentTime);
  53260. break;
  53261. case NormalPriority:
  53262. case LowPriority:
  53263. // TODO: Handle LowPriority
  53264. // TODO: Rename this to... something better.
  53265. expirationTime = computeAsyncExpiration(currentTime);
  53266. break;
  53267. case IdlePriority:
  53268. expirationTime = Never;
  53269. break;
  53270. default:
  53271. (function () {
  53272. {
  53273. {
  53274. throw ReactError(Error('Expected a valid priority level'));
  53275. }
  53276. }
  53277. })();
  53278. }
  53279. }
  53280. // If we're in the middle of rendering a tree, do not update at the same
  53281. // expiration time that is already rendering.
  53282. // TODO: We shouldn't have to do this if the update is on a different root.
  53283. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  53284. // the root when we check for this condition.
  53285. if (workInProgressRoot !== null && expirationTime === renderExpirationTime) {
  53286. // This is a trick to move this update into a separate batch
  53287. expirationTime -= 1;
  53288. }
  53289. return expirationTime;
  53290. }
  53291. var lastUniqueAsyncExpiration = NoWork;
  53292. function computeUniqueAsyncExpiration() {
  53293. var currentTime = requestCurrentTime();
  53294. var result = computeAsyncExpiration(currentTime);
  53295. if (result <= lastUniqueAsyncExpiration) {
  53296. // Since we assume the current time monotonically increases, we only hit
  53297. // this branch when computeUniqueAsyncExpiration is fired multiple times
  53298. // within a 200ms window (or whatever the async bucket size is).
  53299. result -= 1;
  53300. }
  53301. lastUniqueAsyncExpiration = result;
  53302. return result;
  53303. }
  53304. function scheduleUpdateOnFiber(fiber, expirationTime) {
  53305. checkForNestedUpdates();
  53306. warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber);
  53307. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  53308. if (root === null) {
  53309. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  53310. return;
  53311. }
  53312. root.pingTime = NoWork;
  53313. checkForInterruption(fiber, expirationTime);
  53314. recordScheduleUpdate();
  53315. // TODO: computeExpirationForFiber also reads the priority. Pass the
  53316. // priority as an argument to that function and this one.
  53317. var priorityLevel = getCurrentPriorityLevel();
  53318. if (expirationTime === Sync) {
  53319. if (
  53320. // Check if we're inside unbatchedUpdates
  53321. (executionContext & LegacyUnbatchedContext) !== NoContext &&
  53322. // Check if we're not already rendering
  53323. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  53324. // Register pending interactions on the root to avoid losing traced interaction data.
  53325. schedulePendingInteractions(root, expirationTime);
  53326. // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  53327. // root inside of batchedUpdates should be synchronous, but layout updates
  53328. // should be deferred until the end of the batch.
  53329. var callback = renderRoot(root, Sync, true);
  53330. while (callback !== null) {
  53331. callback = callback(true);
  53332. }
  53333. } else {
  53334. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  53335. if (executionContext === NoContext) {
  53336. // Flush the synchronous work now, wnless we're already working or inside
  53337. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  53338. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  53339. // without immediately flushing it. We only do this for user-initiated
  53340. // updates, to preserve historical behavior of sync mode.
  53341. flushSyncCallbackQueue();
  53342. }
  53343. }
  53344. } else {
  53345. scheduleCallbackForRoot(root, priorityLevel, expirationTime);
  53346. }
  53347. if ((executionContext & DiscreteEventContext) !== NoContext && (
  53348. // Only updates at user-blocking priority or greater are considered
  53349. // discrete, even inside a discrete event.
  53350. priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority)) {
  53351. // This is the result of a discrete event. Track the lowest priority
  53352. // discrete update per root so we can flush them early, if needed.
  53353. if (rootsWithPendingDiscreteUpdates === null) {
  53354. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  53355. } else {
  53356. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  53357. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  53358. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  53359. }
  53360. }
  53361. }
  53362. }
  53363. var scheduleWork = scheduleUpdateOnFiber;
  53364. // This is split into a separate function so we can mark a fiber with pending
  53365. // work without treating it as a typical update that originates from an event;
  53366. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  53367. // on a fiber.
  53368. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  53369. // Update the source fiber's expiration time
  53370. if (fiber.expirationTime < expirationTime) {
  53371. fiber.expirationTime = expirationTime;
  53372. }
  53373. var alternate = fiber.alternate;
  53374. if (alternate !== null && alternate.expirationTime < expirationTime) {
  53375. alternate.expirationTime = expirationTime;
  53376. }
  53377. // Walk the parent path to the root and update the child expiration time.
  53378. var node = fiber.return;
  53379. var root = null;
  53380. if (node === null && fiber.tag === HostRoot) {
  53381. root = fiber.stateNode;
  53382. } else {
  53383. while (node !== null) {
  53384. alternate = node.alternate;
  53385. if (node.childExpirationTime < expirationTime) {
  53386. node.childExpirationTime = expirationTime;
  53387. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  53388. alternate.childExpirationTime = expirationTime;
  53389. }
  53390. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  53391. alternate.childExpirationTime = expirationTime;
  53392. }
  53393. if (node.return === null && node.tag === HostRoot) {
  53394. root = node.stateNode;
  53395. break;
  53396. }
  53397. node = node.return;
  53398. }
  53399. }
  53400. if (root !== null) {
  53401. // Update the first and last pending expiration times in this root
  53402. var firstPendingTime = root.firstPendingTime;
  53403. if (expirationTime > firstPendingTime) {
  53404. root.firstPendingTime = expirationTime;
  53405. }
  53406. var lastPendingTime = root.lastPendingTime;
  53407. if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
  53408. root.lastPendingTime = expirationTime;
  53409. }
  53410. }
  53411. return root;
  53412. }
  53413. // Use this function, along with runRootCallback, to ensure that only a single
  53414. // callback per root is scheduled. It's still possible to call renderRoot
  53415. // directly, but scheduling via this function helps avoid excessive callbacks.
  53416. // It works by storing the callback node and expiration time on the root. When a
  53417. // new callback comes in, it compares the expiration time to determine if it
  53418. // should cancel the previous one. It also relies on commitRoot scheduling a
  53419. // callback to render the next level, because that means we don't need a
  53420. // separate callback per expiration time.
  53421. function scheduleCallbackForRoot(root, priorityLevel, expirationTime) {
  53422. var existingCallbackExpirationTime = root.callbackExpirationTime;
  53423. if (existingCallbackExpirationTime < expirationTime) {
  53424. // New callback has higher priority than the existing one.
  53425. var existingCallbackNode = root.callbackNode;
  53426. if (existingCallbackNode !== null) {
  53427. cancelCallback(existingCallbackNode);
  53428. }
  53429. root.callbackExpirationTime = expirationTime;
  53430. if (expirationTime === Sync) {
  53431. // Sync React callbacks are scheduled on a special internal queue
  53432. root.callbackNode = scheduleSyncCallback(runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)));
  53433. } else {
  53434. var options = null;
  53435. if (!disableSchedulerTimeoutBasedOnReactExpirationTime && expirationTime !== Never) {
  53436. var timeout = expirationTimeToMs(expirationTime) - now();
  53437. options = { timeout: timeout };
  53438. }
  53439. root.callbackNode = scheduleCallback(priorityLevel, runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)), options);
  53440. if (enableUserTimingAPI && expirationTime !== Sync && (executionContext & (RenderContext | CommitContext)) === NoContext) {
  53441. // Scheduled an async callback, and we're not already working. Add an
  53442. // entry to the flamegraph that shows we're waiting for a callback
  53443. // to fire.
  53444. startRequestCallbackTimer();
  53445. }
  53446. }
  53447. }
  53448. // Associate the current interactions with this new root+priority.
  53449. schedulePendingInteractions(root, expirationTime);
  53450. }
  53451. function runRootCallback(root, callback, isSync) {
  53452. var prevCallbackNode = root.callbackNode;
  53453. var continuation = null;
  53454. try {
  53455. continuation = callback(isSync);
  53456. if (continuation !== null) {
  53457. return runRootCallback.bind(null, root, continuation);
  53458. } else {
  53459. return null;
  53460. }
  53461. } finally {
  53462. // If the callback exits without returning a continuation, remove the
  53463. // corresponding callback node from the root. Unless the callback node
  53464. // has changed, which implies that it was already cancelled by a high
  53465. // priority update.
  53466. if (continuation === null && prevCallbackNode === root.callbackNode) {
  53467. root.callbackNode = null;
  53468. root.callbackExpirationTime = NoWork;
  53469. }
  53470. }
  53471. }
  53472. function flushRoot(root, expirationTime) {
  53473. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  53474. (function () {
  53475. {
  53476. {
  53477. throw ReactError(Error('work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.'));
  53478. }
  53479. }
  53480. })();
  53481. }
  53482. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  53483. flushSyncCallbackQueue();
  53484. }
  53485. function flushDiscreteUpdates() {
  53486. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  53487. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  53488. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  53489. // as a public API.
  53490. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  53491. if ( true && (executionContext & RenderContext) !== NoContext) {
  53492. warning$1(false, 'unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  53493. }
  53494. // We're already rendering, so we can't synchronously flush pending work.
  53495. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  53496. // like `el.focus()`. Exit.
  53497. return;
  53498. }
  53499. flushPendingDiscreteUpdates();
  53500. if (!revertPassiveEffectsChange) {
  53501. // If the discrete updates scheduled passive effects, flush them now so that
  53502. // they fire before the next serial event.
  53503. flushPassiveEffects();
  53504. }
  53505. }
  53506. function resolveLocksOnRoot(root, expirationTime) {
  53507. var firstBatch = root.firstBatch;
  53508. if (firstBatch !== null && firstBatch._defer && firstBatch._expirationTime >= expirationTime) {
  53509. scheduleCallback(NormalPriority, function () {
  53510. firstBatch._onComplete();
  53511. return null;
  53512. });
  53513. return true;
  53514. } else {
  53515. return false;
  53516. }
  53517. }
  53518. function flushPendingDiscreteUpdates() {
  53519. if (rootsWithPendingDiscreteUpdates !== null) {
  53520. // For each root with pending discrete updates, schedule a callback to
  53521. // immediately flush them.
  53522. var roots = rootsWithPendingDiscreteUpdates;
  53523. rootsWithPendingDiscreteUpdates = null;
  53524. roots.forEach(function (expirationTime, root) {
  53525. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  53526. });
  53527. // Now flush the immediate queue.
  53528. flushSyncCallbackQueue();
  53529. }
  53530. }
  53531. function batchedUpdates$1(fn, a) {
  53532. var prevExecutionContext = executionContext;
  53533. executionContext |= BatchedContext;
  53534. try {
  53535. return fn(a);
  53536. } finally {
  53537. executionContext = prevExecutionContext;
  53538. if (executionContext === NoContext) {
  53539. // Flush the immediate callbacks that were scheduled during this batch
  53540. flushSyncCallbackQueue();
  53541. }
  53542. }
  53543. }
  53544. function batchedEventUpdates$1(fn, a) {
  53545. var prevExecutionContext = executionContext;
  53546. executionContext |= EventContext;
  53547. try {
  53548. return fn(a);
  53549. } finally {
  53550. executionContext = prevExecutionContext;
  53551. if (executionContext === NoContext) {
  53552. // Flush the immediate callbacks that were scheduled during this batch
  53553. flushSyncCallbackQueue();
  53554. }
  53555. }
  53556. }
  53557. function discreteUpdates$1(fn, a, b, c) {
  53558. var prevExecutionContext = executionContext;
  53559. executionContext |= DiscreteEventContext;
  53560. try {
  53561. // Should this
  53562. return runWithPriority$2(UserBlockingPriority$2, fn.bind(null, a, b, c));
  53563. } finally {
  53564. executionContext = prevExecutionContext;
  53565. if (executionContext === NoContext) {
  53566. // Flush the immediate callbacks that were scheduled during this batch
  53567. flushSyncCallbackQueue();
  53568. }
  53569. }
  53570. }
  53571. function unbatchedUpdates(fn, a) {
  53572. var prevExecutionContext = executionContext;
  53573. executionContext &= ~BatchedContext;
  53574. executionContext |= LegacyUnbatchedContext;
  53575. try {
  53576. return fn(a);
  53577. } finally {
  53578. executionContext = prevExecutionContext;
  53579. if (executionContext === NoContext) {
  53580. // Flush the immediate callbacks that were scheduled during this batch
  53581. flushSyncCallbackQueue();
  53582. }
  53583. }
  53584. }
  53585. function flushSync(fn, a) {
  53586. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  53587. (function () {
  53588. {
  53589. {
  53590. throw ReactError(Error('flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.'));
  53591. }
  53592. }
  53593. })();
  53594. }
  53595. var prevExecutionContext = executionContext;
  53596. executionContext |= BatchedContext;
  53597. try {
  53598. return runWithPriority$2(ImmediatePriority, fn.bind(null, a));
  53599. } finally {
  53600. executionContext = prevExecutionContext;
  53601. // Flush the immediate callbacks that were scheduled during this batch.
  53602. // Note that this will happen even if batchedUpdates is higher up
  53603. // the stack.
  53604. flushSyncCallbackQueue();
  53605. }
  53606. }
  53607. function flushControlled(fn) {
  53608. var prevExecutionContext = executionContext;
  53609. executionContext |= BatchedContext;
  53610. try {
  53611. runWithPriority$2(ImmediatePriority, fn);
  53612. } finally {
  53613. executionContext = prevExecutionContext;
  53614. if (executionContext === NoContext) {
  53615. // Flush the immediate callbacks that were scheduled during this batch
  53616. flushSyncCallbackQueue();
  53617. }
  53618. }
  53619. }
  53620. function prepareFreshStack(root, expirationTime) {
  53621. root.finishedWork = null;
  53622. root.finishedExpirationTime = NoWork;
  53623. var timeoutHandle = root.timeoutHandle;
  53624. if (timeoutHandle !== noTimeout) {
  53625. // The root previous suspended and scheduled a timeout to commit a fallback
  53626. // state. Now that we have additional work, cancel the timeout.
  53627. root.timeoutHandle = noTimeout;
  53628. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  53629. cancelTimeout(timeoutHandle);
  53630. }
  53631. if (workInProgress !== null) {
  53632. var interruptedWork = workInProgress.return;
  53633. while (interruptedWork !== null) {
  53634. unwindInterruptedWork(interruptedWork);
  53635. interruptedWork = interruptedWork.return;
  53636. }
  53637. }
  53638. workInProgressRoot = root;
  53639. workInProgress = createWorkInProgress(root.current, null, expirationTime);
  53640. renderExpirationTime = expirationTime;
  53641. workInProgressRootExitStatus = RootIncomplete;
  53642. workInProgressRootLatestProcessedExpirationTime = Sync;
  53643. workInProgressRootLatestSuspenseTimeout = Sync;
  53644. workInProgressRootCanSuspendUsingConfig = null;
  53645. workInProgressRootHasPendingPing = false;
  53646. if (enableSchedulerTracing) {
  53647. spawnedWorkDuringRender = null;
  53648. }
  53649. {
  53650. ReactStrictModeWarnings.discardPendingWarnings();
  53651. componentsThatTriggeredHighPriSuspend = null;
  53652. }
  53653. }
  53654. function renderRoot(root, expirationTime, isSync) {
  53655. (function () {
  53656. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  53657. {
  53658. throw ReactError(Error('Should not already be working.'));
  53659. }
  53660. }
  53661. })();
  53662. if (enableUserTimingAPI && expirationTime !== Sync) {
  53663. var didExpire = isSync;
  53664. stopRequestCallbackTimer(didExpire);
  53665. }
  53666. if (root.firstPendingTime < expirationTime) {
  53667. // If there's no work left at this expiration time, exit immediately. This
  53668. // happens when multiple callbacks are scheduled for a single root, but an
  53669. // earlier callback flushes the work of a later one.
  53670. return null;
  53671. }
  53672. if (isSync && root.finishedExpirationTime === expirationTime) {
  53673. // There's already a pending commit at this expiration time.
  53674. // TODO: This is poorly factored. This case only exists for the
  53675. // batch.commit() API.
  53676. return commitRoot.bind(null, root);
  53677. }
  53678. flushPassiveEffects();
  53679. // If the root or expiration time have changed, throw out the existing stack
  53680. // and prepare a fresh one. Otherwise we'll continue where we left off.
  53681. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime) {
  53682. prepareFreshStack(root, expirationTime);
  53683. startWorkOnPendingInteractions(root, expirationTime);
  53684. } else if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  53685. // We could've received an update at a lower priority while we yielded.
  53686. // We're suspended in a delayed state. Once we complete this render we're
  53687. // just going to try to recover at the last pending time anyway so we might
  53688. // as well start doing that eagerly.
  53689. // Ideally we should be able to do this even for retries but we don't yet
  53690. // know if we're going to process an update which wants to commit earlier,
  53691. // and this path happens very early so it would happen too often. Instead,
  53692. // for that case, we'll wait until we complete.
  53693. if (workInProgressRootHasPendingPing) {
  53694. // We have a ping at this expiration. Let's restart to see if we get unblocked.
  53695. prepareFreshStack(root, expirationTime);
  53696. } else {
  53697. var lastPendingTime = root.lastPendingTime;
  53698. if (lastPendingTime < expirationTime) {
  53699. // There's lower priority work. It might be unsuspended. Try rendering
  53700. // at that level immediately, while preserving the position in the queue.
  53701. return renderRoot.bind(null, root, lastPendingTime);
  53702. }
  53703. }
  53704. }
  53705. // If we have a work-in-progress fiber, it means there's still work to do
  53706. // in this root.
  53707. if (workInProgress !== null) {
  53708. var prevExecutionContext = executionContext;
  53709. executionContext |= RenderContext;
  53710. var prevDispatcher = ReactCurrentDispatcher.current;
  53711. if (prevDispatcher === null) {
  53712. // The React isomorphic package does not include a default dispatcher.
  53713. // Instead the first renderer will lazily attach one, in order to give
  53714. // nicer error messages.
  53715. prevDispatcher = ContextOnlyDispatcher;
  53716. }
  53717. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  53718. var prevInteractions = null;
  53719. if (enableSchedulerTracing) {
  53720. prevInteractions = tracing.__interactionsRef.current;
  53721. tracing.__interactionsRef.current = root.memoizedInteractions;
  53722. }
  53723. startWorkLoopTimer(workInProgress);
  53724. // TODO: Fork renderRoot into renderRootSync and renderRootAsync
  53725. if (isSync) {
  53726. if (expirationTime !== Sync) {
  53727. // An async update expired. There may be other expired updates on
  53728. // this root. We should render all the expired work in a
  53729. // single batch.
  53730. var currentTime = requestCurrentTime();
  53731. if (currentTime < expirationTime) {
  53732. // Restart at the current time.
  53733. executionContext = prevExecutionContext;
  53734. resetContextDependencies();
  53735. ReactCurrentDispatcher.current = prevDispatcher;
  53736. if (enableSchedulerTracing) {
  53737. tracing.__interactionsRef.current = prevInteractions;
  53738. }
  53739. return renderRoot.bind(null, root, currentTime);
  53740. }
  53741. }
  53742. } else {
  53743. // Since we know we're in a React event, we can clear the current
  53744. // event time. The next update will compute a new event time.
  53745. currentEventTime = NoWork;
  53746. }
  53747. do {
  53748. try {
  53749. if (isSync) {
  53750. workLoopSync();
  53751. } else {
  53752. workLoop();
  53753. }
  53754. break;
  53755. } catch (thrownValue) {
  53756. // Reset module-level state that was set during the render phase.
  53757. resetContextDependencies();
  53758. resetHooks();
  53759. var sourceFiber = workInProgress;
  53760. if (sourceFiber === null || sourceFiber.return === null) {
  53761. // Expected to be working on a non-root fiber. This is a fatal error
  53762. // because there's no ancestor that can handle it; the root is
  53763. // supposed to capture all errors that weren't caught by an error
  53764. // boundary.
  53765. prepareFreshStack(root, expirationTime);
  53766. executionContext = prevExecutionContext;
  53767. throw thrownValue;
  53768. }
  53769. if (enableProfilerTimer && sourceFiber.mode & ProfileMode) {
  53770. // Record the time spent rendering before an error was thrown. This
  53771. // avoids inaccurate Profiler durations in the case of a
  53772. // suspended render.
  53773. stopProfilerTimerIfRunningAndRecordDelta(sourceFiber, true);
  53774. }
  53775. var returnFiber = sourceFiber.return;
  53776. throwException(root, returnFiber, sourceFiber, thrownValue, renderExpirationTime);
  53777. workInProgress = completeUnitOfWork(sourceFiber);
  53778. }
  53779. } while (true);
  53780. executionContext = prevExecutionContext;
  53781. resetContextDependencies();
  53782. ReactCurrentDispatcher.current = prevDispatcher;
  53783. if (enableSchedulerTracing) {
  53784. tracing.__interactionsRef.current = prevInteractions;
  53785. }
  53786. if (workInProgress !== null) {
  53787. // There's still work left over. Return a continuation.
  53788. stopInterruptedWorkLoopTimer();
  53789. if (expirationTime !== Sync) {
  53790. startRequestCallbackTimer();
  53791. }
  53792. return renderRoot.bind(null, root, expirationTime);
  53793. }
  53794. }
  53795. // We now have a consistent tree. The next step is either to commit it, or, if
  53796. // something suspended, wait to commit it after a timeout.
  53797. stopFinishedWorkLoopTimer();
  53798. root.finishedWork = root.current.alternate;
  53799. root.finishedExpirationTime = expirationTime;
  53800. var isLocked = resolveLocksOnRoot(root, expirationTime);
  53801. if (isLocked) {
  53802. // This root has a lock that prevents it from committing. Exit. If we begin
  53803. // work on the root again, without any intervening updates, it will finish
  53804. // without doing additional work.
  53805. return null;
  53806. }
  53807. // Set this to null to indicate there's no in-progress render.
  53808. workInProgressRoot = null;
  53809. switch (workInProgressRootExitStatus) {
  53810. case RootIncomplete:
  53811. {
  53812. (function () {
  53813. {
  53814. {
  53815. throw ReactError(Error('Should have a work-in-progress.'));
  53816. }
  53817. }
  53818. })();
  53819. }
  53820. // Flow knows about invariant, so it complains if I add a break statement,
  53821. // but eslint doesn't know about invariant, so it complains if I do.
  53822. // eslint-disable-next-line no-fallthrough
  53823. case RootErrored:
  53824. {
  53825. // An error was thrown. First check if there is lower priority work
  53826. // scheduled on this root.
  53827. var _lastPendingTime = root.lastPendingTime;
  53828. if (_lastPendingTime < expirationTime) {
  53829. // There's lower priority work. Before raising the error, try rendering
  53830. // at the lower priority to see if it fixes it. Use a continuation to
  53831. // maintain the existing priority and position in the queue.
  53832. return renderRoot.bind(null, root, _lastPendingTime);
  53833. }
  53834. if (!isSync) {
  53835. // If we're rendering asynchronously, it's possible the error was
  53836. // caused by tearing due to a mutation during an event. Try rendering
  53837. // one more time without yiedling to events.
  53838. prepareFreshStack(root, expirationTime);
  53839. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  53840. return null;
  53841. }
  53842. // If we're already rendering synchronously, commit the root in its
  53843. // errored state.
  53844. return commitRoot.bind(null, root);
  53845. }
  53846. case RootSuspended:
  53847. {
  53848. flushSuspensePriorityWarningInDEV();
  53849. // We have an acceptable loading state. We need to figure out if we should
  53850. // immediately commit it or wait a bit.
  53851. // If we have processed new updates during this render, we may now have a
  53852. // new loading state ready. We want to ensure that we commit that as soon as
  53853. // possible.
  53854. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  53855. if (hasNotProcessedNewUpdates && !isSync &&
  53856. // do not delay if we're inside an act() scope
  53857. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  53858. // If we have not processed any new updates during this pass, then this is
  53859. // either a retry of an existing fallback state or a hidden tree.
  53860. // Hidden trees shouldn't be batched with other work and after that's
  53861. // fixed it can only be a retry.
  53862. // We're going to throttle committing retries so that we don't show too
  53863. // many loading states too quickly.
  53864. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now();
  53865. // Don't bother with a very short suspense time.
  53866. if (msUntilTimeout > 10) {
  53867. if (workInProgressRootHasPendingPing) {
  53868. // This render was pinged but we didn't get to restart earlier so try
  53869. // restarting now instead.
  53870. prepareFreshStack(root, expirationTime);
  53871. return renderRoot.bind(null, root, expirationTime);
  53872. }
  53873. var _lastPendingTime2 = root.lastPendingTime;
  53874. if (_lastPendingTime2 < expirationTime) {
  53875. // There's lower priority work. It might be unsuspended. Try rendering
  53876. // at that level.
  53877. return renderRoot.bind(null, root, _lastPendingTime2);
  53878. }
  53879. // The render is suspended, it hasn't timed out, and there's no lower
  53880. // priority work to do. Instead of committing the fallback
  53881. // immediately, wait for more data to arrive.
  53882. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  53883. return null;
  53884. }
  53885. }
  53886. // The work expired. Commit immediately.
  53887. return commitRoot.bind(null, root);
  53888. }
  53889. case RootSuspendedWithDelay:
  53890. {
  53891. flushSuspensePriorityWarningInDEV();
  53892. if (!isSync &&
  53893. // do not delay if we're inside an act() scope
  53894. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  53895. // We're suspended in a state that should be avoided. We'll try to avoid committing
  53896. // it for as long as the timeouts let us.
  53897. if (workInProgressRootHasPendingPing) {
  53898. // This render was pinged but we didn't get to restart earlier so try
  53899. // restarting now instead.
  53900. prepareFreshStack(root, expirationTime);
  53901. return renderRoot.bind(null, root, expirationTime);
  53902. }
  53903. var _lastPendingTime3 = root.lastPendingTime;
  53904. if (_lastPendingTime3 < expirationTime) {
  53905. // There's lower priority work. It might be unsuspended. Try rendering
  53906. // at that level immediately.
  53907. return renderRoot.bind(null, root, _lastPendingTime3);
  53908. }
  53909. var _msUntilTimeout = void 0;
  53910. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  53911. // We have processed a suspense config whose expiration time we can use as
  53912. // the timeout.
  53913. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  53914. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  53915. // This should never normally happen because only new updates cause
  53916. // delayed states, so we should have processed something. However,
  53917. // this could also happen in an offscreen tree.
  53918. _msUntilTimeout = 0;
  53919. } else {
  53920. // If we don't have a suspense config, we're going to use a heuristic to
  53921. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  53922. var currentTimeMs = now();
  53923. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  53924. var timeElapsed = currentTimeMs - eventTimeMs;
  53925. if (timeElapsed < 0) {
  53926. // We get this wrong some time since we estimate the time.
  53927. timeElapsed = 0;
  53928. }
  53929. _msUntilTimeout = jnd(timeElapsed) - timeElapsed;
  53930. // Clamp the timeout to the expiration time.
  53931. // TODO: Once the event time is exact instead of inferred from expiration time
  53932. // we don't need this.
  53933. if (timeUntilExpirationMs < _msUntilTimeout) {
  53934. _msUntilTimeout = timeUntilExpirationMs;
  53935. }
  53936. }
  53937. // Don't bother with a very short suspense time.
  53938. if (_msUntilTimeout > 10) {
  53939. // The render is suspended, it hasn't timed out, and there's no lower
  53940. // priority work to do. Instead of committing the fallback
  53941. // immediately, wait for more data to arrive.
  53942. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  53943. return null;
  53944. }
  53945. }
  53946. // The work expired. Commit immediately.
  53947. return commitRoot.bind(null, root);
  53948. }
  53949. case RootCompleted:
  53950. {
  53951. // The work completed. Ready to commit.
  53952. if (!isSync &&
  53953. // do not delay if we're inside an act() scope
  53954. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  53955. // If we have exceeded the minimum loading delay, which probably
  53956. // means we have shown a spinner already, we might have to suspend
  53957. // a bit longer to ensure that the spinner is shown for enough time.
  53958. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  53959. if (_msUntilTimeout2 > 10) {
  53960. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  53961. return null;
  53962. }
  53963. }
  53964. return commitRoot.bind(null, root);
  53965. }
  53966. default:
  53967. {
  53968. (function () {
  53969. {
  53970. {
  53971. throw ReactError(Error('Unknown root exit status.'));
  53972. }
  53973. }
  53974. })();
  53975. }
  53976. }
  53977. }
  53978. function markCommitTimeOfFallback() {
  53979. globalMostRecentFallbackTime = now();
  53980. }
  53981. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  53982. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Never) {
  53983. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  53984. }
  53985. if (suspenseConfig !== null) {
  53986. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Never) {
  53987. workInProgressRootLatestSuspenseTimeout = expirationTime;
  53988. // Most of the time we only have one config and getting wrong is not bad.
  53989. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  53990. }
  53991. }
  53992. }
  53993. function renderDidSuspend() {
  53994. if (workInProgressRootExitStatus === RootIncomplete) {
  53995. workInProgressRootExitStatus = RootSuspended;
  53996. }
  53997. }
  53998. function renderDidSuspendDelayIfPossible() {
  53999. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  54000. workInProgressRootExitStatus = RootSuspendedWithDelay;
  54001. }
  54002. }
  54003. function renderDidError() {
  54004. if (workInProgressRootExitStatus !== RootCompleted) {
  54005. workInProgressRootExitStatus = RootErrored;
  54006. }
  54007. }
  54008. // Called during render to determine if anything has suspended.
  54009. // Returns false if we're not sure.
  54010. function renderHasNotSuspendedYet() {
  54011. // If something errored or completed, we can't really be sure,
  54012. // so those are false.
  54013. return workInProgressRootExitStatus === RootIncomplete;
  54014. }
  54015. function inferTimeFromExpirationTime(expirationTime) {
  54016. // We don't know exactly when the update was scheduled, but we can infer an
  54017. // approximate start time from the expiration time.
  54018. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  54019. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  54020. }
  54021. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  54022. // We don't know exactly when the update was scheduled, but we can infer an
  54023. // approximate start time from the expiration time by subtracting the timeout
  54024. // that was added to the event time.
  54025. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  54026. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  54027. }
  54028. function workLoopSync() {
  54029. // Already timed out, so perform work without checking if we need to yield.
  54030. while (workInProgress !== null) {
  54031. workInProgress = performUnitOfWork(workInProgress);
  54032. }
  54033. }
  54034. function workLoop() {
  54035. // Perform work until Scheduler asks us to yield
  54036. while (workInProgress !== null && !shouldYield()) {
  54037. workInProgress = performUnitOfWork(workInProgress);
  54038. }
  54039. }
  54040. function performUnitOfWork(unitOfWork) {
  54041. // The current, flushed, state of this fiber is the alternate. Ideally
  54042. // nothing should rely on this, but relying on it here means that we don't
  54043. // need an additional field on the work in progress.
  54044. var current$$1 = unitOfWork.alternate;
  54045. startWorkTimer(unitOfWork);
  54046. setCurrentFiber(unitOfWork);
  54047. var next = void 0;
  54048. if (enableProfilerTimer && (unitOfWork.mode & ProfileMode) !== NoMode) {
  54049. startProfilerTimer(unitOfWork);
  54050. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  54051. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  54052. } else {
  54053. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  54054. }
  54055. resetCurrentFiber();
  54056. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  54057. if (next === null) {
  54058. // If this doesn't spawn new work, complete the current work.
  54059. next = completeUnitOfWork(unitOfWork);
  54060. }
  54061. ReactCurrentOwner$2.current = null;
  54062. return next;
  54063. }
  54064. function completeUnitOfWork(unitOfWork) {
  54065. // Attempt to complete the current unit of work, then move to the next
  54066. // sibling. If there are no more siblings, return to the parent fiber.
  54067. workInProgress = unitOfWork;
  54068. do {
  54069. // The current, flushed, state of this fiber is the alternate. Ideally
  54070. // nothing should rely on this, but relying on it here means that we don't
  54071. // need an additional field on the work in progress.
  54072. var current$$1 = workInProgress.alternate;
  54073. var returnFiber = workInProgress.return;
  54074. // Check if the work completed or if something threw.
  54075. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  54076. setCurrentFiber(workInProgress);
  54077. var next = void 0;
  54078. if (!enableProfilerTimer || (workInProgress.mode & ProfileMode) === NoMode) {
  54079. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  54080. } else {
  54081. startProfilerTimer(workInProgress);
  54082. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  54083. // Update render duration assuming we didn't error.
  54084. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  54085. }
  54086. stopWorkTimer(workInProgress);
  54087. resetCurrentFiber();
  54088. resetChildExpirationTime(workInProgress);
  54089. if (next !== null) {
  54090. // Completing this fiber spawned new work. Work on that next.
  54091. return next;
  54092. }
  54093. if (returnFiber !== null &&
  54094. // Do not append effects to parents if a sibling failed to complete
  54095. (returnFiber.effectTag & Incomplete) === NoEffect) {
  54096. // Append all the effects of the subtree and this fiber onto the effect
  54097. // list of the parent. The completion order of the children affects the
  54098. // side-effect order.
  54099. if (returnFiber.firstEffect === null) {
  54100. returnFiber.firstEffect = workInProgress.firstEffect;
  54101. }
  54102. if (workInProgress.lastEffect !== null) {
  54103. if (returnFiber.lastEffect !== null) {
  54104. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  54105. }
  54106. returnFiber.lastEffect = workInProgress.lastEffect;
  54107. }
  54108. // If this fiber had side-effects, we append it AFTER the children's
  54109. // side-effects. We can perform certain side-effects earlier if needed,
  54110. // by doing multiple passes over the effect list. We don't want to
  54111. // schedule our own side-effect on our own list because if end up
  54112. // reusing children we'll schedule this effect onto itself since we're
  54113. // at the end.
  54114. var effectTag = workInProgress.effectTag;
  54115. // Skip both NoWork and PerformedWork tags when creating the effect
  54116. // list. PerformedWork effect is read by React DevTools but shouldn't be
  54117. // committed.
  54118. if (effectTag > PerformedWork) {
  54119. if (returnFiber.lastEffect !== null) {
  54120. returnFiber.lastEffect.nextEffect = workInProgress;
  54121. } else {
  54122. returnFiber.firstEffect = workInProgress;
  54123. }
  54124. returnFiber.lastEffect = workInProgress;
  54125. }
  54126. }
  54127. } else {
  54128. // This fiber did not complete because something threw. Pop values off
  54129. // the stack without entering the complete phase. If this is a boundary,
  54130. // capture values if possible.
  54131. var _next = unwindWork(workInProgress, renderExpirationTime);
  54132. // Because this fiber did not complete, don't reset its expiration time.
  54133. if (enableProfilerTimer && (workInProgress.mode & ProfileMode) !== NoMode) {
  54134. // Record the render duration for the fiber that errored.
  54135. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  54136. // Include the time spent working on failed children before continuing.
  54137. var actualDuration = workInProgress.actualDuration;
  54138. var child = workInProgress.child;
  54139. while (child !== null) {
  54140. actualDuration += child.actualDuration;
  54141. child = child.sibling;
  54142. }
  54143. workInProgress.actualDuration = actualDuration;
  54144. }
  54145. if (_next !== null) {
  54146. // If completing this work spawned new work, do that next. We'll come
  54147. // back here again.
  54148. // Since we're restarting, remove anything that is not a host effect
  54149. // from the effect tag.
  54150. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  54151. // also captures and restarts.
  54152. stopFailedWorkTimer(workInProgress);
  54153. _next.effectTag &= HostEffectMask;
  54154. return _next;
  54155. }
  54156. stopWorkTimer(workInProgress);
  54157. if (returnFiber !== null) {
  54158. // Mark the parent fiber as incomplete and clear its effect list.
  54159. returnFiber.firstEffect = returnFiber.lastEffect = null;
  54160. returnFiber.effectTag |= Incomplete;
  54161. }
  54162. }
  54163. var siblingFiber = workInProgress.sibling;
  54164. if (siblingFiber !== null) {
  54165. // If there is more work to do in this returnFiber, do that next.
  54166. return siblingFiber;
  54167. }
  54168. // Otherwise, return to the parent
  54169. workInProgress = returnFiber;
  54170. } while (workInProgress !== null);
  54171. // We've reached the root.
  54172. if (workInProgressRootExitStatus === RootIncomplete) {
  54173. workInProgressRootExitStatus = RootCompleted;
  54174. }
  54175. return null;
  54176. }
  54177. function resetChildExpirationTime(completedWork) {
  54178. if (renderExpirationTime !== Never && completedWork.childExpirationTime === Never) {
  54179. // The children of this component are hidden. Don't bubble their
  54180. // expiration times.
  54181. return;
  54182. }
  54183. var newChildExpirationTime = NoWork;
  54184. // Bubble up the earliest expiration time.
  54185. if (enableProfilerTimer && (completedWork.mode & ProfileMode) !== NoMode) {
  54186. // In profiling mode, resetChildExpirationTime is also used to reset
  54187. // profiler durations.
  54188. var actualDuration = completedWork.actualDuration;
  54189. var treeBaseDuration = completedWork.selfBaseDuration;
  54190. // When a fiber is cloned, its actualDuration is reset to 0. This value will
  54191. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  54192. // When work is done, it should bubble to the parent's actualDuration. If
  54193. // the fiber has not been cloned though, (meaning no work was done), then
  54194. // this value will reflect the amount of time spent working on a previous
  54195. // render. In that case it should not bubble. We determine whether it was
  54196. // cloned by comparing the child pointer.
  54197. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  54198. var child = completedWork.child;
  54199. while (child !== null) {
  54200. var childUpdateExpirationTime = child.expirationTime;
  54201. var childChildExpirationTime = child.childExpirationTime;
  54202. if (childUpdateExpirationTime > newChildExpirationTime) {
  54203. newChildExpirationTime = childUpdateExpirationTime;
  54204. }
  54205. if (childChildExpirationTime > newChildExpirationTime) {
  54206. newChildExpirationTime = childChildExpirationTime;
  54207. }
  54208. if (shouldBubbleActualDurations) {
  54209. actualDuration += child.actualDuration;
  54210. }
  54211. treeBaseDuration += child.treeBaseDuration;
  54212. child = child.sibling;
  54213. }
  54214. completedWork.actualDuration = actualDuration;
  54215. completedWork.treeBaseDuration = treeBaseDuration;
  54216. } else {
  54217. var _child = completedWork.child;
  54218. while (_child !== null) {
  54219. var _childUpdateExpirationTime = _child.expirationTime;
  54220. var _childChildExpirationTime = _child.childExpirationTime;
  54221. if (_childUpdateExpirationTime > newChildExpirationTime) {
  54222. newChildExpirationTime = _childUpdateExpirationTime;
  54223. }
  54224. if (_childChildExpirationTime > newChildExpirationTime) {
  54225. newChildExpirationTime = _childChildExpirationTime;
  54226. }
  54227. _child = _child.sibling;
  54228. }
  54229. }
  54230. completedWork.childExpirationTime = newChildExpirationTime;
  54231. }
  54232. function commitRoot(root) {
  54233. var renderPriorityLevel = getCurrentPriorityLevel();
  54234. runWithPriority$2(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  54235. // If there are passive effects, schedule a callback to flush them. This goes
  54236. // outside commitRootImpl so that it inherits the priority of the render.
  54237. if (rootWithPendingPassiveEffects !== null) {
  54238. scheduleCallback(NormalPriority, function () {
  54239. flushPassiveEffects();
  54240. return null;
  54241. });
  54242. }
  54243. return null;
  54244. }
  54245. function commitRootImpl(root, renderPriorityLevel) {
  54246. flushPassiveEffects();
  54247. flushRenderPhaseStrictModeWarningsInDEV();
  54248. (function () {
  54249. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  54250. {
  54251. throw ReactError(Error('Should not already be working.'));
  54252. }
  54253. }
  54254. })();
  54255. var finishedWork = root.finishedWork;
  54256. var expirationTime = root.finishedExpirationTime;
  54257. if (finishedWork === null) {
  54258. return null;
  54259. }
  54260. root.finishedWork = null;
  54261. root.finishedExpirationTime = NoWork;
  54262. (function () {
  54263. if (!(finishedWork !== root.current)) {
  54264. {
  54265. throw ReactError(Error('Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.'));
  54266. }
  54267. }
  54268. })();
  54269. // commitRoot never returns a continuation; it always finishes synchronously.
  54270. // So we can clear these now to allow a new callback to be scheduled.
  54271. root.callbackNode = null;
  54272. root.callbackExpirationTime = NoWork;
  54273. startCommitTimer();
  54274. // Update the first and last pending times on this root. The new first
  54275. // pending time is whatever is left on the root fiber.
  54276. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  54277. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  54278. var firstPendingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  54279. root.firstPendingTime = firstPendingTimeBeforeCommit;
  54280. if (firstPendingTimeBeforeCommit < root.lastPendingTime) {
  54281. // This usually means we've finished all the work, but it can also happen
  54282. // when something gets downprioritized during render, like a hidden tree.
  54283. root.lastPendingTime = firstPendingTimeBeforeCommit;
  54284. }
  54285. if (root === workInProgressRoot) {
  54286. // We can reset these now that they are finished.
  54287. workInProgressRoot = null;
  54288. workInProgress = null;
  54289. renderExpirationTime = NoWork;
  54290. } else {}
  54291. // This indicates that the last root we worked on is not the same one that
  54292. // we're committing now. This most commonly happens when a suspended root
  54293. // times out.
  54294. // Get the list of effects.
  54295. var firstEffect = void 0;
  54296. if (finishedWork.effectTag > PerformedWork) {
  54297. // A fiber's effect list consists only of its children, not itself. So if
  54298. // the root has an effect, we need to add it to the end of the list. The
  54299. // resulting list is the set that would belong to the root's parent, if it
  54300. // had one; that is, all the effects in the tree including the root.
  54301. if (finishedWork.lastEffect !== null) {
  54302. finishedWork.lastEffect.nextEffect = finishedWork;
  54303. firstEffect = finishedWork.firstEffect;
  54304. } else {
  54305. firstEffect = finishedWork;
  54306. }
  54307. } else {
  54308. // There is no effect on the root.
  54309. firstEffect = finishedWork.firstEffect;
  54310. }
  54311. if (firstEffect !== null) {
  54312. var prevExecutionContext = executionContext;
  54313. executionContext |= CommitContext;
  54314. var prevInteractions = null;
  54315. if (enableSchedulerTracing) {
  54316. prevInteractions = tracing.__interactionsRef.current;
  54317. tracing.__interactionsRef.current = root.memoizedInteractions;
  54318. }
  54319. // Reset this to null before calling lifecycles
  54320. ReactCurrentOwner$2.current = null;
  54321. // The commit phase is broken into several sub-phases. We do a separate pass
  54322. // of the effect list for each phase: all mutation effects come before all
  54323. // layout effects, and so on.
  54324. // The first phase a "before mutation" phase. We use this phase to read the
  54325. // state of the host tree right before we mutate it. This is where
  54326. // getSnapshotBeforeUpdate is called.
  54327. startCommitSnapshotEffectsTimer();
  54328. prepareForCommit(root.containerInfo);
  54329. nextEffect = firstEffect;
  54330. do {
  54331. {
  54332. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  54333. if (hasCaughtError()) {
  54334. (function () {
  54335. if (!(nextEffect !== null)) {
  54336. {
  54337. throw ReactError(Error('Should be working on an effect.'));
  54338. }
  54339. }
  54340. })();
  54341. var error = clearCaughtError();
  54342. captureCommitPhaseError(nextEffect, error);
  54343. nextEffect = nextEffect.nextEffect;
  54344. }
  54345. }
  54346. } while (nextEffect !== null);
  54347. stopCommitSnapshotEffectsTimer();
  54348. if (enableProfilerTimer) {
  54349. // Mark the current commit time to be shared by all Profilers in this
  54350. // batch. This enables them to be grouped later.
  54351. recordCommitTime();
  54352. }
  54353. // The next phase is the mutation phase, where we mutate the host tree.
  54354. startCommitHostEffectsTimer();
  54355. nextEffect = firstEffect;
  54356. do {
  54357. {
  54358. invokeGuardedCallback(null, commitMutationEffects, null, renderPriorityLevel);
  54359. if (hasCaughtError()) {
  54360. (function () {
  54361. if (!(nextEffect !== null)) {
  54362. {
  54363. throw ReactError(Error('Should be working on an effect.'));
  54364. }
  54365. }
  54366. })();
  54367. var _error = clearCaughtError();
  54368. captureCommitPhaseError(nextEffect, _error);
  54369. nextEffect = nextEffect.nextEffect;
  54370. }
  54371. }
  54372. } while (nextEffect !== null);
  54373. stopCommitHostEffectsTimer();
  54374. resetAfterCommit(root.containerInfo);
  54375. // The work-in-progress tree is now the current tree. This must come after
  54376. // the mutation phase, so that the previous tree is still current during
  54377. // componentWillUnmount, but before the layout phase, so that the finished
  54378. // work is current during componentDidMount/Update.
  54379. root.current = finishedWork;
  54380. // The next phase is the layout phase, where we call effects that read
  54381. // the host tree after it's been mutated. The idiomatic use case for this is
  54382. // layout, but class component lifecycles also fire here for legacy reasons.
  54383. startCommitLifeCyclesTimer();
  54384. nextEffect = firstEffect;
  54385. do {
  54386. {
  54387. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  54388. if (hasCaughtError()) {
  54389. (function () {
  54390. if (!(nextEffect !== null)) {
  54391. {
  54392. throw ReactError(Error('Should be working on an effect.'));
  54393. }
  54394. }
  54395. })();
  54396. var _error2 = clearCaughtError();
  54397. captureCommitPhaseError(nextEffect, _error2);
  54398. nextEffect = nextEffect.nextEffect;
  54399. }
  54400. }
  54401. } while (nextEffect !== null);
  54402. stopCommitLifeCyclesTimer();
  54403. nextEffect = null;
  54404. // Tell Scheduler to yield at the end of the frame, so the browser has an
  54405. // opportunity to paint.
  54406. requestPaint();
  54407. if (enableSchedulerTracing) {
  54408. tracing.__interactionsRef.current = prevInteractions;
  54409. }
  54410. executionContext = prevExecutionContext;
  54411. } else {
  54412. // No effects.
  54413. root.current = finishedWork;
  54414. // Measure these anyway so the flamegraph explicitly shows that there were
  54415. // no effects.
  54416. // TODO: Maybe there's a better way to report this.
  54417. startCommitSnapshotEffectsTimer();
  54418. stopCommitSnapshotEffectsTimer();
  54419. if (enableProfilerTimer) {
  54420. recordCommitTime();
  54421. }
  54422. startCommitHostEffectsTimer();
  54423. stopCommitHostEffectsTimer();
  54424. startCommitLifeCyclesTimer();
  54425. stopCommitLifeCyclesTimer();
  54426. }
  54427. stopCommitTimer();
  54428. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  54429. if (rootDoesHavePassiveEffects) {
  54430. // This commit has passive effects. Stash a reference to them. But don't
  54431. // schedule a callback until after flushing layout work.
  54432. rootDoesHavePassiveEffects = false;
  54433. rootWithPendingPassiveEffects = root;
  54434. pendingPassiveEffectsExpirationTime = expirationTime;
  54435. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  54436. } else {
  54437. // We are done with the effect chain at this point so let's clear the
  54438. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  54439. // clear this in flushPassiveEffects.
  54440. nextEffect = firstEffect;
  54441. while (nextEffect !== null) {
  54442. var nextNextEffect = nextEffect.nextEffect;
  54443. nextEffect.nextEffect = null;
  54444. nextEffect = nextNextEffect;
  54445. }
  54446. }
  54447. // Check if there's remaining work on this root
  54448. var remainingExpirationTime = root.firstPendingTime;
  54449. if (remainingExpirationTime !== NoWork) {
  54450. var currentTime = requestCurrentTime();
  54451. var priorityLevel = inferPriorityFromExpirationTime(currentTime, remainingExpirationTime);
  54452. if (enableSchedulerTracing) {
  54453. if (spawnedWorkDuringRender !== null) {
  54454. var expirationTimes = spawnedWorkDuringRender;
  54455. spawnedWorkDuringRender = null;
  54456. for (var i = 0; i < expirationTimes.length; i++) {
  54457. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  54458. }
  54459. }
  54460. }
  54461. scheduleCallbackForRoot(root, priorityLevel, remainingExpirationTime);
  54462. } else {
  54463. // If there's no remaining work, we can clear the set of already failed
  54464. // error boundaries.
  54465. legacyErrorBoundariesThatAlreadyFailed = null;
  54466. }
  54467. if (enableSchedulerTracing) {
  54468. if (!rootDidHavePassiveEffects) {
  54469. // If there are no passive effects, then we can complete the pending interactions.
  54470. // Otherwise, we'll wait until after the passive effects are flushed.
  54471. // Wait to do this until after remaining work has been scheduled,
  54472. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  54473. finishPendingInteractions(root, expirationTime);
  54474. }
  54475. }
  54476. onCommitRoot(finishedWork.stateNode, expirationTime);
  54477. if (remainingExpirationTime === Sync) {
  54478. // Count the number of times the root synchronously re-renders without
  54479. // finishing. If there are too many, it indicates an infinite update loop.
  54480. if (root === rootWithNestedUpdates) {
  54481. nestedUpdateCount++;
  54482. } else {
  54483. nestedUpdateCount = 0;
  54484. rootWithNestedUpdates = root;
  54485. }
  54486. } else {
  54487. nestedUpdateCount = 0;
  54488. }
  54489. if (hasUncaughtError) {
  54490. hasUncaughtError = false;
  54491. var _error3 = firstUncaughtError;
  54492. firstUncaughtError = null;
  54493. throw _error3;
  54494. }
  54495. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  54496. // This is a legacy edge case. We just committed the initial mount of
  54497. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  54498. // synchronously, but layout updates should be deferred until the end
  54499. // of the batch.
  54500. return null;
  54501. }
  54502. // If layout work was scheduled, flush it now.
  54503. flushSyncCallbackQueue();
  54504. return null;
  54505. }
  54506. function commitBeforeMutationEffects() {
  54507. while (nextEffect !== null) {
  54508. if ((nextEffect.effectTag & Snapshot) !== NoEffect) {
  54509. setCurrentFiber(nextEffect);
  54510. recordEffect();
  54511. var current$$1 = nextEffect.alternate;
  54512. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  54513. resetCurrentFiber();
  54514. }
  54515. nextEffect = nextEffect.nextEffect;
  54516. }
  54517. }
  54518. function commitMutationEffects(renderPriorityLevel) {
  54519. // TODO: Should probably move the bulk of this function to commitWork.
  54520. while (nextEffect !== null) {
  54521. setCurrentFiber(nextEffect);
  54522. var effectTag = nextEffect.effectTag;
  54523. if (effectTag & ContentReset) {
  54524. commitResetTextContent(nextEffect);
  54525. }
  54526. if (effectTag & Ref) {
  54527. var current$$1 = nextEffect.alternate;
  54528. if (current$$1 !== null) {
  54529. commitDetachRef(current$$1);
  54530. }
  54531. }
  54532. // The following switch statement is only concerned about placement,
  54533. // updates, and deletions. To avoid needing to add a case for every possible
  54534. // bitmap value, we remove the secondary effects from the effect tag and
  54535. // switch on that value.
  54536. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  54537. switch (primaryEffectTag) {
  54538. case Placement:
  54539. {
  54540. commitPlacement(nextEffect);
  54541. // Clear the "placement" from effect tag so that we know that this is
  54542. // inserted, before any life-cycles like componentDidMount gets called.
  54543. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  54544. // and isMounted is deprecated anyway so we should be able to kill this.
  54545. nextEffect.effectTag &= ~Placement;
  54546. break;
  54547. }
  54548. case PlacementAndUpdate:
  54549. {
  54550. // Placement
  54551. commitPlacement(nextEffect);
  54552. // Clear the "placement" from effect tag so that we know that this is
  54553. // inserted, before any life-cycles like componentDidMount gets called.
  54554. nextEffect.effectTag &= ~Placement;
  54555. // Update
  54556. var _current = nextEffect.alternate;
  54557. commitWork(_current, nextEffect);
  54558. break;
  54559. }
  54560. case Update:
  54561. {
  54562. var _current2 = nextEffect.alternate;
  54563. commitWork(_current2, nextEffect);
  54564. break;
  54565. }
  54566. case Deletion:
  54567. {
  54568. commitDeletion(nextEffect, renderPriorityLevel);
  54569. break;
  54570. }
  54571. }
  54572. // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  54573. recordEffect();
  54574. resetCurrentFiber();
  54575. nextEffect = nextEffect.nextEffect;
  54576. }
  54577. }
  54578. function commitLayoutEffects(root, committedExpirationTime) {
  54579. // TODO: Should probably move the bulk of this function to commitWork.
  54580. while (nextEffect !== null) {
  54581. setCurrentFiber(nextEffect);
  54582. var effectTag = nextEffect.effectTag;
  54583. if (effectTag & (Update | Callback)) {
  54584. recordEffect();
  54585. var current$$1 = nextEffect.alternate;
  54586. commitLifeCycles(root, current$$1, nextEffect, committedExpirationTime);
  54587. }
  54588. if (effectTag & Ref) {
  54589. recordEffect();
  54590. commitAttachRef(nextEffect);
  54591. }
  54592. if (effectTag & Passive) {
  54593. rootDoesHavePassiveEffects = true;
  54594. }
  54595. resetCurrentFiber();
  54596. nextEffect = nextEffect.nextEffect;
  54597. }
  54598. }
  54599. function flushPassiveEffects() {
  54600. if (rootWithPendingPassiveEffects === null) {
  54601. return false;
  54602. }
  54603. var root = rootWithPendingPassiveEffects;
  54604. var expirationTime = pendingPassiveEffectsExpirationTime;
  54605. var renderPriorityLevel = pendingPassiveEffectsRenderPriority;
  54606. rootWithPendingPassiveEffects = null;
  54607. pendingPassiveEffectsExpirationTime = NoWork;
  54608. pendingPassiveEffectsRenderPriority = NoPriority;
  54609. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  54610. return runWithPriority$2(priorityLevel, flushPassiveEffectsImpl.bind(null, root, expirationTime));
  54611. }
  54612. function flushPassiveEffectsImpl(root, expirationTime) {
  54613. var prevInteractions = null;
  54614. if (enableSchedulerTracing) {
  54615. prevInteractions = tracing.__interactionsRef.current;
  54616. tracing.__interactionsRef.current = root.memoizedInteractions;
  54617. }
  54618. (function () {
  54619. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  54620. {
  54621. throw ReactError(Error('Cannot flush passive effects while already rendering.'));
  54622. }
  54623. }
  54624. })();
  54625. var prevExecutionContext = executionContext;
  54626. executionContext |= CommitContext;
  54627. // Note: This currently assumes there are no passive effects on the root
  54628. // fiber, because the root is not part of its own effect list. This could
  54629. // change in the future.
  54630. var effect = root.current.firstEffect;
  54631. while (effect !== null) {
  54632. {
  54633. setCurrentFiber(effect);
  54634. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  54635. if (hasCaughtError()) {
  54636. (function () {
  54637. if (!(effect !== null)) {
  54638. {
  54639. throw ReactError(Error('Should be working on an effect.'));
  54640. }
  54641. }
  54642. })();
  54643. var error = clearCaughtError();
  54644. captureCommitPhaseError(effect, error);
  54645. }
  54646. resetCurrentFiber();
  54647. }
  54648. var nextNextEffect = effect.nextEffect;
  54649. // Remove nextEffect pointer to assist GC
  54650. effect.nextEffect = null;
  54651. effect = nextNextEffect;
  54652. }
  54653. if (enableSchedulerTracing) {
  54654. tracing.__interactionsRef.current = prevInteractions;
  54655. finishPendingInteractions(root, expirationTime);
  54656. }
  54657. executionContext = prevExecutionContext;
  54658. flushSyncCallbackQueue();
  54659. // If additional passive effects were scheduled, increment a counter. If this
  54660. // exceeds the limit, we'll fire a warning.
  54661. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  54662. return true;
  54663. }
  54664. function isAlreadyFailedLegacyErrorBoundary(instance) {
  54665. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  54666. }
  54667. function markLegacyErrorBoundaryAsFailed(instance) {
  54668. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  54669. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  54670. } else {
  54671. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  54672. }
  54673. }
  54674. function prepareToThrowUncaughtError(error) {
  54675. if (!hasUncaughtError) {
  54676. hasUncaughtError = true;
  54677. firstUncaughtError = error;
  54678. }
  54679. }
  54680. var onUncaughtError = prepareToThrowUncaughtError;
  54681. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  54682. var errorInfo = createCapturedValue(error, sourceFiber);
  54683. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  54684. enqueueUpdate(rootFiber, update);
  54685. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  54686. if (root !== null) {
  54687. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  54688. }
  54689. }
  54690. function captureCommitPhaseError(sourceFiber, error) {
  54691. if (sourceFiber.tag === HostRoot) {
  54692. // Error was thrown at the root. There is no parent, so the root
  54693. // itself should capture it.
  54694. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  54695. return;
  54696. }
  54697. var fiber = sourceFiber.return;
  54698. while (fiber !== null) {
  54699. if (fiber.tag === HostRoot) {
  54700. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  54701. return;
  54702. } else if (fiber.tag === ClassComponent) {
  54703. var ctor = fiber.type;
  54704. var instance = fiber.stateNode;
  54705. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  54706. var errorInfo = createCapturedValue(error, sourceFiber);
  54707. var update = createClassErrorUpdate(fiber, errorInfo,
  54708. // TODO: This is always sync
  54709. Sync);
  54710. enqueueUpdate(fiber, update);
  54711. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  54712. if (root !== null) {
  54713. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  54714. }
  54715. return;
  54716. }
  54717. }
  54718. fiber = fiber.return;
  54719. }
  54720. }
  54721. function pingSuspendedRoot(root, thenable, suspendedTime) {
  54722. var pingCache = root.pingCache;
  54723. if (pingCache !== null) {
  54724. // The thenable resolved, so we no longer need to memoize, because it will
  54725. // never be thrown again.
  54726. pingCache.delete(thenable);
  54727. }
  54728. if (workInProgressRoot === root && renderExpirationTime === suspendedTime) {
  54729. // Received a ping at the same priority level at which we're currently
  54730. // rendering. We might want to restart this render. This should mirror
  54731. // the logic of whether or not a root suspends once it completes.
  54732. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  54733. // we should probably never restart.
  54734. // If we're suspended with delay, we'll always suspend so we can always
  54735. // restart. If we're suspended without any updates, it might be a retry.
  54736. // If it's early in the retry we can restart. We can't know for sure
  54737. // whether we'll eventually process an update during this render pass,
  54738. // but it's somewhat unlikely that we get to a ping before that, since
  54739. // getting to the root most update is usually very fast.
  54740. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  54741. // Restart from the root. Don't need to schedule a ping because
  54742. // we're already working on this tree.
  54743. prepareFreshStack(root, renderExpirationTime);
  54744. } else {
  54745. // Even though we can't restart right now, we might get an
  54746. // opportunity later. So we mark this render as having a ping.
  54747. workInProgressRootHasPendingPing = true;
  54748. }
  54749. return;
  54750. }
  54751. var lastPendingTime = root.lastPendingTime;
  54752. if (lastPendingTime < suspendedTime) {
  54753. // The root is no longer suspended at this time.
  54754. return;
  54755. }
  54756. var pingTime = root.pingTime;
  54757. if (pingTime !== NoWork && pingTime < suspendedTime) {
  54758. // There's already a lower priority ping scheduled.
  54759. return;
  54760. }
  54761. // Mark the time at which this ping was scheduled.
  54762. root.pingTime = suspendedTime;
  54763. if (root.finishedExpirationTime === suspendedTime) {
  54764. // If there's a pending fallback waiting to commit, throw it away.
  54765. root.finishedExpirationTime = NoWork;
  54766. root.finishedWork = null;
  54767. }
  54768. var currentTime = requestCurrentTime();
  54769. var priorityLevel = inferPriorityFromExpirationTime(currentTime, suspendedTime);
  54770. scheduleCallbackForRoot(root, priorityLevel, suspendedTime);
  54771. }
  54772. function retryTimedOutBoundary(boundaryFiber) {
  54773. // The boundary fiber (a Suspense component or SuspenseList component)
  54774. // previously was rendered in its fallback state. One of the promises that
  54775. // suspended it has resolved, which means at least part of the tree was
  54776. // likely unblocked. Try rendering again, at a new expiration time.
  54777. var currentTime = requestCurrentTime();
  54778. var suspenseConfig = null; // Retries don't carry over the already committed update.
  54779. var retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  54780. // TODO: Special case idle priority?
  54781. var priorityLevel = inferPriorityFromExpirationTime(currentTime, retryTime);
  54782. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  54783. if (root !== null) {
  54784. scheduleCallbackForRoot(root, priorityLevel, retryTime);
  54785. }
  54786. }
  54787. function resolveRetryThenable(boundaryFiber, thenable) {
  54788. var retryCache = void 0;
  54789. if (enableSuspenseServerRenderer) {
  54790. switch (boundaryFiber.tag) {
  54791. case SuspenseComponent:
  54792. retryCache = boundaryFiber.stateNode;
  54793. break;
  54794. case DehydratedSuspenseComponent:
  54795. retryCache = boundaryFiber.memoizedState;
  54796. break;
  54797. default:
  54798. (function () {
  54799. {
  54800. {
  54801. throw ReactError(Error('Pinged unknown suspense boundary type. This is probably a bug in React.'));
  54802. }
  54803. }
  54804. })();
  54805. }
  54806. } else {
  54807. retryCache = boundaryFiber.stateNode;
  54808. }
  54809. if (retryCache !== null) {
  54810. // The thenable resolved, so we no longer need to memoize, because it will
  54811. // never be thrown again.
  54812. retryCache.delete(thenable);
  54813. }
  54814. retryTimedOutBoundary(boundaryFiber);
  54815. }
  54816. // Computes the next Just Noticeable Difference (JND) boundary.
  54817. // The theory is that a person can't tell the difference between small differences in time.
  54818. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  54819. // difference in the experience. However, waiting for longer might mean that we can avoid
  54820. // showing an intermediate loading state. The longer we have already waited, the harder it
  54821. // is to tell small differences in time. Therefore, the longer we've already waited,
  54822. // the longer we can wait additionally. At some point we have to give up though.
  54823. // We pick a train model where the next boundary commits at a consistent schedule.
  54824. // These particular numbers are vague estimates. We expect to adjust them based on research.
  54825. function jnd(timeElapsed) {
  54826. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  54827. }
  54828. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  54829. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  54830. if (busyMinDurationMs <= 0) {
  54831. return 0;
  54832. }
  54833. var busyDelayMs = suspenseConfig.busyDelayMs | 0;
  54834. // Compute the time until this render pass would expire.
  54835. var currentTimeMs = now();
  54836. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  54837. var timeElapsed = currentTimeMs - eventTimeMs;
  54838. if (timeElapsed <= busyDelayMs) {
  54839. // If we haven't yet waited longer than the initial delay, we don't
  54840. // have to wait any additional time.
  54841. return 0;
  54842. }
  54843. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed;
  54844. // This is the value that is passed to `setTimeout`.
  54845. return msUntilTimeout;
  54846. }
  54847. function checkForNestedUpdates() {
  54848. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  54849. nestedUpdateCount = 0;
  54850. rootWithNestedUpdates = null;
  54851. (function () {
  54852. {
  54853. {
  54854. throw ReactError(Error('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.'));
  54855. }
  54856. }
  54857. })();
  54858. }
  54859. {
  54860. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  54861. nestedPassiveUpdateCount = 0;
  54862. warning$1(false, 'Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
  54863. }
  54864. }
  54865. }
  54866. function flushRenderPhaseStrictModeWarningsInDEV() {
  54867. {
  54868. ReactStrictModeWarnings.flushLegacyContextWarning();
  54869. if (warnAboutDeprecatedLifecycles) {
  54870. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  54871. }
  54872. }
  54873. }
  54874. function stopFinishedWorkLoopTimer() {
  54875. var didCompleteRoot = true;
  54876. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  54877. interruptedBy = null;
  54878. }
  54879. function stopInterruptedWorkLoopTimer() {
  54880. // TODO: Track which fiber caused the interruption.
  54881. var didCompleteRoot = false;
  54882. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  54883. interruptedBy = null;
  54884. }
  54885. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  54886. if (enableUserTimingAPI && workInProgressRoot !== null && updateExpirationTime > renderExpirationTime) {
  54887. interruptedBy = fiberThatReceivedUpdate;
  54888. }
  54889. }
  54890. var didWarnStateUpdateForUnmountedComponent = null;
  54891. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  54892. {
  54893. var tag = fiber.tag;
  54894. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
  54895. // Only warn for user-defined components, not internal ones like Suspense.
  54896. return;
  54897. }
  54898. // We show the whole stack but dedupe on the top component's name because
  54899. // the problematic code almost always lies inside that component.
  54900. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  54901. if (didWarnStateUpdateForUnmountedComponent !== null) {
  54902. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  54903. return;
  54904. }
  54905. didWarnStateUpdateForUnmountedComponent.add(componentName);
  54906. } else {
  54907. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  54908. }
  54909. 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', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  54910. }
  54911. }
  54912. var beginWork$$1 = void 0;
  54913. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  54914. var dummyFiber = null;
  54915. beginWork$$1 = function (current$$1, unitOfWork, expirationTime) {
  54916. // If a component throws an error, we replay it again in a synchronously
  54917. // dispatched event, so that the debugger will treat it as an uncaught
  54918. // error See ReactErrorUtils for more information.
  54919. // Before entering the begin phase, copy the work-in-progress onto a dummy
  54920. // fiber. If beginWork throws, we'll use this to reset the state.
  54921. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  54922. try {
  54923. return beginWork$1(current$$1, unitOfWork, expirationTime);
  54924. } catch (originalError) {
  54925. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  54926. // Don't replay promises. Treat everything else like an error.
  54927. throw originalError;
  54928. }
  54929. // Keep this code in sync with renderRoot; any changes here must have
  54930. // corresponding changes there.
  54931. resetContextDependencies();
  54932. resetHooks();
  54933. // Unwind the failed stack frame
  54934. unwindInterruptedWork(unitOfWork);
  54935. // Restore the original properties of the fiber.
  54936. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  54937. if (enableProfilerTimer && unitOfWork.mode & ProfileMode) {
  54938. // Reset the profiler timer.
  54939. startProfilerTimer(unitOfWork);
  54940. }
  54941. // Run beginWork again.
  54942. invokeGuardedCallback(null, beginWork$1, null, current$$1, unitOfWork, expirationTime);
  54943. if (hasCaughtError()) {
  54944. var replayError = clearCaughtError();
  54945. // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  54946. // Rethrow this error instead of the original one.
  54947. throw replayError;
  54948. } else {
  54949. // This branch is reachable if the render phase is impure.
  54950. throw originalError;
  54951. }
  54952. }
  54953. };
  54954. } else {
  54955. beginWork$$1 = beginWork$1;
  54956. }
  54957. var didWarnAboutUpdateInRender = false;
  54958. var didWarnAboutUpdateInGetChildContext = false;
  54959. function warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber) {
  54960. {
  54961. if (fiber.tag === ClassComponent) {
  54962. switch (phase) {
  54963. case 'getChildContext':
  54964. if (didWarnAboutUpdateInGetChildContext) {
  54965. return;
  54966. }
  54967. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  54968. didWarnAboutUpdateInGetChildContext = true;
  54969. break;
  54970. case 'render':
  54971. if (didWarnAboutUpdateInRender) {
  54972. return;
  54973. }
  54974. 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.');
  54975. didWarnAboutUpdateInRender = true;
  54976. break;
  54977. }
  54978. }
  54979. }
  54980. }
  54981. // a 'shared' variable that changes when act() opens/closes in tests.
  54982. var IsThisRendererActing = { current: false };
  54983. function warnIfNotScopedWithMatchingAct(fiber) {
  54984. {
  54985. if (warnsIfNotActing === true && IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  54986. warningWithoutStack$1(false, "It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '//...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '//...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber));
  54987. }
  54988. }
  54989. }
  54990. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  54991. {
  54992. if (warnsIfNotActing === true && (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  54993. warningWithoutStack$1(false, 'An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  54994. }
  54995. }
  54996. }
  54997. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  54998. {
  54999. if (warnsIfNotActing === true && executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  55000. warningWithoutStack$1(false, 'An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  55001. }
  55002. }
  55003. }
  55004. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV;
  55005. // In tests, we want to enforce a mocked scheduler.
  55006. var didWarnAboutUnmockedScheduler = false;
  55007. // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  55008. // scheduler is the actual recommendation. The alternative could be a testing build,
  55009. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  55010. // to get their tests right.
  55011. function warnIfUnmockedScheduler(fiber) {
  55012. {
  55013. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  55014. if (fiber.mode & BatchedMode || fiber.mode & ConcurrentMode) {
  55015. didWarnAboutUnmockedScheduler = true;
  55016. warningWithoutStack$1(false, 'In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  55017. } else if (warnAboutUnmockedScheduler === true) {
  55018. didWarnAboutUnmockedScheduler = true;
  55019. warningWithoutStack$1(false, 'Starting from React v17, the "scheduler" module will need to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  55020. }
  55021. }
  55022. }
  55023. }
  55024. var componentsThatTriggeredHighPriSuspend = null;
  55025. function checkForWrongSuspensePriorityInDEV(sourceFiber) {
  55026. {
  55027. var currentPriorityLevel = getCurrentPriorityLevel();
  55028. if ((sourceFiber.mode & ConcurrentMode) !== NoEffect && (currentPriorityLevel === UserBlockingPriority$2 || currentPriorityLevel === ImmediatePriority)) {
  55029. var workInProgressNode = sourceFiber;
  55030. while (workInProgressNode !== null) {
  55031. // Add the component that triggered the suspense
  55032. var current$$1 = workInProgressNode.alternate;
  55033. if (current$$1 !== null) {
  55034. // TODO: warn component that triggers the high priority
  55035. // suspend is the HostRoot
  55036. switch (workInProgressNode.tag) {
  55037. case ClassComponent:
  55038. // Loop through the component's update queue and see whether the component
  55039. // has triggered any high priority updates
  55040. var updateQueue = current$$1.updateQueue;
  55041. if (updateQueue !== null) {
  55042. var update = updateQueue.firstUpdate;
  55043. while (update !== null) {
  55044. var priorityLevel = update.priority;
  55045. if (priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority) {
  55046. if (componentsThatTriggeredHighPriSuspend === null) {
  55047. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  55048. } else {
  55049. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  55050. }
  55051. break;
  55052. }
  55053. update = update.next;
  55054. }
  55055. }
  55056. break;
  55057. case FunctionComponent:
  55058. case ForwardRef:
  55059. case SimpleMemoComponent:
  55060. if (workInProgressNode.memoizedState !== null && workInProgressNode.memoizedState.baseUpdate !== null) {
  55061. var _update = workInProgressNode.memoizedState.baseUpdate;
  55062. // Loop through the functional component's memoized state to see whether
  55063. // the component has triggered any high pri updates
  55064. while (_update !== null) {
  55065. var priority = _update.priority;
  55066. if (priority === UserBlockingPriority$2 || priority === ImmediatePriority) {
  55067. if (componentsThatTriggeredHighPriSuspend === null) {
  55068. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  55069. } else {
  55070. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  55071. }
  55072. break;
  55073. }
  55074. if (_update.next === workInProgressNode.memoizedState.baseUpdate) {
  55075. break;
  55076. }
  55077. _update = _update.next;
  55078. }
  55079. }
  55080. break;
  55081. default:
  55082. break;
  55083. }
  55084. }
  55085. workInProgressNode = workInProgressNode.return;
  55086. }
  55087. }
  55088. }
  55089. }
  55090. function flushSuspensePriorityWarningInDEV() {
  55091. {
  55092. if (componentsThatTriggeredHighPriSuspend !== null) {
  55093. var componentNames = [];
  55094. componentsThatTriggeredHighPriSuspend.forEach(function (name) {
  55095. return componentNames.push(name);
  55096. });
  55097. componentsThatTriggeredHighPriSuspend = null;
  55098. if (componentNames.length > 0) {
  55099. warningWithoutStack$1(false, '%s triggered a user-blocking update that suspended.' + '\n\n' + 'The fix is to split the update into multiple parts: a user-blocking ' + 'update to provide immediate feedback, and another update that ' + 'triggers the bulk of the changes.' + '\n\n' + 'Refer to the documentation for useSuspenseTransition to learn how ' + 'to implement this pattern.',
  55100. // TODO: Add link to React docs with more information, once it exists
  55101. componentNames.sort().join(', '));
  55102. }
  55103. }
  55104. }
  55105. }
  55106. function computeThreadID(root, expirationTime) {
  55107. // Interaction threads are unique per root and expiration time.
  55108. return expirationTime * 1000 + root.interactionThreadID;
  55109. }
  55110. function markSpawnedWork(expirationTime) {
  55111. if (!enableSchedulerTracing) {
  55112. return;
  55113. }
  55114. if (spawnedWorkDuringRender === null) {
  55115. spawnedWorkDuringRender = [expirationTime];
  55116. } else {
  55117. spawnedWorkDuringRender.push(expirationTime);
  55118. }
  55119. }
  55120. function scheduleInteractions(root, expirationTime, interactions) {
  55121. if (!enableSchedulerTracing) {
  55122. return;
  55123. }
  55124. if (interactions.size > 0) {
  55125. var pendingInteractionMap = root.pendingInteractionMap;
  55126. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  55127. if (pendingInteractions != null) {
  55128. interactions.forEach(function (interaction) {
  55129. if (!pendingInteractions.has(interaction)) {
  55130. // Update the pending async work count for previously unscheduled interaction.
  55131. interaction.__count++;
  55132. }
  55133. pendingInteractions.add(interaction);
  55134. });
  55135. } else {
  55136. pendingInteractionMap.set(expirationTime, new Set(interactions));
  55137. // Update the pending async work count for the current interactions.
  55138. interactions.forEach(function (interaction) {
  55139. interaction.__count++;
  55140. });
  55141. }
  55142. var subscriber = tracing.__subscriberRef.current;
  55143. if (subscriber !== null) {
  55144. var threadID = computeThreadID(root, expirationTime);
  55145. subscriber.onWorkScheduled(interactions, threadID);
  55146. }
  55147. }
  55148. }
  55149. function schedulePendingInteractions(root, expirationTime) {
  55150. // This is called when work is scheduled on a root.
  55151. // It associates the current interactions with the newly-scheduled expiration.
  55152. // They will be restored when that expiration is later committed.
  55153. if (!enableSchedulerTracing) {
  55154. return;
  55155. }
  55156. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  55157. }
  55158. function startWorkOnPendingInteractions(root, expirationTime) {
  55159. // This is called when new work is started on a root.
  55160. if (!enableSchedulerTracing) {
  55161. return;
  55162. }
  55163. // Determine which interactions this batch of work currently includes, So that
  55164. // we can accurately attribute time spent working on it, And so that cascading
  55165. // work triggered during the render phase will be associated with it.
  55166. var interactions = new Set();
  55167. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  55168. if (scheduledExpirationTime >= expirationTime) {
  55169. scheduledInteractions.forEach(function (interaction) {
  55170. return interactions.add(interaction);
  55171. });
  55172. }
  55173. });
  55174. // Store the current set of interactions on the FiberRoot for a few reasons:
  55175. // We can re-use it in hot functions like renderRoot() without having to
  55176. // recalculate it. We will also use it in commitWork() to pass to any Profiler
  55177. // onRender() hooks. This also provides DevTools with a way to access it when
  55178. // the onCommitRoot() hook is called.
  55179. root.memoizedInteractions = interactions;
  55180. if (interactions.size > 0) {
  55181. var subscriber = tracing.__subscriberRef.current;
  55182. if (subscriber !== null) {
  55183. var threadID = computeThreadID(root, expirationTime);
  55184. try {
  55185. subscriber.onWorkStarted(interactions, threadID);
  55186. } catch (error) {
  55187. // If the subscriber throws, rethrow it in a separate task
  55188. scheduleCallback(ImmediatePriority, function () {
  55189. throw error;
  55190. });
  55191. }
  55192. }
  55193. }
  55194. }
  55195. function finishPendingInteractions(root, committedExpirationTime) {
  55196. if (!enableSchedulerTracing) {
  55197. return;
  55198. }
  55199. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  55200. var subscriber = void 0;
  55201. try {
  55202. subscriber = tracing.__subscriberRef.current;
  55203. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  55204. var threadID = computeThreadID(root, committedExpirationTime);
  55205. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  55206. }
  55207. } catch (error) {
  55208. // If the subscriber throws, rethrow it in a separate task
  55209. scheduleCallback(ImmediatePriority, function () {
  55210. throw error;
  55211. });
  55212. } finally {
  55213. // Clear completed interactions from the pending Map.
  55214. // Unless the render was suspended or cascading work was scheduled,
  55215. // In which case– leave pending interactions until the subsequent render.
  55216. var pendingInteractionMap = root.pendingInteractionMap;
  55217. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  55218. // Only decrement the pending interaction count if we're done.
  55219. // If there's still work at the current priority,
  55220. // That indicates that we are waiting for suspense data.
  55221. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  55222. pendingInteractionMap.delete(scheduledExpirationTime);
  55223. scheduledInteractions.forEach(function (interaction) {
  55224. interaction.__count--;
  55225. if (subscriber !== null && interaction.__count === 0) {
  55226. try {
  55227. subscriber.onInteractionScheduledWorkCompleted(interaction);
  55228. } catch (error) {
  55229. // If the subscriber throws, rethrow it in a separate task
  55230. scheduleCallback(ImmediatePriority, function () {
  55231. throw error;
  55232. });
  55233. }
  55234. }
  55235. });
  55236. }
  55237. });
  55238. }
  55239. }
  55240. var onCommitFiberRoot = null;
  55241. var onCommitFiberUnmount = null;
  55242. var hasLoggedError = false;
  55243. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  55244. function injectInternals(internals) {
  55245. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  55246. // No DevTools
  55247. return false;
  55248. }
  55249. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  55250. if (hook.isDisabled) {
  55251. // This isn't a real property on the hook, but it can be set to opt out
  55252. // of DevTools integration and associated warnings and logs.
  55253. // https://github.com/facebook/react/issues/3877
  55254. return true;
  55255. }
  55256. if (!hook.supportsFiber) {
  55257. {
  55258. 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');
  55259. }
  55260. // DevTools exists, even though it doesn't support Fiber.
  55261. return true;
  55262. }
  55263. try {
  55264. var rendererID = hook.inject(internals);
  55265. // We have successfully injected, so now it is safe to set up hooks.
  55266. onCommitFiberRoot = function (root, expirationTime) {
  55267. try {
  55268. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  55269. if (enableProfilerTimer) {
  55270. var currentTime = requestCurrentTime();
  55271. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  55272. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  55273. } else {
  55274. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  55275. }
  55276. } catch (err) {
  55277. if ( true && !hasLoggedError) {
  55278. hasLoggedError = true;
  55279. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  55280. }
  55281. }
  55282. };
  55283. onCommitFiberUnmount = function (fiber) {
  55284. try {
  55285. hook.onCommitFiberUnmount(rendererID, fiber);
  55286. } catch (err) {
  55287. if ( true && !hasLoggedError) {
  55288. hasLoggedError = true;
  55289. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  55290. }
  55291. }
  55292. };
  55293. } catch (err) {
  55294. // Catch all errors because it is unsafe to throw during initialization.
  55295. {
  55296. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  55297. }
  55298. }
  55299. // DevTools exists
  55300. return true;
  55301. }
  55302. function onCommitRoot(root, expirationTime) {
  55303. if (typeof onCommitFiberRoot === 'function') {
  55304. onCommitFiberRoot(root, expirationTime);
  55305. }
  55306. }
  55307. function onCommitUnmount(fiber) {
  55308. if (typeof onCommitFiberUnmount === 'function') {
  55309. onCommitFiberUnmount(fiber);
  55310. }
  55311. }
  55312. var hasBadMapPolyfill = void 0;
  55313. {
  55314. hasBadMapPolyfill = false;
  55315. try {
  55316. var nonExtensibleObject = Object.preventExtensions({});
  55317. var testMap = new Map([[nonExtensibleObject, null]]);
  55318. var testSet = new Set([nonExtensibleObject]);
  55319. // This is necessary for Rollup to not consider these unused.
  55320. // https://github.com/rollup/rollup/issues/1771
  55321. // TODO: we can remove these if Rollup fixes the bug.
  55322. testMap.set(0, 0);
  55323. testSet.add(0);
  55324. } catch (e) {
  55325. // TODO: Consider warning about bad polyfills
  55326. hasBadMapPolyfill = true;
  55327. }
  55328. }
  55329. // A Fiber is work on a Component that needs to be done or was done. There can
  55330. // be more than one per component.
  55331. var debugCounter = void 0;
  55332. {
  55333. debugCounter = 1;
  55334. }
  55335. function FiberNode(tag, pendingProps, key, mode) {
  55336. // Instance
  55337. this.tag = tag;
  55338. this.key = key;
  55339. this.elementType = null;
  55340. this.type = null;
  55341. this.stateNode = null;
  55342. // Fiber
  55343. this.return = null;
  55344. this.child = null;
  55345. this.sibling = null;
  55346. this.index = 0;
  55347. this.ref = null;
  55348. this.pendingProps = pendingProps;
  55349. this.memoizedProps = null;
  55350. this.updateQueue = null;
  55351. this.memoizedState = null;
  55352. this.dependencies = null;
  55353. this.mode = mode;
  55354. // Effects
  55355. this.effectTag = NoEffect;
  55356. this.nextEffect = null;
  55357. this.firstEffect = null;
  55358. this.lastEffect = null;
  55359. this.expirationTime = NoWork;
  55360. this.childExpirationTime = NoWork;
  55361. this.alternate = null;
  55362. if (enableProfilerTimer) {
  55363. // Note: The following is done to avoid a v8 performance cliff.
  55364. //
  55365. // Initializing the fields below to smis and later updating them with
  55366. // double values will cause Fibers to end up having separate shapes.
  55367. // This behavior/bug has something to do with Object.preventExtension().
  55368. // Fortunately this only impacts DEV builds.
  55369. // Unfortunately it makes React unusably slow for some applications.
  55370. // To work around this, initialize the fields below with doubles.
  55371. //
  55372. // Learn more about this here:
  55373. // https://github.com/facebook/react/issues/14365
  55374. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  55375. this.actualDuration = Number.NaN;
  55376. this.actualStartTime = Number.NaN;
  55377. this.selfBaseDuration = Number.NaN;
  55378. this.treeBaseDuration = Number.NaN;
  55379. // It's okay to replace the initial doubles with smis after initialization.
  55380. // This won't trigger the performance cliff mentioned above,
  55381. // and it simplifies other profiler code (including DevTools).
  55382. this.actualDuration = 0;
  55383. this.actualStartTime = -1;
  55384. this.selfBaseDuration = 0;
  55385. this.treeBaseDuration = 0;
  55386. }
  55387. {
  55388. this._debugID = debugCounter++;
  55389. this._debugSource = null;
  55390. this._debugOwner = null;
  55391. this._debugIsCurrentlyTiming = false;
  55392. this._debugNeedsRemount = false;
  55393. this._debugHookTypes = null;
  55394. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  55395. Object.preventExtensions(this);
  55396. }
  55397. }
  55398. }
  55399. // This is a constructor function, rather than a POJO constructor, still
  55400. // please ensure we do the following:
  55401. // 1) Nobody should add any instance methods on this. Instance methods can be
  55402. // more difficult to predict when they get optimized and they are almost
  55403. // never inlined properly in static compilers.
  55404. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  55405. // always know when it is a fiber.
  55406. // 3) We might want to experiment with using numeric keys since they are easier
  55407. // to optimize in a non-JIT environment.
  55408. // 4) We can easily go from a constructor to a createFiber object literal if that
  55409. // is faster.
  55410. // 5) It should be easy to port this to a C struct and keep a C implementation
  55411. // compatible.
  55412. var createFiber = function (tag, pendingProps, key, mode) {
  55413. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  55414. return new FiberNode(tag, pendingProps, key, mode);
  55415. };
  55416. function shouldConstruct(Component) {
  55417. var prototype = Component.prototype;
  55418. return !!(prototype && prototype.isReactComponent);
  55419. }
  55420. function isSimpleFunctionComponent(type) {
  55421. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  55422. }
  55423. function resolveLazyComponentTag(Component) {
  55424. if (typeof Component === 'function') {
  55425. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  55426. } else if (Component !== undefined && Component !== null) {
  55427. var $$typeof = Component.$$typeof;
  55428. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  55429. return ForwardRef;
  55430. }
  55431. if ($$typeof === REACT_MEMO_TYPE) {
  55432. return MemoComponent;
  55433. }
  55434. }
  55435. return IndeterminateComponent;
  55436. }
  55437. // This is used to create an alternate fiber to do work on.
  55438. function createWorkInProgress(current, pendingProps, expirationTime) {
  55439. var workInProgress = current.alternate;
  55440. if (workInProgress === null) {
  55441. // We use a double buffering pooling technique because we know that we'll
  55442. // only ever need at most two versions of a tree. We pool the "other" unused
  55443. // node that we're free to reuse. This is lazily created to avoid allocating
  55444. // extra objects for things that are never updated. It also allow us to
  55445. // reclaim the extra memory if needed.
  55446. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  55447. workInProgress.elementType = current.elementType;
  55448. workInProgress.type = current.type;
  55449. workInProgress.stateNode = current.stateNode;
  55450. {
  55451. // DEV-only fields
  55452. workInProgress._debugID = current._debugID;
  55453. workInProgress._debugSource = current._debugSource;
  55454. workInProgress._debugOwner = current._debugOwner;
  55455. workInProgress._debugHookTypes = current._debugHookTypes;
  55456. }
  55457. workInProgress.alternate = current;
  55458. current.alternate = workInProgress;
  55459. } else {
  55460. workInProgress.pendingProps = pendingProps;
  55461. // We already have an alternate.
  55462. // Reset the effect tag.
  55463. workInProgress.effectTag = NoEffect;
  55464. // The effect list is no longer valid.
  55465. workInProgress.nextEffect = null;
  55466. workInProgress.firstEffect = null;
  55467. workInProgress.lastEffect = null;
  55468. if (enableProfilerTimer) {
  55469. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  55470. // This prevents time from endlessly accumulating in new commits.
  55471. // This has the downside of resetting values for different priority renders,
  55472. // But works for yielding (the common case) and should support resuming.
  55473. workInProgress.actualDuration = 0;
  55474. workInProgress.actualStartTime = -1;
  55475. }
  55476. }
  55477. workInProgress.childExpirationTime = current.childExpirationTime;
  55478. workInProgress.expirationTime = current.expirationTime;
  55479. workInProgress.child = current.child;
  55480. workInProgress.memoizedProps = current.memoizedProps;
  55481. workInProgress.memoizedState = current.memoizedState;
  55482. workInProgress.updateQueue = current.updateQueue;
  55483. // Clone the dependencies object. This is mutated during the render phase, so
  55484. // it cannot be shared with the current fiber.
  55485. var currentDependencies = current.dependencies;
  55486. workInProgress.dependencies = currentDependencies === null ? null : {
  55487. expirationTime: currentDependencies.expirationTime,
  55488. firstContext: currentDependencies.firstContext,
  55489. responders: currentDependencies.responders
  55490. };
  55491. // These will be overridden during the parent's reconciliation
  55492. workInProgress.sibling = current.sibling;
  55493. workInProgress.index = current.index;
  55494. workInProgress.ref = current.ref;
  55495. if (enableProfilerTimer) {
  55496. workInProgress.selfBaseDuration = current.selfBaseDuration;
  55497. workInProgress.treeBaseDuration = current.treeBaseDuration;
  55498. }
  55499. {
  55500. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  55501. switch (workInProgress.tag) {
  55502. case IndeterminateComponent:
  55503. case FunctionComponent:
  55504. case SimpleMemoComponent:
  55505. workInProgress.type = resolveFunctionForHotReloading(current.type);
  55506. break;
  55507. case ClassComponent:
  55508. workInProgress.type = resolveClassForHotReloading(current.type);
  55509. break;
  55510. case ForwardRef:
  55511. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  55512. break;
  55513. default:
  55514. break;
  55515. }
  55516. }
  55517. return workInProgress;
  55518. }
  55519. // Used to reuse a Fiber for a second pass.
  55520. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  55521. // This resets the Fiber to what createFiber or createWorkInProgress would
  55522. // have set the values to before during the first pass. Ideally this wouldn't
  55523. // be necessary but unfortunately many code paths reads from the workInProgress
  55524. // when they should be reading from current and writing to workInProgress.
  55525. // We assume pendingProps, index, key, ref, return are still untouched to
  55526. // avoid doing another reconciliation.
  55527. // Reset the effect tag but keep any Placement tags, since that's something
  55528. // that child fiber is setting, not the reconciliation.
  55529. workInProgress.effectTag &= Placement;
  55530. // The effect list is no longer valid.
  55531. workInProgress.nextEffect = null;
  55532. workInProgress.firstEffect = null;
  55533. workInProgress.lastEffect = null;
  55534. var current = workInProgress.alternate;
  55535. if (current === null) {
  55536. // Reset to createFiber's initial values.
  55537. workInProgress.childExpirationTime = NoWork;
  55538. workInProgress.expirationTime = renderExpirationTime;
  55539. workInProgress.child = null;
  55540. workInProgress.memoizedProps = null;
  55541. workInProgress.memoizedState = null;
  55542. workInProgress.updateQueue = null;
  55543. workInProgress.dependencies = null;
  55544. if (enableProfilerTimer) {
  55545. // Note: We don't reset the actualTime counts. It's useful to accumulate
  55546. // actual time across multiple render passes.
  55547. workInProgress.selfBaseDuration = 0;
  55548. workInProgress.treeBaseDuration = 0;
  55549. }
  55550. } else {
  55551. // Reset to the cloned values that createWorkInProgress would've.
  55552. workInProgress.childExpirationTime = current.childExpirationTime;
  55553. workInProgress.expirationTime = current.expirationTime;
  55554. workInProgress.child = current.child;
  55555. workInProgress.memoizedProps = current.memoizedProps;
  55556. workInProgress.memoizedState = current.memoizedState;
  55557. workInProgress.updateQueue = current.updateQueue;
  55558. // Clone the dependencies object. This is mutated during the render phase, so
  55559. // it cannot be shared with the current fiber.
  55560. var currentDependencies = current.dependencies;
  55561. workInProgress.dependencies = currentDependencies === null ? null : {
  55562. expirationTime: currentDependencies.expirationTime,
  55563. firstContext: currentDependencies.firstContext,
  55564. responders: currentDependencies.responders
  55565. };
  55566. if (enableProfilerTimer) {
  55567. // Note: We don't reset the actualTime counts. It's useful to accumulate
  55568. // actual time across multiple render passes.
  55569. workInProgress.selfBaseDuration = current.selfBaseDuration;
  55570. workInProgress.treeBaseDuration = current.treeBaseDuration;
  55571. }
  55572. }
  55573. return workInProgress;
  55574. }
  55575. function createHostRootFiber(tag) {
  55576. var mode = void 0;
  55577. if (tag === ConcurrentRoot) {
  55578. mode = ConcurrentMode | BatchedMode | StrictMode;
  55579. } else if (tag === BatchedRoot) {
  55580. mode = BatchedMode | StrictMode;
  55581. } else {
  55582. mode = NoMode;
  55583. }
  55584. if (enableProfilerTimer && isDevToolsPresent) {
  55585. // Always collect profile timings when DevTools are present.
  55586. // This enables DevTools to start capturing timing at any point–
  55587. // Without some nodes in the tree having empty base times.
  55588. mode |= ProfileMode;
  55589. }
  55590. return createFiber(HostRoot, null, null, mode);
  55591. }
  55592. function createFiberFromTypeAndProps(type, // React$ElementType
  55593. key, pendingProps, owner, mode, expirationTime) {
  55594. var fiber = void 0;
  55595. var fiberTag = IndeterminateComponent;
  55596. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  55597. var resolvedType = type;
  55598. if (typeof type === 'function') {
  55599. if (shouldConstruct(type)) {
  55600. fiberTag = ClassComponent;
  55601. {
  55602. resolvedType = resolveClassForHotReloading(resolvedType);
  55603. }
  55604. } else {
  55605. {
  55606. resolvedType = resolveFunctionForHotReloading(resolvedType);
  55607. }
  55608. }
  55609. } else if (typeof type === 'string') {
  55610. fiberTag = HostComponent;
  55611. } else {
  55612. getTag: switch (type) {
  55613. case REACT_FRAGMENT_TYPE:
  55614. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  55615. case REACT_CONCURRENT_MODE_TYPE:
  55616. fiberTag = Mode;
  55617. mode |= ConcurrentMode | BatchedMode | StrictMode;
  55618. break;
  55619. case REACT_STRICT_MODE_TYPE:
  55620. fiberTag = Mode;
  55621. mode |= StrictMode;
  55622. break;
  55623. case REACT_PROFILER_TYPE:
  55624. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  55625. case REACT_SUSPENSE_TYPE:
  55626. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  55627. case REACT_SUSPENSE_LIST_TYPE:
  55628. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  55629. default:
  55630. {
  55631. if (typeof type === 'object' && type !== null) {
  55632. switch (type.$$typeof) {
  55633. case REACT_PROVIDER_TYPE:
  55634. fiberTag = ContextProvider;
  55635. break getTag;
  55636. case REACT_CONTEXT_TYPE:
  55637. // This is a consumer
  55638. fiberTag = ContextConsumer;
  55639. break getTag;
  55640. case REACT_FORWARD_REF_TYPE:
  55641. fiberTag = ForwardRef;
  55642. {
  55643. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  55644. }
  55645. break getTag;
  55646. case REACT_MEMO_TYPE:
  55647. fiberTag = MemoComponent;
  55648. break getTag;
  55649. case REACT_LAZY_TYPE:
  55650. fiberTag = LazyComponent;
  55651. resolvedType = null;
  55652. break getTag;
  55653. case REACT_FUNDAMENTAL_TYPE:
  55654. if (enableFundamentalAPI) {
  55655. return createFiberFromFundamental(type, pendingProps, mode, expirationTime, key);
  55656. }
  55657. break;
  55658. }
  55659. }
  55660. var info = '';
  55661. {
  55662. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  55663. 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.';
  55664. }
  55665. var ownerName = owner ? getComponentName(owner.type) : null;
  55666. if (ownerName) {
  55667. info += '\n\nCheck the render method of `' + ownerName + '`.';
  55668. }
  55669. }
  55670. (function () {
  55671. {
  55672. {
  55673. throw ReactError(Error('Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' + (type == null ? type : typeof type) + '.' + info));
  55674. }
  55675. }
  55676. })();
  55677. }
  55678. }
  55679. }
  55680. fiber = createFiber(fiberTag, pendingProps, key, mode);
  55681. fiber.elementType = type;
  55682. fiber.type = resolvedType;
  55683. fiber.expirationTime = expirationTime;
  55684. return fiber;
  55685. }
  55686. function createFiberFromElement(element, mode, expirationTime) {
  55687. var owner = null;
  55688. {
  55689. owner = element._owner;
  55690. }
  55691. var type = element.type;
  55692. var key = element.key;
  55693. var pendingProps = element.props;
  55694. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  55695. {
  55696. fiber._debugSource = element._source;
  55697. fiber._debugOwner = element._owner;
  55698. }
  55699. return fiber;
  55700. }
  55701. function createFiberFromFragment(elements, mode, expirationTime, key) {
  55702. var fiber = createFiber(Fragment, elements, key, mode);
  55703. fiber.expirationTime = expirationTime;
  55704. return fiber;
  55705. }
  55706. function createFiberFromFundamental(fundamentalComponent, pendingProps, mode, expirationTime, key) {
  55707. var fiber = createFiber(FundamentalComponent, pendingProps, key, mode);
  55708. fiber.elementType = fundamentalComponent;
  55709. fiber.type = fundamentalComponent;
  55710. fiber.expirationTime = expirationTime;
  55711. return fiber;
  55712. }
  55713. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  55714. {
  55715. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  55716. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  55717. }
  55718. }
  55719. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  55720. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  55721. fiber.elementType = REACT_PROFILER_TYPE;
  55722. fiber.type = REACT_PROFILER_TYPE;
  55723. fiber.expirationTime = expirationTime;
  55724. return fiber;
  55725. }
  55726. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  55727. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  55728. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  55729. // This needs to be fixed in getComponentName so that it relies on the tag
  55730. // instead.
  55731. fiber.type = REACT_SUSPENSE_TYPE;
  55732. fiber.elementType = REACT_SUSPENSE_TYPE;
  55733. fiber.expirationTime = expirationTime;
  55734. return fiber;
  55735. }
  55736. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  55737. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  55738. {
  55739. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  55740. // This needs to be fixed in getComponentName so that it relies on the tag
  55741. // instead.
  55742. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  55743. }
  55744. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  55745. fiber.expirationTime = expirationTime;
  55746. return fiber;
  55747. }
  55748. function createFiberFromText(content, mode, expirationTime) {
  55749. var fiber = createFiber(HostText, content, null, mode);
  55750. fiber.expirationTime = expirationTime;
  55751. return fiber;
  55752. }
  55753. function createFiberFromHostInstanceForDeletion() {
  55754. var fiber = createFiber(HostComponent, null, null, NoMode);
  55755. // TODO: These should not need a type.
  55756. fiber.elementType = 'DELETED';
  55757. fiber.type = 'DELETED';
  55758. return fiber;
  55759. }
  55760. function createFiberFromPortal(portal, mode, expirationTime) {
  55761. var pendingProps = portal.children !== null ? portal.children : [];
  55762. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  55763. fiber.expirationTime = expirationTime;
  55764. fiber.stateNode = {
  55765. containerInfo: portal.containerInfo,
  55766. pendingChildren: null, // Used by persistent updates
  55767. implementation: portal.implementation
  55768. };
  55769. return fiber;
  55770. }
  55771. // Used for stashing WIP properties to replay failed work in DEV.
  55772. function assignFiberPropertiesInDEV(target, source) {
  55773. if (target === null) {
  55774. // This Fiber's initial properties will always be overwritten.
  55775. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  55776. target = createFiber(IndeterminateComponent, null, null, NoMode);
  55777. }
  55778. // This is intentionally written as a list of all properties.
  55779. // We tried to use Object.assign() instead but this is called in
  55780. // the hottest path, and Object.assign() was too slow:
  55781. // https://github.com/facebook/react/issues/12502
  55782. // This code is DEV-only so size is not a concern.
  55783. target.tag = source.tag;
  55784. target.key = source.key;
  55785. target.elementType = source.elementType;
  55786. target.type = source.type;
  55787. target.stateNode = source.stateNode;
  55788. target.return = source.return;
  55789. target.child = source.child;
  55790. target.sibling = source.sibling;
  55791. target.index = source.index;
  55792. target.ref = source.ref;
  55793. target.pendingProps = source.pendingProps;
  55794. target.memoizedProps = source.memoizedProps;
  55795. target.updateQueue = source.updateQueue;
  55796. target.memoizedState = source.memoizedState;
  55797. target.dependencies = source.dependencies;
  55798. target.mode = source.mode;
  55799. target.effectTag = source.effectTag;
  55800. target.nextEffect = source.nextEffect;
  55801. target.firstEffect = source.firstEffect;
  55802. target.lastEffect = source.lastEffect;
  55803. target.expirationTime = source.expirationTime;
  55804. target.childExpirationTime = source.childExpirationTime;
  55805. target.alternate = source.alternate;
  55806. if (enableProfilerTimer) {
  55807. target.actualDuration = source.actualDuration;
  55808. target.actualStartTime = source.actualStartTime;
  55809. target.selfBaseDuration = source.selfBaseDuration;
  55810. target.treeBaseDuration = source.treeBaseDuration;
  55811. }
  55812. target._debugID = source._debugID;
  55813. target._debugSource = source._debugSource;
  55814. target._debugOwner = source._debugOwner;
  55815. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  55816. target._debugNeedsRemount = source._debugNeedsRemount;
  55817. target._debugHookTypes = source._debugHookTypes;
  55818. return target;
  55819. }
  55820. // TODO: This should be lifted into the renderer.
  55821. // The following attributes are only used by interaction tracing builds.
  55822. // They enable interactions to be associated with their async work,
  55823. // And expose interaction metadata to the React DevTools Profiler plugin.
  55824. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  55825. // Exported FiberRoot type includes all properties,
  55826. // To avoid requiring potentially error-prone :any casts throughout the project.
  55827. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  55828. // The types are defined separately within this file to ensure they stay in sync.
  55829. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  55830. function FiberRootNode(containerInfo, tag, hydrate) {
  55831. this.tag = tag;
  55832. this.current = null;
  55833. this.containerInfo = containerInfo;
  55834. this.pendingChildren = null;
  55835. this.pingCache = null;
  55836. this.finishedExpirationTime = NoWork;
  55837. this.finishedWork = null;
  55838. this.timeoutHandle = noTimeout;
  55839. this.context = null;
  55840. this.pendingContext = null;
  55841. this.hydrate = hydrate;
  55842. this.firstBatch = null;
  55843. this.callbackNode = null;
  55844. this.callbackExpirationTime = NoWork;
  55845. this.firstPendingTime = NoWork;
  55846. this.lastPendingTime = NoWork;
  55847. this.pingTime = NoWork;
  55848. if (enableSchedulerTracing) {
  55849. this.interactionThreadID = tracing.unstable_getThreadID();
  55850. this.memoizedInteractions = new Set();
  55851. this.pendingInteractionMap = new Map();
  55852. }
  55853. }
  55854. function createFiberRoot(containerInfo, tag, hydrate) {
  55855. var root = new FiberRootNode(containerInfo, tag, hydrate);
  55856. // Cyclic construction. This cheats the type system right now because
  55857. // stateNode is any.
  55858. var uninitializedFiber = createHostRootFiber(tag);
  55859. root.current = uninitializedFiber;
  55860. uninitializedFiber.stateNode = root;
  55861. return root;
  55862. }
  55863. // This lets us hook into Fiber to debug what it's doing.
  55864. // See https://github.com/facebook/react/pull/8033.
  55865. // This is not part of the public API, not even for React DevTools.
  55866. // You may only inject a debugTool if you work on React Fiber itself.
  55867. var ReactFiberInstrumentation = {
  55868. debugTool: null
  55869. };
  55870. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  55871. // 0 is PROD, 1 is DEV.
  55872. // Might add PROFILE later.
  55873. var didWarnAboutNestedUpdates = void 0;
  55874. var didWarnAboutFindNodeInStrictMode = void 0;
  55875. {
  55876. didWarnAboutNestedUpdates = false;
  55877. didWarnAboutFindNodeInStrictMode = {};
  55878. }
  55879. function getContextForSubtree(parentComponent) {
  55880. if (!parentComponent) {
  55881. return emptyContextObject;
  55882. }
  55883. var fiber = get(parentComponent);
  55884. var parentContext = findCurrentUnmaskedContext(fiber);
  55885. if (fiber.tag === ClassComponent) {
  55886. var Component = fiber.type;
  55887. if (isContextProvider(Component)) {
  55888. return processChildContext(fiber, Component, parentContext);
  55889. }
  55890. }
  55891. return parentContext;
  55892. }
  55893. function scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback) {
  55894. {
  55895. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  55896. didWarnAboutNestedUpdates = true;
  55897. 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');
  55898. }
  55899. }
  55900. var update = createUpdate(expirationTime, suspenseConfig);
  55901. // Caution: React DevTools currently depends on this property
  55902. // being called "element".
  55903. update.payload = { element: element };
  55904. callback = callback === undefined ? null : callback;
  55905. if (callback !== null) {
  55906. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  55907. update.callback = callback;
  55908. }
  55909. if (revertPassiveEffectsChange) {
  55910. flushPassiveEffects();
  55911. }
  55912. enqueueUpdate(current$$1, update);
  55913. scheduleWork(current$$1, expirationTime);
  55914. return expirationTime;
  55915. }
  55916. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback) {
  55917. // TODO: If this is a nested container, this won't be the root.
  55918. var current$$1 = container.current;
  55919. {
  55920. if (ReactFiberInstrumentation_1.debugTool) {
  55921. if (current$$1.alternate === null) {
  55922. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  55923. } else if (element === null) {
  55924. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  55925. } else {
  55926. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  55927. }
  55928. }
  55929. }
  55930. var context = getContextForSubtree(parentComponent);
  55931. if (container.context === null) {
  55932. container.context = context;
  55933. } else {
  55934. container.pendingContext = context;
  55935. }
  55936. return scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback);
  55937. }
  55938. function findHostInstance(component) {
  55939. var fiber = get(component);
  55940. if (fiber === undefined) {
  55941. if (typeof component.render === 'function') {
  55942. (function () {
  55943. {
  55944. {
  55945. throw ReactError(Error('Unable to find node on an unmounted component.'));
  55946. }
  55947. }
  55948. })();
  55949. } else {
  55950. (function () {
  55951. {
  55952. {
  55953. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  55954. }
  55955. }
  55956. })();
  55957. }
  55958. }
  55959. var hostFiber = findCurrentHostFiber(fiber);
  55960. if (hostFiber === null) {
  55961. return null;
  55962. }
  55963. return hostFiber.stateNode;
  55964. }
  55965. function findHostInstanceWithWarning(component, methodName) {
  55966. {
  55967. var fiber = get(component);
  55968. if (fiber === undefined) {
  55969. if (typeof component.render === 'function') {
  55970. (function () {
  55971. {
  55972. {
  55973. throw ReactError(Error('Unable to find node on an unmounted component.'));
  55974. }
  55975. }
  55976. })();
  55977. } else {
  55978. (function () {
  55979. {
  55980. {
  55981. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  55982. }
  55983. }
  55984. })();
  55985. }
  55986. }
  55987. var hostFiber = findCurrentHostFiber(fiber);
  55988. if (hostFiber === null) {
  55989. return null;
  55990. }
  55991. if (hostFiber.mode & StrictMode) {
  55992. var componentName = getComponentName(fiber.type) || 'Component';
  55993. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  55994. didWarnAboutFindNodeInStrictMode[componentName] = true;
  55995. if (fiber.mode & StrictMode) {
  55996. 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));
  55997. } else {
  55998. 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));
  55999. }
  56000. }
  56001. }
  56002. return hostFiber.stateNode;
  56003. }
  56004. return findHostInstance(component);
  56005. }
  56006. function createContainer(containerInfo, tag, hydrate) {
  56007. return createFiberRoot(containerInfo, tag, hydrate);
  56008. }
  56009. function updateContainer(element, container, parentComponent, callback) {
  56010. var current$$1 = container.current;
  56011. var currentTime = requestCurrentTime();
  56012. {
  56013. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  56014. if ('undefined' !== typeof jest) {
  56015. warnIfUnmockedScheduler(current$$1);
  56016. warnIfNotScopedWithMatchingAct(current$$1);
  56017. }
  56018. }
  56019. var suspenseConfig = requestCurrentSuspenseConfig();
  56020. var expirationTime = computeExpirationForFiber(currentTime, current$$1, suspenseConfig);
  56021. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback);
  56022. }
  56023. function getPublicRootInstance(container) {
  56024. var containerFiber = container.current;
  56025. if (!containerFiber.child) {
  56026. return null;
  56027. }
  56028. switch (containerFiber.child.tag) {
  56029. case HostComponent:
  56030. return getPublicInstance(containerFiber.child.stateNode);
  56031. default:
  56032. return containerFiber.child.stateNode;
  56033. }
  56034. }
  56035. function findHostInstanceWithNoPortals(fiber) {
  56036. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  56037. if (hostFiber === null) {
  56038. return null;
  56039. }
  56040. if (hostFiber.tag === FundamentalComponent) {
  56041. return hostFiber.stateNode.instance;
  56042. }
  56043. return hostFiber.stateNode;
  56044. }
  56045. var shouldSuspendImpl = function (fiber) {
  56046. return false;
  56047. };
  56048. function shouldSuspend(fiber) {
  56049. return shouldSuspendImpl(fiber);
  56050. }
  56051. var overrideHookState = null;
  56052. var overrideProps = null;
  56053. var scheduleUpdate = null;
  56054. var setSuspenseHandler = null;
  56055. {
  56056. var copyWithSetImpl = function (obj, path, idx, value) {
  56057. if (idx >= path.length) {
  56058. return value;
  56059. }
  56060. var key = path[idx];
  56061. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
  56062. // $FlowFixMe number or string is fine here
  56063. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  56064. return updated;
  56065. };
  56066. var copyWithSet = function (obj, path, value) {
  56067. return copyWithSetImpl(obj, path, 0, value);
  56068. };
  56069. // Support DevTools editable values for useState and useReducer.
  56070. overrideHookState = function (fiber, id, path, value) {
  56071. // For now, the "id" of stateful hooks is just the stateful hook index.
  56072. // This may change in the future with e.g. nested hooks.
  56073. var currentHook = fiber.memoizedState;
  56074. while (currentHook !== null && id > 0) {
  56075. currentHook = currentHook.next;
  56076. id--;
  56077. }
  56078. if (currentHook !== null) {
  56079. if (revertPassiveEffectsChange) {
  56080. flushPassiveEffects();
  56081. }
  56082. var newState = copyWithSet(currentHook.memoizedState, path, value);
  56083. currentHook.memoizedState = newState;
  56084. currentHook.baseState = newState;
  56085. // We aren't actually adding an update to the queue,
  56086. // because there is no update we can add for useReducer hooks that won't trigger an error.
  56087. // (There's no appropriate action type for DevTools overrides.)
  56088. // As a result though, React will see the scheduled update as a noop and bailout.
  56089. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  56090. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  56091. scheduleWork(fiber, Sync);
  56092. }
  56093. };
  56094. // Support DevTools props for function components, forwardRef, memo, host components, etc.
  56095. overrideProps = function (fiber, path, value) {
  56096. if (revertPassiveEffectsChange) {
  56097. flushPassiveEffects();
  56098. }
  56099. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  56100. if (fiber.alternate) {
  56101. fiber.alternate.pendingProps = fiber.pendingProps;
  56102. }
  56103. scheduleWork(fiber, Sync);
  56104. };
  56105. scheduleUpdate = function (fiber) {
  56106. if (revertPassiveEffectsChange) {
  56107. flushPassiveEffects();
  56108. }
  56109. scheduleWork(fiber, Sync);
  56110. };
  56111. setSuspenseHandler = function (newShouldSuspendImpl) {
  56112. shouldSuspendImpl = newShouldSuspendImpl;
  56113. };
  56114. }
  56115. function injectIntoDevTools(devToolsConfig) {
  56116. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  56117. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  56118. return injectInternals(_assign({}, devToolsConfig, {
  56119. overrideHookState: overrideHookState,
  56120. overrideProps: overrideProps,
  56121. setSuspenseHandler: setSuspenseHandler,
  56122. scheduleUpdate: scheduleUpdate,
  56123. currentDispatcherRef: ReactCurrentDispatcher,
  56124. findHostInstanceByFiber: function (fiber) {
  56125. var hostFiber = findCurrentHostFiber(fiber);
  56126. if (hostFiber === null) {
  56127. return null;
  56128. }
  56129. return hostFiber.stateNode;
  56130. },
  56131. findFiberByHostInstance: function (instance) {
  56132. if (!findFiberByHostInstance) {
  56133. // Might not be implemented by the renderer.
  56134. return null;
  56135. }
  56136. return findFiberByHostInstance(instance);
  56137. },
  56138. // React Refresh
  56139. findHostInstancesForRefresh: findHostInstancesForRefresh,
  56140. scheduleRefresh: scheduleRefresh,
  56141. scheduleRoot: scheduleRoot,
  56142. setRefreshHandler: setRefreshHandler,
  56143. // Enables DevTools to append owner stacks to error messages in DEV mode.
  56144. getCurrentFiber: function () {
  56145. return current;
  56146. }
  56147. }));
  56148. }
  56149. // This file intentionally does *not* have the Flow annotation.
  56150. // Don't add it. See `./inline-typed.js` for an explanation.
  56151. function createPortal$1(children, containerInfo,
  56152. // TODO: figure out the API for cross-renderer implementation.
  56153. implementation) {
  56154. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  56155. return {
  56156. // This tag allow us to uniquely identify this as a React Portal
  56157. $$typeof: REACT_PORTAL_TYPE,
  56158. key: key == null ? null : '' + key,
  56159. children: children,
  56160. containerInfo: containerInfo,
  56161. implementation: implementation
  56162. };
  56163. }
  56164. // TODO: this is special because it gets imported during build.
  56165. var ReactVersion = '16.9.0';
  56166. // TODO: This type is shared between the reconciler and ReactDOM, but will
  56167. // eventually be lifted out to the renderer.
  56168. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  56169. var topLevelUpdateWarnings = void 0;
  56170. var warnOnInvalidCallback = void 0;
  56171. var didWarnAboutUnstableCreatePortal = false;
  56172. {
  56173. if (typeof Map !== 'function' ||
  56174. // $FlowIssue Flow incorrectly thinks Map has no prototype
  56175. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  56176. // $FlowIssue Flow incorrectly thinks Set has no prototype
  56177. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  56178. 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');
  56179. }
  56180. topLevelUpdateWarnings = function (container) {
  56181. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  56182. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  56183. if (hostInstance) {
  56184. !(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;
  56185. }
  56186. }
  56187. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  56188. var rootEl = getReactRootElementInContainer(container);
  56189. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  56190. !(!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;
  56191. !(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;
  56192. };
  56193. warnOnInvalidCallback = function (callback, callerName) {
  56194. !(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;
  56195. };
  56196. }
  56197. setRestoreImplementation(restoreControlledState$1);
  56198. function ReactBatch(root) {
  56199. var expirationTime = computeUniqueAsyncExpiration();
  56200. this._expirationTime = expirationTime;
  56201. this._root = root;
  56202. this._next = null;
  56203. this._callbacks = null;
  56204. this._didComplete = false;
  56205. this._hasChildren = false;
  56206. this._children = null;
  56207. this._defer = true;
  56208. }
  56209. ReactBatch.prototype.render = function (children) {
  56210. var _this = this;
  56211. (function () {
  56212. if (!_this._defer) {
  56213. {
  56214. throw ReactError(Error('batch.render: Cannot render a batch that already committed.'));
  56215. }
  56216. }
  56217. })();
  56218. this._hasChildren = true;
  56219. this._children = children;
  56220. var internalRoot = this._root._internalRoot;
  56221. var expirationTime = this._expirationTime;
  56222. var work = new ReactWork();
  56223. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, null, work._onCommit);
  56224. return work;
  56225. };
  56226. ReactBatch.prototype.then = function (onComplete) {
  56227. if (this._didComplete) {
  56228. onComplete();
  56229. return;
  56230. }
  56231. var callbacks = this._callbacks;
  56232. if (callbacks === null) {
  56233. callbacks = this._callbacks = [];
  56234. }
  56235. callbacks.push(onComplete);
  56236. };
  56237. ReactBatch.prototype.commit = function () {
  56238. var _this2 = this;
  56239. var internalRoot = this._root._internalRoot;
  56240. var firstBatch = internalRoot.firstBatch;
  56241. (function () {
  56242. if (!(_this2._defer && firstBatch !== null)) {
  56243. {
  56244. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  56245. }
  56246. }
  56247. })();
  56248. if (!this._hasChildren) {
  56249. // This batch is empty. Return.
  56250. this._next = null;
  56251. this._defer = false;
  56252. return;
  56253. }
  56254. var expirationTime = this._expirationTime;
  56255. // Ensure this is the first batch in the list.
  56256. if (firstBatch !== this) {
  56257. // This batch is not the earliest batch. We need to move it to the front.
  56258. // Update its expiration time to be the expiration time of the earliest
  56259. // batch, so that we can flush it without flushing the other batches.
  56260. if (this._hasChildren) {
  56261. expirationTime = this._expirationTime = firstBatch._expirationTime;
  56262. // Rendering this batch again ensures its children will be the final state
  56263. // when we flush (updates are processed in insertion order: last
  56264. // update wins).
  56265. // TODO: This forces a restart. Should we print a warning?
  56266. this.render(this._children);
  56267. }
  56268. // Remove the batch from the list.
  56269. var previous = null;
  56270. var batch = firstBatch;
  56271. while (batch !== this) {
  56272. previous = batch;
  56273. batch = batch._next;
  56274. }
  56275. (function () {
  56276. if (!(previous !== null)) {
  56277. {
  56278. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  56279. }
  56280. }
  56281. })();
  56282. previous._next = batch._next;
  56283. // Add it to the front.
  56284. this._next = firstBatch;
  56285. firstBatch = internalRoot.firstBatch = this;
  56286. }
  56287. // Synchronously flush all the work up to this batch's expiration time.
  56288. this._defer = false;
  56289. flushRoot(internalRoot, expirationTime);
  56290. // Pop the batch from the list.
  56291. var next = this._next;
  56292. this._next = null;
  56293. firstBatch = internalRoot.firstBatch = next;
  56294. // Append the next earliest batch's children to the update queue.
  56295. if (firstBatch !== null && firstBatch._hasChildren) {
  56296. firstBatch.render(firstBatch._children);
  56297. }
  56298. };
  56299. ReactBatch.prototype._onComplete = function () {
  56300. if (this._didComplete) {
  56301. return;
  56302. }
  56303. this._didComplete = true;
  56304. var callbacks = this._callbacks;
  56305. if (callbacks === null) {
  56306. return;
  56307. }
  56308. // TODO: Error handling.
  56309. for (var i = 0; i < callbacks.length; i++) {
  56310. var _callback = callbacks[i];
  56311. _callback();
  56312. }
  56313. };
  56314. function ReactWork() {
  56315. this._callbacks = null;
  56316. this._didCommit = false;
  56317. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  56318. // list of Work objects.
  56319. this._onCommit = this._onCommit.bind(this);
  56320. }
  56321. ReactWork.prototype.then = function (onCommit) {
  56322. if (this._didCommit) {
  56323. onCommit();
  56324. return;
  56325. }
  56326. var callbacks = this._callbacks;
  56327. if (callbacks === null) {
  56328. callbacks = this._callbacks = [];
  56329. }
  56330. callbacks.push(onCommit);
  56331. };
  56332. ReactWork.prototype._onCommit = function () {
  56333. if (this._didCommit) {
  56334. return;
  56335. }
  56336. this._didCommit = true;
  56337. var callbacks = this._callbacks;
  56338. if (callbacks === null) {
  56339. return;
  56340. }
  56341. // TODO: Error handling.
  56342. for (var i = 0; i < callbacks.length; i++) {
  56343. var _callback2 = callbacks[i];
  56344. (function () {
  56345. if (!(typeof _callback2 === 'function')) {
  56346. {
  56347. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + _callback2));
  56348. }
  56349. }
  56350. })();
  56351. _callback2();
  56352. }
  56353. };
  56354. function ReactSyncRoot(container, tag, hydrate) {
  56355. // Tag is either LegacyRoot or Concurrent Root
  56356. var root = createContainer(container, tag, hydrate);
  56357. this._internalRoot = root;
  56358. }
  56359. function ReactRoot(container, hydrate) {
  56360. var root = createContainer(container, ConcurrentRoot, hydrate);
  56361. this._internalRoot = root;
  56362. }
  56363. ReactRoot.prototype.render = ReactSyncRoot.prototype.render = function (children, callback) {
  56364. var root = this._internalRoot;
  56365. var work = new ReactWork();
  56366. callback = callback === undefined ? null : callback;
  56367. {
  56368. warnOnInvalidCallback(callback, 'render');
  56369. }
  56370. if (callback !== null) {
  56371. work.then(callback);
  56372. }
  56373. updateContainer(children, root, null, work._onCommit);
  56374. return work;
  56375. };
  56376. ReactRoot.prototype.unmount = ReactSyncRoot.prototype.unmount = function (callback) {
  56377. var root = this._internalRoot;
  56378. var work = new ReactWork();
  56379. callback = callback === undefined ? null : callback;
  56380. {
  56381. warnOnInvalidCallback(callback, 'render');
  56382. }
  56383. if (callback !== null) {
  56384. work.then(callback);
  56385. }
  56386. updateContainer(null, root, null, work._onCommit);
  56387. return work;
  56388. };
  56389. // Sync roots cannot create batches. Only concurrent ones.
  56390. ReactRoot.prototype.createBatch = function () {
  56391. var batch = new ReactBatch(this);
  56392. var expirationTime = batch._expirationTime;
  56393. var internalRoot = this._internalRoot;
  56394. var firstBatch = internalRoot.firstBatch;
  56395. if (firstBatch === null) {
  56396. internalRoot.firstBatch = batch;
  56397. batch._next = null;
  56398. } else {
  56399. // Insert sorted by expiration time then insertion order
  56400. var insertAfter = null;
  56401. var insertBefore = firstBatch;
  56402. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  56403. insertAfter = insertBefore;
  56404. insertBefore = insertBefore._next;
  56405. }
  56406. batch._next = insertBefore;
  56407. if (insertAfter !== null) {
  56408. insertAfter._next = batch;
  56409. }
  56410. }
  56411. return batch;
  56412. };
  56413. /**
  56414. * True if the supplied DOM node is a valid node element.
  56415. *
  56416. * @param {?DOMElement} node The candidate DOM node.
  56417. * @return {boolean} True if the DOM is a valid DOM node.
  56418. * @internal
  56419. */
  56420. function isValidContainer(node) {
  56421. 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 '));
  56422. }
  56423. function getReactRootElementInContainer(container) {
  56424. if (!container) {
  56425. return null;
  56426. }
  56427. if (container.nodeType === DOCUMENT_NODE) {
  56428. return container.documentElement;
  56429. } else {
  56430. return container.firstChild;
  56431. }
  56432. }
  56433. function shouldHydrateDueToLegacyHeuristic(container) {
  56434. var rootElement = getReactRootElementInContainer(container);
  56435. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  56436. }
  56437. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  56438. var warnedAboutHydrateAPI = false;
  56439. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  56440. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  56441. // First clear any existing content.
  56442. if (!shouldHydrate) {
  56443. var warned = false;
  56444. var rootSibling = void 0;
  56445. while (rootSibling = container.lastChild) {
  56446. {
  56447. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  56448. warned = true;
  56449. 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.');
  56450. }
  56451. }
  56452. container.removeChild(rootSibling);
  56453. }
  56454. }
  56455. {
  56456. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  56457. warnedAboutHydrateAPI = true;
  56458. 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.');
  56459. }
  56460. }
  56461. // Legacy roots are not batched.
  56462. return new ReactSyncRoot(container, LegacyRoot, shouldHydrate);
  56463. }
  56464. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  56465. {
  56466. topLevelUpdateWarnings(container);
  56467. warnOnInvalidCallback(callback === undefined ? null : callback, 'render');
  56468. }
  56469. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  56470. // member of intersection type." Whyyyyyy.
  56471. var root = container._reactRootContainer;
  56472. var fiberRoot = void 0;
  56473. if (!root) {
  56474. // Initial mount
  56475. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  56476. fiberRoot = root._internalRoot;
  56477. if (typeof callback === 'function') {
  56478. var originalCallback = callback;
  56479. callback = function () {
  56480. var instance = getPublicRootInstance(fiberRoot);
  56481. originalCallback.call(instance);
  56482. };
  56483. }
  56484. // Initial mount should not be batched.
  56485. unbatchedUpdates(function () {
  56486. updateContainer(children, fiberRoot, parentComponent, callback);
  56487. });
  56488. } else {
  56489. fiberRoot = root._internalRoot;
  56490. if (typeof callback === 'function') {
  56491. var _originalCallback = callback;
  56492. callback = function () {
  56493. var instance = getPublicRootInstance(fiberRoot);
  56494. _originalCallback.call(instance);
  56495. };
  56496. }
  56497. // Update
  56498. updateContainer(children, fiberRoot, parentComponent, callback);
  56499. }
  56500. return getPublicRootInstance(fiberRoot);
  56501. }
  56502. function createPortal$$1(children, container) {
  56503. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  56504. (function () {
  56505. if (!isValidContainer(container)) {
  56506. {
  56507. throw ReactError(Error('Target container is not a DOM element.'));
  56508. }
  56509. }
  56510. })();
  56511. // TODO: pass ReactDOM portal implementation as third argument
  56512. return createPortal$1(children, container, null, key);
  56513. }
  56514. var ReactDOM = {
  56515. createPortal: createPortal$$1,
  56516. findDOMNode: function (componentOrElement) {
  56517. {
  56518. var owner = ReactCurrentOwner.current;
  56519. if (owner !== null && owner.stateNode !== null) {
  56520. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  56521. !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;
  56522. owner.stateNode._warnedAboutRefsInRender = true;
  56523. }
  56524. }
  56525. if (componentOrElement == null) {
  56526. return null;
  56527. }
  56528. if (componentOrElement.nodeType === ELEMENT_NODE) {
  56529. return componentOrElement;
  56530. }
  56531. {
  56532. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  56533. }
  56534. return findHostInstance(componentOrElement);
  56535. },
  56536. hydrate: function (element, container, callback) {
  56537. (function () {
  56538. if (!isValidContainer(container)) {
  56539. {
  56540. throw ReactError(Error('Target container is not a DOM element.'));
  56541. }
  56542. }
  56543. })();
  56544. {
  56545. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  56546. }
  56547. // TODO: throw or warn if we couldn't hydrate?
  56548. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  56549. },
  56550. render: function (element, container, callback) {
  56551. (function () {
  56552. if (!isValidContainer(container)) {
  56553. {
  56554. throw ReactError(Error('Target container is not a DOM element.'));
  56555. }
  56556. }
  56557. })();
  56558. {
  56559. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call root.render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  56560. }
  56561. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  56562. },
  56563. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  56564. (function () {
  56565. if (!isValidContainer(containerNode)) {
  56566. {
  56567. throw ReactError(Error('Target container is not a DOM element.'));
  56568. }
  56569. }
  56570. })();
  56571. (function () {
  56572. if (!(parentComponent != null && has(parentComponent))) {
  56573. {
  56574. throw ReactError(Error('parentComponent must be a valid React Component'));
  56575. }
  56576. }
  56577. })();
  56578. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  56579. },
  56580. unmountComponentAtNode: function (container) {
  56581. (function () {
  56582. if (!isValidContainer(container)) {
  56583. {
  56584. throw ReactError(Error('unmountComponentAtNode(...): Target container is not a DOM element.'));
  56585. }
  56586. }
  56587. })();
  56588. {
  56589. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. Did you mean to call root.unmount()?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  56590. }
  56591. if (container._reactRootContainer) {
  56592. {
  56593. var rootEl = getReactRootElementInContainer(container);
  56594. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  56595. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  56596. }
  56597. // Unmount should not be batched.
  56598. unbatchedUpdates(function () {
  56599. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  56600. container._reactRootContainer = null;
  56601. });
  56602. });
  56603. // If you call unmountComponentAtNode twice in quick succession, you'll
  56604. // get `true` twice. That's probably fine?
  56605. return true;
  56606. } else {
  56607. {
  56608. var _rootEl = getReactRootElementInContainer(container);
  56609. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  56610. // Check if the container itself is a React root node.
  56611. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  56612. !!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;
  56613. }
  56614. return false;
  56615. }
  56616. },
  56617. // Temporary alias since we already shipped React 16 RC with it.
  56618. // TODO: remove in React 17.
  56619. unstable_createPortal: function () {
  56620. if (!didWarnAboutUnstableCreatePortal) {
  56621. didWarnAboutUnstableCreatePortal = true;
  56622. 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.');
  56623. }
  56624. return createPortal$$1.apply(undefined, arguments);
  56625. },
  56626. unstable_batchedUpdates: batchedUpdates$1,
  56627. // TODO remove this legacy method, unstable_discreteUpdates replaces it
  56628. unstable_interactiveUpdates: function (fn, a, b, c) {
  56629. flushDiscreteUpdates();
  56630. return discreteUpdates$1(fn, a, b, c);
  56631. },
  56632. unstable_discreteUpdates: discreteUpdates$1,
  56633. unstable_flushDiscreteUpdates: flushDiscreteUpdates,
  56634. flushSync: flushSync,
  56635. unstable_createRoot: createRoot,
  56636. unstable_createSyncRoot: createSyncRoot,
  56637. unstable_flushControlled: flushControlled,
  56638. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  56639. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  56640. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  56641. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  56642. }
  56643. };
  56644. function createRoot(container, options) {
  56645. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  56646. (function () {
  56647. if (!isValidContainer(container)) {
  56648. {
  56649. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  56650. }
  56651. }
  56652. })();
  56653. warnIfReactDOMContainerInDEV(container);
  56654. var hydrate = options != null && options.hydrate === true;
  56655. return new ReactRoot(container, hydrate);
  56656. }
  56657. function createSyncRoot(container, options) {
  56658. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  56659. (function () {
  56660. if (!isValidContainer(container)) {
  56661. {
  56662. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  56663. }
  56664. }
  56665. })();
  56666. warnIfReactDOMContainerInDEV(container);
  56667. var hydrate = options != null && options.hydrate === true;
  56668. return new ReactSyncRoot(container, BatchedRoot, hydrate);
  56669. }
  56670. function warnIfReactDOMContainerInDEV(container) {
  56671. {
  56672. !!container._reactRootContainer ? warningWithoutStack$1(false, 'You are calling ReactDOM.%s() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  56673. container._reactHasBeenPassedToCreateRootDEV = true;
  56674. }
  56675. }
  56676. if (enableStableConcurrentModeAPIs) {
  56677. ReactDOM.createRoot = createRoot;
  56678. ReactDOM.createSyncRoot = createSyncRoot;
  56679. }
  56680. var foundDevTools = injectIntoDevTools({
  56681. findFiberByHostInstance: getClosestInstanceFromNode,
  56682. bundleType: 1,
  56683. version: ReactVersion,
  56684. rendererPackageName: 'react-dom'
  56685. });
  56686. {
  56687. if (!foundDevTools && canUseDOM && window.top === window.self) {
  56688. // If we're in Chrome or Firefox, provide a download link if not installed.
  56689. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  56690. var protocol = window.location.protocol;
  56691. // Don't warn in exotic cases like chrome-extension://.
  56692. if (/^(https?|file):$/.test(protocol)) {
  56693. 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');
  56694. }
  56695. }
  56696. }
  56697. }
  56698. var ReactDOM$2 = Object.freeze({
  56699. default: ReactDOM
  56700. });
  56701. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  56702. // TODO: decide on the top-level export form.
  56703. // This is hacky but makes it work with both Rollup and Jest.
  56704. var reactDom = ReactDOM$3.default || ReactDOM$3;
  56705. module.exports = reactDom;
  56706. })();
  56707. }
  56708. /***/ }),
  56709. /***/ "../../node_modules/react-dom/index.js":
  56710. /*!***********************************************************!*\
  56711. !*** C:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  56712. \***********************************************************/
  56713. /*! no static exports found */
  56714. /***/ (function(module, exports, __webpack_require__) {
  56715. "use strict";
  56716. function checkDCE() {
  56717. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  56718. if (
  56719. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  56720. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  56721. ) {
  56722. return;
  56723. }
  56724. if (true) {
  56725. // This branch is unreachable because this function is only called
  56726. // in production, but the condition is true only in development.
  56727. // Therefore if the branch is still here, dead code elimination wasn't
  56728. // properly applied.
  56729. // Don't change the message. React DevTools relies on it. Also make sure
  56730. // this message doesn't occur elsewhere in this function, or it will cause
  56731. // a false positive.
  56732. throw new Error('^_^');
  56733. }
  56734. try {
  56735. // Verify that the code above has been dead code eliminated (DCE'd).
  56736. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  56737. } catch (err) {
  56738. // DevTools shouldn't crash React, no matter what.
  56739. // We should still report in case we break this code.
  56740. console.error(err);
  56741. }
  56742. }
  56743. if (false) {} else {
  56744. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  56745. }
  56746. /***/ }),
  56747. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  56748. /*!*****************************************************************************!*\
  56749. !*** C:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  56750. \*****************************************************************************/
  56751. /*! no static exports found */
  56752. /***/ (function(module, exports, __webpack_require__) {
  56753. "use strict";
  56754. /** @license React v16.8.6
  56755. * react-is.development.js
  56756. *
  56757. * Copyright (c) Facebook, Inc. and its affiliates.
  56758. *
  56759. * This source code is licensed under the MIT license found in the
  56760. * LICENSE file in the root directory of this source tree.
  56761. */
  56762. if (true) {
  56763. (function() {
  56764. 'use strict';
  56765. Object.defineProperty(exports, '__esModule', { value: true });
  56766. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  56767. // nor polyfill, then a plain number is used for performance.
  56768. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  56769. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  56770. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  56771. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  56772. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  56773. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  56774. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  56775. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  56776. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  56777. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  56778. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  56779. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  56780. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  56781. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  56782. function isValidElementType(type) {
  56783. return typeof type === 'string' || typeof type === 'function' ||
  56784. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  56785. 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);
  56786. }
  56787. /**
  56788. * Forked from fbjs/warning:
  56789. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  56790. *
  56791. * Only change is we use console.warn instead of console.error,
  56792. * and do nothing when 'console' is not supported.
  56793. * This really simplifies the code.
  56794. * ---
  56795. * Similar to invariant but only logs a warning if the condition is not met.
  56796. * This can be used to log issues in development environments in critical
  56797. * paths. Removing the logging code for production environments will keep the
  56798. * same logic and follow the same code paths.
  56799. */
  56800. var lowPriorityWarning = function () {};
  56801. {
  56802. var printWarning = function (format) {
  56803. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  56804. args[_key - 1] = arguments[_key];
  56805. }
  56806. var argIndex = 0;
  56807. var message = 'Warning: ' + format.replace(/%s/g, function () {
  56808. return args[argIndex++];
  56809. });
  56810. if (typeof console !== 'undefined') {
  56811. console.warn(message);
  56812. }
  56813. try {
  56814. // --- Welcome to debugging React ---
  56815. // This error was thrown as a convenience so that you can use this stack
  56816. // to find the callsite that caused this warning to fire.
  56817. throw new Error(message);
  56818. } catch (x) {}
  56819. };
  56820. lowPriorityWarning = function (condition, format) {
  56821. if (format === undefined) {
  56822. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  56823. }
  56824. if (!condition) {
  56825. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  56826. args[_key2 - 2] = arguments[_key2];
  56827. }
  56828. printWarning.apply(undefined, [format].concat(args));
  56829. }
  56830. };
  56831. }
  56832. var lowPriorityWarning$1 = lowPriorityWarning;
  56833. function typeOf(object) {
  56834. if (typeof object === 'object' && object !== null) {
  56835. var $$typeof = object.$$typeof;
  56836. switch ($$typeof) {
  56837. case REACT_ELEMENT_TYPE:
  56838. var type = object.type;
  56839. switch (type) {
  56840. case REACT_ASYNC_MODE_TYPE:
  56841. case REACT_CONCURRENT_MODE_TYPE:
  56842. case REACT_FRAGMENT_TYPE:
  56843. case REACT_PROFILER_TYPE:
  56844. case REACT_STRICT_MODE_TYPE:
  56845. case REACT_SUSPENSE_TYPE:
  56846. return type;
  56847. default:
  56848. var $$typeofType = type && type.$$typeof;
  56849. switch ($$typeofType) {
  56850. case REACT_CONTEXT_TYPE:
  56851. case REACT_FORWARD_REF_TYPE:
  56852. case REACT_PROVIDER_TYPE:
  56853. return $$typeofType;
  56854. default:
  56855. return $$typeof;
  56856. }
  56857. }
  56858. case REACT_LAZY_TYPE:
  56859. case REACT_MEMO_TYPE:
  56860. case REACT_PORTAL_TYPE:
  56861. return $$typeof;
  56862. }
  56863. }
  56864. return undefined;
  56865. }
  56866. // AsyncMode is deprecated along with isAsyncMode
  56867. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  56868. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  56869. var ContextConsumer = REACT_CONTEXT_TYPE;
  56870. var ContextProvider = REACT_PROVIDER_TYPE;
  56871. var Element = REACT_ELEMENT_TYPE;
  56872. var ForwardRef = REACT_FORWARD_REF_TYPE;
  56873. var Fragment = REACT_FRAGMENT_TYPE;
  56874. var Lazy = REACT_LAZY_TYPE;
  56875. var Memo = REACT_MEMO_TYPE;
  56876. var Portal = REACT_PORTAL_TYPE;
  56877. var Profiler = REACT_PROFILER_TYPE;
  56878. var StrictMode = REACT_STRICT_MODE_TYPE;
  56879. var Suspense = REACT_SUSPENSE_TYPE;
  56880. var hasWarnedAboutDeprecatedIsAsyncMode = false;
  56881. // AsyncMode should be deprecated
  56882. function isAsyncMode(object) {
  56883. {
  56884. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  56885. hasWarnedAboutDeprecatedIsAsyncMode = true;
  56886. lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
  56887. }
  56888. }
  56889. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  56890. }
  56891. function isConcurrentMode(object) {
  56892. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  56893. }
  56894. function isContextConsumer(object) {
  56895. return typeOf(object) === REACT_CONTEXT_TYPE;
  56896. }
  56897. function isContextProvider(object) {
  56898. return typeOf(object) === REACT_PROVIDER_TYPE;
  56899. }
  56900. function isElement(object) {
  56901. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  56902. }
  56903. function isForwardRef(object) {
  56904. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  56905. }
  56906. function isFragment(object) {
  56907. return typeOf(object) === REACT_FRAGMENT_TYPE;
  56908. }
  56909. function isLazy(object) {
  56910. return typeOf(object) === REACT_LAZY_TYPE;
  56911. }
  56912. function isMemo(object) {
  56913. return typeOf(object) === REACT_MEMO_TYPE;
  56914. }
  56915. function isPortal(object) {
  56916. return typeOf(object) === REACT_PORTAL_TYPE;
  56917. }
  56918. function isProfiler(object) {
  56919. return typeOf(object) === REACT_PROFILER_TYPE;
  56920. }
  56921. function isStrictMode(object) {
  56922. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  56923. }
  56924. function isSuspense(object) {
  56925. return typeOf(object) === REACT_SUSPENSE_TYPE;
  56926. }
  56927. exports.typeOf = typeOf;
  56928. exports.AsyncMode = AsyncMode;
  56929. exports.ConcurrentMode = ConcurrentMode;
  56930. exports.ContextConsumer = ContextConsumer;
  56931. exports.ContextProvider = ContextProvider;
  56932. exports.Element = Element;
  56933. exports.ForwardRef = ForwardRef;
  56934. exports.Fragment = Fragment;
  56935. exports.Lazy = Lazy;
  56936. exports.Memo = Memo;
  56937. exports.Portal = Portal;
  56938. exports.Profiler = Profiler;
  56939. exports.StrictMode = StrictMode;
  56940. exports.Suspense = Suspense;
  56941. exports.isValidElementType = isValidElementType;
  56942. exports.isAsyncMode = isAsyncMode;
  56943. exports.isConcurrentMode = isConcurrentMode;
  56944. exports.isContextConsumer = isContextConsumer;
  56945. exports.isContextProvider = isContextProvider;
  56946. exports.isElement = isElement;
  56947. exports.isForwardRef = isForwardRef;
  56948. exports.isFragment = isFragment;
  56949. exports.isLazy = isLazy;
  56950. exports.isMemo = isMemo;
  56951. exports.isPortal = isPortal;
  56952. exports.isProfiler = isProfiler;
  56953. exports.isStrictMode = isStrictMode;
  56954. exports.isSuspense = isSuspense;
  56955. })();
  56956. }
  56957. /***/ }),
  56958. /***/ "../../node_modules/react-is/index.js":
  56959. /*!**********************************************************!*\
  56960. !*** C:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  56961. \**********************************************************/
  56962. /*! no static exports found */
  56963. /***/ (function(module, exports, __webpack_require__) {
  56964. "use strict";
  56965. if (false) {} else {
  56966. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  56967. }
  56968. /***/ }),
  56969. /***/ "../../node_modules/react/cjs/react.development.js":
  56970. /*!***********************************************************************!*\
  56971. !*** C:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  56972. \***********************************************************************/
  56973. /*! no static exports found */
  56974. /***/ (function(module, exports, __webpack_require__) {
  56975. "use strict";
  56976. /** @license React v16.9.0
  56977. * react.development.js
  56978. *
  56979. * Copyright (c) Facebook, Inc. and its affiliates.
  56980. *
  56981. * This source code is licensed under the MIT license found in the
  56982. * LICENSE file in the root directory of this source tree.
  56983. */
  56984. if (true) {
  56985. (function() {
  56986. 'use strict';
  56987. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  56988. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  56989. // TODO: this is special because it gets imported during build.
  56990. var ReactVersion = '16.9.0';
  56991. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  56992. // nor polyfill, then a plain number is used for performance.
  56993. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  56994. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  56995. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  56996. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  56997. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  56998. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  56999. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  57000. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  57001. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  57002. // (unstable) APIs that have been removed. Can we remove the symbols?
  57003. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  57004. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  57005. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  57006. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  57007. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  57008. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  57009. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  57010. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  57011. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  57012. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  57013. function getIteratorFn(maybeIterable) {
  57014. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  57015. return null;
  57016. }
  57017. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  57018. if (typeof maybeIterator === 'function') {
  57019. return maybeIterator;
  57020. }
  57021. return null;
  57022. }
  57023. // Do not require this module directly! Use normal `invariant` calls with
  57024. // template literal strings. The messages will be converted to ReactError during
  57025. // build, and in production they will be minified.
  57026. // Do not require this module directly! Use normal `invariant` calls with
  57027. // template literal strings. The messages will be converted to ReactError during
  57028. // build, and in production they will be minified.
  57029. function ReactError(error) {
  57030. error.name = 'Invariant Violation';
  57031. return error;
  57032. }
  57033. /**
  57034. * Use invariant() to assert state which your program assumes to be true.
  57035. *
  57036. * Provide sprintf-style format (only %s is supported) and arguments
  57037. * to provide information about what broke and what you were
  57038. * expecting.
  57039. *
  57040. * The invariant message will be stripped in production, but the invariant
  57041. * will remain to ensure logic does not differ in production.
  57042. */
  57043. /**
  57044. * Forked from fbjs/warning:
  57045. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  57046. *
  57047. * Only change is we use console.warn instead of console.error,
  57048. * and do nothing when 'console' is not supported.
  57049. * This really simplifies the code.
  57050. * ---
  57051. * Similar to invariant but only logs a warning if the condition is not met.
  57052. * This can be used to log issues in development environments in critical
  57053. * paths. Removing the logging code for production environments will keep the
  57054. * same logic and follow the same code paths.
  57055. */
  57056. var lowPriorityWarning = function () {};
  57057. {
  57058. var printWarning = function (format) {
  57059. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  57060. args[_key - 1] = arguments[_key];
  57061. }
  57062. var argIndex = 0;
  57063. var message = 'Warning: ' + format.replace(/%s/g, function () {
  57064. return args[argIndex++];
  57065. });
  57066. if (typeof console !== 'undefined') {
  57067. console.warn(message);
  57068. }
  57069. try {
  57070. // --- Welcome to debugging React ---
  57071. // This error was thrown as a convenience so that you can use this stack
  57072. // to find the callsite that caused this warning to fire.
  57073. throw new Error(message);
  57074. } catch (x) {}
  57075. };
  57076. lowPriorityWarning = function (condition, format) {
  57077. if (format === undefined) {
  57078. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  57079. }
  57080. if (!condition) {
  57081. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  57082. args[_key2 - 2] = arguments[_key2];
  57083. }
  57084. printWarning.apply(undefined, [format].concat(args));
  57085. }
  57086. };
  57087. }
  57088. var lowPriorityWarning$1 = lowPriorityWarning;
  57089. /**
  57090. * Similar to invariant but only logs a warning if the condition is not met.
  57091. * This can be used to log issues in development environments in critical
  57092. * paths. Removing the logging code for production environments will keep the
  57093. * same logic and follow the same code paths.
  57094. */
  57095. var warningWithoutStack = function () {};
  57096. {
  57097. warningWithoutStack = function (condition, format) {
  57098. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  57099. args[_key - 2] = arguments[_key];
  57100. }
  57101. if (format === undefined) {
  57102. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  57103. }
  57104. if (args.length > 8) {
  57105. // Check before the condition to catch violations early.
  57106. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  57107. }
  57108. if (condition) {
  57109. return;
  57110. }
  57111. if (typeof console !== 'undefined') {
  57112. var argsWithFormat = args.map(function (item) {
  57113. return '' + item;
  57114. });
  57115. argsWithFormat.unshift('Warning: ' + format);
  57116. // We intentionally don't use spread (or .apply) directly because it
  57117. // breaks IE9: https://github.com/facebook/react/issues/13610
  57118. Function.prototype.apply.call(console.error, console, argsWithFormat);
  57119. }
  57120. try {
  57121. // --- Welcome to debugging React ---
  57122. // This error was thrown as a convenience so that you can use this stack
  57123. // to find the callsite that caused this warning to fire.
  57124. var argIndex = 0;
  57125. var message = 'Warning: ' + format.replace(/%s/g, function () {
  57126. return args[argIndex++];
  57127. });
  57128. throw new Error(message);
  57129. } catch (x) {}
  57130. };
  57131. }
  57132. var warningWithoutStack$1 = warningWithoutStack;
  57133. var didWarnStateUpdateForUnmountedComponent = {};
  57134. function warnNoop(publicInstance, callerName) {
  57135. {
  57136. var _constructor = publicInstance.constructor;
  57137. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  57138. var warningKey = componentName + '.' + callerName;
  57139. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  57140. return;
  57141. }
  57142. 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);
  57143. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  57144. }
  57145. }
  57146. /**
  57147. * This is the abstract API for an update queue.
  57148. */
  57149. var ReactNoopUpdateQueue = {
  57150. /**
  57151. * Checks whether or not this composite component is mounted.
  57152. * @param {ReactClass} publicInstance The instance we want to test.
  57153. * @return {boolean} True if mounted, false otherwise.
  57154. * @protected
  57155. * @final
  57156. */
  57157. isMounted: function (publicInstance) {
  57158. return false;
  57159. },
  57160. /**
  57161. * Forces an update. This should only be invoked when it is known with
  57162. * certainty that we are **not** in a DOM transaction.
  57163. *
  57164. * You may want to call this when you know that some deeper aspect of the
  57165. * component's state has changed but `setState` was not called.
  57166. *
  57167. * This will not invoke `shouldComponentUpdate`, but it will invoke
  57168. * `componentWillUpdate` and `componentDidUpdate`.
  57169. *
  57170. * @param {ReactClass} publicInstance The instance that should rerender.
  57171. * @param {?function} callback Called after component is updated.
  57172. * @param {?string} callerName name of the calling function in the public API.
  57173. * @internal
  57174. */
  57175. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  57176. warnNoop(publicInstance, 'forceUpdate');
  57177. },
  57178. /**
  57179. * Replaces all of the state. Always use this or `setState` to mutate state.
  57180. * You should treat `this.state` as immutable.
  57181. *
  57182. * There is no guarantee that `this.state` will be immediately updated, so
  57183. * accessing `this.state` after calling this method may return the old value.
  57184. *
  57185. * @param {ReactClass} publicInstance The instance that should rerender.
  57186. * @param {object} completeState Next state.
  57187. * @param {?function} callback Called after component is updated.
  57188. * @param {?string} callerName name of the calling function in the public API.
  57189. * @internal
  57190. */
  57191. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  57192. warnNoop(publicInstance, 'replaceState');
  57193. },
  57194. /**
  57195. * Sets a subset of the state. This only exists because _pendingState is
  57196. * internal. This provides a merging strategy that is not available to deep
  57197. * properties which is confusing. TODO: Expose pendingState or don't use it
  57198. * during the merge.
  57199. *
  57200. * @param {ReactClass} publicInstance The instance that should rerender.
  57201. * @param {object} partialState Next partial state to be merged with state.
  57202. * @param {?function} callback Called after component is updated.
  57203. * @param {?string} Name of the calling function in the public API.
  57204. * @internal
  57205. */
  57206. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  57207. warnNoop(publicInstance, 'setState');
  57208. }
  57209. };
  57210. var emptyObject = {};
  57211. {
  57212. Object.freeze(emptyObject);
  57213. }
  57214. /**
  57215. * Base class helpers for the updating state of a component.
  57216. */
  57217. function Component(props, context, updater) {
  57218. this.props = props;
  57219. this.context = context;
  57220. // If a component has string refs, we will assign a different object later.
  57221. this.refs = emptyObject;
  57222. // We initialize the default updater but the real one gets injected by the
  57223. // renderer.
  57224. this.updater = updater || ReactNoopUpdateQueue;
  57225. }
  57226. Component.prototype.isReactComponent = {};
  57227. /**
  57228. * Sets a subset of the state. Always use this to mutate
  57229. * state. You should treat `this.state` as immutable.
  57230. *
  57231. * There is no guarantee that `this.state` will be immediately updated, so
  57232. * accessing `this.state` after calling this method may return the old value.
  57233. *
  57234. * There is no guarantee that calls to `setState` will run synchronously,
  57235. * as they may eventually be batched together. You can provide an optional
  57236. * callback that will be executed when the call to setState is actually
  57237. * completed.
  57238. *
  57239. * When a function is provided to setState, it will be called at some point in
  57240. * the future (not synchronously). It will be called with the up to date
  57241. * component arguments (state, props, context). These values can be different
  57242. * from this.* because your function may be called after receiveProps but before
  57243. * shouldComponentUpdate, and this new state, props, and context will not yet be
  57244. * assigned to this.
  57245. *
  57246. * @param {object|function} partialState Next partial state or function to
  57247. * produce next partial state to be merged with current state.
  57248. * @param {?function} callback Called after state is updated.
  57249. * @final
  57250. * @protected
  57251. */
  57252. Component.prototype.setState = function (partialState, callback) {
  57253. (function () {
  57254. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  57255. {
  57256. throw ReactError(Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.'));
  57257. }
  57258. }
  57259. })();
  57260. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  57261. };
  57262. /**
  57263. * Forces an update. This should only be invoked when it is known with
  57264. * certainty that we are **not** in a DOM transaction.
  57265. *
  57266. * You may want to call this when you know that some deeper aspect of the
  57267. * component's state has changed but `setState` was not called.
  57268. *
  57269. * This will not invoke `shouldComponentUpdate`, but it will invoke
  57270. * `componentWillUpdate` and `componentDidUpdate`.
  57271. *
  57272. * @param {?function} callback Called after update is complete.
  57273. * @final
  57274. * @protected
  57275. */
  57276. Component.prototype.forceUpdate = function (callback) {
  57277. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  57278. };
  57279. /**
  57280. * Deprecated APIs. These APIs used to exist on classic React classes but since
  57281. * we would like to deprecate them, we're not going to move them over to this
  57282. * modern base class. Instead, we define a getter that warns if it's accessed.
  57283. */
  57284. {
  57285. var deprecatedAPIs = {
  57286. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  57287. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  57288. };
  57289. var defineDeprecationWarning = function (methodName, info) {
  57290. Object.defineProperty(Component.prototype, methodName, {
  57291. get: function () {
  57292. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  57293. return undefined;
  57294. }
  57295. });
  57296. };
  57297. for (var fnName in deprecatedAPIs) {
  57298. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  57299. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  57300. }
  57301. }
  57302. }
  57303. function ComponentDummy() {}
  57304. ComponentDummy.prototype = Component.prototype;
  57305. /**
  57306. * Convenience component with default shallow equality check for sCU.
  57307. */
  57308. function PureComponent(props, context, updater) {
  57309. this.props = props;
  57310. this.context = context;
  57311. // If a component has string refs, we will assign a different object later.
  57312. this.refs = emptyObject;
  57313. this.updater = updater || ReactNoopUpdateQueue;
  57314. }
  57315. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  57316. pureComponentPrototype.constructor = PureComponent;
  57317. // Avoid an extra prototype jump for these methods.
  57318. _assign(pureComponentPrototype, Component.prototype);
  57319. pureComponentPrototype.isPureReactComponent = true;
  57320. // an immutable object with a single mutable value
  57321. function createRef() {
  57322. var refObject = {
  57323. current: null
  57324. };
  57325. {
  57326. Object.seal(refObject);
  57327. }
  57328. return refObject;
  57329. }
  57330. /**
  57331. * Keeps track of the current dispatcher.
  57332. */
  57333. var ReactCurrentDispatcher = {
  57334. /**
  57335. * @internal
  57336. * @type {ReactComponent}
  57337. */
  57338. current: null
  57339. };
  57340. /**
  57341. * Keeps track of the current batch's configuration such as how long an update
  57342. * should suspend for if it needs to.
  57343. */
  57344. var ReactCurrentBatchConfig = {
  57345. suspense: null
  57346. };
  57347. /**
  57348. * Keeps track of the current owner.
  57349. *
  57350. * The current owner is the component who should own any components that are
  57351. * currently being constructed.
  57352. */
  57353. var ReactCurrentOwner = {
  57354. /**
  57355. * @internal
  57356. * @type {ReactComponent}
  57357. */
  57358. current: null
  57359. };
  57360. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  57361. var describeComponentFrame = function (name, source, ownerName) {
  57362. var sourceInfo = '';
  57363. if (source) {
  57364. var path = source.fileName;
  57365. var fileName = path.replace(BEFORE_SLASH_RE, '');
  57366. {
  57367. // In DEV, include code for a common special case:
  57368. // prefer "folder/index.js" instead of just "index.js".
  57369. if (/^index\./.test(fileName)) {
  57370. var match = path.match(BEFORE_SLASH_RE);
  57371. if (match) {
  57372. var pathBeforeSlash = match[1];
  57373. if (pathBeforeSlash) {
  57374. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  57375. fileName = folderName + '/' + fileName;
  57376. }
  57377. }
  57378. }
  57379. }
  57380. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  57381. } else if (ownerName) {
  57382. sourceInfo = ' (created by ' + ownerName + ')';
  57383. }
  57384. return '\n in ' + (name || 'Unknown') + sourceInfo;
  57385. };
  57386. var Resolved = 1;
  57387. function refineResolvedLazyComponent(lazyComponent) {
  57388. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  57389. }
  57390. function getWrappedName(outerType, innerType, wrapperName) {
  57391. var functionName = innerType.displayName || innerType.name || '';
  57392. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  57393. }
  57394. function getComponentName(type) {
  57395. if (type == null) {
  57396. // Host root, text node or just invalid type.
  57397. return null;
  57398. }
  57399. {
  57400. if (typeof type.tag === 'number') {
  57401. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  57402. }
  57403. }
  57404. if (typeof type === 'function') {
  57405. return type.displayName || type.name || null;
  57406. }
  57407. if (typeof type === 'string') {
  57408. return type;
  57409. }
  57410. switch (type) {
  57411. case REACT_FRAGMENT_TYPE:
  57412. return 'Fragment';
  57413. case REACT_PORTAL_TYPE:
  57414. return 'Portal';
  57415. case REACT_PROFILER_TYPE:
  57416. return 'Profiler';
  57417. case REACT_STRICT_MODE_TYPE:
  57418. return 'StrictMode';
  57419. case REACT_SUSPENSE_TYPE:
  57420. return 'Suspense';
  57421. case REACT_SUSPENSE_LIST_TYPE:
  57422. return 'SuspenseList';
  57423. }
  57424. if (typeof type === 'object') {
  57425. switch (type.$$typeof) {
  57426. case REACT_CONTEXT_TYPE:
  57427. return 'Context.Consumer';
  57428. case REACT_PROVIDER_TYPE:
  57429. return 'Context.Provider';
  57430. case REACT_FORWARD_REF_TYPE:
  57431. return getWrappedName(type, type.render, 'ForwardRef');
  57432. case REACT_MEMO_TYPE:
  57433. return getComponentName(type.type);
  57434. case REACT_LAZY_TYPE:
  57435. {
  57436. var thenable = type;
  57437. var resolvedThenable = refineResolvedLazyComponent(thenable);
  57438. if (resolvedThenable) {
  57439. return getComponentName(resolvedThenable);
  57440. }
  57441. break;
  57442. }
  57443. }
  57444. }
  57445. return null;
  57446. }
  57447. var ReactDebugCurrentFrame = {};
  57448. var currentlyValidatingElement = null;
  57449. function setCurrentlyValidatingElement(element) {
  57450. {
  57451. currentlyValidatingElement = element;
  57452. }
  57453. }
  57454. {
  57455. // Stack implementation injected by the current renderer.
  57456. ReactDebugCurrentFrame.getCurrentStack = null;
  57457. ReactDebugCurrentFrame.getStackAddendum = function () {
  57458. var stack = '';
  57459. // Add an extra top frame while an element is being validated
  57460. if (currentlyValidatingElement) {
  57461. var name = getComponentName(currentlyValidatingElement.type);
  57462. var owner = currentlyValidatingElement._owner;
  57463. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  57464. }
  57465. // Delegate to the injected renderer-specific implementation
  57466. var impl = ReactDebugCurrentFrame.getCurrentStack;
  57467. if (impl) {
  57468. stack += impl() || '';
  57469. }
  57470. return stack;
  57471. };
  57472. }
  57473. /**
  57474. * Used by act() to track whether you're inside an act() scope.
  57475. */
  57476. var IsSomeRendererActing = {
  57477. current: false
  57478. };
  57479. var ReactSharedInternals = {
  57480. ReactCurrentDispatcher: ReactCurrentDispatcher,
  57481. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  57482. ReactCurrentOwner: ReactCurrentOwner,
  57483. IsSomeRendererActing: IsSomeRendererActing,
  57484. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  57485. assign: _assign
  57486. };
  57487. {
  57488. _assign(ReactSharedInternals, {
  57489. // These should not be included in production.
  57490. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  57491. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  57492. // TODO: remove in React 17.0.
  57493. ReactComponentTreeHook: {}
  57494. });
  57495. }
  57496. /**
  57497. * Similar to invariant but only logs a warning if the condition is not met.
  57498. * This can be used to log issues in development environments in critical
  57499. * paths. Removing the logging code for production environments will keep the
  57500. * same logic and follow the same code paths.
  57501. */
  57502. var warning = warningWithoutStack$1;
  57503. {
  57504. warning = function (condition, format) {
  57505. if (condition) {
  57506. return;
  57507. }
  57508. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  57509. var stack = ReactDebugCurrentFrame.getStackAddendum();
  57510. // eslint-disable-next-line react-internal/warning-and-invariant-args
  57511. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  57512. args[_key - 2] = arguments[_key];
  57513. }
  57514. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  57515. };
  57516. }
  57517. var warning$1 = warning;
  57518. var hasOwnProperty = Object.prototype.hasOwnProperty;
  57519. var RESERVED_PROPS = {
  57520. key: true,
  57521. ref: true,
  57522. __self: true,
  57523. __source: true
  57524. };
  57525. var specialPropKeyWarningShown = void 0;
  57526. var specialPropRefWarningShown = void 0;
  57527. function hasValidRef(config) {
  57528. {
  57529. if (hasOwnProperty.call(config, 'ref')) {
  57530. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  57531. if (getter && getter.isReactWarning) {
  57532. return false;
  57533. }
  57534. }
  57535. }
  57536. return config.ref !== undefined;
  57537. }
  57538. function hasValidKey(config) {
  57539. {
  57540. if (hasOwnProperty.call(config, 'key')) {
  57541. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  57542. if (getter && getter.isReactWarning) {
  57543. return false;
  57544. }
  57545. }
  57546. }
  57547. return config.key !== undefined;
  57548. }
  57549. function defineKeyPropWarningGetter(props, displayName) {
  57550. var warnAboutAccessingKey = function () {
  57551. if (!specialPropKeyWarningShown) {
  57552. specialPropKeyWarningShown = true;
  57553. 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);
  57554. }
  57555. };
  57556. warnAboutAccessingKey.isReactWarning = true;
  57557. Object.defineProperty(props, 'key', {
  57558. get: warnAboutAccessingKey,
  57559. configurable: true
  57560. });
  57561. }
  57562. function defineRefPropWarningGetter(props, displayName) {
  57563. var warnAboutAccessingRef = function () {
  57564. if (!specialPropRefWarningShown) {
  57565. specialPropRefWarningShown = true;
  57566. 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);
  57567. }
  57568. };
  57569. warnAboutAccessingRef.isReactWarning = true;
  57570. Object.defineProperty(props, 'ref', {
  57571. get: warnAboutAccessingRef,
  57572. configurable: true
  57573. });
  57574. }
  57575. /**
  57576. * Factory method to create a new React element. This no longer adheres to
  57577. * the class pattern, so do not use new to call it. Also, no instanceof check
  57578. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  57579. * if something is a React Element.
  57580. *
  57581. * @param {*} type
  57582. * @param {*} props
  57583. * @param {*} key
  57584. * @param {string|object} ref
  57585. * @param {*} owner
  57586. * @param {*} self A *temporary* helper to detect places where `this` is
  57587. * different from the `owner` when React.createElement is called, so that we
  57588. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  57589. * functions, and as long as `this` and owner are the same, there will be no
  57590. * change in behavior.
  57591. * @param {*} source An annotation object (added by a transpiler or otherwise)
  57592. * indicating filename, line number, and/or other information.
  57593. * @internal
  57594. */
  57595. var ReactElement = function (type, key, ref, self, source, owner, props) {
  57596. var element = {
  57597. // This tag allows us to uniquely identify this as a React Element
  57598. $$typeof: REACT_ELEMENT_TYPE,
  57599. // Built-in properties that belong on the element
  57600. type: type,
  57601. key: key,
  57602. ref: ref,
  57603. props: props,
  57604. // Record the component responsible for creating this element.
  57605. _owner: owner
  57606. };
  57607. {
  57608. // The validation flag is currently mutative. We put it on
  57609. // an external backing store so that we can freeze the whole object.
  57610. // This can be replaced with a WeakMap once they are implemented in
  57611. // commonly used development environments.
  57612. element._store = {};
  57613. // To make comparing ReactElements easier for testing purposes, we make
  57614. // the validation flag non-enumerable (where possible, which should
  57615. // include every environment we run tests in), so the test framework
  57616. // ignores it.
  57617. Object.defineProperty(element._store, 'validated', {
  57618. configurable: false,
  57619. enumerable: false,
  57620. writable: true,
  57621. value: false
  57622. });
  57623. // self and source are DEV only properties.
  57624. Object.defineProperty(element, '_self', {
  57625. configurable: false,
  57626. enumerable: false,
  57627. writable: false,
  57628. value: self
  57629. });
  57630. // Two elements created in two different places should be considered
  57631. // equal for testing purposes and therefore we hide it from enumeration.
  57632. Object.defineProperty(element, '_source', {
  57633. configurable: false,
  57634. enumerable: false,
  57635. writable: false,
  57636. value: source
  57637. });
  57638. if (Object.freeze) {
  57639. Object.freeze(element.props);
  57640. Object.freeze(element);
  57641. }
  57642. }
  57643. return element;
  57644. };
  57645. /**
  57646. * https://github.com/reactjs/rfcs/pull/107
  57647. * @param {*} type
  57648. * @param {object} props
  57649. * @param {string} key
  57650. */
  57651. /**
  57652. * https://github.com/reactjs/rfcs/pull/107
  57653. * @param {*} type
  57654. * @param {object} props
  57655. * @param {string} key
  57656. */
  57657. function jsxDEV(type, config, maybeKey, source, self) {
  57658. var propName = void 0;
  57659. // Reserved names are extracted
  57660. var props = {};
  57661. var key = null;
  57662. var ref = null;
  57663. if (hasValidRef(config)) {
  57664. ref = config.ref;
  57665. }
  57666. if (hasValidKey(config)) {
  57667. key = '' + config.key;
  57668. }
  57669. // Remaining properties are added to a new props object
  57670. for (propName in config) {
  57671. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  57672. props[propName] = config[propName];
  57673. }
  57674. }
  57675. // intentionally not checking if key was set above
  57676. // this key is higher priority as it's static
  57677. if (maybeKey !== undefined) {
  57678. key = '' + maybeKey;
  57679. }
  57680. // Resolve default props
  57681. if (type && type.defaultProps) {
  57682. var defaultProps = type.defaultProps;
  57683. for (propName in defaultProps) {
  57684. if (props[propName] === undefined) {
  57685. props[propName] = defaultProps[propName];
  57686. }
  57687. }
  57688. }
  57689. if (key || ref) {
  57690. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  57691. if (key) {
  57692. defineKeyPropWarningGetter(props, displayName);
  57693. }
  57694. if (ref) {
  57695. defineRefPropWarningGetter(props, displayName);
  57696. }
  57697. }
  57698. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  57699. }
  57700. /**
  57701. * Create and return a new ReactElement of the given type.
  57702. * See https://reactjs.org/docs/react-api.html#createelement
  57703. */
  57704. function createElement(type, config, children) {
  57705. var propName = void 0;
  57706. // Reserved names are extracted
  57707. var props = {};
  57708. var key = null;
  57709. var ref = null;
  57710. var self = null;
  57711. var source = null;
  57712. if (config != null) {
  57713. if (hasValidRef(config)) {
  57714. ref = config.ref;
  57715. }
  57716. if (hasValidKey(config)) {
  57717. key = '' + config.key;
  57718. }
  57719. self = config.__self === undefined ? null : config.__self;
  57720. source = config.__source === undefined ? null : config.__source;
  57721. // Remaining properties are added to a new props object
  57722. for (propName in config) {
  57723. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  57724. props[propName] = config[propName];
  57725. }
  57726. }
  57727. }
  57728. // Children can be more than one argument, and those are transferred onto
  57729. // the newly allocated props object.
  57730. var childrenLength = arguments.length - 2;
  57731. if (childrenLength === 1) {
  57732. props.children = children;
  57733. } else if (childrenLength > 1) {
  57734. var childArray = Array(childrenLength);
  57735. for (var i = 0; i < childrenLength; i++) {
  57736. childArray[i] = arguments[i + 2];
  57737. }
  57738. {
  57739. if (Object.freeze) {
  57740. Object.freeze(childArray);
  57741. }
  57742. }
  57743. props.children = childArray;
  57744. }
  57745. // Resolve default props
  57746. if (type && type.defaultProps) {
  57747. var defaultProps = type.defaultProps;
  57748. for (propName in defaultProps) {
  57749. if (props[propName] === undefined) {
  57750. props[propName] = defaultProps[propName];
  57751. }
  57752. }
  57753. }
  57754. {
  57755. if (key || ref) {
  57756. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  57757. if (key) {
  57758. defineKeyPropWarningGetter(props, displayName);
  57759. }
  57760. if (ref) {
  57761. defineRefPropWarningGetter(props, displayName);
  57762. }
  57763. }
  57764. }
  57765. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  57766. }
  57767. /**
  57768. * Return a function that produces ReactElements of a given type.
  57769. * See https://reactjs.org/docs/react-api.html#createfactory
  57770. */
  57771. function cloneAndReplaceKey(oldElement, newKey) {
  57772. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  57773. return newElement;
  57774. }
  57775. /**
  57776. * Clone and return a new ReactElement using element as the starting point.
  57777. * See https://reactjs.org/docs/react-api.html#cloneelement
  57778. */
  57779. function cloneElement(element, config, children) {
  57780. (function () {
  57781. if (!!(element === null || element === undefined)) {
  57782. {
  57783. throw ReactError(Error('React.cloneElement(...): The argument must be a React element, but you passed ' + element + '.'));
  57784. }
  57785. }
  57786. })();
  57787. var propName = void 0;
  57788. // Original props are copied
  57789. var props = _assign({}, element.props);
  57790. // Reserved names are extracted
  57791. var key = element.key;
  57792. var ref = element.ref;
  57793. // Self is preserved since the owner is preserved.
  57794. var self = element._self;
  57795. // Source is preserved since cloneElement is unlikely to be targeted by a
  57796. // transpiler, and the original source is probably a better indicator of the
  57797. // true owner.
  57798. var source = element._source;
  57799. // Owner will be preserved, unless ref is overridden
  57800. var owner = element._owner;
  57801. if (config != null) {
  57802. if (hasValidRef(config)) {
  57803. // Silently steal the ref from the parent.
  57804. ref = config.ref;
  57805. owner = ReactCurrentOwner.current;
  57806. }
  57807. if (hasValidKey(config)) {
  57808. key = '' + config.key;
  57809. }
  57810. // Remaining properties override existing props
  57811. var defaultProps = void 0;
  57812. if (element.type && element.type.defaultProps) {
  57813. defaultProps = element.type.defaultProps;
  57814. }
  57815. for (propName in config) {
  57816. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  57817. if (config[propName] === undefined && defaultProps !== undefined) {
  57818. // Resolve default props
  57819. props[propName] = defaultProps[propName];
  57820. } else {
  57821. props[propName] = config[propName];
  57822. }
  57823. }
  57824. }
  57825. }
  57826. // Children can be more than one argument, and those are transferred onto
  57827. // the newly allocated props object.
  57828. var childrenLength = arguments.length - 2;
  57829. if (childrenLength === 1) {
  57830. props.children = children;
  57831. } else if (childrenLength > 1) {
  57832. var childArray = Array(childrenLength);
  57833. for (var i = 0; i < childrenLength; i++) {
  57834. childArray[i] = arguments[i + 2];
  57835. }
  57836. props.children = childArray;
  57837. }
  57838. return ReactElement(element.type, key, ref, self, source, owner, props);
  57839. }
  57840. /**
  57841. * Verifies the object is a ReactElement.
  57842. * See https://reactjs.org/docs/react-api.html#isvalidelement
  57843. * @param {?object} object
  57844. * @return {boolean} True if `object` is a ReactElement.
  57845. * @final
  57846. */
  57847. function isValidElement(object) {
  57848. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  57849. }
  57850. var SEPARATOR = '.';
  57851. var SUBSEPARATOR = ':';
  57852. /**
  57853. * Escape and wrap key so it is safe to use as a reactid
  57854. *
  57855. * @param {string} key to be escaped.
  57856. * @return {string} the escaped key.
  57857. */
  57858. function escape(key) {
  57859. var escapeRegex = /[=:]/g;
  57860. var escaperLookup = {
  57861. '=': '=0',
  57862. ':': '=2'
  57863. };
  57864. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  57865. return escaperLookup[match];
  57866. });
  57867. return '$' + escapedString;
  57868. }
  57869. /**
  57870. * TODO: Test that a single child and an array with one item have the same key
  57871. * pattern.
  57872. */
  57873. var didWarnAboutMaps = false;
  57874. var userProvidedKeyEscapeRegex = /\/+/g;
  57875. function escapeUserProvidedKey(text) {
  57876. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  57877. }
  57878. var POOL_SIZE = 10;
  57879. var traverseContextPool = [];
  57880. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  57881. if (traverseContextPool.length) {
  57882. var traverseContext = traverseContextPool.pop();
  57883. traverseContext.result = mapResult;
  57884. traverseContext.keyPrefix = keyPrefix;
  57885. traverseContext.func = mapFunction;
  57886. traverseContext.context = mapContext;
  57887. traverseContext.count = 0;
  57888. return traverseContext;
  57889. } else {
  57890. return {
  57891. result: mapResult,
  57892. keyPrefix: keyPrefix,
  57893. func: mapFunction,
  57894. context: mapContext,
  57895. count: 0
  57896. };
  57897. }
  57898. }
  57899. function releaseTraverseContext(traverseContext) {
  57900. traverseContext.result = null;
  57901. traverseContext.keyPrefix = null;
  57902. traverseContext.func = null;
  57903. traverseContext.context = null;
  57904. traverseContext.count = 0;
  57905. if (traverseContextPool.length < POOL_SIZE) {
  57906. traverseContextPool.push(traverseContext);
  57907. }
  57908. }
  57909. /**
  57910. * @param {?*} children Children tree container.
  57911. * @param {!string} nameSoFar Name of the key path so far.
  57912. * @param {!function} callback Callback to invoke with each child found.
  57913. * @param {?*} traverseContext Used to pass information throughout the traversal
  57914. * process.
  57915. * @return {!number} The number of children in this subtree.
  57916. */
  57917. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  57918. var type = typeof children;
  57919. if (type === 'undefined' || type === 'boolean') {
  57920. // All of the above are perceived as null.
  57921. children = null;
  57922. }
  57923. var invokeCallback = false;
  57924. if (children === null) {
  57925. invokeCallback = true;
  57926. } else {
  57927. switch (type) {
  57928. case 'string':
  57929. case 'number':
  57930. invokeCallback = true;
  57931. break;
  57932. case 'object':
  57933. switch (children.$$typeof) {
  57934. case REACT_ELEMENT_TYPE:
  57935. case REACT_PORTAL_TYPE:
  57936. invokeCallback = true;
  57937. }
  57938. }
  57939. }
  57940. if (invokeCallback) {
  57941. callback(traverseContext, children,
  57942. // If it's the only child, treat the name as if it was wrapped in an array
  57943. // so that it's consistent if the number of children grows.
  57944. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  57945. return 1;
  57946. }
  57947. var child = void 0;
  57948. var nextName = void 0;
  57949. var subtreeCount = 0; // Count of children found in the current subtree.
  57950. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  57951. if (Array.isArray(children)) {
  57952. for (var i = 0; i < children.length; i++) {
  57953. child = children[i];
  57954. nextName = nextNamePrefix + getComponentKey(child, i);
  57955. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  57956. }
  57957. } else {
  57958. var iteratorFn = getIteratorFn(children);
  57959. if (typeof iteratorFn === 'function') {
  57960. {
  57961. // Warn about using Maps as children
  57962. if (iteratorFn === children.entries) {
  57963. !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;
  57964. didWarnAboutMaps = true;
  57965. }
  57966. }
  57967. var iterator = iteratorFn.call(children);
  57968. var step = void 0;
  57969. var ii = 0;
  57970. while (!(step = iterator.next()).done) {
  57971. child = step.value;
  57972. nextName = nextNamePrefix + getComponentKey(child, ii++);
  57973. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  57974. }
  57975. } else if (type === 'object') {
  57976. var addendum = '';
  57977. {
  57978. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  57979. }
  57980. var childrenString = '' + children;
  57981. (function () {
  57982. {
  57983. {
  57984. throw ReactError(Error('Objects are not valid as a React child (found: ' + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ').' + addendum));
  57985. }
  57986. }
  57987. })();
  57988. }
  57989. }
  57990. return subtreeCount;
  57991. }
  57992. /**
  57993. * Traverses children that are typically specified as `props.children`, but
  57994. * might also be specified through attributes:
  57995. *
  57996. * - `traverseAllChildren(this.props.children, ...)`
  57997. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  57998. *
  57999. * The `traverseContext` is an optional argument that is passed through the
  58000. * entire traversal. It can be used to store accumulations or anything else that
  58001. * the callback might find relevant.
  58002. *
  58003. * @param {?*} children Children tree object.
  58004. * @param {!function} callback To invoke upon traversing each child.
  58005. * @param {?*} traverseContext Context for traversal.
  58006. * @return {!number} The number of children in this subtree.
  58007. */
  58008. function traverseAllChildren(children, callback, traverseContext) {
  58009. if (children == null) {
  58010. return 0;
  58011. }
  58012. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  58013. }
  58014. /**
  58015. * Generate a key string that identifies a component within a set.
  58016. *
  58017. * @param {*} component A component that could contain a manual key.
  58018. * @param {number} index Index that is used if a manual key is not provided.
  58019. * @return {string}
  58020. */
  58021. function getComponentKey(component, index) {
  58022. // Do some typechecking here since we call this blindly. We want to ensure
  58023. // that we don't block potential future ES APIs.
  58024. if (typeof component === 'object' && component !== null && component.key != null) {
  58025. // Explicit key
  58026. return escape(component.key);
  58027. }
  58028. // Implicit key determined by the index in the set
  58029. return index.toString(36);
  58030. }
  58031. function forEachSingleChild(bookKeeping, child, name) {
  58032. var func = bookKeeping.func,
  58033. context = bookKeeping.context;
  58034. func.call(context, child, bookKeeping.count++);
  58035. }
  58036. /**
  58037. * Iterates through children that are typically specified as `props.children`.
  58038. *
  58039. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  58040. *
  58041. * The provided forEachFunc(child, index) will be called for each
  58042. * leaf child.
  58043. *
  58044. * @param {?*} children Children tree container.
  58045. * @param {function(*, int)} forEachFunc
  58046. * @param {*} forEachContext Context for forEachContext.
  58047. */
  58048. function forEachChildren(children, forEachFunc, forEachContext) {
  58049. if (children == null) {
  58050. return children;
  58051. }
  58052. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  58053. traverseAllChildren(children, forEachSingleChild, traverseContext);
  58054. releaseTraverseContext(traverseContext);
  58055. }
  58056. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  58057. var result = bookKeeping.result,
  58058. keyPrefix = bookKeeping.keyPrefix,
  58059. func = bookKeeping.func,
  58060. context = bookKeeping.context;
  58061. var mappedChild = func.call(context, child, bookKeeping.count++);
  58062. if (Array.isArray(mappedChild)) {
  58063. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  58064. return c;
  58065. });
  58066. } else if (mappedChild != null) {
  58067. if (isValidElement(mappedChild)) {
  58068. mappedChild = cloneAndReplaceKey(mappedChild,
  58069. // Keep both the (mapped) and old keys if they differ, just as
  58070. // traverseAllChildren used to do for objects as children
  58071. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  58072. }
  58073. result.push(mappedChild);
  58074. }
  58075. }
  58076. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  58077. var escapedPrefix = '';
  58078. if (prefix != null) {
  58079. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  58080. }
  58081. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  58082. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  58083. releaseTraverseContext(traverseContext);
  58084. }
  58085. /**
  58086. * Maps children that are typically specified as `props.children`.
  58087. *
  58088. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  58089. *
  58090. * The provided mapFunction(child, key, index) will be called for each
  58091. * leaf child.
  58092. *
  58093. * @param {?*} children Children tree container.
  58094. * @param {function(*, int)} func The map function.
  58095. * @param {*} context Context for mapFunction.
  58096. * @return {object} Object containing the ordered map of results.
  58097. */
  58098. function mapChildren(children, func, context) {
  58099. if (children == null) {
  58100. return children;
  58101. }
  58102. var result = [];
  58103. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  58104. return result;
  58105. }
  58106. /**
  58107. * Count the number of children that are typically specified as
  58108. * `props.children`.
  58109. *
  58110. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  58111. *
  58112. * @param {?*} children Children tree container.
  58113. * @return {number} The number of children.
  58114. */
  58115. function countChildren(children) {
  58116. return traverseAllChildren(children, function () {
  58117. return null;
  58118. }, null);
  58119. }
  58120. /**
  58121. * Flatten a children object (typically specified as `props.children`) and
  58122. * return an array with appropriately re-keyed children.
  58123. *
  58124. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  58125. */
  58126. function toArray(children) {
  58127. var result = [];
  58128. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  58129. return child;
  58130. });
  58131. return result;
  58132. }
  58133. /**
  58134. * Returns the first child in a collection of children and verifies that there
  58135. * is only one child in the collection.
  58136. *
  58137. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  58138. *
  58139. * The current implementation of this function assumes that a single child gets
  58140. * passed without a wrapper, but the purpose of this helper function is to
  58141. * abstract away the particular structure of children.
  58142. *
  58143. * @param {?object} children Child collection structure.
  58144. * @return {ReactElement} The first and only `ReactElement` contained in the
  58145. * structure.
  58146. */
  58147. function onlyChild(children) {
  58148. (function () {
  58149. if (!isValidElement(children)) {
  58150. {
  58151. throw ReactError(Error('React.Children.only expected to receive a single React element child.'));
  58152. }
  58153. }
  58154. })();
  58155. return children;
  58156. }
  58157. function createContext(defaultValue, calculateChangedBits) {
  58158. if (calculateChangedBits === undefined) {
  58159. calculateChangedBits = null;
  58160. } else {
  58161. {
  58162. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  58163. }
  58164. }
  58165. var context = {
  58166. $$typeof: REACT_CONTEXT_TYPE,
  58167. _calculateChangedBits: calculateChangedBits,
  58168. // As a workaround to support multiple concurrent renderers, we categorize
  58169. // some renderers as primary and others as secondary. We only expect
  58170. // there to be two concurrent renderers at most: React Native (primary) and
  58171. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  58172. // Secondary renderers store their context values on separate fields.
  58173. _currentValue: defaultValue,
  58174. _currentValue2: defaultValue,
  58175. // Used to track how many concurrent renderers this context currently
  58176. // supports within in a single renderer. Such as parallel server rendering.
  58177. _threadCount: 0,
  58178. // These are circular
  58179. Provider: null,
  58180. Consumer: null
  58181. };
  58182. context.Provider = {
  58183. $$typeof: REACT_PROVIDER_TYPE,
  58184. _context: context
  58185. };
  58186. var hasWarnedAboutUsingNestedContextConsumers = false;
  58187. var hasWarnedAboutUsingConsumerProvider = false;
  58188. {
  58189. // A separate object, but proxies back to the original context object for
  58190. // backwards compatibility. It has a different $$typeof, so we can properly
  58191. // warn for the incorrect usage of Context as a Consumer.
  58192. var Consumer = {
  58193. $$typeof: REACT_CONTEXT_TYPE,
  58194. _context: context,
  58195. _calculateChangedBits: context._calculateChangedBits
  58196. };
  58197. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  58198. Object.defineProperties(Consumer, {
  58199. Provider: {
  58200. get: function () {
  58201. if (!hasWarnedAboutUsingConsumerProvider) {
  58202. hasWarnedAboutUsingConsumerProvider = true;
  58203. 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?');
  58204. }
  58205. return context.Provider;
  58206. },
  58207. set: function (_Provider) {
  58208. context.Provider = _Provider;
  58209. }
  58210. },
  58211. _currentValue: {
  58212. get: function () {
  58213. return context._currentValue;
  58214. },
  58215. set: function (_currentValue) {
  58216. context._currentValue = _currentValue;
  58217. }
  58218. },
  58219. _currentValue2: {
  58220. get: function () {
  58221. return context._currentValue2;
  58222. },
  58223. set: function (_currentValue2) {
  58224. context._currentValue2 = _currentValue2;
  58225. }
  58226. },
  58227. _threadCount: {
  58228. get: function () {
  58229. return context._threadCount;
  58230. },
  58231. set: function (_threadCount) {
  58232. context._threadCount = _threadCount;
  58233. }
  58234. },
  58235. Consumer: {
  58236. get: function () {
  58237. if (!hasWarnedAboutUsingNestedContextConsumers) {
  58238. hasWarnedAboutUsingNestedContextConsumers = true;
  58239. 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?');
  58240. }
  58241. return context.Consumer;
  58242. }
  58243. }
  58244. });
  58245. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  58246. context.Consumer = Consumer;
  58247. }
  58248. {
  58249. context._currentRenderer = null;
  58250. context._currentRenderer2 = null;
  58251. }
  58252. return context;
  58253. }
  58254. function lazy(ctor) {
  58255. var lazyType = {
  58256. $$typeof: REACT_LAZY_TYPE,
  58257. _ctor: ctor,
  58258. // React uses these fields to store the result.
  58259. _status: -1,
  58260. _result: null
  58261. };
  58262. {
  58263. // In production, this would just set it on the object.
  58264. var defaultProps = void 0;
  58265. var propTypes = void 0;
  58266. Object.defineProperties(lazyType, {
  58267. defaultProps: {
  58268. configurable: true,
  58269. get: function () {
  58270. return defaultProps;
  58271. },
  58272. set: function (newDefaultProps) {
  58273. warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  58274. defaultProps = newDefaultProps;
  58275. // Match production behavior more closely:
  58276. Object.defineProperty(lazyType, 'defaultProps', {
  58277. enumerable: true
  58278. });
  58279. }
  58280. },
  58281. propTypes: {
  58282. configurable: true,
  58283. get: function () {
  58284. return propTypes;
  58285. },
  58286. set: function (newPropTypes) {
  58287. warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  58288. propTypes = newPropTypes;
  58289. // Match production behavior more closely:
  58290. Object.defineProperty(lazyType, 'propTypes', {
  58291. enumerable: true
  58292. });
  58293. }
  58294. }
  58295. });
  58296. }
  58297. return lazyType;
  58298. }
  58299. function forwardRef(render) {
  58300. {
  58301. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  58302. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  58303. } else if (typeof render !== 'function') {
  58304. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  58305. } else {
  58306. !(
  58307. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  58308. 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;
  58309. }
  58310. if (render != null) {
  58311. !(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;
  58312. }
  58313. }
  58314. return {
  58315. $$typeof: REACT_FORWARD_REF_TYPE,
  58316. render: render
  58317. };
  58318. }
  58319. function isValidElementType(type) {
  58320. return typeof type === 'string' || typeof type === 'function' ||
  58321. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  58322. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE);
  58323. }
  58324. function memo(type, compare) {
  58325. {
  58326. if (!isValidElementType(type)) {
  58327. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  58328. }
  58329. }
  58330. return {
  58331. $$typeof: REACT_MEMO_TYPE,
  58332. type: type,
  58333. compare: compare === undefined ? null : compare
  58334. };
  58335. }
  58336. function resolveDispatcher() {
  58337. var dispatcher = ReactCurrentDispatcher.current;
  58338. (function () {
  58339. if (!(dispatcher !== null)) {
  58340. {
  58341. throw ReactError(Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  58342. }
  58343. }
  58344. })();
  58345. return dispatcher;
  58346. }
  58347. function useContext(Context, unstable_observedBits) {
  58348. var dispatcher = resolveDispatcher();
  58349. {
  58350. !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0;
  58351. // TODO: add a more generic warning for invalid values.
  58352. if (Context._context !== undefined) {
  58353. var realContext = Context._context;
  58354. // Don't deduplicate because this legitimately causes bugs
  58355. // and nobody should be using this in existing code.
  58356. if (realContext.Consumer === Context) {
  58357. 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?');
  58358. } else if (realContext.Provider === Context) {
  58359. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  58360. }
  58361. }
  58362. }
  58363. return dispatcher.useContext(Context, unstable_observedBits);
  58364. }
  58365. function useState(initialState) {
  58366. var dispatcher = resolveDispatcher();
  58367. return dispatcher.useState(initialState);
  58368. }
  58369. function useReducer(reducer, initialArg, init) {
  58370. var dispatcher = resolveDispatcher();
  58371. return dispatcher.useReducer(reducer, initialArg, init);
  58372. }
  58373. function useRef(initialValue) {
  58374. var dispatcher = resolveDispatcher();
  58375. return dispatcher.useRef(initialValue);
  58376. }
  58377. function useEffect(create, inputs) {
  58378. var dispatcher = resolveDispatcher();
  58379. return dispatcher.useEffect(create, inputs);
  58380. }
  58381. function useLayoutEffect(create, inputs) {
  58382. var dispatcher = resolveDispatcher();
  58383. return dispatcher.useLayoutEffect(create, inputs);
  58384. }
  58385. function useCallback(callback, inputs) {
  58386. var dispatcher = resolveDispatcher();
  58387. return dispatcher.useCallback(callback, inputs);
  58388. }
  58389. function useMemo(create, inputs) {
  58390. var dispatcher = resolveDispatcher();
  58391. return dispatcher.useMemo(create, inputs);
  58392. }
  58393. function useImperativeHandle(ref, create, inputs) {
  58394. var dispatcher = resolveDispatcher();
  58395. return dispatcher.useImperativeHandle(ref, create, inputs);
  58396. }
  58397. function useDebugValue(value, formatterFn) {
  58398. {
  58399. var dispatcher = resolveDispatcher();
  58400. return dispatcher.useDebugValue(value, formatterFn);
  58401. }
  58402. }
  58403. var emptyObject$1 = {};
  58404. function useResponder(responder, listenerProps) {
  58405. var dispatcher = resolveDispatcher();
  58406. {
  58407. if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
  58408. warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
  58409. return;
  58410. }
  58411. }
  58412. return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
  58413. }
  58414. // Within the scope of the callback, mark all updates as being allowed to suspend.
  58415. function withSuspenseConfig(scope, config) {
  58416. var previousConfig = ReactCurrentBatchConfig.suspense;
  58417. ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
  58418. try {
  58419. scope();
  58420. } finally {
  58421. ReactCurrentBatchConfig.suspense = previousConfig;
  58422. }
  58423. }
  58424. /**
  58425. * ReactElementValidator provides a wrapper around a element factory
  58426. * which validates the props passed to the element. This is intended to be
  58427. * used only in DEV and could be replaced by a static type checker for languages
  58428. * that support it.
  58429. */
  58430. var propTypesMisspellWarningShown = void 0;
  58431. {
  58432. propTypesMisspellWarningShown = false;
  58433. }
  58434. function getDeclarationErrorAddendum() {
  58435. if (ReactCurrentOwner.current) {
  58436. var name = getComponentName(ReactCurrentOwner.current.type);
  58437. if (name) {
  58438. return '\n\nCheck the render method of `' + name + '`.';
  58439. }
  58440. }
  58441. return '';
  58442. }
  58443. function getSourceInfoErrorAddendum(source) {
  58444. if (source !== undefined) {
  58445. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  58446. var lineNumber = source.lineNumber;
  58447. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  58448. }
  58449. return '';
  58450. }
  58451. function getSourceInfoErrorAddendumForProps(elementProps) {
  58452. if (elementProps !== null && elementProps !== undefined) {
  58453. return getSourceInfoErrorAddendum(elementProps.__source);
  58454. }
  58455. return '';
  58456. }
  58457. /**
  58458. * Warn if there's no key explicitly set on dynamic arrays of children or
  58459. * object keys are not valid. This allows us to keep track of children between
  58460. * updates.
  58461. */
  58462. var ownerHasKeyUseWarning = {};
  58463. function getCurrentComponentErrorInfo(parentType) {
  58464. var info = getDeclarationErrorAddendum();
  58465. if (!info) {
  58466. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  58467. if (parentName) {
  58468. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  58469. }
  58470. }
  58471. return info;
  58472. }
  58473. /**
  58474. * Warn if the element doesn't have an explicit key assigned to it.
  58475. * This element is in an array. The array could grow and shrink or be
  58476. * reordered. All children that haven't already been validated are required to
  58477. * have a "key" property assigned to it. Error statuses are cached so a warning
  58478. * will only be shown once.
  58479. *
  58480. * @internal
  58481. * @param {ReactElement} element Element that requires a key.
  58482. * @param {*} parentType element's parent's type.
  58483. */
  58484. function validateExplicitKey(element, parentType) {
  58485. if (!element._store || element._store.validated || element.key != null) {
  58486. return;
  58487. }
  58488. element._store.validated = true;
  58489. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  58490. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  58491. return;
  58492. }
  58493. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  58494. // Usually the current owner is the offender, but if it accepts children as a
  58495. // property, it may be the creator of the child that's responsible for
  58496. // assigning it a key.
  58497. var childOwner = '';
  58498. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  58499. // Give the component that originally created this child.
  58500. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  58501. }
  58502. setCurrentlyValidatingElement(element);
  58503. {
  58504. warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  58505. }
  58506. setCurrentlyValidatingElement(null);
  58507. }
  58508. /**
  58509. * Ensure that every element either is passed in a static location, in an
  58510. * array with an explicit keys property defined, or in an object literal
  58511. * with valid key property.
  58512. *
  58513. * @internal
  58514. * @param {ReactNode} node Statically passed child of any type.
  58515. * @param {*} parentType node's parent's type.
  58516. */
  58517. function validateChildKeys(node, parentType) {
  58518. if (typeof node !== 'object') {
  58519. return;
  58520. }
  58521. if (Array.isArray(node)) {
  58522. for (var i = 0; i < node.length; i++) {
  58523. var child = node[i];
  58524. if (isValidElement(child)) {
  58525. validateExplicitKey(child, parentType);
  58526. }
  58527. }
  58528. } else if (isValidElement(node)) {
  58529. // This element was passed in a valid location.
  58530. if (node._store) {
  58531. node._store.validated = true;
  58532. }
  58533. } else if (node) {
  58534. var iteratorFn = getIteratorFn(node);
  58535. if (typeof iteratorFn === 'function') {
  58536. // Entry iterators used to provide implicit keys,
  58537. // but now we print a separate warning for them later.
  58538. if (iteratorFn !== node.entries) {
  58539. var iterator = iteratorFn.call(node);
  58540. var step = void 0;
  58541. while (!(step = iterator.next()).done) {
  58542. if (isValidElement(step.value)) {
  58543. validateExplicitKey(step.value, parentType);
  58544. }
  58545. }
  58546. }
  58547. }
  58548. }
  58549. }
  58550. /**
  58551. * Given an element, validate that its props follow the propTypes definition,
  58552. * provided by the type.
  58553. *
  58554. * @param {ReactElement} element
  58555. */
  58556. function validatePropTypes(element) {
  58557. var type = element.type;
  58558. if (type === null || type === undefined || typeof type === 'string') {
  58559. return;
  58560. }
  58561. var name = getComponentName(type);
  58562. var propTypes = void 0;
  58563. if (typeof type === 'function') {
  58564. propTypes = type.propTypes;
  58565. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
  58566. // Note: Memo only checks outer props here.
  58567. // Inner props are checked in the reconciler.
  58568. type.$$typeof === REACT_MEMO_TYPE)) {
  58569. propTypes = type.propTypes;
  58570. } else {
  58571. return;
  58572. }
  58573. if (propTypes) {
  58574. setCurrentlyValidatingElement(element);
  58575. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  58576. setCurrentlyValidatingElement(null);
  58577. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  58578. propTypesMisspellWarningShown = true;
  58579. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  58580. }
  58581. if (typeof type.getDefaultProps === 'function') {
  58582. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  58583. }
  58584. }
  58585. /**
  58586. * Given a fragment, validate that it can only be provided with fragment props
  58587. * @param {ReactElement} fragment
  58588. */
  58589. function validateFragmentProps(fragment) {
  58590. setCurrentlyValidatingElement(fragment);
  58591. var keys = Object.keys(fragment.props);
  58592. for (var i = 0; i < keys.length; i++) {
  58593. var key = keys[i];
  58594. if (key !== 'children' && key !== 'key') {
  58595. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  58596. break;
  58597. }
  58598. }
  58599. if (fragment.ref !== null) {
  58600. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  58601. }
  58602. setCurrentlyValidatingElement(null);
  58603. }
  58604. function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
  58605. var validType = isValidElementType(type);
  58606. // We warn in this case but don't throw. We expect the element creation to
  58607. // succeed and there will likely be errors in render.
  58608. if (!validType) {
  58609. var info = '';
  58610. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  58611. 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.";
  58612. }
  58613. var sourceInfo = getSourceInfoErrorAddendum(source);
  58614. if (sourceInfo) {
  58615. info += sourceInfo;
  58616. } else {
  58617. info += getDeclarationErrorAddendum();
  58618. }
  58619. var typeString = void 0;
  58620. if (type === null) {
  58621. typeString = 'null';
  58622. } else if (Array.isArray(type)) {
  58623. typeString = 'array';
  58624. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  58625. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  58626. info = ' Did you accidentally export a JSX literal instead of a component?';
  58627. } else {
  58628. typeString = typeof type;
  58629. }
  58630. warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  58631. }
  58632. var element = jsxDEV(type, props, key, source, self);
  58633. // The result can be nullish if a mock or a custom function is used.
  58634. // TODO: Drop this when these are no longer allowed as the type argument.
  58635. if (element == null) {
  58636. return element;
  58637. }
  58638. // Skip key warning if the type isn't valid since our key validation logic
  58639. // doesn't expect a non-string/function type and can throw confusing errors.
  58640. // We don't want exception behavior to differ between dev and prod.
  58641. // (Rendering will throw with a helpful message and as soon as the type is
  58642. // fixed, the key warnings will appear.)
  58643. if (validType) {
  58644. var children = props.children;
  58645. if (children !== undefined) {
  58646. if (isStaticChildren) {
  58647. for (var i = 0; i < children.length; i++) {
  58648. validateChildKeys(children[i], type);
  58649. }
  58650. } else {
  58651. validateChildKeys(children, type);
  58652. }
  58653. }
  58654. }
  58655. if (props.key !== undefined) {
  58656. warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. <ComponentName {...props} key={key} />');
  58657. }
  58658. if (type === REACT_FRAGMENT_TYPE) {
  58659. validateFragmentProps(element);
  58660. } else {
  58661. validatePropTypes(element);
  58662. }
  58663. return element;
  58664. }
  58665. // These two functions exist to still get child warnings in dev
  58666. // even with the prod transform. This means that jsxDEV is purely
  58667. // opt-in behavior for better messages but that we won't stop
  58668. // giving you warnings if you use production apis.
  58669. function jsxWithValidationStatic(type, props, key) {
  58670. return jsxWithValidation(type, props, key, true);
  58671. }
  58672. function jsxWithValidationDynamic(type, props, key) {
  58673. return jsxWithValidation(type, props, key, false);
  58674. }
  58675. function createElementWithValidation(type, props, children) {
  58676. var validType = isValidElementType(type);
  58677. // We warn in this case but don't throw. We expect the element creation to
  58678. // succeed and there will likely be errors in render.
  58679. if (!validType) {
  58680. var info = '';
  58681. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  58682. 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.";
  58683. }
  58684. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  58685. if (sourceInfo) {
  58686. info += sourceInfo;
  58687. } else {
  58688. info += getDeclarationErrorAddendum();
  58689. }
  58690. var typeString = void 0;
  58691. if (type === null) {
  58692. typeString = 'null';
  58693. } else if (Array.isArray(type)) {
  58694. typeString = 'array';
  58695. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  58696. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  58697. info = ' Did you accidentally export a JSX literal instead of a component?';
  58698. } else {
  58699. typeString = typeof type;
  58700. }
  58701. 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);
  58702. }
  58703. var element = createElement.apply(this, arguments);
  58704. // The result can be nullish if a mock or a custom function is used.
  58705. // TODO: Drop this when these are no longer allowed as the type argument.
  58706. if (element == null) {
  58707. return element;
  58708. }
  58709. // Skip key warning if the type isn't valid since our key validation logic
  58710. // doesn't expect a non-string/function type and can throw confusing errors.
  58711. // We don't want exception behavior to differ between dev and prod.
  58712. // (Rendering will throw with a helpful message and as soon as the type is
  58713. // fixed, the key warnings will appear.)
  58714. if (validType) {
  58715. for (var i = 2; i < arguments.length; i++) {
  58716. validateChildKeys(arguments[i], type);
  58717. }
  58718. }
  58719. if (type === REACT_FRAGMENT_TYPE) {
  58720. validateFragmentProps(element);
  58721. } else {
  58722. validatePropTypes(element);
  58723. }
  58724. return element;
  58725. }
  58726. function createFactoryWithValidation(type) {
  58727. var validatedFactory = createElementWithValidation.bind(null, type);
  58728. validatedFactory.type = type;
  58729. // Legacy hook: remove it
  58730. {
  58731. Object.defineProperty(validatedFactory, 'type', {
  58732. enumerable: false,
  58733. get: function () {
  58734. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  58735. Object.defineProperty(this, 'type', {
  58736. value: type
  58737. });
  58738. return type;
  58739. }
  58740. });
  58741. }
  58742. return validatedFactory;
  58743. }
  58744. function cloneElementWithValidation(element, props, children) {
  58745. var newElement = cloneElement.apply(this, arguments);
  58746. for (var i = 2; i < arguments.length; i++) {
  58747. validateChildKeys(arguments[i], newElement.type);
  58748. }
  58749. validatePropTypes(newElement);
  58750. return newElement;
  58751. }
  58752. var hasBadMapPolyfill = void 0;
  58753. {
  58754. hasBadMapPolyfill = false;
  58755. try {
  58756. var frozenObject = Object.freeze({});
  58757. var testMap = new Map([[frozenObject, null]]);
  58758. var testSet = new Set([frozenObject]);
  58759. // This is necessary for Rollup to not consider these unused.
  58760. // https://github.com/rollup/rollup/issues/1771
  58761. // TODO: we can remove these if Rollup fixes the bug.
  58762. testMap.set(0, 0);
  58763. testSet.add(0);
  58764. } catch (e) {
  58765. // TODO: Consider warning about bad polyfills
  58766. hasBadMapPolyfill = true;
  58767. }
  58768. }
  58769. function createFundamentalComponent(impl) {
  58770. // We use responder as a Map key later on. When we have a bad
  58771. // polyfill, then we can't use it as a key as the polyfill tries
  58772. // to add a property to the object.
  58773. if ( true && !hasBadMapPolyfill) {
  58774. Object.freeze(impl);
  58775. }
  58776. var fundamantalComponent = {
  58777. $$typeof: REACT_FUNDAMENTAL_TYPE,
  58778. impl: impl
  58779. };
  58780. {
  58781. Object.freeze(fundamantalComponent);
  58782. }
  58783. return fundamantalComponent;
  58784. }
  58785. function createEventResponder(displayName, responderConfig) {
  58786. var getInitialState = responderConfig.getInitialState,
  58787. onEvent = responderConfig.onEvent,
  58788. onMount = responderConfig.onMount,
  58789. onUnmount = responderConfig.onUnmount,
  58790. onOwnershipChange = responderConfig.onOwnershipChange,
  58791. onRootEvent = responderConfig.onRootEvent,
  58792. rootEventTypes = responderConfig.rootEventTypes,
  58793. targetEventTypes = responderConfig.targetEventTypes;
  58794. var eventResponder = {
  58795. $$typeof: REACT_RESPONDER_TYPE,
  58796. displayName: displayName,
  58797. getInitialState: getInitialState || null,
  58798. onEvent: onEvent || null,
  58799. onMount: onMount || null,
  58800. onOwnershipChange: onOwnershipChange || null,
  58801. onRootEvent: onRootEvent || null,
  58802. onUnmount: onUnmount || null,
  58803. rootEventTypes: rootEventTypes || null,
  58804. targetEventTypes: targetEventTypes || null
  58805. };
  58806. // We use responder as a Map key later on. When we have a bad
  58807. // polyfill, then we can't use it as a key as the polyfill tries
  58808. // to add a property to the object.
  58809. if ( true && !hasBadMapPolyfill) {
  58810. Object.freeze(eventResponder);
  58811. }
  58812. return eventResponder;
  58813. }
  58814. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  58815. // In some cases, StrictMode should also double-render lifecycles.
  58816. // This can be confusing for tests though,
  58817. // And it can be bad for performance in production.
  58818. // This feature flag can be used to control the behavior:
  58819. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  58820. // replay the begin phase of a failed component inside invokeGuardedCallback.
  58821. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  58822. // Gather advanced timing metrics for Profiler subtrees.
  58823. // Trace which interactions trigger each commit.
  58824. // Only used in www builds.
  58825. // TODO: true? Here it might just be false.
  58826. // Only used in www builds.
  58827. // Only used in www builds.
  58828. // Disable javascript: URL strings in href for XSS protection.
  58829. // React Fire: prevent the value and checked attributes from syncing
  58830. // with their related DOM properties
  58831. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  58832. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  58833. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  58834. // This is a flag so we can fix warnings in RN core before turning it on
  58835. // Experimental React Flare event system and event components support.
  58836. var enableFlareAPI = false;
  58837. // Experimental Host Component support.
  58838. var enableFundamentalAPI = false;
  58839. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  58840. var enableJSXTransformAPI = false;
  58841. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  58842. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  58843. // Temporary flag to revert the fix in #15650
  58844. // For tests, we flush suspense fallbacks in an act scope;
  58845. // *except* in some of our own tests, where we test incremental loading states.
  58846. // Changes priority of some events like mousemove to user-blocking priority,
  58847. // but without making them discrete. The flag exists in case it causes
  58848. // starvation problems.
  58849. // Add a callback property to suspense to notify which promises are currently
  58850. // in the update queue. This allows reporting and tracing of what is causing
  58851. // the user to see a loading state.
  58852. // Part of the simplification of React.createElement so we can eventually move
  58853. // from React.createElement to React.jsx
  58854. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  58855. var React = {
  58856. Children: {
  58857. map: mapChildren,
  58858. forEach: forEachChildren,
  58859. count: countChildren,
  58860. toArray: toArray,
  58861. only: onlyChild
  58862. },
  58863. createRef: createRef,
  58864. Component: Component,
  58865. PureComponent: PureComponent,
  58866. createContext: createContext,
  58867. forwardRef: forwardRef,
  58868. lazy: lazy,
  58869. memo: memo,
  58870. useCallback: useCallback,
  58871. useContext: useContext,
  58872. useEffect: useEffect,
  58873. useImperativeHandle: useImperativeHandle,
  58874. useDebugValue: useDebugValue,
  58875. useLayoutEffect: useLayoutEffect,
  58876. useMemo: useMemo,
  58877. useReducer: useReducer,
  58878. useRef: useRef,
  58879. useState: useState,
  58880. Fragment: REACT_FRAGMENT_TYPE,
  58881. Profiler: REACT_PROFILER_TYPE,
  58882. StrictMode: REACT_STRICT_MODE_TYPE,
  58883. Suspense: REACT_SUSPENSE_TYPE,
  58884. unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
  58885. createElement: createElementWithValidation,
  58886. cloneElement: cloneElementWithValidation,
  58887. createFactory: createFactoryWithValidation,
  58888. isValidElement: isValidElement,
  58889. version: ReactVersion,
  58890. unstable_withSuspenseConfig: withSuspenseConfig,
  58891. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  58892. };
  58893. if (enableFlareAPI) {
  58894. React.unstable_useResponder = useResponder;
  58895. React.unstable_createResponder = createEventResponder;
  58896. }
  58897. if (enableFundamentalAPI) {
  58898. React.unstable_createFundamental = createFundamentalComponent;
  58899. }
  58900. // Note: some APIs are added with feature flags.
  58901. // Make sure that stable builds for open source
  58902. // don't modify the React object to avoid deopts.
  58903. // Also let's not expose their names in stable builds.
  58904. if (enableJSXTransformAPI) {
  58905. {
  58906. React.jsxDEV = jsxWithValidation;
  58907. React.jsx = jsxWithValidationDynamic;
  58908. React.jsxs = jsxWithValidationStatic;
  58909. }
  58910. }
  58911. var React$2 = Object.freeze({
  58912. default: React
  58913. });
  58914. var React$3 = ( React$2 && React ) || React$2;
  58915. // TODO: decide on the top-level export form.
  58916. // This is hacky but makes it work with both Rollup and Jest.
  58917. var react = React$3.default || React$3;
  58918. module.exports = react;
  58919. })();
  58920. }
  58921. /***/ }),
  58922. /***/ "../../node_modules/react/index.js":
  58923. /*!*******************************************************!*\
  58924. !*** C:/Repos/Babylon.js/node_modules/react/index.js ***!
  58925. \*******************************************************/
  58926. /*! no static exports found */
  58927. /***/ (function(module, exports, __webpack_require__) {
  58928. "use strict";
  58929. if (false) {} else {
  58930. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  58931. }
  58932. /***/ }),
  58933. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  58934. /*!***************************************************************************************!*\
  58935. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  58936. \***************************************************************************************/
  58937. /*! no static exports found */
  58938. /***/ (function(module, exports, __webpack_require__) {
  58939. "use strict";
  58940. /** @license React v0.15.0
  58941. * scheduler-tracing.development.js
  58942. *
  58943. * Copyright (c) Facebook, Inc. and its affiliates.
  58944. *
  58945. * This source code is licensed under the MIT license found in the
  58946. * LICENSE file in the root directory of this source tree.
  58947. */
  58948. if (true) {
  58949. (function() {
  58950. 'use strict';
  58951. Object.defineProperty(exports, '__esModule', { value: true });
  58952. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  58953. // In some cases, StrictMode should also double-render lifecycles.
  58954. // This can be confusing for tests though,
  58955. // And it can be bad for performance in production.
  58956. // This feature flag can be used to control the behavior:
  58957. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  58958. // replay the begin phase of a failed component inside invokeGuardedCallback.
  58959. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  58960. // Gather advanced timing metrics for Profiler subtrees.
  58961. // Trace which interactions trigger each commit.
  58962. var enableSchedulerTracing = true;
  58963. // Only used in www builds.
  58964. // TODO: true? Here it might just be false.
  58965. // Only used in www builds.
  58966. // Only used in www builds.
  58967. // Disable javascript: URL strings in href for XSS protection.
  58968. // React Fire: prevent the value and checked attributes from syncing
  58969. // with their related DOM properties
  58970. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  58971. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  58972. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  58973. // This is a flag so we can fix warnings in RN core before turning it on
  58974. // Experimental React Flare event system and event components support.
  58975. // Experimental Host Component support.
  58976. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  58977. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  58978. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  58979. // Temporary flag to revert the fix in #15650
  58980. // For tests, we flush suspense fallbacks in an act scope;
  58981. // *except* in some of our own tests, where we test incremental loading states.
  58982. // Changes priority of some events like mousemove to user-blocking priority,
  58983. // but without making them discrete. The flag exists in case it causes
  58984. // starvation problems.
  58985. // Add a callback property to suspense to notify which promises are currently
  58986. // in the update queue. This allows reporting and tracing of what is causing
  58987. // the user to see a loading state.
  58988. // Part of the simplification of React.createElement so we can eventually move
  58989. // from React.createElement to React.jsx
  58990. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  58991. var DEFAULT_THREAD_ID = 0;
  58992. // Counters used to generate unique IDs.
  58993. var interactionIDCounter = 0;
  58994. var threadIDCounter = 0;
  58995. // Set of currently traced interactions.
  58996. // Interactions "stack"–
  58997. // Meaning that newly traced interactions are appended to the previously active set.
  58998. // When an interaction goes out of scope, the previous set (if any) is restored.
  58999. exports.__interactionsRef = null;
  59000. // Listener(s) to notify when interactions begin and end.
  59001. exports.__subscriberRef = null;
  59002. if (enableSchedulerTracing) {
  59003. exports.__interactionsRef = {
  59004. current: new Set()
  59005. };
  59006. exports.__subscriberRef = {
  59007. current: null
  59008. };
  59009. }
  59010. function unstable_clear(callback) {
  59011. if (!enableSchedulerTracing) {
  59012. return callback();
  59013. }
  59014. var prevInteractions = exports.__interactionsRef.current;
  59015. exports.__interactionsRef.current = new Set();
  59016. try {
  59017. return callback();
  59018. } finally {
  59019. exports.__interactionsRef.current = prevInteractions;
  59020. }
  59021. }
  59022. function unstable_getCurrent() {
  59023. if (!enableSchedulerTracing) {
  59024. return null;
  59025. } else {
  59026. return exports.__interactionsRef.current;
  59027. }
  59028. }
  59029. function unstable_getThreadID() {
  59030. return ++threadIDCounter;
  59031. }
  59032. function unstable_trace(name, timestamp, callback) {
  59033. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  59034. if (!enableSchedulerTracing) {
  59035. return callback();
  59036. }
  59037. var interaction = {
  59038. __count: 1,
  59039. id: interactionIDCounter++,
  59040. name: name,
  59041. timestamp: timestamp
  59042. };
  59043. var prevInteractions = exports.__interactionsRef.current;
  59044. // Traced interactions should stack/accumulate.
  59045. // To do that, clone the current interactions.
  59046. // The previous set will be restored upon completion.
  59047. var interactions = new Set(prevInteractions);
  59048. interactions.add(interaction);
  59049. exports.__interactionsRef.current = interactions;
  59050. var subscriber = exports.__subscriberRef.current;
  59051. var returnValue = void 0;
  59052. try {
  59053. if (subscriber !== null) {
  59054. subscriber.onInteractionTraced(interaction);
  59055. }
  59056. } finally {
  59057. try {
  59058. if (subscriber !== null) {
  59059. subscriber.onWorkStarted(interactions, threadID);
  59060. }
  59061. } finally {
  59062. try {
  59063. returnValue = callback();
  59064. } finally {
  59065. exports.__interactionsRef.current = prevInteractions;
  59066. try {
  59067. if (subscriber !== null) {
  59068. subscriber.onWorkStopped(interactions, threadID);
  59069. }
  59070. } finally {
  59071. interaction.__count--;
  59072. // If no async work was scheduled for this interaction,
  59073. // Notify subscribers that it's completed.
  59074. if (subscriber !== null && interaction.__count === 0) {
  59075. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59076. }
  59077. }
  59078. }
  59079. }
  59080. }
  59081. return returnValue;
  59082. }
  59083. function unstable_wrap(callback) {
  59084. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  59085. if (!enableSchedulerTracing) {
  59086. return callback;
  59087. }
  59088. var wrappedInteractions = exports.__interactionsRef.current;
  59089. var subscriber = exports.__subscriberRef.current;
  59090. if (subscriber !== null) {
  59091. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  59092. }
  59093. // Update the pending async work count for the current interactions.
  59094. // Update after calling subscribers in case of error.
  59095. wrappedInteractions.forEach(function (interaction) {
  59096. interaction.__count++;
  59097. });
  59098. var hasRun = false;
  59099. function wrapped() {
  59100. var prevInteractions = exports.__interactionsRef.current;
  59101. exports.__interactionsRef.current = wrappedInteractions;
  59102. subscriber = exports.__subscriberRef.current;
  59103. try {
  59104. var returnValue = void 0;
  59105. try {
  59106. if (subscriber !== null) {
  59107. subscriber.onWorkStarted(wrappedInteractions, threadID);
  59108. }
  59109. } finally {
  59110. try {
  59111. returnValue = callback.apply(undefined, arguments);
  59112. } finally {
  59113. exports.__interactionsRef.current = prevInteractions;
  59114. if (subscriber !== null) {
  59115. subscriber.onWorkStopped(wrappedInteractions, threadID);
  59116. }
  59117. }
  59118. }
  59119. return returnValue;
  59120. } finally {
  59121. if (!hasRun) {
  59122. // We only expect a wrapped function to be executed once,
  59123. // But in the event that it's executed more than once–
  59124. // Only decrement the outstanding interaction counts once.
  59125. hasRun = true;
  59126. // Update pending async counts for all wrapped interactions.
  59127. // If this was the last scheduled async work for any of them,
  59128. // Mark them as completed.
  59129. wrappedInteractions.forEach(function (interaction) {
  59130. interaction.__count--;
  59131. if (subscriber !== null && interaction.__count === 0) {
  59132. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59133. }
  59134. });
  59135. }
  59136. }
  59137. }
  59138. wrapped.cancel = function cancel() {
  59139. subscriber = exports.__subscriberRef.current;
  59140. try {
  59141. if (subscriber !== null) {
  59142. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  59143. }
  59144. } finally {
  59145. // Update pending async counts for all wrapped interactions.
  59146. // If this was the last scheduled async work for any of them,
  59147. // Mark them as completed.
  59148. wrappedInteractions.forEach(function (interaction) {
  59149. interaction.__count--;
  59150. if (subscriber && interaction.__count === 0) {
  59151. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59152. }
  59153. });
  59154. }
  59155. };
  59156. return wrapped;
  59157. }
  59158. var subscribers = null;
  59159. if (enableSchedulerTracing) {
  59160. subscribers = new Set();
  59161. }
  59162. function unstable_subscribe(subscriber) {
  59163. if (enableSchedulerTracing) {
  59164. subscribers.add(subscriber);
  59165. if (subscribers.size === 1) {
  59166. exports.__subscriberRef.current = {
  59167. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  59168. onInteractionTraced: onInteractionTraced,
  59169. onWorkCanceled: onWorkCanceled,
  59170. onWorkScheduled: onWorkScheduled,
  59171. onWorkStarted: onWorkStarted,
  59172. onWorkStopped: onWorkStopped
  59173. };
  59174. }
  59175. }
  59176. }
  59177. function unstable_unsubscribe(subscriber) {
  59178. if (enableSchedulerTracing) {
  59179. subscribers.delete(subscriber);
  59180. if (subscribers.size === 0) {
  59181. exports.__subscriberRef.current = null;
  59182. }
  59183. }
  59184. }
  59185. function onInteractionTraced(interaction) {
  59186. var didCatchError = false;
  59187. var caughtError = null;
  59188. subscribers.forEach(function (subscriber) {
  59189. try {
  59190. subscriber.onInteractionTraced(interaction);
  59191. } catch (error) {
  59192. if (!didCatchError) {
  59193. didCatchError = true;
  59194. caughtError = error;
  59195. }
  59196. }
  59197. });
  59198. if (didCatchError) {
  59199. throw caughtError;
  59200. }
  59201. }
  59202. function onInteractionScheduledWorkCompleted(interaction) {
  59203. var didCatchError = false;
  59204. var caughtError = null;
  59205. subscribers.forEach(function (subscriber) {
  59206. try {
  59207. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59208. } catch (error) {
  59209. if (!didCatchError) {
  59210. didCatchError = true;
  59211. caughtError = error;
  59212. }
  59213. }
  59214. });
  59215. if (didCatchError) {
  59216. throw caughtError;
  59217. }
  59218. }
  59219. function onWorkScheduled(interactions, threadID) {
  59220. var didCatchError = false;
  59221. var caughtError = null;
  59222. subscribers.forEach(function (subscriber) {
  59223. try {
  59224. subscriber.onWorkScheduled(interactions, threadID);
  59225. } catch (error) {
  59226. if (!didCatchError) {
  59227. didCatchError = true;
  59228. caughtError = error;
  59229. }
  59230. }
  59231. });
  59232. if (didCatchError) {
  59233. throw caughtError;
  59234. }
  59235. }
  59236. function onWorkStarted(interactions, threadID) {
  59237. var didCatchError = false;
  59238. var caughtError = null;
  59239. subscribers.forEach(function (subscriber) {
  59240. try {
  59241. subscriber.onWorkStarted(interactions, threadID);
  59242. } catch (error) {
  59243. if (!didCatchError) {
  59244. didCatchError = true;
  59245. caughtError = error;
  59246. }
  59247. }
  59248. });
  59249. if (didCatchError) {
  59250. throw caughtError;
  59251. }
  59252. }
  59253. function onWorkStopped(interactions, threadID) {
  59254. var didCatchError = false;
  59255. var caughtError = null;
  59256. subscribers.forEach(function (subscriber) {
  59257. try {
  59258. subscriber.onWorkStopped(interactions, threadID);
  59259. } catch (error) {
  59260. if (!didCatchError) {
  59261. didCatchError = true;
  59262. caughtError = error;
  59263. }
  59264. }
  59265. });
  59266. if (didCatchError) {
  59267. throw caughtError;
  59268. }
  59269. }
  59270. function onWorkCanceled(interactions, threadID) {
  59271. var didCatchError = false;
  59272. var caughtError = null;
  59273. subscribers.forEach(function (subscriber) {
  59274. try {
  59275. subscriber.onWorkCanceled(interactions, threadID);
  59276. } catch (error) {
  59277. if (!didCatchError) {
  59278. didCatchError = true;
  59279. caughtError = error;
  59280. }
  59281. }
  59282. });
  59283. if (didCatchError) {
  59284. throw caughtError;
  59285. }
  59286. }
  59287. exports.unstable_clear = unstable_clear;
  59288. exports.unstable_getCurrent = unstable_getCurrent;
  59289. exports.unstable_getThreadID = unstable_getThreadID;
  59290. exports.unstable_trace = unstable_trace;
  59291. exports.unstable_wrap = unstable_wrap;
  59292. exports.unstable_subscribe = unstable_subscribe;
  59293. exports.unstable_unsubscribe = unstable_unsubscribe;
  59294. })();
  59295. }
  59296. /***/ }),
  59297. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  59298. /*!*******************************************************************************!*\
  59299. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  59300. \*******************************************************************************/
  59301. /*! no static exports found */
  59302. /***/ (function(module, exports, __webpack_require__) {
  59303. "use strict";
  59304. /** @license React v0.15.0
  59305. * scheduler.development.js
  59306. *
  59307. * Copyright (c) Facebook, Inc. and its affiliates.
  59308. *
  59309. * This source code is licensed under the MIT license found in the
  59310. * LICENSE file in the root directory of this source tree.
  59311. */
  59312. if (true) {
  59313. (function() {
  59314. 'use strict';
  59315. Object.defineProperty(exports, '__esModule', { value: true });
  59316. var enableSchedulerDebugging = false;
  59317. var enableIsInputPending = false;
  59318. var requestIdleCallbackBeforeFirstFrame = false;
  59319. var requestTimerEventBeforeFirstFrame = false;
  59320. var enableMessageLoopImplementation = false;
  59321. // The DOM Scheduler implementation is similar to requestIdleCallback. It
  59322. // works by scheduling a requestAnimationFrame, storing the time for the start
  59323. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  59324. // Within the postMessage handler do as much work as possible until time + frame
  59325. // rate. By separating the idle call into a separate event tick we ensure that
  59326. // layout, paint and other browser work is counted against the available time.
  59327. // The frame rate is dynamically adjusted.
  59328. var requestHostCallback = void 0;
  59329. var requestHostTimeout = void 0;
  59330. var cancelHostTimeout = void 0;
  59331. var shouldYieldToHost = void 0;
  59332. var requestPaint = void 0;
  59333. exports.unstable_now = void 0;
  59334. exports.unstable_forceFrameRate = void 0;
  59335. if (
  59336. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  59337. // implementation using setTimeout.
  59338. typeof window === 'undefined' ||
  59339. // Check if MessageChannel is supported, too.
  59340. typeof MessageChannel !== 'function') {
  59341. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  59342. // fallback to a naive implementation.
  59343. var _callback = null;
  59344. var _timeoutID = null;
  59345. var _flushCallback = function () {
  59346. if (_callback !== null) {
  59347. try {
  59348. var currentTime = exports.unstable_now();
  59349. var hasRemainingTime = true;
  59350. _callback(hasRemainingTime, currentTime);
  59351. _callback = null;
  59352. } catch (e) {
  59353. setTimeout(_flushCallback, 0);
  59354. throw e;
  59355. }
  59356. }
  59357. };
  59358. exports.unstable_now = function () {
  59359. return Date.now();
  59360. };
  59361. requestHostCallback = function (cb) {
  59362. if (_callback !== null) {
  59363. // Protect against re-entrancy.
  59364. setTimeout(requestHostCallback, 0, cb);
  59365. } else {
  59366. _callback = cb;
  59367. setTimeout(_flushCallback, 0);
  59368. }
  59369. };
  59370. requestHostTimeout = function (cb, ms) {
  59371. _timeoutID = setTimeout(cb, ms);
  59372. };
  59373. cancelHostTimeout = function () {
  59374. clearTimeout(_timeoutID);
  59375. };
  59376. shouldYieldToHost = function () {
  59377. return false;
  59378. };
  59379. requestPaint = exports.unstable_forceFrameRate = function () {};
  59380. } else {
  59381. // Capture local references to native APIs, in case a polyfill overrides them.
  59382. var performance = window.performance;
  59383. var _Date = window.Date;
  59384. var _setTimeout = window.setTimeout;
  59385. var _clearTimeout = window.clearTimeout;
  59386. var requestAnimationFrame = window.requestAnimationFrame;
  59387. var cancelAnimationFrame = window.cancelAnimationFrame;
  59388. var requestIdleCallback = window.requestIdleCallback;
  59389. if (typeof console !== 'undefined') {
  59390. // TODO: Remove fb.me link
  59391. if (typeof requestAnimationFrame !== 'function') {
  59392. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  59393. }
  59394. if (typeof cancelAnimationFrame !== 'function') {
  59395. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  59396. }
  59397. }
  59398. var requestIdleCallbackBeforeFirstFrame$1 = requestIdleCallbackBeforeFirstFrame && typeof requestIdleCallback === 'function' && typeof cancelIdleCallback === 'function';
  59399. exports.unstable_now = typeof performance === 'object' && typeof performance.now === 'function' ? function () {
  59400. return performance.now();
  59401. } : function () {
  59402. return _Date.now();
  59403. };
  59404. var isRAFLoopRunning = false;
  59405. var isMessageLoopRunning = false;
  59406. var scheduledHostCallback = null;
  59407. var rAFTimeoutID = -1;
  59408. var taskTimeoutID = -1;
  59409. var frameLength = enableMessageLoopImplementation ? // We won't attempt to align with the vsync. Instead we'll yield multiple
  59410. // times per frame, often enough to keep it responsive even at really
  59411. // high frame rates > 120.
  59412. 5 : // Use a heuristic to measure the frame rate and yield at the end of the
  59413. // frame. We start out assuming that we run at 30fps but then the
  59414. // heuristic tracking will adjust this value to a faster fps if we get
  59415. // more frequent animation frames.
  59416. 33.33;
  59417. var prevRAFTime = -1;
  59418. var prevRAFInterval = -1;
  59419. var frameDeadline = 0;
  59420. var fpsLocked = false;
  59421. // TODO: Make this configurable
  59422. // TODO: Adjust this based on priority?
  59423. var maxFrameLength = 300;
  59424. var needsPaint = false;
  59425. if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
  59426. var scheduling = navigator.scheduling;
  59427. shouldYieldToHost = function () {
  59428. var currentTime = exports.unstable_now();
  59429. if (currentTime >= frameDeadline) {
  59430. // There's no time left in the frame. We may want to yield control of
  59431. // the main thread, so the browser can perform high priority tasks. The
  59432. // main ones are painting and user input. If there's a pending paint or
  59433. // a pending input, then we should yield. But if there's neither, then
  59434. // we can yield less often while remaining responsive. We'll eventually
  59435. // yield regardless, since there could be a pending paint that wasn't
  59436. // accompanied by a call to `requestPaint`, or other main thread tasks
  59437. // like network events.
  59438. if (needsPaint || scheduling.isInputPending()) {
  59439. // There is either a pending paint or a pending input.
  59440. return true;
  59441. }
  59442. // There's no pending input. Only yield if we've reached the max
  59443. // frame length.
  59444. return currentTime >= frameDeadline + maxFrameLength;
  59445. } else {
  59446. // There's still time left in the frame.
  59447. return false;
  59448. }
  59449. };
  59450. requestPaint = function () {
  59451. needsPaint = true;
  59452. };
  59453. } else {
  59454. // `isInputPending` is not available. Since we have no way of knowing if
  59455. // there's pending input, always yield at the end of the frame.
  59456. shouldYieldToHost = function () {
  59457. return exports.unstable_now() >= frameDeadline;
  59458. };
  59459. // Since we yield every frame regardless, `requestPaint` has no effect.
  59460. requestPaint = function () {};
  59461. }
  59462. exports.unstable_forceFrameRate = function (fps) {
  59463. if (fps < 0 || fps > 125) {
  59464. console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  59465. return;
  59466. }
  59467. if (fps > 0) {
  59468. frameLength = Math.floor(1000 / fps);
  59469. fpsLocked = true;
  59470. } else {
  59471. // reset the framerate
  59472. frameLength = 33.33;
  59473. fpsLocked = false;
  59474. }
  59475. };
  59476. var performWorkUntilDeadline = function () {
  59477. if (enableMessageLoopImplementation) {
  59478. if (scheduledHostCallback !== null) {
  59479. var currentTime = exports.unstable_now();
  59480. // Yield after `frameLength` ms, regardless of where we are in the vsync
  59481. // cycle. This means there's always time remaining at the beginning of
  59482. // the message event.
  59483. frameDeadline = currentTime + frameLength;
  59484. var hasTimeRemaining = true;
  59485. try {
  59486. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  59487. if (!hasMoreWork) {
  59488. isMessageLoopRunning = false;
  59489. scheduledHostCallback = null;
  59490. } else {
  59491. // If there's more work, schedule the next message event at the end
  59492. // of the preceding one.
  59493. port.postMessage(null);
  59494. }
  59495. } catch (error) {
  59496. // If a scheduler task throws, exit the current browser task so the
  59497. // error can be observed.
  59498. port.postMessage(null);
  59499. throw error;
  59500. }
  59501. }
  59502. // Yielding to the browser will give it a chance to paint, so we can
  59503. // reset this.
  59504. needsPaint = false;
  59505. } else {
  59506. if (scheduledHostCallback !== null) {
  59507. var _currentTime = exports.unstable_now();
  59508. var _hasTimeRemaining = frameDeadline - _currentTime > 0;
  59509. try {
  59510. var _hasMoreWork = scheduledHostCallback(_hasTimeRemaining, _currentTime);
  59511. if (!_hasMoreWork) {
  59512. scheduledHostCallback = null;
  59513. }
  59514. } catch (error) {
  59515. // If a scheduler task throws, exit the current browser task so the
  59516. // error can be observed, and post a new task as soon as possible
  59517. // so we can continue where we left off.
  59518. port.postMessage(null);
  59519. throw error;
  59520. }
  59521. }
  59522. // Yielding to the browser will give it a chance to paint, so we can
  59523. // reset this.
  59524. needsPaint = false;
  59525. }
  59526. };
  59527. var channel = new MessageChannel();
  59528. var port = channel.port2;
  59529. channel.port1.onmessage = performWorkUntilDeadline;
  59530. var onAnimationFrame = function (rAFTime) {
  59531. if (scheduledHostCallback === null) {
  59532. // No scheduled work. Exit.
  59533. prevRAFTime = -1;
  59534. prevRAFInterval = -1;
  59535. isRAFLoopRunning = false;
  59536. return;
  59537. }
  59538. // Eagerly schedule the next animation callback at the beginning of the
  59539. // frame. If the scheduler queue is not empty at the end of the frame, it
  59540. // will continue flushing inside that callback. If the queue *is* empty,
  59541. // then it will exit immediately. Posting the callback at the start of the
  59542. // frame ensures it's fired within the earliest possible frame. If we
  59543. // waited until the end of the frame to post the callback, we risk the
  59544. // browser skipping a frame and not firing the callback until the frame
  59545. // after that.
  59546. isRAFLoopRunning = true;
  59547. requestAnimationFrame(function (nextRAFTime) {
  59548. _clearTimeout(rAFTimeoutID);
  59549. onAnimationFrame(nextRAFTime);
  59550. });
  59551. // requestAnimationFrame is throttled when the tab is backgrounded. We
  59552. // don't want to stop working entirely. So we'll fallback to a timeout loop.
  59553. // TODO: Need a better heuristic for backgrounded work.
  59554. var onTimeout = function () {
  59555. frameDeadline = exports.unstable_now() + frameLength / 2;
  59556. performWorkUntilDeadline();
  59557. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  59558. };
  59559. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  59560. if (prevRAFTime !== -1 &&
  59561. // Make sure this rAF time is different from the previous one. This check
  59562. // could fail if two rAFs fire in the same frame.
  59563. rAFTime - prevRAFTime > 0.1) {
  59564. var rAFInterval = rAFTime - prevRAFTime;
  59565. if (!fpsLocked && prevRAFInterval !== -1) {
  59566. // We've observed two consecutive frame intervals. We'll use this to
  59567. // dynamically adjust the frame rate.
  59568. //
  59569. // If one frame goes long, then the next one can be short to catch up.
  59570. // If two frames are short in a row, then that's an indication that we
  59571. // actually have a higher frame rate than what we're currently
  59572. // optimizing. For example, if we're running on 120hz display or 90hz VR
  59573. // display. Take the max of the two in case one of them was an anomaly
  59574. // due to missed frame deadlines.
  59575. if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
  59576. frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
  59577. if (frameLength < 8.33) {
  59578. // Defensive coding. We don't support higher frame rates than 120hz.
  59579. // If the calculated frame length gets lower than 8, it is probably
  59580. // a bug.
  59581. frameLength = 8.33;
  59582. }
  59583. }
  59584. }
  59585. prevRAFInterval = rAFInterval;
  59586. }
  59587. prevRAFTime = rAFTime;
  59588. frameDeadline = rAFTime + frameLength;
  59589. // We use the postMessage trick to defer idle work until after the repaint.
  59590. port.postMessage(null);
  59591. };
  59592. requestHostCallback = function (callback) {
  59593. scheduledHostCallback = callback;
  59594. if (enableMessageLoopImplementation) {
  59595. if (!isMessageLoopRunning) {
  59596. isMessageLoopRunning = true;
  59597. port.postMessage(null);
  59598. }
  59599. } else {
  59600. if (!isRAFLoopRunning) {
  59601. // Start a rAF loop.
  59602. isRAFLoopRunning = true;
  59603. requestAnimationFrame(function (rAFTime) {
  59604. if (requestIdleCallbackBeforeFirstFrame$1) {
  59605. cancelIdleCallback(idleCallbackID);
  59606. }
  59607. if (requestTimerEventBeforeFirstFrame) {
  59608. _clearTimeout(idleTimeoutID);
  59609. }
  59610. onAnimationFrame(rAFTime);
  59611. });
  59612. // If we just missed the last vsync, the next rAF might not happen for
  59613. // another frame. To claim as much idle time as possible, post a
  59614. // callback with `requestIdleCallback`, which should fire if there's
  59615. // idle time left in the frame.
  59616. //
  59617. // This should only be an issue for the first rAF in the loop;
  59618. // subsequent rAFs are scheduled at the beginning of the
  59619. // preceding frame.
  59620. var idleCallbackID = void 0;
  59621. if (requestIdleCallbackBeforeFirstFrame$1) {
  59622. idleCallbackID = requestIdleCallback(function onIdleCallbackBeforeFirstFrame() {
  59623. if (requestTimerEventBeforeFirstFrame) {
  59624. _clearTimeout(idleTimeoutID);
  59625. }
  59626. frameDeadline = exports.unstable_now() + frameLength;
  59627. performWorkUntilDeadline();
  59628. });
  59629. }
  59630. // Alternate strategy to address the same problem. Scheduler a timer
  59631. // with no delay. If this fires before the rAF, that likely indicates
  59632. // that there's idle time before the next vsync. This isn't always the
  59633. // case, but we'll be aggressive and assume it is, as a trade off to
  59634. // prevent idle periods.
  59635. var idleTimeoutID = void 0;
  59636. if (requestTimerEventBeforeFirstFrame) {
  59637. idleTimeoutID = _setTimeout(function onTimerEventBeforeFirstFrame() {
  59638. if (requestIdleCallbackBeforeFirstFrame$1) {
  59639. cancelIdleCallback(idleCallbackID);
  59640. }
  59641. frameDeadline = exports.unstable_now() + frameLength;
  59642. performWorkUntilDeadline();
  59643. }, 0);
  59644. }
  59645. }
  59646. }
  59647. };
  59648. requestHostTimeout = function (callback, ms) {
  59649. taskTimeoutID = _setTimeout(function () {
  59650. callback(exports.unstable_now());
  59651. }, ms);
  59652. };
  59653. cancelHostTimeout = function () {
  59654. _clearTimeout(taskTimeoutID);
  59655. taskTimeoutID = -1;
  59656. };
  59657. }
  59658. /* eslint-disable no-var */
  59659. // TODO: Use symbols?
  59660. var ImmediatePriority = 1;
  59661. var UserBlockingPriority = 2;
  59662. var NormalPriority = 3;
  59663. var LowPriority = 4;
  59664. var IdlePriority = 5;
  59665. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  59666. // Math.pow(2, 30) - 1
  59667. // 0b111111111111111111111111111111
  59668. var maxSigned31BitInt = 1073741823;
  59669. // Times out immediately
  59670. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  59671. // Eventually times out
  59672. var USER_BLOCKING_PRIORITY = 250;
  59673. var NORMAL_PRIORITY_TIMEOUT = 5000;
  59674. var LOW_PRIORITY_TIMEOUT = 10000;
  59675. // Never times out
  59676. var IDLE_PRIORITY = maxSigned31BitInt;
  59677. // Tasks are stored as a circular, doubly linked list.
  59678. var firstTask = null;
  59679. var firstDelayedTask = null;
  59680. // Pausing the scheduler is useful for debugging.
  59681. var isSchedulerPaused = false;
  59682. var currentTask = null;
  59683. var currentPriorityLevel = NormalPriority;
  59684. // This is set while performing work, to prevent re-entrancy.
  59685. var isPerformingWork = false;
  59686. var isHostCallbackScheduled = false;
  59687. var isHostTimeoutScheduled = false;
  59688. function scheduler_flushTaskAtPriority_Immediate(callback, didTimeout) {
  59689. return callback(didTimeout);
  59690. }
  59691. function scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout) {
  59692. return callback(didTimeout);
  59693. }
  59694. function scheduler_flushTaskAtPriority_Normal(callback, didTimeout) {
  59695. return callback(didTimeout);
  59696. }
  59697. function scheduler_flushTaskAtPriority_Low(callback, didTimeout) {
  59698. return callback(didTimeout);
  59699. }
  59700. function scheduler_flushTaskAtPriority_Idle(callback, didTimeout) {
  59701. return callback(didTimeout);
  59702. }
  59703. function flushTask(task, currentTime) {
  59704. // Remove the task from the list before calling the callback. That way the
  59705. // list is in a consistent state even if the callback throws.
  59706. var next = task.next;
  59707. if (next === task) {
  59708. // This is the only scheduled task. Clear the list.
  59709. firstTask = null;
  59710. } else {
  59711. // Remove the task from its position in the list.
  59712. if (task === firstTask) {
  59713. firstTask = next;
  59714. }
  59715. var previous = task.previous;
  59716. previous.next = next;
  59717. next.previous = previous;
  59718. }
  59719. task.next = task.previous = null;
  59720. // Now it's safe to execute the task.
  59721. var callback = task.callback;
  59722. var previousPriorityLevel = currentPriorityLevel;
  59723. var previousTask = currentTask;
  59724. currentPriorityLevel = task.priorityLevel;
  59725. currentTask = task;
  59726. var continuationCallback;
  59727. try {
  59728. var didUserCallbackTimeout = task.expirationTime <= currentTime;
  59729. // Add an extra function to the callstack. Profiling tools can use this
  59730. // to infer the priority of work that appears higher in the stack.
  59731. switch (currentPriorityLevel) {
  59732. case ImmediatePriority:
  59733. continuationCallback = scheduler_flushTaskAtPriority_Immediate(callback, didUserCallbackTimeout);
  59734. break;
  59735. case UserBlockingPriority:
  59736. continuationCallback = scheduler_flushTaskAtPriority_UserBlocking(callback, didUserCallbackTimeout);
  59737. break;
  59738. case NormalPriority:
  59739. continuationCallback = scheduler_flushTaskAtPriority_Normal(callback, didUserCallbackTimeout);
  59740. break;
  59741. case LowPriority:
  59742. continuationCallback = scheduler_flushTaskAtPriority_Low(callback, didUserCallbackTimeout);
  59743. break;
  59744. case IdlePriority:
  59745. continuationCallback = scheduler_flushTaskAtPriority_Idle(callback, didUserCallbackTimeout);
  59746. break;
  59747. }
  59748. } catch (error) {
  59749. throw error;
  59750. } finally {
  59751. currentPriorityLevel = previousPriorityLevel;
  59752. currentTask = previousTask;
  59753. }
  59754. // A callback may return a continuation. The continuation should be scheduled
  59755. // with the same priority and expiration as the just-finished callback.
  59756. if (typeof continuationCallback === 'function') {
  59757. var expirationTime = task.expirationTime;
  59758. var continuationTask = task;
  59759. continuationTask.callback = continuationCallback;
  59760. // Insert the new callback into the list, sorted by its timeout. This is
  59761. // almost the same as the code in `scheduleCallback`, except the callback
  59762. // is inserted into the list *before* callbacks of equal timeout instead
  59763. // of after.
  59764. if (firstTask === null) {
  59765. // This is the first callback in the list.
  59766. firstTask = continuationTask.next = continuationTask.previous = continuationTask;
  59767. } else {
  59768. var nextAfterContinuation = null;
  59769. var t = firstTask;
  59770. do {
  59771. if (expirationTime <= t.expirationTime) {
  59772. // This task times out at or after the continuation. We will insert
  59773. // the continuation *before* this task.
  59774. nextAfterContinuation = t;
  59775. break;
  59776. }
  59777. t = t.next;
  59778. } while (t !== firstTask);
  59779. if (nextAfterContinuation === null) {
  59780. // No equal or lower priority task was found, which means the new task
  59781. // is the lowest priority task in the list.
  59782. nextAfterContinuation = firstTask;
  59783. } else if (nextAfterContinuation === firstTask) {
  59784. // The new task is the highest priority task in the list.
  59785. firstTask = continuationTask;
  59786. }
  59787. var _previous = nextAfterContinuation.previous;
  59788. _previous.next = nextAfterContinuation.previous = continuationTask;
  59789. continuationTask.next = nextAfterContinuation;
  59790. continuationTask.previous = _previous;
  59791. }
  59792. }
  59793. }
  59794. function advanceTimers(currentTime) {
  59795. // Check for tasks that are no longer delayed and add them to the queue.
  59796. if (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime) {
  59797. do {
  59798. var task = firstDelayedTask;
  59799. var next = task.next;
  59800. if (task === next) {
  59801. firstDelayedTask = null;
  59802. } else {
  59803. firstDelayedTask = next;
  59804. var previous = task.previous;
  59805. previous.next = next;
  59806. next.previous = previous;
  59807. }
  59808. task.next = task.previous = null;
  59809. insertScheduledTask(task, task.expirationTime);
  59810. } while (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime);
  59811. }
  59812. }
  59813. function handleTimeout(currentTime) {
  59814. isHostTimeoutScheduled = false;
  59815. advanceTimers(currentTime);
  59816. if (!isHostCallbackScheduled) {
  59817. if (firstTask !== null) {
  59818. isHostCallbackScheduled = true;
  59819. requestHostCallback(flushWork);
  59820. } else if (firstDelayedTask !== null) {
  59821. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  59822. }
  59823. }
  59824. }
  59825. function flushWork(hasTimeRemaining, initialTime) {
  59826. // Exit right away if we're currently paused
  59827. if (enableSchedulerDebugging && isSchedulerPaused) {
  59828. return;
  59829. }
  59830. // We'll need a host callback the next time work is scheduled.
  59831. isHostCallbackScheduled = false;
  59832. if (isHostTimeoutScheduled) {
  59833. // We scheduled a timeout but it's no longer needed. Cancel it.
  59834. isHostTimeoutScheduled = false;
  59835. cancelHostTimeout();
  59836. }
  59837. var currentTime = initialTime;
  59838. advanceTimers(currentTime);
  59839. isPerformingWork = true;
  59840. try {
  59841. if (!hasTimeRemaining) {
  59842. // Flush all the expired callbacks without yielding.
  59843. // TODO: Split flushWork into two separate functions instead of using
  59844. // a boolean argument?
  59845. while (firstTask !== null && firstTask.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)) {
  59846. flushTask(firstTask, currentTime);
  59847. currentTime = exports.unstable_now();
  59848. advanceTimers(currentTime);
  59849. }
  59850. } else {
  59851. // Keep flushing callbacks until we run out of time in the frame.
  59852. if (firstTask !== null) {
  59853. do {
  59854. flushTask(firstTask, currentTime);
  59855. currentTime = exports.unstable_now();
  59856. advanceTimers(currentTime);
  59857. } while (firstTask !== null && !shouldYieldToHost() && !(enableSchedulerDebugging && isSchedulerPaused));
  59858. }
  59859. }
  59860. // Return whether there's additional work
  59861. if (firstTask !== null) {
  59862. return true;
  59863. } else {
  59864. if (firstDelayedTask !== null) {
  59865. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  59866. }
  59867. return false;
  59868. }
  59869. } finally {
  59870. isPerformingWork = false;
  59871. }
  59872. }
  59873. function unstable_runWithPriority(priorityLevel, eventHandler) {
  59874. switch (priorityLevel) {
  59875. case ImmediatePriority:
  59876. case UserBlockingPriority:
  59877. case NormalPriority:
  59878. case LowPriority:
  59879. case IdlePriority:
  59880. break;
  59881. default:
  59882. priorityLevel = NormalPriority;
  59883. }
  59884. var previousPriorityLevel = currentPriorityLevel;
  59885. currentPriorityLevel = priorityLevel;
  59886. try {
  59887. return eventHandler();
  59888. } finally {
  59889. currentPriorityLevel = previousPriorityLevel;
  59890. }
  59891. }
  59892. function unstable_next(eventHandler) {
  59893. var priorityLevel;
  59894. switch (currentPriorityLevel) {
  59895. case ImmediatePriority:
  59896. case UserBlockingPriority:
  59897. case NormalPriority:
  59898. // Shift down to normal priority
  59899. priorityLevel = NormalPriority;
  59900. break;
  59901. default:
  59902. // Anything lower than normal priority should remain at the current level.
  59903. priorityLevel = currentPriorityLevel;
  59904. break;
  59905. }
  59906. var previousPriorityLevel = currentPriorityLevel;
  59907. currentPriorityLevel = priorityLevel;
  59908. try {
  59909. return eventHandler();
  59910. } finally {
  59911. currentPriorityLevel = previousPriorityLevel;
  59912. }
  59913. }
  59914. function unstable_wrapCallback(callback) {
  59915. var parentPriorityLevel = currentPriorityLevel;
  59916. return function () {
  59917. // This is a fork of runWithPriority, inlined for performance.
  59918. var previousPriorityLevel = currentPriorityLevel;
  59919. currentPriorityLevel = parentPriorityLevel;
  59920. try {
  59921. return callback.apply(this, arguments);
  59922. } finally {
  59923. currentPriorityLevel = previousPriorityLevel;
  59924. }
  59925. };
  59926. }
  59927. function timeoutForPriorityLevel(priorityLevel) {
  59928. switch (priorityLevel) {
  59929. case ImmediatePriority:
  59930. return IMMEDIATE_PRIORITY_TIMEOUT;
  59931. case UserBlockingPriority:
  59932. return USER_BLOCKING_PRIORITY;
  59933. case IdlePriority:
  59934. return IDLE_PRIORITY;
  59935. case LowPriority:
  59936. return LOW_PRIORITY_TIMEOUT;
  59937. case NormalPriority:
  59938. default:
  59939. return NORMAL_PRIORITY_TIMEOUT;
  59940. }
  59941. }
  59942. function unstable_scheduleCallback(priorityLevel, callback, options) {
  59943. var currentTime = exports.unstable_now();
  59944. var startTime;
  59945. var timeout;
  59946. if (typeof options === 'object' && options !== null) {
  59947. var delay = options.delay;
  59948. if (typeof delay === 'number' && delay > 0) {
  59949. startTime = currentTime + delay;
  59950. } else {
  59951. startTime = currentTime;
  59952. }
  59953. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  59954. } else {
  59955. timeout = timeoutForPriorityLevel(priorityLevel);
  59956. startTime = currentTime;
  59957. }
  59958. var expirationTime = startTime + timeout;
  59959. var newTask = {
  59960. callback: callback,
  59961. priorityLevel: priorityLevel,
  59962. startTime: startTime,
  59963. expirationTime: expirationTime,
  59964. next: null,
  59965. previous: null
  59966. };
  59967. if (startTime > currentTime) {
  59968. // This is a delayed task.
  59969. insertDelayedTask(newTask, startTime);
  59970. if (firstTask === null && firstDelayedTask === newTask) {
  59971. // All tasks are delayed, and this is the task with the earliest delay.
  59972. if (isHostTimeoutScheduled) {
  59973. // Cancel an existing timeout.
  59974. cancelHostTimeout();
  59975. } else {
  59976. isHostTimeoutScheduled = true;
  59977. }
  59978. // Schedule a timeout.
  59979. requestHostTimeout(handleTimeout, startTime - currentTime);
  59980. }
  59981. } else {
  59982. insertScheduledTask(newTask, expirationTime);
  59983. // Schedule a host callback, if needed. If we're already performing work,
  59984. // wait until the next time we yield.
  59985. if (!isHostCallbackScheduled && !isPerformingWork) {
  59986. isHostCallbackScheduled = true;
  59987. requestHostCallback(flushWork);
  59988. }
  59989. }
  59990. return newTask;
  59991. }
  59992. function insertScheduledTask(newTask, expirationTime) {
  59993. // Insert the new task into the list, ordered first by its timeout, then by
  59994. // insertion. So the new task is inserted after any other task the
  59995. // same timeout
  59996. if (firstTask === null) {
  59997. // This is the first task in the list.
  59998. firstTask = newTask.next = newTask.previous = newTask;
  59999. } else {
  60000. var next = null;
  60001. var task = firstTask;
  60002. do {
  60003. if (expirationTime < task.expirationTime) {
  60004. // The new task times out before this one.
  60005. next = task;
  60006. break;
  60007. }
  60008. task = task.next;
  60009. } while (task !== firstTask);
  60010. if (next === null) {
  60011. // No task with a later timeout was found, which means the new task has
  60012. // the latest timeout in the list.
  60013. next = firstTask;
  60014. } else if (next === firstTask) {
  60015. // The new task has the earliest expiration in the entire list.
  60016. firstTask = newTask;
  60017. }
  60018. var previous = next.previous;
  60019. previous.next = next.previous = newTask;
  60020. newTask.next = next;
  60021. newTask.previous = previous;
  60022. }
  60023. }
  60024. function insertDelayedTask(newTask, startTime) {
  60025. // Insert the new task into the list, ordered by its start time.
  60026. if (firstDelayedTask === null) {
  60027. // This is the first task in the list.
  60028. firstDelayedTask = newTask.next = newTask.previous = newTask;
  60029. } else {
  60030. var next = null;
  60031. var task = firstDelayedTask;
  60032. do {
  60033. if (startTime < task.startTime) {
  60034. // The new task times out before this one.
  60035. next = task;
  60036. break;
  60037. }
  60038. task = task.next;
  60039. } while (task !== firstDelayedTask);
  60040. if (next === null) {
  60041. // No task with a later timeout was found, which means the new task has
  60042. // the latest timeout in the list.
  60043. next = firstDelayedTask;
  60044. } else if (next === firstDelayedTask) {
  60045. // The new task has the earliest expiration in the entire list.
  60046. firstDelayedTask = newTask;
  60047. }
  60048. var previous = next.previous;
  60049. previous.next = next.previous = newTask;
  60050. newTask.next = next;
  60051. newTask.previous = previous;
  60052. }
  60053. }
  60054. function unstable_pauseExecution() {
  60055. isSchedulerPaused = true;
  60056. }
  60057. function unstable_continueExecution() {
  60058. isSchedulerPaused = false;
  60059. if (!isHostCallbackScheduled && !isPerformingWork) {
  60060. isHostCallbackScheduled = true;
  60061. requestHostCallback(flushWork);
  60062. }
  60063. }
  60064. function unstable_getFirstCallbackNode() {
  60065. return firstTask;
  60066. }
  60067. function unstable_cancelCallback(task) {
  60068. var next = task.next;
  60069. if (next === null) {
  60070. // Already cancelled.
  60071. return;
  60072. }
  60073. if (task === next) {
  60074. if (task === firstTask) {
  60075. firstTask = null;
  60076. } else if (task === firstDelayedTask) {
  60077. firstDelayedTask = null;
  60078. }
  60079. } else {
  60080. if (task === firstTask) {
  60081. firstTask = next;
  60082. } else if (task === firstDelayedTask) {
  60083. firstDelayedTask = next;
  60084. }
  60085. var previous = task.previous;
  60086. previous.next = next;
  60087. next.previous = previous;
  60088. }
  60089. task.next = task.previous = null;
  60090. }
  60091. function unstable_getCurrentPriorityLevel() {
  60092. return currentPriorityLevel;
  60093. }
  60094. function unstable_shouldYield() {
  60095. var currentTime = exports.unstable_now();
  60096. advanceTimers(currentTime);
  60097. return currentTask !== null && firstTask !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  60098. }
  60099. var unstable_requestPaint = requestPaint;
  60100. exports.unstable_ImmediatePriority = ImmediatePriority;
  60101. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  60102. exports.unstable_NormalPriority = NormalPriority;
  60103. exports.unstable_IdlePriority = IdlePriority;
  60104. exports.unstable_LowPriority = LowPriority;
  60105. exports.unstable_runWithPriority = unstable_runWithPriority;
  60106. exports.unstable_next = unstable_next;
  60107. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  60108. exports.unstable_cancelCallback = unstable_cancelCallback;
  60109. exports.unstable_wrapCallback = unstable_wrapCallback;
  60110. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  60111. exports.unstable_shouldYield = unstable_shouldYield;
  60112. exports.unstable_requestPaint = unstable_requestPaint;
  60113. exports.unstable_continueExecution = unstable_continueExecution;
  60114. exports.unstable_pauseExecution = unstable_pauseExecution;
  60115. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  60116. })();
  60117. }
  60118. /***/ }),
  60119. /***/ "../../node_modules/scheduler/index.js":
  60120. /*!***********************************************************!*\
  60121. !*** C:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  60122. \***********************************************************/
  60123. /*! no static exports found */
  60124. /***/ (function(module, exports, __webpack_require__) {
  60125. "use strict";
  60126. if (false) {} else {
  60127. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  60128. }
  60129. /***/ }),
  60130. /***/ "../../node_modules/scheduler/tracing.js":
  60131. /*!*************************************************************!*\
  60132. !*** C:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  60133. \*************************************************************/
  60134. /*! no static exports found */
  60135. /***/ (function(module, exports, __webpack_require__) {
  60136. "use strict";
  60137. if (false) {} else {
  60138. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  60139. }
  60140. /***/ }),
  60141. /***/ "../../node_modules/setimmediate/setImmediate.js":
  60142. /*!*********************************************************************!*\
  60143. !*** C:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  60144. \*********************************************************************/
  60145. /*! no static exports found */
  60146. /***/ (function(module, exports, __webpack_require__) {
  60147. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  60148. "use strict";
  60149. if (global.setImmediate) {
  60150. return;
  60151. }
  60152. var nextHandle = 1; // Spec says greater than zero
  60153. var tasksByHandle = {};
  60154. var currentlyRunningATask = false;
  60155. var doc = global.document;
  60156. var registerImmediate;
  60157. function setImmediate(callback) {
  60158. // Callback can either be a function or a string
  60159. if (typeof callback !== "function") {
  60160. callback = new Function("" + callback);
  60161. }
  60162. // Copy function arguments
  60163. var args = new Array(arguments.length - 1);
  60164. for (var i = 0; i < args.length; i++) {
  60165. args[i] = arguments[i + 1];
  60166. }
  60167. // Store and register the task
  60168. var task = { callback: callback, args: args };
  60169. tasksByHandle[nextHandle] = task;
  60170. registerImmediate(nextHandle);
  60171. return nextHandle++;
  60172. }
  60173. function clearImmediate(handle) {
  60174. delete tasksByHandle[handle];
  60175. }
  60176. function run(task) {
  60177. var callback = task.callback;
  60178. var args = task.args;
  60179. switch (args.length) {
  60180. case 0:
  60181. callback();
  60182. break;
  60183. case 1:
  60184. callback(args[0]);
  60185. break;
  60186. case 2:
  60187. callback(args[0], args[1]);
  60188. break;
  60189. case 3:
  60190. callback(args[0], args[1], args[2]);
  60191. break;
  60192. default:
  60193. callback.apply(undefined, args);
  60194. break;
  60195. }
  60196. }
  60197. function runIfPresent(handle) {
  60198. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  60199. // So if we're currently running a task, we'll need to delay this invocation.
  60200. if (currentlyRunningATask) {
  60201. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  60202. // "too much recursion" error.
  60203. setTimeout(runIfPresent, 0, handle);
  60204. } else {
  60205. var task = tasksByHandle[handle];
  60206. if (task) {
  60207. currentlyRunningATask = true;
  60208. try {
  60209. run(task);
  60210. } finally {
  60211. clearImmediate(handle);
  60212. currentlyRunningATask = false;
  60213. }
  60214. }
  60215. }
  60216. }
  60217. function installNextTickImplementation() {
  60218. registerImmediate = function(handle) {
  60219. process.nextTick(function () { runIfPresent(handle); });
  60220. };
  60221. }
  60222. function canUsePostMessage() {
  60223. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  60224. // where `global.postMessage` means something completely different and can't be used for this purpose.
  60225. if (global.postMessage && !global.importScripts) {
  60226. var postMessageIsAsynchronous = true;
  60227. var oldOnMessage = global.onmessage;
  60228. global.onmessage = function() {
  60229. postMessageIsAsynchronous = false;
  60230. };
  60231. global.postMessage("", "*");
  60232. global.onmessage = oldOnMessage;
  60233. return postMessageIsAsynchronous;
  60234. }
  60235. }
  60236. function installPostMessageImplementation() {
  60237. // Installs an event handler on `global` for the `message` event: see
  60238. // * https://developer.mozilla.org/en/DOM/window.postMessage
  60239. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  60240. var messagePrefix = "setImmediate$" + Math.random() + "$";
  60241. var onGlobalMessage = function(event) {
  60242. if (event.source === global &&
  60243. typeof event.data === "string" &&
  60244. event.data.indexOf(messagePrefix) === 0) {
  60245. runIfPresent(+event.data.slice(messagePrefix.length));
  60246. }
  60247. };
  60248. if (global.addEventListener) {
  60249. global.addEventListener("message", onGlobalMessage, false);
  60250. } else {
  60251. global.attachEvent("onmessage", onGlobalMessage);
  60252. }
  60253. registerImmediate = function(handle) {
  60254. global.postMessage(messagePrefix + handle, "*");
  60255. };
  60256. }
  60257. function installMessageChannelImplementation() {
  60258. var channel = new MessageChannel();
  60259. channel.port1.onmessage = function(event) {
  60260. var handle = event.data;
  60261. runIfPresent(handle);
  60262. };
  60263. registerImmediate = function(handle) {
  60264. channel.port2.postMessage(handle);
  60265. };
  60266. }
  60267. function installReadyStateChangeImplementation() {
  60268. var html = doc.documentElement;
  60269. registerImmediate = function(handle) {
  60270. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  60271. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  60272. var script = doc.createElement("script");
  60273. script.onreadystatechange = function () {
  60274. runIfPresent(handle);
  60275. script.onreadystatechange = null;
  60276. html.removeChild(script);
  60277. script = null;
  60278. };
  60279. html.appendChild(script);
  60280. };
  60281. }
  60282. function installSetTimeoutImplementation() {
  60283. registerImmediate = function(handle) {
  60284. setTimeout(runIfPresent, 0, handle);
  60285. };
  60286. }
  60287. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  60288. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  60289. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  60290. // Don't get fooled by e.g. browserify environments.
  60291. if ({}.toString.call(global.process) === "[object process]") {
  60292. // For Node.js before 0.9
  60293. installNextTickImplementation();
  60294. } else if (canUsePostMessage()) {
  60295. // For non-IE10 modern browsers
  60296. installPostMessageImplementation();
  60297. } else if (global.MessageChannel) {
  60298. // For web workers, where supported
  60299. installMessageChannelImplementation();
  60300. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  60301. // For IE 6–8
  60302. installReadyStateChangeImplementation();
  60303. } else {
  60304. // For older browsers
  60305. installSetTimeoutImplementation();
  60306. }
  60307. attachTo.setImmediate = setImmediate;
  60308. attachTo.clearImmediate = clearImmediate;
  60309. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  60310. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../process/browser.js */ "../../node_modules/process/browser.js")))
  60311. /***/ }),
  60312. /***/ "../../node_modules/storm-react-diagrams/dist/main.js":
  60313. /*!**************************************************************************!*\
  60314. !*** C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/main.js ***!
  60315. \**************************************************************************/
  60316. /*! no static exports found */
  60317. /***/ (function(module, exports, __webpack_require__) {
  60318. (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};
  60319. //!-------------- FACTORIES ------------
  60320. 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}}}])});
  60321. //# sourceMappingURL=main.js.map
  60322. /***/ }),
  60323. /***/ "../../node_modules/storm-react-diagrams/dist/style.min.css":
  60324. /*!********************************************************************************!*\
  60325. !*** C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  60326. \********************************************************************************/
  60327. /*! no static exports found */
  60328. /***/ (function(module, exports, __webpack_require__) {
  60329. var content = __webpack_require__(/*! !../../css-loader!./style.min.css */ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css");
  60330. if(typeof content === 'string') content = [[module.i, content, '']];
  60331. var transform;
  60332. var insertInto;
  60333. var options = {"hmr":true}
  60334. options.transform = transform
  60335. options.insertInto = undefined;
  60336. var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  60337. if(content.locals) module.exports = content.locals;
  60338. if(false) {}
  60339. /***/ }),
  60340. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  60341. /*!**********************************************************************!*\
  60342. !*** C:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  60343. \**********************************************************************/
  60344. /*! no static exports found */
  60345. /***/ (function(module, exports, __webpack_require__) {
  60346. /*
  60347. MIT License http://www.opensource.org/licenses/mit-license.php
  60348. Author Tobias Koppers @sokra
  60349. */
  60350. var stylesInDom = {};
  60351. var memoize = function (fn) {
  60352. var memo;
  60353. return function () {
  60354. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  60355. return memo;
  60356. };
  60357. };
  60358. var isOldIE = memoize(function () {
  60359. // Test for IE <= 9 as proposed by Browserhacks
  60360. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  60361. // Tests for existence of standard globals is to allow style-loader
  60362. // to operate correctly into non-standard environments
  60363. // @see https://github.com/webpack-contrib/style-loader/issues/177
  60364. return window && document && document.all && !window.atob;
  60365. });
  60366. var getTarget = function (target) {
  60367. return document.querySelector(target);
  60368. };
  60369. var getElement = (function (fn) {
  60370. var memo = {};
  60371. return function(target) {
  60372. // If passing function in options, then use it for resolve "head" element.
  60373. // Useful for Shadow Root style i.e
  60374. // {
  60375. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  60376. // }
  60377. if (typeof target === 'function') {
  60378. return target();
  60379. }
  60380. if (typeof memo[target] === "undefined") {
  60381. var styleTarget = getTarget.call(this, target);
  60382. // Special case to return head of iframe instead of iframe itself
  60383. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  60384. try {
  60385. // This will throw an exception if access to iframe is blocked
  60386. // due to cross-origin restrictions
  60387. styleTarget = styleTarget.contentDocument.head;
  60388. } catch(e) {
  60389. styleTarget = null;
  60390. }
  60391. }
  60392. memo[target] = styleTarget;
  60393. }
  60394. return memo[target]
  60395. };
  60396. })();
  60397. var singleton = null;
  60398. var singletonCounter = 0;
  60399. var stylesInsertedAtTop = [];
  60400. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  60401. module.exports = function(list, options) {
  60402. if (typeof DEBUG !== "undefined" && DEBUG) {
  60403. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  60404. }
  60405. options = options || {};
  60406. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  60407. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  60408. // tags it will allow on a page
  60409. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  60410. // By default, add <style> tags to the <head> element
  60411. if (!options.insertInto) options.insertInto = "head";
  60412. // By default, add <style> tags to the bottom of the target
  60413. if (!options.insertAt) options.insertAt = "bottom";
  60414. var styles = listToStyles(list, options);
  60415. addStylesToDom(styles, options);
  60416. return function update (newList) {
  60417. var mayRemove = [];
  60418. for (var i = 0; i < styles.length; i++) {
  60419. var item = styles[i];
  60420. var domStyle = stylesInDom[item.id];
  60421. domStyle.refs--;
  60422. mayRemove.push(domStyle);
  60423. }
  60424. if(newList) {
  60425. var newStyles = listToStyles(newList, options);
  60426. addStylesToDom(newStyles, options);
  60427. }
  60428. for (var i = 0; i < mayRemove.length; i++) {
  60429. var domStyle = mayRemove[i];
  60430. if(domStyle.refs === 0) {
  60431. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  60432. delete stylesInDom[domStyle.id];
  60433. }
  60434. }
  60435. };
  60436. };
  60437. function addStylesToDom (styles, options) {
  60438. for (var i = 0; i < styles.length; i++) {
  60439. var item = styles[i];
  60440. var domStyle = stylesInDom[item.id];
  60441. if(domStyle) {
  60442. domStyle.refs++;
  60443. for(var j = 0; j < domStyle.parts.length; j++) {
  60444. domStyle.parts[j](item.parts[j]);
  60445. }
  60446. for(; j < item.parts.length; j++) {
  60447. domStyle.parts.push(addStyle(item.parts[j], options));
  60448. }
  60449. } else {
  60450. var parts = [];
  60451. for(var j = 0; j < item.parts.length; j++) {
  60452. parts.push(addStyle(item.parts[j], options));
  60453. }
  60454. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  60455. }
  60456. }
  60457. }
  60458. function listToStyles (list, options) {
  60459. var styles = [];
  60460. var newStyles = {};
  60461. for (var i = 0; i < list.length; i++) {
  60462. var item = list[i];
  60463. var id = options.base ? item[0] + options.base : item[0];
  60464. var css = item[1];
  60465. var media = item[2];
  60466. var sourceMap = item[3];
  60467. var part = {css: css, media: media, sourceMap: sourceMap};
  60468. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  60469. else newStyles[id].parts.push(part);
  60470. }
  60471. return styles;
  60472. }
  60473. function insertStyleElement (options, style) {
  60474. var target = getElement(options.insertInto)
  60475. if (!target) {
  60476. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  60477. }
  60478. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  60479. if (options.insertAt === "top") {
  60480. if (!lastStyleElementInsertedAtTop) {
  60481. target.insertBefore(style, target.firstChild);
  60482. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  60483. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  60484. } else {
  60485. target.appendChild(style);
  60486. }
  60487. stylesInsertedAtTop.push(style);
  60488. } else if (options.insertAt === "bottom") {
  60489. target.appendChild(style);
  60490. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  60491. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  60492. target.insertBefore(style, nextSibling);
  60493. } else {
  60494. 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");
  60495. }
  60496. }
  60497. function removeStyleElement (style) {
  60498. if (style.parentNode === null) return false;
  60499. style.parentNode.removeChild(style);
  60500. var idx = stylesInsertedAtTop.indexOf(style);
  60501. if(idx >= 0) {
  60502. stylesInsertedAtTop.splice(idx, 1);
  60503. }
  60504. }
  60505. function createStyleElement (options) {
  60506. var style = document.createElement("style");
  60507. if(options.attrs.type === undefined) {
  60508. options.attrs.type = "text/css";
  60509. }
  60510. addAttrs(style, options.attrs);
  60511. insertStyleElement(options, style);
  60512. return style;
  60513. }
  60514. function createLinkElement (options) {
  60515. var link = document.createElement("link");
  60516. if(options.attrs.type === undefined) {
  60517. options.attrs.type = "text/css";
  60518. }
  60519. options.attrs.rel = "stylesheet";
  60520. addAttrs(link, options.attrs);
  60521. insertStyleElement(options, link);
  60522. return link;
  60523. }
  60524. function addAttrs (el, attrs) {
  60525. Object.keys(attrs).forEach(function (key) {
  60526. el.setAttribute(key, attrs[key]);
  60527. });
  60528. }
  60529. function addStyle (obj, options) {
  60530. var style, update, remove, result;
  60531. // If a transform function was defined, run it on the css
  60532. if (options.transform && obj.css) {
  60533. result = options.transform(obj.css);
  60534. if (result) {
  60535. // If transform returns a value, use that instead of the original css.
  60536. // This allows running runtime transformations on the css.
  60537. obj.css = result;
  60538. } else {
  60539. // If the transform function returns a falsy value, don't add this css.
  60540. // This allows conditional loading of css
  60541. return function() {
  60542. // noop
  60543. };
  60544. }
  60545. }
  60546. if (options.singleton) {
  60547. var styleIndex = singletonCounter++;
  60548. style = singleton || (singleton = createStyleElement(options));
  60549. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  60550. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  60551. } else if (
  60552. obj.sourceMap &&
  60553. typeof URL === "function" &&
  60554. typeof URL.createObjectURL === "function" &&
  60555. typeof URL.revokeObjectURL === "function" &&
  60556. typeof Blob === "function" &&
  60557. typeof btoa === "function"
  60558. ) {
  60559. style = createLinkElement(options);
  60560. update = updateLink.bind(null, style, options);
  60561. remove = function () {
  60562. removeStyleElement(style);
  60563. if(style.href) URL.revokeObjectURL(style.href);
  60564. };
  60565. } else {
  60566. style = createStyleElement(options);
  60567. update = applyToTag.bind(null, style);
  60568. remove = function () {
  60569. removeStyleElement(style);
  60570. };
  60571. }
  60572. update(obj);
  60573. return function updateStyle (newObj) {
  60574. if (newObj) {
  60575. if (
  60576. newObj.css === obj.css &&
  60577. newObj.media === obj.media &&
  60578. newObj.sourceMap === obj.sourceMap
  60579. ) {
  60580. return;
  60581. }
  60582. update(obj = newObj);
  60583. } else {
  60584. remove();
  60585. }
  60586. };
  60587. }
  60588. var replaceText = (function () {
  60589. var textStore = [];
  60590. return function (index, replacement) {
  60591. textStore[index] = replacement;
  60592. return textStore.filter(Boolean).join('\n');
  60593. };
  60594. })();
  60595. function applyToSingletonTag (style, index, remove, obj) {
  60596. var css = remove ? "" : obj.css;
  60597. if (style.styleSheet) {
  60598. style.styleSheet.cssText = replaceText(index, css);
  60599. } else {
  60600. var cssNode = document.createTextNode(css);
  60601. var childNodes = style.childNodes;
  60602. if (childNodes[index]) style.removeChild(childNodes[index]);
  60603. if (childNodes.length) {
  60604. style.insertBefore(cssNode, childNodes[index]);
  60605. } else {
  60606. style.appendChild(cssNode);
  60607. }
  60608. }
  60609. }
  60610. function applyToTag (style, obj) {
  60611. var css = obj.css;
  60612. var media = obj.media;
  60613. if(media) {
  60614. style.setAttribute("media", media)
  60615. }
  60616. if(style.styleSheet) {
  60617. style.styleSheet.cssText = css;
  60618. } else {
  60619. while(style.firstChild) {
  60620. style.removeChild(style.firstChild);
  60621. }
  60622. style.appendChild(document.createTextNode(css));
  60623. }
  60624. }
  60625. function updateLink (link, options, obj) {
  60626. var css = obj.css;
  60627. var sourceMap = obj.sourceMap;
  60628. /*
  60629. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  60630. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  60631. on by default. Otherwise default to the convertToAbsoluteUrls option
  60632. directly
  60633. */
  60634. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  60635. if (options.convertToAbsoluteUrls || autoFixUrls) {
  60636. css = fixUrls(css);
  60637. }
  60638. if (sourceMap) {
  60639. // http://stackoverflow.com/a/26603875
  60640. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  60641. }
  60642. var blob = new Blob([css], { type: "text/css" });
  60643. var oldSrc = link.href;
  60644. link.href = URL.createObjectURL(blob);
  60645. if(oldSrc) URL.revokeObjectURL(oldSrc);
  60646. }
  60647. /***/ }),
  60648. /***/ "../../node_modules/style-loader/lib/urls.js":
  60649. /*!*****************************************************************!*\
  60650. !*** C:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  60651. \*****************************************************************/
  60652. /*! no static exports found */
  60653. /***/ (function(module, exports) {
  60654. /**
  60655. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  60656. * embed the css on the page. This breaks all relative urls because now they are relative to a
  60657. * bundle instead of the current page.
  60658. *
  60659. * One solution is to only use full urls, but that may be impossible.
  60660. *
  60661. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  60662. *
  60663. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  60664. *
  60665. */
  60666. module.exports = function (css) {
  60667. // get current location
  60668. var location = typeof window !== "undefined" && window.location;
  60669. if (!location) {
  60670. throw new Error("fixUrls requires window.location");
  60671. }
  60672. // blank or null?
  60673. if (!css || typeof css !== "string") {
  60674. return css;
  60675. }
  60676. var baseUrl = location.protocol + "//" + location.host;
  60677. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  60678. // convert each url(...)
  60679. /*
  60680. This regular expression is just a way to recursively match brackets within
  60681. a string.
  60682. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  60683. ( = Start a capturing group
  60684. (?: = Start a non-capturing group
  60685. [^)(] = Match anything that isn't a parentheses
  60686. | = OR
  60687. \( = Match a start parentheses
  60688. (?: = Start another non-capturing groups
  60689. [^)(]+ = Match anything that isn't a parentheses
  60690. | = OR
  60691. \( = Match a start parentheses
  60692. [^)(]* = Match anything that isn't a parentheses
  60693. \) = Match a end parentheses
  60694. ) = End Group
  60695. *\) = Match anything and then a close parens
  60696. ) = Close non-capturing group
  60697. * = Match anything
  60698. ) = Close capturing group
  60699. \) = Match a close parens
  60700. /gi = Get all matches, not the first. Be case insensitive.
  60701. */
  60702. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  60703. // strip quotes (if they exist)
  60704. var unquotedOrigUrl = origUrl
  60705. .trim()
  60706. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  60707. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  60708. // already a full url? no change
  60709. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  60710. return fullMatch;
  60711. }
  60712. // convert the url to a full url
  60713. var newUrl;
  60714. if (unquotedOrigUrl.indexOf("//") === 0) {
  60715. //TODO: should we add protocol?
  60716. newUrl = unquotedOrigUrl;
  60717. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  60718. // path should be relative to the base url
  60719. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  60720. } else {
  60721. // path should be relative to current directory
  60722. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  60723. }
  60724. // send back the fixed url(...)
  60725. return "url(" + JSON.stringify(newUrl) + ")";
  60726. });
  60727. // send back the fixed css
  60728. return fixedCss;
  60729. };
  60730. /***/ }),
  60731. /***/ "../../node_modules/timers-browserify/main.js":
  60732. /*!******************************************************************!*\
  60733. !*** C:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  60734. \******************************************************************/
  60735. /*! no static exports found */
  60736. /***/ (function(module, exports, __webpack_require__) {
  60737. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  60738. (typeof self !== "undefined" && self) ||
  60739. window;
  60740. var apply = Function.prototype.apply;
  60741. // DOM APIs, for completeness
  60742. exports.setTimeout = function() {
  60743. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  60744. };
  60745. exports.setInterval = function() {
  60746. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  60747. };
  60748. exports.clearTimeout =
  60749. exports.clearInterval = function(timeout) {
  60750. if (timeout) {
  60751. timeout.close();
  60752. }
  60753. };
  60754. function Timeout(id, clearFn) {
  60755. this._id = id;
  60756. this._clearFn = clearFn;
  60757. }
  60758. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  60759. Timeout.prototype.close = function() {
  60760. this._clearFn.call(scope, this._id);
  60761. };
  60762. // Does not start the time, just sets up the members needed.
  60763. exports.enroll = function(item, msecs) {
  60764. clearTimeout(item._idleTimeoutId);
  60765. item._idleTimeout = msecs;
  60766. };
  60767. exports.unenroll = function(item) {
  60768. clearTimeout(item._idleTimeoutId);
  60769. item._idleTimeout = -1;
  60770. };
  60771. exports._unrefActive = exports.active = function(item) {
  60772. clearTimeout(item._idleTimeoutId);
  60773. var msecs = item._idleTimeout;
  60774. if (msecs >= 0) {
  60775. item._idleTimeoutId = setTimeout(function onTimeout() {
  60776. if (item._onTimeout)
  60777. item._onTimeout();
  60778. }, msecs);
  60779. }
  60780. };
  60781. // setimmediate attaches itself to the global object
  60782. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  60783. // On some exotic environments, it's not clear which object `setimmediate` was
  60784. // able to install onto. Search each possibility in the same order as the
  60785. // `setimmediate` library.
  60786. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  60787. (typeof global !== "undefined" && global.setImmediate) ||
  60788. (this && this.setImmediate);
  60789. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  60790. (typeof global !== "undefined" && global.clearImmediate) ||
  60791. (this && this.clearImmediate);
  60792. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  60793. /***/ }),
  60794. /***/ "../../node_modules/tslib/tslib.es6.js":
  60795. /*!***********************************************************!*\
  60796. !*** C:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  60797. \***********************************************************/
  60798. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  60799. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60800. "use strict";
  60801. __webpack_require__.r(__webpack_exports__);
  60802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  60803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  60804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  60805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  60806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  60807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  60808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  60809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  60810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  60811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  60812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  60813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  60814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  60815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  60816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  60817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  60818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  60819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  60820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  60821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  60822. /*! *****************************************************************************
  60823. Copyright (c) Microsoft Corporation. All rights reserved.
  60824. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  60825. this file except in compliance with the License. You may obtain a copy of the
  60826. License at http://www.apache.org/licenses/LICENSE-2.0
  60827. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  60828. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  60829. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  60830. MERCHANTABLITY OR NON-INFRINGEMENT.
  60831. See the Apache Version 2.0 License for specific language governing permissions
  60832. and limitations under the License.
  60833. ***************************************************************************** */
  60834. /* global Reflect, Promise */
  60835. var extendStatics = function(d, b) {
  60836. extendStatics = Object.setPrototypeOf ||
  60837. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  60838. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  60839. return extendStatics(d, b);
  60840. };
  60841. function __extends(d, b) {
  60842. extendStatics(d, b);
  60843. function __() { this.constructor = d; }
  60844. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  60845. }
  60846. var __assign = function() {
  60847. __assign = Object.assign || function __assign(t) {
  60848. for (var s, i = 1, n = arguments.length; i < n; i++) {
  60849. s = arguments[i];
  60850. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  60851. }
  60852. return t;
  60853. }
  60854. return __assign.apply(this, arguments);
  60855. }
  60856. function __rest(s, e) {
  60857. var t = {};
  60858. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  60859. t[p] = s[p];
  60860. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  60861. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  60862. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  60863. t[p[i]] = s[p[i]];
  60864. }
  60865. return t;
  60866. }
  60867. function __decorate(decorators, target, key, desc) {
  60868. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  60869. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  60870. 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;
  60871. return c > 3 && r && Object.defineProperty(target, key, r), r;
  60872. }
  60873. function __param(paramIndex, decorator) {
  60874. return function (target, key) { decorator(target, key, paramIndex); }
  60875. }
  60876. function __metadata(metadataKey, metadataValue) {
  60877. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  60878. }
  60879. function __awaiter(thisArg, _arguments, P, generator) {
  60880. return new (P || (P = Promise))(function (resolve, reject) {
  60881. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  60882. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  60883. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  60884. step((generator = generator.apply(thisArg, _arguments || [])).next());
  60885. });
  60886. }
  60887. function __generator(thisArg, body) {
  60888. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  60889. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  60890. function verb(n) { return function (v) { return step([n, v]); }; }
  60891. function step(op) {
  60892. if (f) throw new TypeError("Generator is already executing.");
  60893. while (_) try {
  60894. 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;
  60895. if (y = 0, t) op = [op[0] & 2, t.value];
  60896. switch (op[0]) {
  60897. case 0: case 1: t = op; break;
  60898. case 4: _.label++; return { value: op[1], done: false };
  60899. case 5: _.label++; y = op[1]; op = [0]; continue;
  60900. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  60901. default:
  60902. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  60903. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  60904. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  60905. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  60906. if (t[2]) _.ops.pop();
  60907. _.trys.pop(); continue;
  60908. }
  60909. op = body.call(thisArg, _);
  60910. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  60911. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  60912. }
  60913. }
  60914. function __exportStar(m, exports) {
  60915. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  60916. }
  60917. function __values(o) {
  60918. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  60919. if (m) return m.call(o);
  60920. return {
  60921. next: function () {
  60922. if (o && i >= o.length) o = void 0;
  60923. return { value: o && o[i++], done: !o };
  60924. }
  60925. };
  60926. }
  60927. function __read(o, n) {
  60928. var m = typeof Symbol === "function" && o[Symbol.iterator];
  60929. if (!m) return o;
  60930. var i = m.call(o), r, ar = [], e;
  60931. try {
  60932. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  60933. }
  60934. catch (error) { e = { error: error }; }
  60935. finally {
  60936. try {
  60937. if (r && !r.done && (m = i["return"])) m.call(i);
  60938. }
  60939. finally { if (e) throw e.error; }
  60940. }
  60941. return ar;
  60942. }
  60943. function __spread() {
  60944. for (var ar = [], i = 0; i < arguments.length; i++)
  60945. ar = ar.concat(__read(arguments[i]));
  60946. return ar;
  60947. }
  60948. function __spreadArrays() {
  60949. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  60950. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  60951. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  60952. r[k] = a[j];
  60953. return r;
  60954. };
  60955. function __await(v) {
  60956. return this instanceof __await ? (this.v = v, this) : new __await(v);
  60957. }
  60958. function __asyncGenerator(thisArg, _arguments, generator) {
  60959. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  60960. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  60961. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  60962. 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); }); }; }
  60963. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  60964. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  60965. function fulfill(value) { resume("next", value); }
  60966. function reject(value) { resume("throw", value); }
  60967. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  60968. }
  60969. function __asyncDelegator(o) {
  60970. var i, p;
  60971. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  60972. 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; }
  60973. }
  60974. function __asyncValues(o) {
  60975. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  60976. var m = o[Symbol.asyncIterator], i;
  60977. 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);
  60978. 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); }); }; }
  60979. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  60980. }
  60981. function __makeTemplateObject(cooked, raw) {
  60982. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  60983. return cooked;
  60984. };
  60985. function __importStar(mod) {
  60986. if (mod && mod.__esModule) return mod;
  60987. var result = {};
  60988. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  60989. result.default = mod;
  60990. return result;
  60991. }
  60992. function __importDefault(mod) {
  60993. return (mod && mod.__esModule) ? mod : { default: mod };
  60994. }
  60995. /***/ }),
  60996. /***/ "../../node_modules/webpack/buildin/global.js":
  60997. /*!***********************************!*\
  60998. !*** (webpack)/buildin/global.js ***!
  60999. \***********************************/
  61000. /*! no static exports found */
  61001. /***/ (function(module, exports) {
  61002. var g;
  61003. // This works in non-strict mode
  61004. g = (function() {
  61005. return this;
  61006. })();
  61007. try {
  61008. // This works if eval is allowed (see CSP)
  61009. g = g || new Function("return this")();
  61010. } catch (e) {
  61011. // This works if the window reference is available
  61012. if (typeof window === "object") g = window;
  61013. }
  61014. // g can still be undefined, but nothing to do about it...
  61015. // We return undefined, instead of nothing here, so it's
  61016. // easier to handle this case. if(!global) { ...}
  61017. module.exports = g;
  61018. /***/ }),
  61019. /***/ "../../node_modules/webpack/buildin/module.js":
  61020. /*!***********************************!*\
  61021. !*** (webpack)/buildin/module.js ***!
  61022. \***********************************/
  61023. /*! no static exports found */
  61024. /***/ (function(module, exports) {
  61025. module.exports = function(module) {
  61026. if (!module.webpackPolyfill) {
  61027. module.deprecate = function() {};
  61028. module.paths = [];
  61029. // module.parent = undefined by default
  61030. if (!module.children) module.children = [];
  61031. Object.defineProperty(module, "loaded", {
  61032. enumerable: true,
  61033. get: function() {
  61034. return module.l;
  61035. }
  61036. });
  61037. Object.defineProperty(module, "id", {
  61038. enumerable: true,
  61039. get: function() {
  61040. return module.i;
  61041. }
  61042. });
  61043. module.webpackPolyfill = 1;
  61044. }
  61045. return module;
  61046. };
  61047. /***/ }),
  61048. /***/ "./blockTools.ts":
  61049. /*!***********************!*\
  61050. !*** ./blockTools.ts ***!
  61051. \***********************/
  61052. /*! exports provided: BlockTools */
  61053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61054. "use strict";
  61055. __webpack_require__.r(__webpack_exports__);
  61056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  61057. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock */ "babylonjs/Misc/observable");
  61058. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__);
  61059. var BlockTools = /** @class */ (function () {
  61060. function BlockTools() {
  61061. }
  61062. BlockTools.GetBlockFromString = function (data) {
  61063. switch (data) {
  61064. case "BonesBlock":
  61065. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  61066. case "InstancesBlock":
  61067. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  61068. case "MorphTargetsBlock":
  61069. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  61070. case "AlphaTestBlock":
  61071. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AlphaTestBlock"]("AlphaTest");
  61072. case "ImageProcessingBlock":
  61073. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  61074. case "ColorMergerBlock":
  61075. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  61076. case "VectorMergerBlock":
  61077. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  61078. case "ColorSplitterBlock":
  61079. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  61080. case "VectorSplitterBlock":
  61081. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  61082. case "TextureBlock":
  61083. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture");
  61084. case "ReflectionTextureBlock":
  61085. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Texture");
  61086. case "LightBlock":
  61087. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  61088. case "FogBlock":
  61089. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  61090. case "VertexOutputBlock":
  61091. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  61092. case "FragmentOutputBlock":
  61093. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  61094. case "AddBlock":
  61095. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  61096. case "ClampBlock":
  61097. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  61098. case "ScaleBlock":
  61099. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  61100. case "CrossBlock":
  61101. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  61102. case "DotBlock":
  61103. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  61104. case "MultiplyBlock":
  61105. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  61106. case "TransformBlock":
  61107. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  61108. case "TrigonometryBlock":
  61109. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  61110. case "RemapBlock":
  61111. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  61112. case "NormalizeBlock":
  61113. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  61114. case "FresnelBlock":
  61115. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  61116. case "LerpBlock":
  61117. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  61118. case "DivideBlock":
  61119. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  61120. case "SubtractBlock":
  61121. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  61122. case "StepBlock":
  61123. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  61124. case "OneMinusBlock":
  61125. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  61126. case "ViewDirectionBlock":
  61127. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  61128. case "LightInformationBlock":
  61129. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  61130. case "MaxBlock":
  61131. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  61132. case "MinBlock":
  61133. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  61134. case "PerturbNormalBlock":
  61135. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  61136. case "CosBlock": {
  61137. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  61138. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  61139. return cosBlock;
  61140. }
  61141. case "SinBlock": {
  61142. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  61143. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  61144. return sinBlock;
  61145. }
  61146. case "AbsBlock": {
  61147. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  61148. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  61149. return absBlock;
  61150. }
  61151. case "ExpBlock": {
  61152. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  61153. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  61154. return expBlock;
  61155. }
  61156. case "Exp2Block": {
  61157. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  61158. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  61159. return exp2Block;
  61160. }
  61161. case "RoundBlock": {
  61162. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  61163. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  61164. return roundBlock;
  61165. }
  61166. case "CeilingBlock": {
  61167. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  61168. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  61169. return ceilingBlock;
  61170. }
  61171. case "FloorBlock": {
  61172. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  61173. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  61174. return floorBlock;
  61175. }
  61176. case "WorldMatrixBlock": {
  61177. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  61178. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  61179. return worldMatrixBlock;
  61180. }
  61181. case "WorldViewMatrixBlock": {
  61182. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  61183. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  61184. return worldViewMatrixBlock;
  61185. }
  61186. case "WorldViewProjectionMatrixBlock": {
  61187. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  61188. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  61189. return worldViewProjectionMatrixBlock;
  61190. }
  61191. case "ViewMatrixBlock": {
  61192. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  61193. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  61194. return viewMatrixBlock;
  61195. }
  61196. case "ViewProjectionMatrixBlock": {
  61197. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  61198. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  61199. return viewProjectionMatrixBlock;
  61200. }
  61201. case "ProjectionMatrixBlock": {
  61202. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  61203. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  61204. return projectionMatrixBlock;
  61205. }
  61206. case "CameraPositionBlock": {
  61207. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  61208. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  61209. return cameraPosition;
  61210. }
  61211. case "FogColorBlock": {
  61212. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  61213. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  61214. return FogColor;
  61215. }
  61216. case "PositionBlock": {
  61217. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  61218. meshPosition.setAsAttribute("position");
  61219. return meshPosition;
  61220. }
  61221. case "UVBlock": {
  61222. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  61223. meshUV.setAsAttribute("uv");
  61224. return meshUV;
  61225. }
  61226. case "ColorBlock": {
  61227. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  61228. meshColor.setAsAttribute("color");
  61229. return meshColor;
  61230. }
  61231. case "NormalBlock": {
  61232. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  61233. meshNormal.setAsAttribute("normal");
  61234. return meshNormal;
  61235. }
  61236. case "TangentBlock": {
  61237. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  61238. meshTangent.setAsAttribute("tangent");
  61239. return meshTangent;
  61240. }
  61241. case "MatrixIndicesBlock": {
  61242. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  61243. meshMatrixIndices.setAsAttribute("matricesIndices");
  61244. return meshMatrixIndices;
  61245. }
  61246. case "MatrixWeightsBlock": {
  61247. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  61248. meshMatrixWeights.setAsAttribute("matricesWeights");
  61249. return meshMatrixWeights;
  61250. }
  61251. case "TimeBlock": {
  61252. var timeBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Time", undefined, babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float);
  61253. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  61254. return timeBlock;
  61255. }
  61256. }
  61257. return null;
  61258. };
  61259. BlockTools.GetColorFromConnectionNodeType = function (type) {
  61260. var color = "Red";
  61261. switch (type) {
  61262. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  61263. color = "#ca9e27";
  61264. break;
  61265. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61266. color = "#16bcb1";
  61267. break;
  61268. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61269. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61270. color = "#b786cb";
  61271. break;
  61272. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61273. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61274. color = "#be5126";
  61275. break;
  61276. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61277. color = "#591990";
  61278. break;
  61279. }
  61280. return color;
  61281. };
  61282. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  61283. switch (type) {
  61284. case "Float":
  61285. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  61286. case "Vector2":
  61287. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  61288. case "Vector3":
  61289. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  61290. case "Vector4":
  61291. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  61292. case "Matrix":
  61293. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  61294. case "Color3":
  61295. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  61296. case "Color4":
  61297. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  61298. }
  61299. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  61300. };
  61301. BlockTools.GetStringFromConnectionNodeType = function (type) {
  61302. switch (type) {
  61303. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  61304. return "Float";
  61305. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61306. return "Vector2";
  61307. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61308. return "Vector3";
  61309. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61310. return "Vector4";
  61311. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61312. return "Color3";
  61313. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61314. return "Color4";
  61315. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61316. return "Matrix";
  61317. }
  61318. return "";
  61319. };
  61320. return BlockTools;
  61321. }());
  61322. /***/ }),
  61323. /***/ "./components/diagram/clamp/clampNodeFactory.tsx":
  61324. /*!*******************************************************!*\
  61325. !*** ./components/diagram/clamp/clampNodeFactory.tsx ***!
  61326. \*******************************************************/
  61327. /*! exports provided: ClampNodeFactory */
  61328. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61329. "use strict";
  61330. __webpack_require__.r(__webpack_exports__);
  61331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeFactory", function() { return ClampNodeFactory; });
  61332. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61333. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61334. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61335. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61336. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  61337. /* harmony import */ var _clampNodeWidget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clampNodeWidget */ "./components/diagram/clamp/clampNodeWidget.tsx");
  61338. /* harmony import */ var _clampNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./clampNodeModel */ "./components/diagram/clamp/clampNodeModel.tsx");
  61339. var ClampNodeFactory = /** @class */ (function (_super) {
  61340. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeFactory, _super);
  61341. function ClampNodeFactory(globalState) {
  61342. var _this = _super.call(this, "clamp") || this;
  61343. _this._globalState = globalState;
  61344. return _this;
  61345. }
  61346. ClampNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  61347. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_clampNodeWidget__WEBPACK_IMPORTED_MODULE_3__["ClampNodeWidget"], { node: node, globalState: this._globalState });
  61348. };
  61349. ClampNodeFactory.prototype.getNewInstance = function () {
  61350. return new _clampNodeModel__WEBPACK_IMPORTED_MODULE_4__["ClampNodeModel"]();
  61351. };
  61352. return ClampNodeFactory;
  61353. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  61354. /***/ }),
  61355. /***/ "./components/diagram/clamp/clampNodeModel.tsx":
  61356. /*!*****************************************************!*\
  61357. !*** ./components/diagram/clamp/clampNodeModel.tsx ***!
  61358. \*****************************************************/
  61359. /*! exports provided: ClampNodeModel */
  61360. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61361. "use strict";
  61362. __webpack_require__.r(__webpack_exports__);
  61363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeModel", function() { return ClampNodeModel; });
  61364. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61365. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61366. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61367. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  61368. /* harmony import */ var _clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clampNodePropertyComponent */ "./components/diagram/clamp/clampNodePropertyComponent.tsx");
  61369. var ClampNodeModel = /** @class */ (function (_super) {
  61370. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeModel, _super);
  61371. /**
  61372. * Constructs the node model
  61373. */
  61374. function ClampNodeModel() {
  61375. return _super.call(this, "clamp") || this;
  61376. }
  61377. Object.defineProperty(ClampNodeModel.prototype, "clampBlock", {
  61378. get: function () {
  61379. return this.block;
  61380. },
  61381. enumerable: true,
  61382. configurable: true
  61383. });
  61384. ClampNodeModel.prototype.renderProperties = function (globalState) {
  61385. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["ClampPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  61386. };
  61387. return ClampNodeModel;
  61388. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  61389. /***/ }),
  61390. /***/ "./components/diagram/clamp/clampNodePropertyComponent.tsx":
  61391. /*!*****************************************************************!*\
  61392. !*** ./components/diagram/clamp/clampNodePropertyComponent.tsx ***!
  61393. \*****************************************************************/
  61394. /*! exports provided: ClampPropertyTabComponentProps */
  61395. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61396. "use strict";
  61397. __webpack_require__.r(__webpack_exports__);
  61398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampPropertyTabComponentProps", function() { return ClampPropertyTabComponentProps; });
  61399. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61400. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61401. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61402. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  61403. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  61404. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  61405. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  61406. var ClampPropertyTabComponentProps = /** @class */ (function (_super) {
  61407. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampPropertyTabComponentProps, _super);
  61408. function ClampPropertyTabComponentProps(props) {
  61409. return _super.call(this, props) || this;
  61410. }
  61411. ClampPropertyTabComponentProps.prototype.forceRebuild = function () {
  61412. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  61413. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61414. };
  61415. ClampPropertyTabComponentProps.prototype.render = function () {
  61416. var _this = this;
  61417. var clampBlock = this.props.remapNode.clampBlock;
  61418. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61419. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  61420. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: clampBlock, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  61421. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: clampBlock.getClassName() })),
  61422. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  61423. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Minimum", propertyName: "minimum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }),
  61424. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Maximum", propertyName: "maximum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }))));
  61425. };
  61426. return ClampPropertyTabComponentProps;
  61427. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61428. /***/ }),
  61429. /***/ "./components/diagram/clamp/clampNodeWidget.tsx":
  61430. /*!******************************************************!*\
  61431. !*** ./components/diagram/clamp/clampNodeWidget.tsx ***!
  61432. \******************************************************/
  61433. /*! exports provided: ClampNodeWidget */
  61434. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61435. "use strict";
  61436. __webpack_require__.r(__webpack_exports__);
  61437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeWidget", function() { return ClampNodeWidget; });
  61438. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61439. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61440. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61441. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  61442. var ClampNodeWidget = /** @class */ (function (_super) {
  61443. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeWidget, _super);
  61444. function ClampNodeWidget(props) {
  61445. var _this = _super.call(this, props) || this;
  61446. _this.state = {};
  61447. if (_this.props.node) {
  61448. _this.props.node.addListener({
  61449. selectionChanged: function () {
  61450. var selected = _this.props.node.selected;
  61451. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  61452. }
  61453. });
  61454. }
  61455. return _this;
  61456. }
  61457. ClampNodeWidget.prototype.renderValue = function (value) {
  61458. if (value) {
  61459. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  61460. }
  61461. return null;
  61462. };
  61463. ClampNodeWidget.prototype.render = function () {
  61464. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, true);
  61465. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  61466. var clampBlock = this.props.node.block;
  61467. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  61468. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, clampBlock.name),
  61469. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  61470. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  61471. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]")));
  61472. };
  61473. return ClampNodeWidget;
  61474. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61475. /***/ }),
  61476. /***/ "./components/diagram/defaultNodeModel.ts":
  61477. /*!************************************************!*\
  61478. !*** ./components/diagram/defaultNodeModel.ts ***!
  61479. \************************************************/
  61480. /*! exports provided: DefaultNodeModel */
  61481. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61482. "use strict";
  61483. __webpack_require__.r(__webpack_exports__);
  61484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultNodeModel", function() { return DefaultNodeModel; });
  61485. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61486. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61487. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61488. /* harmony import */ var _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  61489. /**
  61490. * Generic node model which stores information about a node editor block
  61491. */
  61492. var DefaultNodeModel = /** @class */ (function (_super) {
  61493. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultNodeModel, _super);
  61494. /**
  61495. * Constructs the node model
  61496. */
  61497. function DefaultNodeModel(key) {
  61498. var _this = _super.call(this, key) || this;
  61499. /**
  61500. * The babylon block this node represents
  61501. */
  61502. _this.block = null;
  61503. return _this;
  61504. }
  61505. DefaultNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  61506. var _this = this;
  61507. this.block = options.nodeMaterialBlock || null;
  61508. if (!options.nodeMaterialBlock) {
  61509. return;
  61510. }
  61511. // Create output ports
  61512. options.nodeMaterialBlock._outputs.forEach(function (connection) {
  61513. var outputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "output");
  61514. outputPort.syncWithNodeMaterialConnectionPoint(connection);
  61515. _this.addPort(outputPort);
  61516. });
  61517. // Create input ports and nodes if they exist
  61518. options.nodeMaterialBlock._inputs.forEach(function (connection) {
  61519. var inputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "input");
  61520. inputPort.connection = connection;
  61521. _this.addPort(inputPort);
  61522. if (connection.connectedPoint) {
  61523. // Block is not a leaf node, create node for the given block type
  61524. var connectedNode;
  61525. var existingNodes = nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  61526. if (existingNodes.length == 0) {
  61527. connectedNode = graphEditor.createNodeFromObject({ nodeMaterialBlock: connection.connectedPoint._ownerBlock });
  61528. }
  61529. else {
  61530. connectedNode = existingNodes[0];
  61531. }
  61532. var link = connectedNode.ports[connection.connectedPoint.name].link(inputPort);
  61533. if (graphEditor._toAdd) {
  61534. graphEditor._toAdd.push(link);
  61535. }
  61536. else {
  61537. model.addAll(link);
  61538. }
  61539. }
  61540. });
  61541. };
  61542. DefaultNodeModel.prototype.renderProperties = function (globalState) {
  61543. return null;
  61544. };
  61545. return DefaultNodeModel;
  61546. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["NodeModel"]));
  61547. /***/ }),
  61548. /***/ "./components/diagram/diagram.scss":
  61549. /*!*****************************************!*\
  61550. !*** ./components/diagram/diagram.scss ***!
  61551. \*****************************************/
  61552. /*! no static exports found */
  61553. /***/ (function(module, exports, __webpack_require__) {
  61554. 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");
  61555. if(typeof content === 'string') content = [[module.i, content, '']];
  61556. var transform;
  61557. var insertInto;
  61558. var options = {"hmr":true}
  61559. options.transform = transform
  61560. options.insertInto = undefined;
  61561. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  61562. if(content.locals) module.exports = content.locals;
  61563. if(false) {}
  61564. /***/ }),
  61565. /***/ "./components/diagram/generic/genericNodeFactory.tsx":
  61566. /*!***********************************************************!*\
  61567. !*** ./components/diagram/generic/genericNodeFactory.tsx ***!
  61568. \***********************************************************/
  61569. /*! exports provided: GenericNodeFactory */
  61570. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61571. "use strict";
  61572. __webpack_require__.r(__webpack_exports__);
  61573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeFactory", function() { return GenericNodeFactory; });
  61574. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61575. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61576. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61577. /* harmony import */ var _genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./genericNodeWidget */ "./components/diagram/generic/genericNodeWidget.tsx");
  61578. /* harmony import */ var _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  61579. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61580. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  61581. /**
  61582. * Node factory which creates editor nodes
  61583. */
  61584. var GenericNodeFactory = /** @class */ (function (_super) {
  61585. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeFactory, _super);
  61586. /**
  61587. * Constructs a GenericNodeFactory
  61588. */
  61589. function GenericNodeFactory(globalState) {
  61590. var _this = _super.call(this, "generic") || this;
  61591. _this._globalState = globalState;
  61592. return _this;
  61593. }
  61594. /**
  61595. * Generates a node widget
  61596. * @param diagramEngine diagram engine
  61597. * @param node node to generate
  61598. * @returns node widget jsx
  61599. */
  61600. GenericNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  61601. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__["GenericNodeWidget"], { node: node, globalState: this._globalState });
  61602. };
  61603. /**
  61604. * Gets a new instance of a node model
  61605. * @returns generic node model
  61606. */
  61607. GenericNodeFactory.prototype.getNewInstance = function () {
  61608. return new _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__["GenericNodeModel"]();
  61609. };
  61610. return GenericNodeFactory;
  61611. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  61612. /***/ }),
  61613. /***/ "./components/diagram/generic/genericNodeModel.tsx":
  61614. /*!*********************************************************!*\
  61615. !*** ./components/diagram/generic/genericNodeModel.tsx ***!
  61616. \*********************************************************/
  61617. /*! exports provided: GenericNodeModel */
  61618. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61619. "use strict";
  61620. __webpack_require__.r(__webpack_exports__);
  61621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeModel", function() { return GenericNodeModel; });
  61622. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61623. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61624. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61625. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  61626. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  61627. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  61628. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  61629. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  61630. /**
  61631. * Generic node model which stores information about a node editor block
  61632. */
  61633. var GenericNodeModel = /** @class */ (function (_super) {
  61634. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeModel, _super);
  61635. /**
  61636. * Constructs the node model
  61637. */
  61638. function GenericNodeModel() {
  61639. var _this = _super.call(this, "generic") || this;
  61640. /**
  61641. * Vector2 for the node if it exists
  61642. */
  61643. _this.vector2 = null;
  61644. /**
  61645. * Vector3 for the node if it exists
  61646. */
  61647. _this.vector3 = null;
  61648. /**
  61649. * Vector4 for the node if it exists
  61650. */
  61651. _this.vector4 = null;
  61652. /**
  61653. * Matrix for the node if it exists
  61654. */
  61655. _this.matrix = null;
  61656. return _this;
  61657. }
  61658. GenericNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  61659. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  61660. };
  61661. GenericNodeModel.prototype.renderProperties = function (globalState) {
  61662. var _this = this;
  61663. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61664. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "GENERAL" },
  61665. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { globalState: globalState, label: "Name", propertyName: "name", target: this.block, onChange: function () { return globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  61666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Type", value: this.block.getClassName() })),
  61667. this.block.getClassName() === "TransformBlock" &&
  61668. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  61669. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  61670. var transformBlock = _this.block;
  61671. if (value) {
  61672. transformBlock.complementW = 0;
  61673. }
  61674. else {
  61675. transformBlock.complementW = 1;
  61676. }
  61677. globalState.onRebuildRequiredObservable.notifyObservers();
  61678. }, isSelected: function () { return _this.block.complementW === 0; } })),
  61679. this.block.getClassName() === "PerturbNormalBlock" &&
  61680. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  61681. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Invert X axis", target: this.block, propertyName: "invertX", onValueChanged: function () { return globalState.onRebuildRequiredObservable.notifyObservers(); } }),
  61682. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Invert Y axis", target: this.block, propertyName: "invertY", onValueChanged: function () { return globalState.onRebuildRequiredObservable.notifyObservers(); } }))));
  61683. };
  61684. return GenericNodeModel;
  61685. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  61686. /***/ }),
  61687. /***/ "./components/diagram/generic/genericNodeWidget.tsx":
  61688. /*!**********************************************************!*\
  61689. !*** ./components/diagram/generic/genericNodeWidget.tsx ***!
  61690. \**********************************************************/
  61691. /*! exports provided: GenericNodeWidget */
  61692. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61693. "use strict";
  61694. __webpack_require__.r(__webpack_exports__);
  61695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeWidget", function() { return GenericNodeWidget; });
  61696. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61697. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61698. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61699. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  61700. /**
  61701. * Used to display a node block for the node editor
  61702. */
  61703. var GenericNodeWidget = /** @class */ (function (_super) {
  61704. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeWidget, _super);
  61705. /**
  61706. * Creates a GenericNodeWidget
  61707. * @param props
  61708. */
  61709. function GenericNodeWidget(props) {
  61710. var _this = _super.call(this, props) || this;
  61711. _this.state = {};
  61712. if (_this.props.node) {
  61713. _this.props.node.addListener({
  61714. selectionChanged: function () {
  61715. var selected = _this.props.node.selected;
  61716. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  61717. }
  61718. });
  61719. }
  61720. return _this;
  61721. }
  61722. GenericNodeWidget.prototype.render = function () {
  61723. // Header label
  61724. var header = "";
  61725. if (this.props.node && this.props.node.block) {
  61726. header = this.props.node.block.name;
  61727. }
  61728. // Input/Output ports
  61729. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  61730. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  61731. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" + (outputPorts.length === 0 ? " output" : "") },
  61732. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, header),
  61733. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  61734. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  61735. };
  61736. return GenericNodeWidget;
  61737. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61738. /***/ }),
  61739. /***/ "./components/diagram/input/inputNodeFactory.tsx":
  61740. /*!*******************************************************!*\
  61741. !*** ./components/diagram/input/inputNodeFactory.tsx ***!
  61742. \*******************************************************/
  61743. /*! exports provided: InputNodeFactory */
  61744. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61745. "use strict";
  61746. __webpack_require__.r(__webpack_exports__);
  61747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeFactory", function() { return InputNodeFactory; });
  61748. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61749. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61750. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61751. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61752. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  61753. /* harmony import */ var _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  61754. /* harmony import */ var _inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputNodeWidget */ "./components/diagram/input/inputNodeWidget.tsx");
  61755. /**
  61756. * Node factory which creates editor nodes
  61757. */
  61758. var InputNodeFactory = /** @class */ (function (_super) {
  61759. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeFactory, _super);
  61760. /**
  61761. * Constructs a GenericNodeFactory
  61762. */
  61763. function InputNodeFactory(globalState) {
  61764. var _this = _super.call(this, "input") || this;
  61765. _this._globalState = globalState;
  61766. return _this;
  61767. }
  61768. /**
  61769. * Generates a node widget
  61770. * @param diagramEngine diagram engine
  61771. * @param node node to generate
  61772. * @returns node widget jsx
  61773. */
  61774. InputNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  61775. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__["InputNodeWidget"], { node: node, globalState: this._globalState });
  61776. };
  61777. /**
  61778. * Gets a new instance of a node model
  61779. * @returns input node model
  61780. */
  61781. InputNodeFactory.prototype.getNewInstance = function () {
  61782. return new _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__["InputNodeModel"]();
  61783. };
  61784. return InputNodeFactory;
  61785. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  61786. /***/ }),
  61787. /***/ "./components/diagram/input/inputNodeModel.tsx":
  61788. /*!*****************************************************!*\
  61789. !*** ./components/diagram/input/inputNodeModel.tsx ***!
  61790. \*****************************************************/
  61791. /*! exports provided: InputNodeModel */
  61792. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61793. "use strict";
  61794. __webpack_require__.r(__webpack_exports__);
  61795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeModel", function() { return InputNodeModel; });
  61796. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61797. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61798. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61799. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  61800. /* harmony import */ var _inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodePropertyComponent */ "./components/diagram/input/inputNodePropertyComponent.tsx");
  61801. /**
  61802. * Generic node model which stores information about a node editor block
  61803. */
  61804. var InputNodeModel = /** @class */ (function (_super) {
  61805. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeModel, _super);
  61806. /**
  61807. * Constructs the node model
  61808. */
  61809. function InputNodeModel() {
  61810. return _super.call(this, "input") || this;
  61811. }
  61812. Object.defineProperty(InputNodeModel.prototype, "inputBlock", {
  61813. get: function () {
  61814. return this.block;
  61815. },
  61816. enumerable: true,
  61817. configurable: true
  61818. });
  61819. InputNodeModel.prototype.renderProperties = function (globalState) {
  61820. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["InputPropertyTabComponentProps"], { globalState: globalState, inputNode: this }));
  61821. };
  61822. return InputNodeModel;
  61823. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  61824. /***/ }),
  61825. /***/ "./components/diagram/input/inputNodePropertyComponent.tsx":
  61826. /*!*****************************************************************!*\
  61827. !*** ./components/diagram/input/inputNodePropertyComponent.tsx ***!
  61828. \*****************************************************************/
  61829. /*! exports provided: InputPropertyTabComponentProps */
  61830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61831. "use strict";
  61832. __webpack_require__.r(__webpack_exports__);
  61833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponentProps", function() { return InputPropertyTabComponentProps; });
  61834. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61835. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61836. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61837. /* harmony import */ var _propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  61838. /* harmony import */ var _propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  61839. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  61840. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__);
  61841. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  61842. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  61843. /* harmony import */ var _propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  61844. /* harmony import */ var _propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  61845. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  61846. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  61847. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  61848. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  61849. /* harmony import */ var _propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  61850. /* harmony import */ var _propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  61851. var InputPropertyTabComponentProps = /** @class */ (function (_super) {
  61852. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputPropertyTabComponentProps, _super);
  61853. function InputPropertyTabComponentProps(props) {
  61854. return _super.call(this, props) || this;
  61855. }
  61856. InputPropertyTabComponentProps.prototype.renderValue = function (globalState) {
  61857. var inputBlock = this.props.inputNode.inputBlock;
  61858. switch (inputBlock.type) {
  61859. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Float:
  61860. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61861. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61862. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61863. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61864. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61865. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61866. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61867. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61868. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61869. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_13__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61870. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61871. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_14__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61872. }
  61873. return null;
  61874. };
  61875. InputPropertyTabComponentProps.prototype.setDefaultValue = function () {
  61876. var inputBlock = this.props.inputNode.inputBlock;
  61877. inputBlock.setDefaultValue();
  61878. };
  61879. InputPropertyTabComponentProps.prototype.render = function () {
  61880. var _this = this;
  61881. var inputBlock = this.props.inputNode.inputBlock;
  61882. var systemValuesOptions = [];
  61883. var attributeOptions = [];
  61884. var animationOptions = [];
  61885. switch (inputBlock.type) {
  61886. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Float:
  61887. animationOptions = [
  61888. { label: "None", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None },
  61889. { label: "Time", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].Time },
  61890. ];
  61891. break;
  61892. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61893. systemValuesOptions = [
  61894. { label: "World", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].World },
  61895. { label: "World x View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].WorldView },
  61896. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].WorldViewProjection },
  61897. { label: "View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].View },
  61898. { label: "View x Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].ViewProjection },
  61899. { label: "Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].Projection }
  61900. ];
  61901. break;
  61902. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61903. systemValuesOptions = [
  61904. { label: "Fog color", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].FogColor }
  61905. ];
  61906. break;
  61907. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61908. attributeOptions = [
  61909. { label: "color", value: "color" }
  61910. ];
  61911. break;
  61912. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61913. attributeOptions = [
  61914. { label: "uv", value: "uv" },
  61915. { label: "uv2", value: "uv2" },
  61916. ];
  61917. break;
  61918. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61919. systemValuesOptions = [
  61920. { label: "Camera position", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].CameraPosition }
  61921. ];
  61922. attributeOptions = [
  61923. { label: "position", value: "position" },
  61924. { label: "normal", value: "normal" },
  61925. { label: "tangent", value: "tangent" },
  61926. ];
  61927. break;
  61928. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61929. attributeOptions = [
  61930. { label: "matricesIndices", value: "matricesIndices" },
  61931. { label: "matricesWeights", value: "matricesWeights" }
  61932. ];
  61933. break;
  61934. }
  61935. var modeOptions = [
  61936. { label: "User-defined", value: 0 }
  61937. ];
  61938. if (attributeOptions.length > 0) {
  61939. modeOptions.push({ label: "Mesh attribute", value: 1 });
  61940. }
  61941. if (systemValuesOptions.length > 0) {
  61942. modeOptions.push({ label: "System value", value: 2 });
  61943. }
  61944. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__["LineContainerComponent"], { title: "GENERAL" },
  61946. !inputBlock.isAttribute &&
  61947. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_11__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: inputBlock, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  61948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Type", value: _stringTools__WEBPACK_IMPORTED_MODULE_10__["StringTools"].GetBaseType(inputBlock.type) })),
  61949. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__["LineContainerComponent"], { title: "PROPERTIES" },
  61950. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  61951. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Visible in the Inspector", target: inputBlock, propertyName: "visibleInInspector" }),
  61952. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  61953. if (block.isAttribute) {
  61954. return 1;
  61955. }
  61956. if (block.isSystemValue) {
  61957. return 2;
  61958. }
  61959. return 0;
  61960. }, onSelect: function (value) {
  61961. switch (value) {
  61962. case 0:
  61963. inputBlock.isUniform = true;
  61964. inputBlock.setAsSystemValue(null);
  61965. _this.setDefaultValue();
  61966. break;
  61967. case 1:
  61968. inputBlock.setAsAttribute(attributeOptions[0].value);
  61969. break;
  61970. case 2:
  61971. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  61972. break;
  61973. }
  61974. _this.forceUpdate();
  61975. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61976. } }),
  61977. inputBlock.isAttribute &&
  61978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Attribute", valuesAreStrings: true, options: attributeOptions, target: inputBlock, propertyName: "name", onSelect: function (value) {
  61979. inputBlock.setAsAttribute(value);
  61980. _this.forceUpdate();
  61981. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61982. } }),
  61983. inputBlock.isUniform && animationOptions.length > 0 &&
  61984. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Animation type", options: animationOptions, target: inputBlock, propertyName: "animationType", onSelect: function (value) {
  61985. _this.forceUpdate();
  61986. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61987. } }),
  61988. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  61989. this.renderValue(this.props.globalState),
  61990. inputBlock.isUniform && inputBlock.isSystemValue &&
  61991. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "System value", options: systemValuesOptions, target: inputBlock, propertyName: "systemValue", onSelect: function (value) {
  61992. inputBlock.setAsSystemValue(value);
  61993. _this.forceUpdate();
  61994. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61995. } }))));
  61996. };
  61997. return InputPropertyTabComponentProps;
  61998. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61999. /***/ }),
  62000. /***/ "./components/diagram/input/inputNodeWidget.tsx":
  62001. /*!******************************************************!*\
  62002. !*** ./components/diagram/input/inputNodeWidget.tsx ***!
  62003. \******************************************************/
  62004. /*! exports provided: InputNodeWidget */
  62005. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62006. "use strict";
  62007. __webpack_require__.r(__webpack_exports__);
  62008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeWidget", function() { return InputNodeWidget; });
  62009. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62010. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62011. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62012. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialSystemValues */ "babylonjs/Misc/observable");
  62013. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__);
  62014. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  62015. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62016. /**
  62017. * Used to display a node block for the node editor
  62018. */
  62019. var InputNodeWidget = /** @class */ (function (_super) {
  62020. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeWidget, _super);
  62021. /**
  62022. * Creates a GenericNodeWidget
  62023. * @param props
  62024. */
  62025. function InputNodeWidget(props) {
  62026. var _this = _super.call(this, props) || this;
  62027. _this.state = {};
  62028. if (_this.props.node) {
  62029. _this.props.node.addListener({
  62030. selectionChanged: function () {
  62031. var selected = _this.props.node.selected;
  62032. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62033. }
  62034. });
  62035. }
  62036. return _this;
  62037. }
  62038. InputNodeWidget.prototype.renderValue = function (value) {
  62039. if (value !== "") {
  62040. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  62041. }
  62042. return null;
  62043. };
  62044. InputNodeWidget.prototype.render = function () {
  62045. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_4__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  62046. var inputBlock = this.props.node.inputBlock;
  62047. var value = "";
  62048. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  62049. var color = "";
  62050. if (inputBlock) {
  62051. if (inputBlock.isAttribute) {
  62052. value = "mesh." + inputBlock.name;
  62053. name = _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type);
  62054. }
  62055. else if (inputBlock.isSystemValue) {
  62056. switch (inputBlock.systemValue) {
  62057. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].World:
  62058. value = "World";
  62059. break;
  62060. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].WorldView:
  62061. value = "World x View";
  62062. break;
  62063. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].WorldViewProjection:
  62064. value = "World x View x Projection";
  62065. break;
  62066. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].View:
  62067. value = "View";
  62068. break;
  62069. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].ViewProjection:
  62070. value = "View x Projection";
  62071. break;
  62072. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].Projection:
  62073. value = "Projection";
  62074. break;
  62075. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].CameraPosition:
  62076. value = "Camera position";
  62077. break;
  62078. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].FogColor:
  62079. value = "Fog color";
  62080. break;
  62081. }
  62082. }
  62083. else {
  62084. if (!inputBlock || !inputBlock.isUniform) {
  62085. return null;
  62086. }
  62087. switch (inputBlock.type) {
  62088. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float:
  62089. if (inputBlock.animationType !== babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"].None) {
  62090. value = babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"][inputBlock.animationType];
  62091. }
  62092. else {
  62093. value = inputBlock.value.toFixed(2);
  62094. }
  62095. break;
  62096. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  62097. var vec2Value = inputBlock.value;
  62098. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  62099. break;
  62100. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  62101. var vec3Value = inputBlock.value;
  62102. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  62103. break;
  62104. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  62105. var vec4Value = inputBlock.value;
  62106. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  62107. break;
  62108. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color3:
  62109. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  62110. color = inputBlock.value.toHexString();
  62111. break;
  62112. }
  62113. }
  62114. }
  62115. }
  62116. else {
  62117. name = "Not connected input";
  62118. }
  62119. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock input" + (inputBlock && inputBlock.isAttribute ? " attribute" : ""), style: {
  62120. background: color
  62121. } },
  62122. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, name),
  62123. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  62124. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, this.renderValue(value))));
  62125. };
  62126. return InputNodeWidget;
  62127. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62128. /***/ }),
  62129. /***/ "./components/diagram/light/lightNodeFactory.tsx":
  62130. /*!*******************************************************!*\
  62131. !*** ./components/diagram/light/lightNodeFactory.tsx ***!
  62132. \*******************************************************/
  62133. /*! exports provided: LightNodeFactory */
  62134. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62135. "use strict";
  62136. __webpack_require__.r(__webpack_exports__);
  62137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeFactory", function() { return LightNodeFactory; });
  62138. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62139. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62140. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62141. /* harmony import */ var _lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightNodeWidget */ "./components/diagram/light/lightNodeWidget.tsx");
  62142. /* harmony import */ var _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  62143. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62144. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  62145. /**
  62146. * Node factory which creates editor nodes
  62147. */
  62148. var LightNodeFactory = /** @class */ (function (_super) {
  62149. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeFactory, _super);
  62150. /**
  62151. * Constructs a LightNodeFactory
  62152. */
  62153. function LightNodeFactory(globalState) {
  62154. var _this = _super.call(this, "light") || this;
  62155. _this._globalState = globalState;
  62156. return _this;
  62157. }
  62158. /**
  62159. * Generates a node widget
  62160. * @param diagramEngine diagram engine
  62161. * @param node node to generate
  62162. * @returns node widget jsx
  62163. */
  62164. LightNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62165. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightNodeWidget"], { node: node, globalState: this._globalState });
  62166. };
  62167. /**
  62168. * Gets a new instance of a node model
  62169. * @returns light node model
  62170. */
  62171. LightNodeFactory.prototype.getNewInstance = function () {
  62172. return new _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightNodeModel"]();
  62173. };
  62174. return LightNodeFactory;
  62175. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62176. /***/ }),
  62177. /***/ "./components/diagram/light/lightNodeModel.tsx":
  62178. /*!*****************************************************!*\
  62179. !*** ./components/diagram/light/lightNodeModel.tsx ***!
  62180. \*****************************************************/
  62181. /*! exports provided: LightNodeModel */
  62182. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62183. "use strict";
  62184. __webpack_require__.r(__webpack_exports__);
  62185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeModel", function() { return LightNodeModel; });
  62186. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62187. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62188. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62189. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  62190. /* harmony import */ var _lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightPropertyTabComponent */ "./components/diagram/light/lightPropertyTabComponent.tsx");
  62191. /**
  62192. * Light node model which stores information about a node editor block
  62193. */
  62194. var LightNodeModel = /** @class */ (function (_super) {
  62195. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeModel, _super);
  62196. /**
  62197. * Constructs the node model
  62198. */
  62199. function LightNodeModel() {
  62200. return _super.call(this, "light") || this;
  62201. }
  62202. Object.defineProperty(LightNodeModel.prototype, "light", {
  62203. /**
  62204. * Light for the node if it exists
  62205. */
  62206. get: function () {
  62207. return this._block.light;
  62208. },
  62209. set: function (value) {
  62210. this._block.light = value;
  62211. },
  62212. enumerable: true,
  62213. configurable: true
  62214. });
  62215. LightNodeModel.prototype.renderProperties = function (globalState) {
  62216. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"], { globalState: globalState, node: this }));
  62217. };
  62218. LightNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  62219. this._block = options.nodeMaterialBlock;
  62220. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  62221. };
  62222. return LightNodeModel;
  62223. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  62224. /***/ }),
  62225. /***/ "./components/diagram/light/lightNodeWidget.tsx":
  62226. /*!******************************************************!*\
  62227. !*** ./components/diagram/light/lightNodeWidget.tsx ***!
  62228. \******************************************************/
  62229. /*! exports provided: LightNodeWidget */
  62230. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62231. "use strict";
  62232. __webpack_require__.r(__webpack_exports__);
  62233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeWidget", function() { return LightNodeWidget; });
  62234. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62235. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62236. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62237. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62238. /**
  62239. * Used to display a node block for the node editor
  62240. */
  62241. var LightNodeWidget = /** @class */ (function (_super) {
  62242. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeWidget, _super);
  62243. /**
  62244. * Creates a GenericNodeWidget
  62245. * @param props
  62246. */
  62247. function LightNodeWidget(props) {
  62248. var _this = _super.call(this, props) || this;
  62249. _this.state = {};
  62250. if (_this.props.node) {
  62251. _this.props.node.addListener({
  62252. selectionChanged: function () {
  62253. var selected = _this.props.node.selected;
  62254. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62255. }
  62256. });
  62257. }
  62258. return _this;
  62259. }
  62260. LightNodeWidget.prototype.render = function () {
  62261. // Input/Output ports
  62262. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  62263. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  62264. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  62265. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  62266. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  62267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  62268. };
  62269. return LightNodeWidget;
  62270. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62271. /***/ }),
  62272. /***/ "./components/diagram/light/lightPropertyTabComponent.tsx":
  62273. /*!****************************************************************!*\
  62274. !*** ./components/diagram/light/lightPropertyTabComponent.tsx ***!
  62275. \****************************************************************/
  62276. /*! exports provided: LightPropertyTabComponent */
  62277. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62278. "use strict";
  62279. __webpack_require__.r(__webpack_exports__);
  62280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  62281. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62282. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62283. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62284. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  62285. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  62286. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  62287. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  62288. var LightPropertyTabComponent = /** @class */ (function (_super) {
  62289. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightPropertyTabComponent, _super);
  62290. function LightPropertyTabComponent() {
  62291. return _super !== null && _super.apply(this, arguments) || this;
  62292. }
  62293. LightPropertyTabComponent.prototype.render = function () {
  62294. var _this = this;
  62295. var scene = this.props.globalState.nodeMaterial.getScene();
  62296. var lightOptions = scene.lights.map(function (l) {
  62297. return { label: l.name, value: l.name };
  62298. });
  62299. lightOptions.splice(0, 0, { label: "All", value: "" });
  62300. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  62301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  62302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "LightBlock" }),
  62303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: this.props.node.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } })),
  62304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  62305. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Light", defaultIfNull: 0, noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: this.props.node.light, propertyName: "name", onSelect: function (name) {
  62306. if (name === "") {
  62307. _this.props.node.light = null;
  62308. }
  62309. else {
  62310. _this.props.node.light = scene.getLightByName(name);
  62311. }
  62312. _this.forceUpdate();
  62313. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62314. } }))));
  62315. };
  62316. return LightPropertyTabComponent;
  62317. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62318. /***/ }),
  62319. /***/ "./components/diagram/lightInformation/lightInformationNodeFactory.tsx":
  62320. /*!*****************************************************************************!*\
  62321. !*** ./components/diagram/lightInformation/lightInformationNodeFactory.tsx ***!
  62322. \*****************************************************************************/
  62323. /*! exports provided: LightInformationNodeFactory */
  62324. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62325. "use strict";
  62326. __webpack_require__.r(__webpack_exports__);
  62327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeFactory", function() { return LightInformationNodeFactory; });
  62328. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62329. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62330. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62331. /* harmony import */ var _lightInformationNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightInformationNodeWidget */ "./components/diagram/lightInformation/lightInformationNodeWidget.tsx");
  62332. /* harmony import */ var _lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightInformationNodeModel */ "./components/diagram/lightInformation/lightInformationNodeModel.tsx");
  62333. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62334. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  62335. /**
  62336. * Node factory which creates editor nodes
  62337. */
  62338. var LightInformationNodeFactory = /** @class */ (function (_super) {
  62339. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeFactory, _super);
  62340. /**
  62341. * Constructs a LightNodeFactory
  62342. */
  62343. function LightInformationNodeFactory(globalState) {
  62344. var _this = _super.call(this, "light-information") || this;
  62345. _this._globalState = globalState;
  62346. return _this;
  62347. }
  62348. /**
  62349. * Generates a node widget
  62350. * @param diagramEngine diagram engine
  62351. * @param node node to generate
  62352. * @returns node widget jsx
  62353. */
  62354. LightInformationNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62355. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightInformationNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightInformationNodeWidget"], { node: node, globalState: this._globalState });
  62356. };
  62357. /**
  62358. * Gets a new instance of a node model
  62359. * @returns light node model
  62360. */
  62361. LightInformationNodeFactory.prototype.getNewInstance = function () {
  62362. return new _lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightInformationNodeModel"]();
  62363. };
  62364. return LightInformationNodeFactory;
  62365. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62366. /***/ }),
  62367. /***/ "./components/diagram/lightInformation/lightInformationNodeModel.tsx":
  62368. /*!***************************************************************************!*\
  62369. !*** ./components/diagram/lightInformation/lightInformationNodeModel.tsx ***!
  62370. \***************************************************************************/
  62371. /*! exports provided: LightInformationNodeModel */
  62372. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62373. "use strict";
  62374. __webpack_require__.r(__webpack_exports__);
  62375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeModel", function() { return LightInformationNodeModel; });
  62376. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62377. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62378. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62379. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  62380. /* harmony import */ var _lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightInformationPropertyTabComponent */ "./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx");
  62381. var LightInformationNodeModel = /** @class */ (function (_super) {
  62382. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeModel, _super);
  62383. /**
  62384. * Constructs the node model
  62385. */
  62386. function LightInformationNodeModel() {
  62387. return _super.call(this, "light-information") || this;
  62388. }
  62389. Object.defineProperty(LightInformationNodeModel.prototype, "light", {
  62390. /**
  62391. * Light for the node if it exists
  62392. */
  62393. get: function () {
  62394. return this._block.light;
  62395. },
  62396. set: function (value) {
  62397. this._block.light = value;
  62398. },
  62399. enumerable: true,
  62400. configurable: true
  62401. });
  62402. LightInformationNodeModel.prototype.renderProperties = function (globalState) {
  62403. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightInformationPropertyTabComponent"], { globalState: globalState, node: this }));
  62404. };
  62405. LightInformationNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  62406. this._block = options.nodeMaterialBlock;
  62407. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  62408. };
  62409. return LightInformationNodeModel;
  62410. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  62411. /***/ }),
  62412. /***/ "./components/diagram/lightInformation/lightInformationNodeWidget.tsx":
  62413. /*!****************************************************************************!*\
  62414. !*** ./components/diagram/lightInformation/lightInformationNodeWidget.tsx ***!
  62415. \****************************************************************************/
  62416. /*! exports provided: LightInformationNodeWidget */
  62417. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62418. "use strict";
  62419. __webpack_require__.r(__webpack_exports__);
  62420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeWidget", function() { return LightInformationNodeWidget; });
  62421. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62422. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62423. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62424. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62425. /**
  62426. * Used to display a node block for the node editor
  62427. */
  62428. var LightInformationNodeWidget = /** @class */ (function (_super) {
  62429. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeWidget, _super);
  62430. /**
  62431. * Creates a GenericNodeWidget
  62432. * @param props
  62433. */
  62434. function LightInformationNodeWidget(props) {
  62435. var _this = _super.call(this, props) || this;
  62436. _this.state = {};
  62437. if (_this.props.node) {
  62438. _this.props.node.addListener({
  62439. selectionChanged: function () {
  62440. var selected = _this.props.node.selected;
  62441. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62442. }
  62443. });
  62444. }
  62445. return _this;
  62446. }
  62447. LightInformationNodeWidget.prototype.render = function () {
  62448. // Input/Output ports
  62449. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  62450. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  62451. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  62452. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name + " (" + (this.props.node.light ? this.props.node.light.name : "No light") + ")"),
  62453. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  62454. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  62455. };
  62456. return LightInformationNodeWidget;
  62457. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62458. /***/ }),
  62459. /***/ "./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx":
  62460. /*!**************************************************************************************!*\
  62461. !*** ./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx ***!
  62462. \**************************************************************************************/
  62463. /*! exports provided: LightInformationPropertyTabComponent */
  62464. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62465. "use strict";
  62466. __webpack_require__.r(__webpack_exports__);
  62467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  62468. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62469. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62470. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62471. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  62472. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  62473. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  62474. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  62475. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  62476. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationPropertyTabComponent, _super);
  62477. function LightInformationPropertyTabComponent() {
  62478. return _super !== null && _super.apply(this, arguments) || this;
  62479. }
  62480. LightInformationPropertyTabComponent.prototype.render = function () {
  62481. var _this = this;
  62482. var scene = this.props.globalState.nodeMaterial.getScene();
  62483. var lightOptions = scene.lights.map(function (l) {
  62484. return { label: l.name, value: l.name };
  62485. });
  62486. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  62487. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  62488. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "LightInformationBlock" }),
  62489. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: this.props.node.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } })),
  62490. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  62491. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Light", noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: this.props.node.light, propertyName: "name", onSelect: function (name) {
  62492. _this.props.node.light = scene.getLightByName(name);
  62493. _this.forceUpdate();
  62494. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62495. } }))));
  62496. };
  62497. return LightInformationPropertyTabComponent;
  62498. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62499. /***/ }),
  62500. /***/ "./components/diagram/link/advancedLinkFactory.tsx":
  62501. /*!*********************************************************!*\
  62502. !*** ./components/diagram/link/advancedLinkFactory.tsx ***!
  62503. \*********************************************************/
  62504. /*! exports provided: AdvancedLinkFactory */
  62505. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62506. "use strict";
  62507. __webpack_require__.r(__webpack_exports__);
  62508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkFactory", function() { return AdvancedLinkFactory; });
  62509. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62510. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62511. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62512. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62513. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  62514. /* harmony import */ var _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  62515. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../blockTools */ "./blockTools.ts");
  62516. var AdvancedLinkFactory = /** @class */ (function (_super) {
  62517. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkFactory, _super);
  62518. function AdvancedLinkFactory() {
  62519. var _this = _super.call(this) || this;
  62520. _this.type = "advanced";
  62521. return _this;
  62522. }
  62523. AdvancedLinkFactory.prototype.getNewInstance = function (initialConfig) {
  62524. return new _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__["AdvancedLinkModel"]();
  62525. };
  62526. AdvancedLinkFactory.prototype.generateLinkSegment = function (model, widget, selected, path) {
  62527. var portModel = (model.getTargetPort() || model.getSourcePort());
  62528. var type = portModel.connection.type;
  62529. var color = _blockTools__WEBPACK_IMPORTED_MODULE_4__["BlockTools"].GetColorFromConnectionNodeType(type);
  62530. var width = 3;
  62531. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("path", { className: selected ? widget.bem("--path-selected") : "", strokeWidth: width, stroke: color, d: path }));
  62532. };
  62533. return AdvancedLinkFactory;
  62534. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkFactory"]));
  62535. /***/ }),
  62536. /***/ "./components/diagram/link/advancedLinkModel.tsx":
  62537. /*!*******************************************************!*\
  62538. !*** ./components/diagram/link/advancedLinkModel.tsx ***!
  62539. \*******************************************************/
  62540. /*! exports provided: AdvancedLinkModel */
  62541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62542. "use strict";
  62543. __webpack_require__.r(__webpack_exports__);
  62544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkModel", function() { return AdvancedLinkModel; });
  62545. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62546. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62547. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62548. var AdvancedLinkModel = /** @class */ (function (_super) {
  62549. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkModel, _super);
  62550. function AdvancedLinkModel() {
  62551. return _super.call(this, "advanced") || this;
  62552. }
  62553. return AdvancedLinkModel;
  62554. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkModel"]));
  62555. /***/ }),
  62556. /***/ "./components/diagram/port/defaultPortModel.ts":
  62557. /*!*****************************************************!*\
  62558. !*** ./components/diagram/port/defaultPortModel.ts ***!
  62559. \*****************************************************/
  62560. /*! exports provided: DefaultPortModel */
  62561. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62562. "use strict";
  62563. __webpack_require__.r(__webpack_exports__);
  62564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortModel", function() { return DefaultPortModel; });
  62565. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62566. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62567. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62568. /* harmony import */ var _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link/advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  62569. /**
  62570. * Port model
  62571. */
  62572. var DefaultPortModel = /** @class */ (function (_super) {
  62573. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortModel, _super);
  62574. function DefaultPortModel(name, type) {
  62575. if (type === void 0) { type = "input"; }
  62576. var _this = _super.call(this, name, "generic") || this;
  62577. /**
  62578. * What the port is connected to
  62579. */
  62580. _this.connection = null;
  62581. _this.position = type;
  62582. DefaultPortModel.idCounter++;
  62583. return _this;
  62584. }
  62585. DefaultPortModel.prototype.canLinkToPort = function (port) {
  62586. if (!this.connection || !port.connection) {
  62587. return true;
  62588. }
  62589. return this.connection.canConnectTo(port.connection);
  62590. };
  62591. DefaultPortModel.prototype.syncWithNodeMaterialConnectionPoint = function (connection) {
  62592. this.connection = connection;
  62593. this.name = connection.name;
  62594. };
  62595. DefaultPortModel.prototype.getNodeModel = function () {
  62596. return this.parent;
  62597. };
  62598. DefaultPortModel.prototype.link = function (outPort) {
  62599. var link = this.createLinkModel();
  62600. link.setSourcePort(this);
  62601. link.setTargetPort(outPort);
  62602. return link;
  62603. };
  62604. DefaultPortModel.prototype.createLinkModel = function () {
  62605. return new _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__["AdvancedLinkModel"]();
  62606. };
  62607. DefaultPortModel.SortInputOutput = function (a, b) {
  62608. if (!a || !b) {
  62609. return null;
  62610. }
  62611. else if (a.position == "output" && b.position == "input") {
  62612. return {
  62613. input: b,
  62614. output: a
  62615. };
  62616. }
  62617. else if (b.position == "output" && a.position == "input") {
  62618. return {
  62619. input: a,
  62620. output: b
  62621. };
  62622. }
  62623. else {
  62624. return null;
  62625. }
  62626. };
  62627. DefaultPortModel.idCounter = 0;
  62628. return DefaultPortModel;
  62629. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["PortModel"]));
  62630. /***/ }),
  62631. /***/ "./components/diagram/port/defaultPortWidget.tsx":
  62632. /*!*******************************************************!*\
  62633. !*** ./components/diagram/port/defaultPortWidget.tsx ***!
  62634. \*******************************************************/
  62635. /*! exports provided: DefaultPortWidget */
  62636. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62637. "use strict";
  62638. __webpack_require__.r(__webpack_exports__);
  62639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortWidget", function() { return DefaultPortWidget; });
  62640. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62641. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62642. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62643. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62644. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  62645. var DefaultPortWidget = /** @class */ (function (_super) {
  62646. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortWidget, _super);
  62647. function DefaultPortWidget(props) {
  62648. var _this = _super.call(this, "srd-port", props) || this;
  62649. _this.state = {
  62650. selected: false
  62651. };
  62652. return _this;
  62653. }
  62654. DefaultPortWidget.prototype.getClassName = function () {
  62655. return "port " + _super.prototype.getClassName.call(this) + (this.state.selected ? this.bem("--selected") : "");
  62656. };
  62657. DefaultPortWidget.prototype.render = function () {
  62658. var _this = this;
  62659. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({ style: this.props.style }, this.getProps(), { onMouseEnter: function () {
  62660. _this.setState({ selected: true });
  62661. }, onMouseLeave: function () {
  62662. _this.setState({ selected: false });
  62663. }, "data-name": this.props.name, "data-nodeid": this.props.node.getID() })));
  62664. };
  62665. return DefaultPortWidget;
  62666. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["BaseWidget"]));
  62667. /***/ }),
  62668. /***/ "./components/diagram/portHelper.tsx":
  62669. /*!*******************************************!*\
  62670. !*** ./components/diagram/portHelper.tsx ***!
  62671. \*******************************************/
  62672. /*! exports provided: PortHelper */
  62673. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62674. "use strict";
  62675. __webpack_require__.r(__webpack_exports__);
  62676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortHelper", function() { return PortHelper; });
  62677. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62678. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  62679. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  62680. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__);
  62681. /* harmony import */ var _port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortWidget */ "./components/diagram/port/defaultPortWidget.tsx");
  62682. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  62683. var PortHelper = /** @class */ (function () {
  62684. function PortHelper() {
  62685. }
  62686. PortHelper._GetPortTypeIndicator = function (connection) {
  62687. switch (connection.type) {
  62688. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  62689. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  62690. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABESURBVDhPY/z//z8DJYAJSpMNRg3Ab4APEL+GYhAbK8AXjSCNIhAmwxsgFoUwUQFNvZAJxCCbQRjExgpGU+LAG8DAAAA+ghAthzG18wAAAABJRU5ErkJggg==" });
  62691. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  62692. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSpMN8BngA8SvoRjExgrweQGkUQTCZHgDxKIQJiqgqRcygRhkMwiD2FjB4I4FosBoNA6DaGRgAABqpx09dHGG2QAAAABJRU5ErkJggg==" });
  62693. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  62694. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  62695. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSmMDPkD8GopBbKwAnwtAGkUgTIY3QCwKYaICfC4gCuAzIBOIQTaDMIiNFYwG4mgggsCQD0QGBgD0QypNGzDYqQAAAABJRU5ErkJggg==" });
  62696. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  62697. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  62698. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABRSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQYGkBeQ8GsghgEQm5A45V6AmwTFIUAMsgGEQWxC4gyDLxZIBqPpAAiQTQPiIZcOGBgAyCDrTTmX3gcAAAAASUVORK5CYII=" });
  62699. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  62700. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAABuSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQZ0L4AUiECYOMEbIBaFMGnghUwoDQKhQMwIxSA2DCCrwfACCMAEQBqRAVZxqnuBZEB1A9DjHgZwsQdpOgDZAMLo6QAmTjAdkAQo9AIDAwD62SHFU/Hk8QAAAABJRU5ErkJggg==" });
  62701. }
  62702. return null;
  62703. };
  62704. PortHelper._GetPortStyle = function (type) {
  62705. return {
  62706. background: _blockTools__WEBPACK_IMPORTED_MODULE_3__["BlockTools"].GetColorFromConnectionNodeType(type)
  62707. };
  62708. };
  62709. PortHelper.GenerateOutputPorts = function (node, ignoreLabel) {
  62710. if (!node) {
  62711. return new Array();
  62712. }
  62713. var outputPorts = [];
  62714. for (var key in node.ports) {
  62715. var port = node.ports[key];
  62716. if (port.position === "output") {
  62717. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  62718. var style = this._GetPortStyle(port.connection.type);
  62719. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "output-port" },
  62720. !ignoreLabel &&
  62721. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-label" }, port.connection.name),
  62722. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-plug" },
  62723. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-border" }),
  62724. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  62725. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-type" }, typeIndicator))));
  62726. }
  62727. }
  62728. return outputPorts;
  62729. };
  62730. PortHelper.GenerateInputPorts = function (node, includeOnly, ignoreLabel) {
  62731. if (ignoreLabel === void 0) { ignoreLabel = false; }
  62732. if (!node) {
  62733. return new Array();
  62734. }
  62735. var inputPorts = [];
  62736. for (var key in node.ports) {
  62737. var port = node.ports[key];
  62738. if (port.position === "input") {
  62739. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  62740. var style = this._GetPortStyle(port.connection.type);
  62741. if (!includeOnly || includeOnly.indexOf(port.name) !== -1) {
  62742. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "input-port" },
  62743. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-plug" },
  62744. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-border" }),
  62745. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  62746. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-type" }, typeIndicator)),
  62747. !ignoreLabel &&
  62748. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-label" }, port.connection.name)));
  62749. }
  62750. }
  62751. }
  62752. return inputPorts;
  62753. };
  62754. return PortHelper;
  62755. }());
  62756. /***/ }),
  62757. /***/ "./components/diagram/remap/remapNodeFactory.tsx":
  62758. /*!*******************************************************!*\
  62759. !*** ./components/diagram/remap/remapNodeFactory.tsx ***!
  62760. \*******************************************************/
  62761. /*! exports provided: RemapNodeFactory */
  62762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62763. "use strict";
  62764. __webpack_require__.r(__webpack_exports__);
  62765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeFactory", function() { return RemapNodeFactory; });
  62766. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62767. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62768. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62769. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62770. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  62771. /* harmony import */ var _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  62772. /* harmony import */ var _remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./remapNodeWidget */ "./components/diagram/remap/remapNodeWidget.tsx");
  62773. /**
  62774. * Node factory which creates editor nodes
  62775. */
  62776. var RemapNodeFactory = /** @class */ (function (_super) {
  62777. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeFactory, _super);
  62778. /**
  62779. * Constructs a GenericNodeFactory
  62780. */
  62781. function RemapNodeFactory(globalState) {
  62782. var _this = _super.call(this, "remap") || this;
  62783. _this._globalState = globalState;
  62784. return _this;
  62785. }
  62786. /**
  62787. * Generates a node widget
  62788. * @param diagramEngine diagram engine
  62789. * @param node node to generate
  62790. * @returns node widget jsx
  62791. */
  62792. RemapNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62793. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__["RemapNodeWidget"], { node: node, globalState: this._globalState });
  62794. };
  62795. /**
  62796. * Gets a new instance of a node model
  62797. * @returns input node model
  62798. */
  62799. RemapNodeFactory.prototype.getNewInstance = function () {
  62800. return new _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__["RemapNodeModel"]();
  62801. };
  62802. return RemapNodeFactory;
  62803. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62804. /***/ }),
  62805. /***/ "./components/diagram/remap/remapNodeModel.tsx":
  62806. /*!*****************************************************!*\
  62807. !*** ./components/diagram/remap/remapNodeModel.tsx ***!
  62808. \*****************************************************/
  62809. /*! exports provided: RemapNodeModel */
  62810. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62811. "use strict";
  62812. __webpack_require__.r(__webpack_exports__);
  62813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeModel", function() { return RemapNodeModel; });
  62814. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62815. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62816. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62817. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  62818. /* harmony import */ var _remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodePropertyComponent */ "./components/diagram/remap/remapNodePropertyComponent.tsx");
  62819. /**
  62820. * Generic node model which stores information about a node editor block
  62821. */
  62822. var RemapNodeModel = /** @class */ (function (_super) {
  62823. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeModel, _super);
  62824. /**
  62825. * Constructs the node model
  62826. */
  62827. function RemapNodeModel() {
  62828. return _super.call(this, "remap") || this;
  62829. }
  62830. Object.defineProperty(RemapNodeModel.prototype, "remapBlock", {
  62831. get: function () {
  62832. return this.block;
  62833. },
  62834. enumerable: true,
  62835. configurable: true
  62836. });
  62837. RemapNodeModel.prototype.renderProperties = function (globalState) {
  62838. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["RemapPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  62839. };
  62840. return RemapNodeModel;
  62841. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  62842. /***/ }),
  62843. /***/ "./components/diagram/remap/remapNodePropertyComponent.tsx":
  62844. /*!*****************************************************************!*\
  62845. !*** ./components/diagram/remap/remapNodePropertyComponent.tsx ***!
  62846. \*****************************************************************/
  62847. /*! exports provided: RemapPropertyTabComponentProps */
  62848. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62849. "use strict";
  62850. __webpack_require__.r(__webpack_exports__);
  62851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapPropertyTabComponentProps", function() { return RemapPropertyTabComponentProps; });
  62852. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62853. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62854. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62855. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  62856. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  62857. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  62858. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  62859. var RemapPropertyTabComponentProps = /** @class */ (function (_super) {
  62860. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapPropertyTabComponentProps, _super);
  62861. function RemapPropertyTabComponentProps(props) {
  62862. return _super.call(this, props) || this;
  62863. }
  62864. RemapPropertyTabComponentProps.prototype.forceRebuild = function () {
  62865. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  62866. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62867. };
  62868. RemapPropertyTabComponentProps.prototype.render = function () {
  62869. var _this = this;
  62870. var remapBlock = this.props.remapNode.remapBlock;
  62871. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  62872. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  62873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: remapBlock, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  62874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Type", value: remapBlock.getClassName() })),
  62875. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  62876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "From", propertyName: "sourceRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }),
  62877. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "To", propertyName: "targetRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }))));
  62878. };
  62879. return RemapPropertyTabComponentProps;
  62880. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62881. /***/ }),
  62882. /***/ "./components/diagram/remap/remapNodeWidget.tsx":
  62883. /*!******************************************************!*\
  62884. !*** ./components/diagram/remap/remapNodeWidget.tsx ***!
  62885. \******************************************************/
  62886. /*! exports provided: RemapNodeWidget */
  62887. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62888. "use strict";
  62889. __webpack_require__.r(__webpack_exports__);
  62890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeWidget", function() { return RemapNodeWidget; });
  62891. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62892. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62893. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62894. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62895. /**
  62896. * Used to display a node block for the node editor
  62897. */
  62898. var RemapNodeWidget = /** @class */ (function (_super) {
  62899. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeWidget, _super);
  62900. /**
  62901. * Creates a GenericNodeWidget
  62902. * @param props
  62903. */
  62904. function RemapNodeWidget(props) {
  62905. var _this = _super.call(this, props) || this;
  62906. _this.state = {};
  62907. if (_this.props.node) {
  62908. _this.props.node.addListener({
  62909. selectionChanged: function () {
  62910. var selected = _this.props.node.selected;
  62911. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62912. }
  62913. });
  62914. }
  62915. return _this;
  62916. }
  62917. RemapNodeWidget.prototype.renderValue = function (value) {
  62918. if (value) {
  62919. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  62920. }
  62921. return null;
  62922. };
  62923. RemapNodeWidget.prototype.extractInputValue = function (connectionPoint) {
  62924. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  62925. if (connectedBlock.isInput) {
  62926. var inputBlock = connectedBlock;
  62927. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  62928. return inputBlock.value;
  62929. }
  62930. }
  62931. return "?";
  62932. };
  62933. RemapNodeWidget.prototype.render = function () {
  62934. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, false);
  62935. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  62936. var remapBlock = this.props.node.block;
  62937. var sourceRangeX = remapBlock.sourceMin.isConnected ? this.extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  62938. var sourceRangeY = remapBlock.sourceMax.isConnected ? this.extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  62939. var targetRangeX = remapBlock.targetMin.isConnected ? this.extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  62940. var targetRangeY = remapBlock.targetMax.isConnected ? this.extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  62941. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  62942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, remapBlock.name),
  62943. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  62944. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  62945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]")));
  62946. };
  62947. return RemapNodeWidget;
  62948. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62949. /***/ }),
  62950. /***/ "./components/diagram/texture/textureNodeFactory.tsx":
  62951. /*!***********************************************************!*\
  62952. !*** ./components/diagram/texture/textureNodeFactory.tsx ***!
  62953. \***********************************************************/
  62954. /*! exports provided: TextureNodeFactory */
  62955. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62956. "use strict";
  62957. __webpack_require__.r(__webpack_exports__);
  62958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeFactory", function() { return TextureNodeFactory; });
  62959. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62960. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62961. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62962. /* harmony import */ var _textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureNodeWidget */ "./components/diagram/texture/textureNodeWidget.tsx");
  62963. /* harmony import */ var _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  62964. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62965. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  62966. /**
  62967. * Node factory which creates editor nodes
  62968. */
  62969. var TextureNodeFactory = /** @class */ (function (_super) {
  62970. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeFactory, _super);
  62971. /**
  62972. * Constructs a TextureNodeFactory
  62973. */
  62974. function TextureNodeFactory(globalState) {
  62975. var _this = _super.call(this, "texture") || this;
  62976. _this._globalState = globalState;
  62977. return _this;
  62978. }
  62979. /**
  62980. * Generates a node widget
  62981. * @param diagramEngine diagram engine
  62982. * @param node node to generate
  62983. * @returns node widget jsx
  62984. */
  62985. TextureNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62986. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__["TextureNodeWidget"], { node: node, globalState: this._globalState });
  62987. };
  62988. /**
  62989. * Gets a new instance of a node model
  62990. * @returns texture node model
  62991. */
  62992. TextureNodeFactory.prototype.getNewInstance = function () {
  62993. return new _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__["TextureNodeModel"]();
  62994. };
  62995. return TextureNodeFactory;
  62996. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62997. /***/ }),
  62998. /***/ "./components/diagram/texture/textureNodeModel.tsx":
  62999. /*!*********************************************************!*\
  63000. !*** ./components/diagram/texture/textureNodeModel.tsx ***!
  63001. \*********************************************************/
  63002. /*! exports provided: TextureNodeModel */
  63003. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63004. "use strict";
  63005. __webpack_require__.r(__webpack_exports__);
  63006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeModel", function() { return TextureNodeModel; });
  63007. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63008. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63009. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63010. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  63011. /* harmony import */ var _texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./texturePropertyTabComponent */ "./components/diagram/texture/texturePropertyTabComponent.tsx");
  63012. /**
  63013. * Texture node model which stores information about a node editor block
  63014. */
  63015. var TextureNodeModel = /** @class */ (function (_super) {
  63016. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeModel, _super);
  63017. /**
  63018. * Constructs the node model
  63019. */
  63020. function TextureNodeModel() {
  63021. return _super.call(this, "texture") || this;
  63022. }
  63023. Object.defineProperty(TextureNodeModel.prototype, "texture", {
  63024. /**
  63025. * Texture for the node if it exists
  63026. */
  63027. get: function () {
  63028. return this._block.texture;
  63029. },
  63030. set: function (value) {
  63031. this._block.texture = value;
  63032. },
  63033. enumerable: true,
  63034. configurable: true
  63035. });
  63036. TextureNodeModel.prototype.renderProperties = function (globalState) {
  63037. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["TexturePropertyTabComponent"], { globalState: globalState, node: this }));
  63038. };
  63039. TextureNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  63040. this._block = options.nodeMaterialBlock;
  63041. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  63042. };
  63043. return TextureNodeModel;
  63044. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  63045. /***/ }),
  63046. /***/ "./components/diagram/texture/textureNodeWidget.tsx":
  63047. /*!**********************************************************!*\
  63048. !*** ./components/diagram/texture/textureNodeWidget.tsx ***!
  63049. \**********************************************************/
  63050. /*! exports provided: TextureNodeWidget */
  63051. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63052. "use strict";
  63053. __webpack_require__.r(__webpack_exports__);
  63054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeWidget", function() { return TextureNodeWidget; });
  63055. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63056. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63057. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63058. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  63059. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  63060. /**
  63061. * Used to display a node block for the node editor
  63062. */
  63063. var TextureNodeWidget = /** @class */ (function (_super) {
  63064. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeWidget, _super);
  63065. /**
  63066. * Creates a GenericNodeWidget
  63067. * @param props
  63068. */
  63069. function TextureNodeWidget(props) {
  63070. var _this = _super.call(this, props) || this;
  63071. _this.state = {};
  63072. if (_this.props.node) {
  63073. _this.props.node.addListener({
  63074. selectionChanged: function () {
  63075. var selected = _this.props.node.selected;
  63076. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  63077. }
  63078. });
  63079. }
  63080. return _this;
  63081. }
  63082. TextureNodeWidget.prototype.render = function () {
  63083. // Input/Output ports
  63084. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  63085. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateInputPorts(this.props.node, ["uv"]);
  63086. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock texture-block" },
  63087. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  63088. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  63089. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  63090. this.props.node && this.props.node.texture &&
  63091. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextureLineComponent"], { ref: "textureView", width: 140, height: 140, texture: this.props.node.texture, hideChannelSelect: true })));
  63092. };
  63093. return TextureNodeWidget;
  63094. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63095. /***/ }),
  63096. /***/ "./components/diagram/texture/texturePropertyTabComponent.tsx":
  63097. /*!********************************************************************!*\
  63098. !*** ./components/diagram/texture/texturePropertyTabComponent.tsx ***!
  63099. \********************************************************************/
  63100. /*! exports provided: TexturePropertyTabComponent */
  63101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63102. "use strict";
  63103. __webpack_require__.r(__webpack_exports__);
  63104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  63105. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63106. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63107. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63108. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  63109. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  63110. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  63111. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  63112. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  63113. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  63114. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  63115. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  63116. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TexturePropertyTabComponent, _super);
  63117. function TexturePropertyTabComponent(props) {
  63118. var _this = _super.call(this, props) || this;
  63119. var texture = _this.props.node.texture;
  63120. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) !== "http" };
  63121. return _this;
  63122. }
  63123. TexturePropertyTabComponent.prototype.updateAftertextureLoad = function () {
  63124. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63125. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  63126. };
  63127. /**
  63128. * Replaces the texture of the node
  63129. * @param file the file of the texture to use
  63130. */
  63131. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  63132. var _this = this;
  63133. if (!this.props.node) {
  63134. return;
  63135. }
  63136. var texture = this.props.node.texture;
  63137. if (!texture) {
  63138. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](null, this.props.globalState.nodeMaterial.getScene(), false, false);
  63139. texture = this.props.node.texture;
  63140. }
  63141. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  63142. var blob = new Blob([data], { type: "octet/stream" });
  63143. var reader = new FileReader();
  63144. reader.readAsDataURL(blob);
  63145. reader.onloadend = function () {
  63146. var base64data = reader.result;
  63147. if (texture.isCube) {
  63148. var extension = undefined;
  63149. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  63150. extension = ".dds";
  63151. }
  63152. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  63153. extension = ".env";
  63154. }
  63155. texture.updateURL(base64data, extension, function () { return _this.updateAftertextureLoad(); });
  63156. }
  63157. else {
  63158. texture.updateURL(base64data, null, function () { return _this.updateAftertextureLoad(); });
  63159. }
  63160. };
  63161. }, undefined, true);
  63162. };
  63163. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  63164. var _this = this;
  63165. var texture = this.props.node.texture;
  63166. if (!texture) {
  63167. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](url, this.props.globalState.nodeMaterial.getScene(), false, false, undefined, function () {
  63168. _this.updateAftertextureLoad();
  63169. });
  63170. return;
  63171. }
  63172. texture.updateURL(url, null, function () { return _this.updateAftertextureLoad(); });
  63173. };
  63174. TexturePropertyTabComponent.prototype.render = function () {
  63175. var _this = this;
  63176. var url = "";
  63177. var texture = this.props.node.texture;
  63178. if (texture && texture.name && texture.name.substring(0, 4) === "http") {
  63179. url = texture.name;
  63180. }
  63181. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63182. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "GENERAL" },
  63183. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: "Texture" }),
  63184. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: this.props.node.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } })),
  63185. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "PROPERTIES" },
  63186. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Auto select UV", propertyName: "autoSelectUV", target: this.props.node.block }),
  63187. texture &&
  63188. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Clamp U", isSelected: function () { return texture.wrapU === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE; }, onSelect: function (value) {
  63189. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  63190. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63191. } }),
  63192. texture &&
  63193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Clamp V", isSelected: function () { return texture.wrapV === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE; }, onSelect: function (value) {
  63194. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  63195. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63196. } })),
  63197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "SOURCE" },
  63198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Embed texture", isSelected: function () { return _this.state.isEmbedded; }, onSelect: function (value) {
  63199. _this.setState({ isEmbedded: value });
  63200. _this.props.node.texture = null;
  63201. _this.updateAftertextureLoad();
  63202. } }),
  63203. this.state.isEmbedded &&
  63204. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["FileButtonLineComponent"], { label: "Upload", onClick: function (file) { return _this.replaceTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" }),
  63205. !this.state.isEmbedded &&
  63206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { label: "Link", globalState: this.props.globalState, value: url, onChange: function (newUrl) { return _this.replaceTextureWithUrl(newUrl); } }))));
  63207. };
  63208. return TexturePropertyTabComponent;
  63209. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63210. /***/ }),
  63211. /***/ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx":
  63212. /*!*********************************************************************!*\
  63213. !*** ./components/diagram/trigonometry/trigonometryNodeFactory.tsx ***!
  63214. \*********************************************************************/
  63215. /*! exports provided: TrigonometryNodeFactory */
  63216. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63217. "use strict";
  63218. __webpack_require__.r(__webpack_exports__);
  63219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeFactory", function() { return TrigonometryNodeFactory; });
  63220. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63221. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  63222. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  63223. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63224. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  63225. /* harmony import */ var _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  63226. /* harmony import */ var _trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trigonometryNodeWidget */ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx");
  63227. /**
  63228. * Node factory which creates editor nodes
  63229. */
  63230. var TrigonometryNodeFactory = /** @class */ (function (_super) {
  63231. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeFactory, _super);
  63232. /**
  63233. * Constructs a GenericNodeFactory
  63234. */
  63235. function TrigonometryNodeFactory(globalState) {
  63236. var _this = _super.call(this, "trigonometry") || this;
  63237. _this._globalState = globalState;
  63238. return _this;
  63239. }
  63240. /**
  63241. * Generates a node widget
  63242. * @param diagramEngine diagram engine
  63243. * @param node node to generate
  63244. * @returns node widget jsx
  63245. */
  63246. TrigonometryNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  63247. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__["TrigonometryNodeWidget"], { node: node, globalState: this._globalState });
  63248. };
  63249. /**
  63250. * Gets a new instance of a node model
  63251. * @returns input node model
  63252. */
  63253. TrigonometryNodeFactory.prototype.getNewInstance = function () {
  63254. return new _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__["TrigonometryNodeModel"]();
  63255. };
  63256. return TrigonometryNodeFactory;
  63257. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  63258. /***/ }),
  63259. /***/ "./components/diagram/trigonometry/trigonometryNodeModel.tsx":
  63260. /*!*******************************************************************!*\
  63261. !*** ./components/diagram/trigonometry/trigonometryNodeModel.tsx ***!
  63262. \*******************************************************************/
  63263. /*! exports provided: TrigonometryNodeModel */
  63264. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63265. "use strict";
  63266. __webpack_require__.r(__webpack_exports__);
  63267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeModel", function() { return TrigonometryNodeModel; });
  63268. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63269. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63270. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63271. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  63272. /* harmony import */ var _trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodePropertyComponent */ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx");
  63273. /**
  63274. * Generic node model which stores information about a node editor block
  63275. */
  63276. var TrigonometryNodeModel = /** @class */ (function (_super) {
  63277. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeModel, _super);
  63278. /**
  63279. * Constructs the node model
  63280. */
  63281. function TrigonometryNodeModel() {
  63282. return _super.call(this, "trigonometry") || this;
  63283. }
  63284. Object.defineProperty(TrigonometryNodeModel.prototype, "trigonometryBlock", {
  63285. get: function () {
  63286. return this.block;
  63287. },
  63288. enumerable: true,
  63289. configurable: true
  63290. });
  63291. TrigonometryNodeModel.prototype.renderProperties = function (globalState) {
  63292. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["TrigonometryPropertyTabComponentProps"], { globalState: globalState, trigonometryNode: this }));
  63293. };
  63294. return TrigonometryNodeModel;
  63295. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  63296. /***/ }),
  63297. /***/ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx":
  63298. /*!*******************************************************************************!*\
  63299. !*** ./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx ***!
  63300. \*******************************************************************************/
  63301. /*! exports provided: TrigonometryPropertyTabComponentProps */
  63302. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63303. "use strict";
  63304. __webpack_require__.r(__webpack_exports__);
  63305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponentProps", function() { return TrigonometryPropertyTabComponentProps; });
  63306. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63307. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63308. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63309. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  63310. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  63311. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  63312. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  63313. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  63314. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__);
  63315. var TrigonometryPropertyTabComponentProps = /** @class */ (function (_super) {
  63316. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryPropertyTabComponentProps, _super);
  63317. function TrigonometryPropertyTabComponentProps(props) {
  63318. return _super.call(this, props) || this;
  63319. }
  63320. TrigonometryPropertyTabComponentProps.prototype.render = function () {
  63321. var _this = this;
  63322. var trigonometryBlock = this.props.trigonometryNode.trigonometryBlock;
  63323. var operationOptions = [
  63324. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Cos },
  63325. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Sin },
  63326. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Abs },
  63327. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Exp },
  63328. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Exp2 },
  63329. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Round },
  63330. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Ceiling },
  63331. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Floor }
  63332. ];
  63333. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  63335. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: trigonometryBlock, onChange: function () {
  63336. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63337. } }),
  63338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: trigonometryBlock.getClassName() })),
  63339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  63340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  63341. _this.forceUpdate();
  63342. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  63343. } }))));
  63344. };
  63345. return TrigonometryPropertyTabComponentProps;
  63346. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63347. /***/ }),
  63348. /***/ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx":
  63349. /*!********************************************************************!*\
  63350. !*** ./components/diagram/trigonometry/trigonometryNodeWidget.tsx ***!
  63351. \********************************************************************/
  63352. /*! exports provided: TrigonometryNodeWidget */
  63353. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63354. "use strict";
  63355. __webpack_require__.r(__webpack_exports__);
  63356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeWidget", function() { return TrigonometryNodeWidget; });
  63357. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63358. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63359. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63360. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  63361. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  63362. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__);
  63363. /**
  63364. * Used to display a node block for the node editor
  63365. */
  63366. var TrigonometryNodeWidget = /** @class */ (function (_super) {
  63367. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeWidget, _super);
  63368. /**
  63369. * Creates a GenericNodeWidget
  63370. * @param props
  63371. */
  63372. function TrigonometryNodeWidget(props) {
  63373. var _this = _super.call(this, props) || this;
  63374. _this.state = {};
  63375. if (_this.props.node) {
  63376. _this.props.node.addListener({
  63377. selectionChanged: function () {
  63378. var selected = _this.props.node.selected;
  63379. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  63380. }
  63381. });
  63382. }
  63383. return _this;
  63384. }
  63385. TrigonometryNodeWidget.prototype.render = function () {
  63386. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  63387. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  63388. var trigonometryBlock = this.props.node.trigonometryBlock;
  63389. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock trigonometry" },
  63390. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, trigonometryBlock.name),
  63391. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  63392. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  63393. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  63394. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__["TrigonometryBlockOperations"][trigonometryBlock.operation]))));
  63395. };
  63396. return TrigonometryNodeWidget;
  63397. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63398. /***/ }),
  63399. /***/ "./components/log/log.scss":
  63400. /*!*********************************!*\
  63401. !*** ./components/log/log.scss ***!
  63402. \*********************************/
  63403. /*! no static exports found */
  63404. /***/ (function(module, exports, __webpack_require__) {
  63405. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./log.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss");
  63406. if(typeof content === 'string') content = [[module.i, content, '']];
  63407. var transform;
  63408. var insertInto;
  63409. var options = {"hmr":true}
  63410. options.transform = transform
  63411. options.insertInto = undefined;
  63412. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  63413. if(content.locals) module.exports = content.locals;
  63414. if(false) {}
  63415. /***/ }),
  63416. /***/ "./components/log/logComponent.tsx":
  63417. /*!*****************************************!*\
  63418. !*** ./components/log/logComponent.tsx ***!
  63419. \*****************************************/
  63420. /*! exports provided: LogEntry, LogComponent */
  63421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63422. "use strict";
  63423. __webpack_require__.r(__webpack_exports__);
  63424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  63425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  63426. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63427. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63428. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63429. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  63430. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  63431. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  63432. var LogEntry = /** @class */ (function () {
  63433. function LogEntry(message, isError) {
  63434. this.message = message;
  63435. this.isError = isError;
  63436. }
  63437. return LogEntry;
  63438. }());
  63439. var LogComponent = /** @class */ (function (_super) {
  63440. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LogComponent, _super);
  63441. function LogComponent(props) {
  63442. var _this = _super.call(this, props) || this;
  63443. _this.state = { logs: [] };
  63444. return _this;
  63445. }
  63446. LogComponent.prototype.componentDidMount = function () {
  63447. var _this = this;
  63448. this.props.globalState.onLogRequiredObservable.add(function (log) {
  63449. var currentLogs = _this.state.logs;
  63450. currentLogs.push(log);
  63451. _this.setState({ logs: currentLogs });
  63452. });
  63453. };
  63454. LogComponent.prototype.componentDidUpdate = function () {
  63455. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  63456. if (!logConsole) {
  63457. return;
  63458. }
  63459. logConsole.scrollTop = logConsole.scrollHeight;
  63460. };
  63461. LogComponent.prototype.render = function () {
  63462. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  63463. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, l.message));
  63464. })));
  63465. };
  63466. return LogComponent;
  63467. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63468. /***/ }),
  63469. /***/ "./components/nodeList/nodeList.scss":
  63470. /*!*******************************************!*\
  63471. !*** ./components/nodeList/nodeList.scss ***!
  63472. \*******************************************/
  63473. /*! no static exports found */
  63474. /***/ (function(module, exports, __webpack_require__) {
  63475. 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");
  63476. if(typeof content === 'string') content = [[module.i, content, '']];
  63477. var transform;
  63478. var insertInto;
  63479. var options = {"hmr":true}
  63480. options.transform = transform
  63481. options.insertInto = undefined;
  63482. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  63483. if(content.locals) module.exports = content.locals;
  63484. if(false) {}
  63485. /***/ }),
  63486. /***/ "./components/nodeList/nodeListComponent.tsx":
  63487. /*!***************************************************!*\
  63488. !*** ./components/nodeList/nodeListComponent.tsx ***!
  63489. \***************************************************/
  63490. /*! exports provided: NodeListComponent */
  63491. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63492. "use strict";
  63493. __webpack_require__.r(__webpack_exports__);
  63494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  63495. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63496. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63497. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63498. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  63499. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  63500. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  63501. var NodeListComponent = /** @class */ (function (_super) {
  63502. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NodeListComponent, _super);
  63503. function NodeListComponent(props) {
  63504. var _this = _super.call(this, props) || this;
  63505. _this.state = { filter: "" };
  63506. return _this;
  63507. }
  63508. NodeListComponent.prototype.filterContent = function (filter) {
  63509. this.setState({ filter: filter });
  63510. };
  63511. NodeListComponent.prototype.render = function () {
  63512. var _this = this;
  63513. // Block types used to create the menu from
  63514. var allBlocks = {
  63515. Animation: ["BonesBlock", "MorphTargetsBlock"],
  63516. Basic_Math: ["AddBlock", "DivideBlock", "MultiplyBlock", "ScaleBlock", "SubtractBlock", "OneMinusBlock", "MaxBlock", "MinBlock"],
  63517. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  63518. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "TimeBlock"],
  63519. Interpolation: ["LerpBlock"],
  63520. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  63521. Mesh_Attributes: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock"],
  63522. Output_Blocks: ["VertexOutputBlock", "FragmentOutputBlock", "AlphaTestBlock"],
  63523. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  63524. Round: ["StepBlock", "RoundBlock", "CeilingBlock", "FloorBlock"],
  63525. Scene_Attributes: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ReflectionTextureBlock", "ViewDirectionBlock", "PerturbNormalBlock"],
  63526. Trigonometry: ["CosBlock", "SinBlock", "AbsBlock", "ExpBlock", "Exp2Block"],
  63527. Vector_Math: ["CrossBlock", "DotBlock", "TransformBlock", "FresnelBlock"],
  63528. };
  63529. // Create node menu
  63530. var blockMenu = [];
  63531. for (var key in allBlocks) {
  63532. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  63533. .sort(function (a, b) { return a.localeCompare(b); })
  63534. .map(function (block, i) {
  63535. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block });
  63536. });
  63537. if (blockList.length) {
  63538. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { key: key + " blocks", title: key.replace("_", " "), closed: false }, blockList));
  63539. }
  63540. }
  63541. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  63542. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  63543. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63544. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  63545. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  63546. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  63547. };
  63548. return NodeListComponent;
  63549. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63550. /***/ }),
  63551. /***/ "./components/preview/previewAreaComponent.tsx":
  63552. /*!*****************************************************!*\
  63553. !*** ./components/preview/previewAreaComponent.tsx ***!
  63554. \*****************************************************/
  63555. /*! exports provided: PreviewAreaComponent */
  63556. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63557. "use strict";
  63558. __webpack_require__.r(__webpack_exports__);
  63559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  63560. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63561. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63562. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63563. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63564. /* 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");
  63565. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  63566. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  63567. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  63568. var PreviewAreaComponent = /** @class */ (function (_super) {
  63569. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewAreaComponent, _super);
  63570. function PreviewAreaComponent() {
  63571. return _super !== null && _super.apply(this, arguments) || this;
  63572. }
  63573. PreviewAreaComponent.prototype.changeAnimation = function () {
  63574. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  63575. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  63576. this.forceUpdate();
  63577. };
  63578. PreviewAreaComponent.prototype.changeBackground = function (value) {
  63579. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(value);
  63580. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorR", newColor.r);
  63581. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorG", newColor.g);
  63582. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorB", newColor.b);
  63583. this.props.globalState.backgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color4"].FromColor3(newColor, 1.0);
  63584. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  63585. };
  63586. PreviewAreaComponent.prototype.render = function () {
  63587. var _this = this;
  63588. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63589. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  63590. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" })),
  63591. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  63592. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeAnimation(); }, className: "button" },
  63593. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.globalState.rotatePreview ? _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faStop"] : _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPlay"] })),
  63594. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align" },
  63595. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "color-picker", id: "color-picker-label" },
  63596. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPalette"] })),
  63597. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "color-picker", id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } })))));
  63598. };
  63599. return PreviewAreaComponent;
  63600. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63601. /***/ }),
  63602. /***/ "./components/preview/previewManager.ts":
  63603. /*!**********************************************!*\
  63604. !*** ./components/preview/previewManager.ts ***!
  63605. \**********************************************/
  63606. /*! exports provided: PreviewManager */
  63607. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63608. "use strict";
  63609. __webpack_require__.r(__webpack_exports__);
  63610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  63611. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/observable");
  63612. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  63613. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  63614. var PreviewManager = /** @class */ (function () {
  63615. function PreviewManager(targetCanvas, globalState) {
  63616. var _this = this;
  63617. this._nodeMaterial = globalState.nodeMaterial;
  63618. this._globalState = globalState;
  63619. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  63620. var serializationObject = nodeMaterial.serialize();
  63621. _this._updatePreview(serializationObject);
  63622. });
  63623. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function () {
  63624. _this._refreshPreviewMesh();
  63625. });
  63626. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  63627. var serializationObject = _this._nodeMaterial.serialize();
  63628. _this._updatePreview(serializationObject);
  63629. });
  63630. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  63631. _this._scene.clearColor = _this._globalState.backgroundColor;
  63632. });
  63633. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  63634. _this._handleAnimations();
  63635. });
  63636. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  63637. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  63638. this._camera = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ArcRotateCamera"]("Camera", 0, 0.8, 4, babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"].Zero(), this._scene);
  63639. this._light = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["HemisphericLight"]("light", new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0, 1, 0), this._scene);
  63640. this._camera.lowerRadiusLimit = 3;
  63641. this._camera.upperRadiusLimit = 10;
  63642. this._camera.wheelPrecision = 20;
  63643. this._camera.attachControl(targetCanvas, false);
  63644. this._refreshPreviewMesh();
  63645. this._engine.runRenderLoop(function () {
  63646. _this._engine.resize();
  63647. _this._scene.render();
  63648. });
  63649. var serializationObject = this._nodeMaterial.serialize();
  63650. this._updatePreview(serializationObject);
  63651. }
  63652. PreviewManager.prototype._handleAnimations = function () {
  63653. this._scene.stopAllAnimations();
  63654. if (this._globalState.rotatePreview) {
  63655. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  63656. var root = _a[_i];
  63657. var transformNode = root;
  63658. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh") {
  63659. if (transformNode.rotationQuaternion) {
  63660. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  63661. transformNode.rotationQuaternion = null;
  63662. }
  63663. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Animation"].CreateAndStartAnimation("turnTable", root, "rotation.y", 60, 1200, transformNode.rotation.y, transformNode.rotation.y + 2 * Math.PI, 1);
  63664. }
  63665. }
  63666. }
  63667. };
  63668. PreviewManager.prototype._prepareMeshes = function () {
  63669. // Material
  63670. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  63671. var mesh = _a[_i];
  63672. mesh.material = this._material;
  63673. }
  63674. // Framing
  63675. this._camera.useFramingBehavior = true;
  63676. var framingBehavior = this._camera.getBehaviorByName("Framing");
  63677. framingBehavior.framingTime = 0;
  63678. framingBehavior.elevationReturnTime = -1;
  63679. if (this._scene.meshes.length) {
  63680. var worldExtends = this._scene.getWorldExtends();
  63681. this._camera.lowerRadiusLimit = null;
  63682. this._camera.upperRadiusLimit = null;
  63683. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  63684. }
  63685. this._camera.pinchPrecision = 200 / this._camera.radius;
  63686. this._camera.upperRadiusLimit = 5 * this._camera.radius;
  63687. this._camera.wheelDeltaPercentage = 0.01;
  63688. this._camera.pinchDeltaPercentage = 0.01;
  63689. // Animations
  63690. this._handleAnimations();
  63691. };
  63692. PreviewManager.prototype._refreshPreviewMesh = function () {
  63693. var _this = this;
  63694. if (this._currentType !== this._globalState.previewMeshType) {
  63695. this._currentType = this._globalState.previewMeshType;
  63696. if (this._meshes && this._meshes.length) {
  63697. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  63698. var mesh = _a[_i];
  63699. mesh.dispose();
  63700. }
  63701. }
  63702. this._meshes = [];
  63703. switch (this._globalState.previewMeshType) {
  63704. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box:
  63705. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateBox("dummy-box", 2, this._scene));
  63706. break;
  63707. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Sphere:
  63708. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  63709. break;
  63710. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Torus:
  63711. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  63712. break;
  63713. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Cylinder:
  63714. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateCylinder("dummy-cylinder", 2, 1, 1.2, 32, 1, this._scene));
  63715. break;
  63716. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Plane:
  63717. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene));
  63718. break;
  63719. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom:
  63720. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewMeshFile, this._scene).then(function () {
  63721. var _a;
  63722. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  63723. _this._prepareMeshes();
  63724. });
  63725. return;
  63726. }
  63727. this._prepareMeshes();
  63728. }
  63729. };
  63730. PreviewManager.prototype._updatePreview = function (serializationObject) {
  63731. if (this._material) {
  63732. this._material.dispose();
  63733. }
  63734. this._material = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  63735. this._material.build();
  63736. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  63737. var mesh = _a[_i];
  63738. mesh.material = this._material;
  63739. }
  63740. };
  63741. PreviewManager.prototype.dispose = function () {
  63742. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  63743. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  63744. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  63745. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  63746. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  63747. if (this._material) {
  63748. this._material.dispose();
  63749. }
  63750. this._camera.dispose();
  63751. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  63752. var mesh = _a[_i];
  63753. mesh.dispose();
  63754. }
  63755. this._light.dispose();
  63756. this._engine.dispose();
  63757. };
  63758. return PreviewManager;
  63759. }());
  63760. /***/ }),
  63761. /***/ "./components/preview/previewMeshControlComponent.tsx":
  63762. /*!************************************************************!*\
  63763. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  63764. \************************************************************/
  63765. /*! exports provided: PreviewMeshControlComponent */
  63766. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63767. "use strict";
  63768. __webpack_require__.r(__webpack_exports__);
  63769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  63770. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63771. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63772. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63773. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63774. /* 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");
  63775. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  63776. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  63777. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  63778. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewMeshControlComponent, _super);
  63779. function PreviewMeshControlComponent() {
  63780. return _super !== null && _super.apply(this, arguments) || this;
  63781. }
  63782. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  63783. if (this.props.globalState.previewMeshType === newOne) {
  63784. return;
  63785. }
  63786. this.props.globalState.previewMeshType = newOne;
  63787. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  63788. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("PreviewMeshType", newOne);
  63789. this.forceUpdate();
  63790. };
  63791. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  63792. var files = evt.target.files;
  63793. if (files && files.length) {
  63794. var file = files[0];
  63795. this.props.globalState.previewMeshFile = file;
  63796. this.props.globalState.previewMeshType = _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Custom;
  63797. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  63798. this.forceUpdate();
  63799. }
  63800. document.getElementById("file-picker").value = "";
  63801. };
  63802. PreviewMeshControlComponent.prototype.render = function () {
  63803. var _this = this;
  63804. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  63805. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Box); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Box ? " selected" : "") },
  63806. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCube"] })),
  63807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Sphere); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Sphere ? " selected" : "") },
  63808. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCircle"] })),
  63809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Torus); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Torus ? " selected" : "") },
  63810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faRing"] })),
  63811. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Cylinder); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Cylinder ? " selected" : "") },
  63812. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faHockeyPuck"] })),
  63813. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Plane); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Plane ? " selected" : "") },
  63814. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faSquareFull"] })),
  63815. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align" },
  63816. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-picker", id: "file-picker-label" },
  63817. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPlus"] })),
  63818. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "file-picker", id: "file-picker", type: "file", onChange: function (evt) { return _this.useCustomMesh(evt); }, accept: ".gltf, .glb, .babylon, .obj" }))));
  63819. };
  63820. return PreviewMeshControlComponent;
  63821. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63822. /***/ }),
  63823. /***/ "./components/preview/previewMeshType.ts":
  63824. /*!***********************************************!*\
  63825. !*** ./components/preview/previewMeshType.ts ***!
  63826. \***********************************************/
  63827. /*! exports provided: PreviewMeshType */
  63828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63829. "use strict";
  63830. __webpack_require__.r(__webpack_exports__);
  63831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshType", function() { return PreviewMeshType; });
  63832. var PreviewMeshType;
  63833. (function (PreviewMeshType) {
  63834. PreviewMeshType[PreviewMeshType["Sphere"] = 0] = "Sphere";
  63835. PreviewMeshType[PreviewMeshType["Box"] = 1] = "Box";
  63836. PreviewMeshType[PreviewMeshType["Torus"] = 2] = "Torus";
  63837. PreviewMeshType[PreviewMeshType["Cylinder"] = 3] = "Cylinder";
  63838. PreviewMeshType[PreviewMeshType["Plane"] = 4] = "Plane";
  63839. PreviewMeshType[PreviewMeshType["Custom"] = 5] = "Custom";
  63840. })(PreviewMeshType || (PreviewMeshType = {}));
  63841. /***/ }),
  63842. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  63843. /*!**************************************************************************!*\
  63844. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  63845. \**************************************************************************/
  63846. /*! exports provided: Color3PropertyTabComponent */
  63847. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63848. "use strict";
  63849. __webpack_require__.r(__webpack_exports__);
  63850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  63851. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63852. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63853. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63854. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  63855. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  63856. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3PropertyTabComponent, _super);
  63857. function Color3PropertyTabComponent() {
  63858. return _super !== null && _super.apply(this, arguments) || this;
  63859. }
  63860. Color3PropertyTabComponent.prototype.render = function () {
  63861. var _this = this;
  63862. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63863. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63864. } }));
  63865. };
  63866. return Color3PropertyTabComponent;
  63867. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63868. /***/ }),
  63869. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  63870. /*!*************************************************************************!*\
  63871. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  63872. \*************************************************************************/
  63873. /*! exports provided: FloatPropertyTabComponent */
  63874. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63875. "use strict";
  63876. __webpack_require__.r(__webpack_exports__);
  63877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  63878. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63879. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63880. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63881. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  63882. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  63883. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatPropertyTabComponent, _super);
  63884. function FloatPropertyTabComponent() {
  63885. return _super !== null && _super.apply(this, arguments) || this;
  63886. }
  63887. FloatPropertyTabComponent.prototype.render = function () {
  63888. var _this = this;
  63889. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63890. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63891. } }));
  63892. };
  63893. return FloatPropertyTabComponent;
  63894. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63895. /***/ }),
  63896. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  63897. /*!**************************************************************************!*\
  63898. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  63899. \**************************************************************************/
  63900. /*! exports provided: MatrixPropertyTabComponent */
  63901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63902. "use strict";
  63903. __webpack_require__.r(__webpack_exports__);
  63904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  63905. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63906. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63907. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63908. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  63909. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  63910. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MatrixPropertyTabComponent, _super);
  63911. function MatrixPropertyTabComponent() {
  63912. return _super !== null && _super.apply(this, arguments) || this;
  63913. }
  63914. MatrixPropertyTabComponent.prototype.render = function () {
  63915. var _this = this;
  63916. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__["MatrixLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63917. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63918. } }));
  63919. };
  63920. return MatrixPropertyTabComponent;
  63921. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63922. /***/ }),
  63923. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  63924. /*!***************************************************************************!*\
  63925. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  63926. \***************************************************************************/
  63927. /*! exports provided: Vector2PropertyTabComponent */
  63928. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63929. "use strict";
  63930. __webpack_require__.r(__webpack_exports__);
  63931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  63932. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63933. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63934. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63935. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  63936. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  63937. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2PropertyTabComponent, _super);
  63938. function Vector2PropertyTabComponent() {
  63939. return _super !== null && _super.apply(this, arguments) || this;
  63940. }
  63941. Vector2PropertyTabComponent.prototype.render = function () {
  63942. var _this = this;
  63943. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63944. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63945. } }));
  63946. };
  63947. return Vector2PropertyTabComponent;
  63948. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63949. /***/ }),
  63950. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  63951. /*!***************************************************************************!*\
  63952. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  63953. \***************************************************************************/
  63954. /*! exports provided: Vector3PropertyTabComponent */
  63955. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63956. "use strict";
  63957. __webpack_require__.r(__webpack_exports__);
  63958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  63959. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63960. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63961. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63962. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  63963. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  63964. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3PropertyTabComponent, _super);
  63965. function Vector3PropertyTabComponent() {
  63966. return _super !== null && _super.apply(this, arguments) || this;
  63967. }
  63968. Vector3PropertyTabComponent.prototype.render = function () {
  63969. var _this = this;
  63970. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63971. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63972. } }));
  63973. };
  63974. return Vector3PropertyTabComponent;
  63975. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63976. /***/ }),
  63977. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  63978. /*!***************************************************************************!*\
  63979. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  63980. \***************************************************************************/
  63981. /*! exports provided: Vector4PropertyTabComponent */
  63982. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63983. "use strict";
  63984. __webpack_require__.r(__webpack_exports__);
  63985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  63986. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63987. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63988. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63989. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  63990. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  63991. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector4PropertyTabComponent, _super);
  63992. function Vector4PropertyTabComponent() {
  63993. return _super !== null && _super.apply(this, arguments) || this;
  63994. }
  63995. Vector4PropertyTabComponent.prototype.render = function () {
  63996. var _this = this;
  63997. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63998. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63999. } }));
  64000. };
  64001. return Vector4PropertyTabComponent;
  64002. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64003. /***/ }),
  64004. /***/ "./components/propertyTab/propertyTab.scss":
  64005. /*!*************************************************!*\
  64006. !*** ./components/propertyTab/propertyTab.scss ***!
  64007. \*************************************************/
  64008. /*! no static exports found */
  64009. /***/ (function(module, exports, __webpack_require__) {
  64010. 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");
  64011. if(typeof content === 'string') content = [[module.i, content, '']];
  64012. var transform;
  64013. var insertInto;
  64014. var options = {"hmr":true}
  64015. options.transform = transform
  64016. options.insertInto = undefined;
  64017. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  64018. if(content.locals) module.exports = content.locals;
  64019. if(false) {}
  64020. /***/ }),
  64021. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  64022. /*!*********************************************************!*\
  64023. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  64024. \*********************************************************/
  64025. /*! exports provided: PropertyTabComponent */
  64026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64027. "use strict";
  64028. __webpack_require__.r(__webpack_exports__);
  64029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  64030. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64031. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64032. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64033. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  64034. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  64035. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  64036. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  64037. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  64038. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  64039. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  64040. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  64041. var PropertyTabComponent = /** @class */ (function (_super) {
  64042. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PropertyTabComponent, _super);
  64043. function PropertyTabComponent(props) {
  64044. var _this = _super.call(this, props) || this;
  64045. _this.state = { currentNode: null };
  64046. return _this;
  64047. }
  64048. PropertyTabComponent.prototype.componentDidMount = function () {
  64049. var _this = this;
  64050. this.props.globalState.onSelectionChangedObservable.add(function (block) {
  64051. _this.setState({ currentNode: block });
  64052. });
  64053. };
  64054. PropertyTabComponent.prototype.load = function (file) {
  64055. var _this = this;
  64056. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  64057. var decoder = new TextDecoder("utf-8");
  64058. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  64059. }, undefined, true);
  64060. };
  64061. PropertyTabComponent.prototype.save = function () {
  64062. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  64063. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  64064. };
  64065. PropertyTabComponent.prototype.customSave = function () {
  64066. var _this = this;
  64067. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  64068. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  64069. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  64070. }).catch(function (err) {
  64071. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  64072. });
  64073. };
  64074. PropertyTabComponent.prototype.render = function () {
  64075. var _this = this;
  64076. if (this.state.currentNode) {
  64077. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  64078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  64079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  64080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  64081. this.state.currentNode.renderProperties(this.props.globalState)));
  64082. }
  64083. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  64084. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  64085. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  64086. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  64087. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  64088. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  64089. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  64090. _this.props.globalState.nodeMaterial.setToDefault();
  64091. _this.props.globalState.onResetRequiredObservable.notifyObservers(null);
  64092. } })),
  64093. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  64094. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  64095. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  64096. } }),
  64097. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  64098. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  64099. } })),
  64100. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  64101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  64102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  64103. _this.save();
  64104. } }),
  64105. this.props.globalState.customSave &&
  64106. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  64107. _this.customSave();
  64108. } }),
  64109. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  64110. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  64111. } }),
  64112. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  64113. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  64114. } })))));
  64115. };
  64116. return PropertyTabComponent;
  64117. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64118. /***/ }),
  64119. /***/ "./dataStorage.ts":
  64120. /*!************************!*\
  64121. !*** ./dataStorage.ts ***!
  64122. \************************/
  64123. /*! exports provided: DataStorage */
  64124. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64125. "use strict";
  64126. __webpack_require__.r(__webpack_exports__);
  64127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStorage", function() { return DataStorage; });
  64128. var DataStorage = /** @class */ (function () {
  64129. function DataStorage() {
  64130. }
  64131. DataStorage.ReadBoolean = function (key, defaultValue) {
  64132. try {
  64133. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  64134. return this._InMemoryStorage[key];
  64135. }
  64136. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  64137. return localStorage.getItem(key) === "true";
  64138. }
  64139. else {
  64140. return defaultValue;
  64141. }
  64142. }
  64143. catch (e) {
  64144. this._InMemoryStorage = {};
  64145. this._InMemoryStorage[key] = defaultValue;
  64146. return defaultValue;
  64147. }
  64148. };
  64149. DataStorage.StoreBoolean = function (key, value) {
  64150. try {
  64151. if (this._InMemoryStorage) {
  64152. this._InMemoryStorage[key] = value;
  64153. }
  64154. else if (typeof (Storage) !== "undefined") {
  64155. localStorage.setItem(key, value ? "true" : "false");
  64156. }
  64157. }
  64158. catch (e) {
  64159. this._InMemoryStorage = {};
  64160. this._InMemoryStorage[key] = value;
  64161. }
  64162. };
  64163. DataStorage.ReadNumber = function (key, defaultValue) {
  64164. try {
  64165. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  64166. return this._InMemoryStorage[key];
  64167. }
  64168. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  64169. return parseFloat(localStorage.getItem(key));
  64170. }
  64171. else {
  64172. return defaultValue;
  64173. }
  64174. }
  64175. catch (e) {
  64176. this._InMemoryStorage = {};
  64177. this._InMemoryStorage[key] = defaultValue;
  64178. return defaultValue;
  64179. }
  64180. };
  64181. DataStorage.StoreNumber = function (key, value) {
  64182. try {
  64183. if (this._InMemoryStorage) {
  64184. this._InMemoryStorage[key] = value;
  64185. }
  64186. else if (typeof (Storage) !== "undefined") {
  64187. localStorage.setItem(key, value.toString());
  64188. }
  64189. }
  64190. catch (e) {
  64191. this._InMemoryStorage = {};
  64192. this._InMemoryStorage[key] = value;
  64193. }
  64194. };
  64195. return DataStorage;
  64196. }());
  64197. /***/ }),
  64198. /***/ "./globalState.ts":
  64199. /*!************************!*\
  64200. !*** ./globalState.ts ***!
  64201. \************************/
  64202. /*! exports provided: GlobalState */
  64203. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64204. "use strict";
  64205. __webpack_require__.r(__webpack_exports__);
  64206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  64207. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  64208. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  64209. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  64210. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  64211. var GlobalState = /** @class */ (function () {
  64212. function GlobalState() {
  64213. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64214. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64215. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64216. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64217. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64218. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64219. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64220. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64221. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64222. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64223. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64224. this.blockKeyboardEvents = false;
  64225. this.previewMeshType = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box);
  64226. var r = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorR", 0.37);
  64227. var g = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorG", 0.37);
  64228. var b = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorB", 0.37);
  64229. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  64230. }
  64231. return GlobalState;
  64232. }());
  64233. /***/ }),
  64234. /***/ "./graphEditor.tsx":
  64235. /*!*************************!*\
  64236. !*** ./graphEditor.tsx ***!
  64237. \*************************/
  64238. /*! exports provided: NodeCreationOptions, GraphEditor */
  64239. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64240. "use strict";
  64241. __webpack_require__.r(__webpack_exports__);
  64242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeCreationOptions", function() { return NodeCreationOptions; });
  64243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  64244. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64245. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  64246. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  64247. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64248. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  64249. /* harmony import */ var _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeFactory */ "./components/diagram/generic/genericNodeFactory.tsx");
  64250. /* harmony import */ var _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  64251. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  64252. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  64253. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  64254. /* harmony import */ var _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeFactory */ "./components/diagram/texture/textureNodeFactory.tsx");
  64255. /* harmony import */ var _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  64256. /* harmony import */ var _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/diagram/port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  64257. /* harmony import */ var _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/diagram/input/inputNodeFactory */ "./components/diagram/input/inputNodeFactory.tsx");
  64258. /* harmony import */ var _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/diagram/input/inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  64259. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/observable");
  64260. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__);
  64261. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  64262. /* harmony import */ var _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/diagram/light/lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  64263. /* harmony import */ var _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/diagram/light/lightNodeFactory */ "./components/diagram/light/lightNodeFactory.tsx");
  64264. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  64265. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  64266. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  64267. /* harmony import */ var _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/diagram/link/advancedLinkFactory */ "./components/diagram/link/advancedLinkFactory.tsx");
  64268. /* harmony import */ var _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeFactory */ "./components/diagram/remap/remapNodeFactory.tsx");
  64269. /* harmony import */ var _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  64270. /* harmony import */ var _graphHelper__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./graphHelper */ "./graphHelper.ts");
  64271. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  64272. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  64273. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeFactory */ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx");
  64274. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  64275. /* harmony import */ var _components_diagram_clamp_clampNodeFactory__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/diagram/clamp/clampNodeFactory */ "./components/diagram/clamp/clampNodeFactory.tsx");
  64276. /* harmony import */ var _components_diagram_clamp_clampNodeModel__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/diagram/clamp/clampNodeModel */ "./components/diagram/clamp/clampNodeModel.tsx");
  64277. /* harmony import */ var _components_diagram_lightInformation_lightInformationNodeFactory__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/diagram/lightInformation/lightInformationNodeFactory */ "./components/diagram/lightInformation/lightInformationNodeFactory.tsx");
  64278. /* harmony import */ var _components_diagram_lightInformation_lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/diagram/lightInformation/lightInformationNodeModel */ "./components/diagram/lightInformation/lightInformationNodeModel.tsx");
  64279. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  64280. __webpack_require__(/*! storm-react-diagrams/dist/style.min.css */ "../../node_modules/storm-react-diagrams/dist/style.min.css");
  64281. __webpack_require__(/*! ./main.scss */ "./main.scss");
  64282. __webpack_require__(/*! ./components/diagram/diagram.scss */ "./components/diagram/diagram.scss");
  64283. var NodeCreationOptions = /** @class */ (function () {
  64284. function NodeCreationOptions() {
  64285. }
  64286. return NodeCreationOptions;
  64287. }());
  64288. var GraphEditor = /** @class */ (function (_super) {
  64289. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GraphEditor, _super);
  64290. function GraphEditor(props) {
  64291. var _this = _super.call(this, props) || this;
  64292. _this.NodeWidth = 100;
  64293. _this._leftWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("LeftWidth", 200);
  64294. _this._rightWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("RightWidth", 300);
  64295. _this._nodes = new Array();
  64296. _this._blocks = new Array();
  64297. _this._copiedNodes = [];
  64298. _this._mouseLocationX = 0;
  64299. _this._mouseLocationY = 0;
  64300. /** @hidden */
  64301. _this._toAdd = [];
  64302. // setup the diagram engine
  64303. _this._engine = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramEngine"]();
  64304. _this._engine.installDefaultFactories();
  64305. _this._engine.registerNodeFactory(new _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__["GenericNodeFactory"](_this.props.globalState));
  64306. _this._engine.registerNodeFactory(new _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__["TextureNodeFactory"](_this.props.globalState));
  64307. _this._engine.registerNodeFactory(new _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__["LightNodeFactory"](_this.props.globalState));
  64308. _this._engine.registerNodeFactory(new _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__["InputNodeFactory"](_this.props.globalState));
  64309. _this._engine.registerNodeFactory(new _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__["RemapNodeFactory"](_this.props.globalState));
  64310. _this._engine.registerNodeFactory(new _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__["TrigonometryNodeFactory"](_this.props.globalState));
  64311. _this._engine.registerNodeFactory(new _components_diagram_clamp_clampNodeFactory__WEBPACK_IMPORTED_MODULE_28__["ClampNodeFactory"](_this.props.globalState));
  64312. _this._engine.registerNodeFactory(new _components_diagram_lightInformation_lightInformationNodeFactory__WEBPACK_IMPORTED_MODULE_30__["LightInformationNodeFactory"](_this.props.globalState));
  64313. _this._engine.registerLinkFactory(new _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__["AdvancedLinkFactory"]());
  64314. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  64315. if (_this.props.globalState.nodeMaterial) {
  64316. _this.buildMaterial();
  64317. }
  64318. _this.forceUpdate();
  64319. });
  64320. _this.props.globalState.onResetRequiredObservable.add(function (locations) {
  64321. _this.build(false, locations);
  64322. if (_this.props.globalState.nodeMaterial) {
  64323. _this.buildMaterial();
  64324. }
  64325. });
  64326. _this.props.globalState.onUpdateRequiredObservable.add(function () {
  64327. _this.forceUpdate();
  64328. });
  64329. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  64330. _this.zoomToFit();
  64331. });
  64332. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  64333. _this.reOrganize();
  64334. });
  64335. _this.props.globalState.onGetNodeFromBlock = function (block) {
  64336. return _this._nodes.filter(function (n) { return n.block === block; })[0];
  64337. };
  64338. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  64339. if (!evt.ctrlKey) {
  64340. return;
  64341. }
  64342. if (evt.key === "c") {
  64343. var selectedItems = _this._engine.diagramModel.getSelectedItems();
  64344. if (!selectedItems.length) {
  64345. return;
  64346. }
  64347. var selectedItem = selectedItems[0];
  64348. if (!selectedItem.block) {
  64349. return;
  64350. }
  64351. _this._copiedNodes = selectedItems.map(function (i) { return i; });
  64352. }
  64353. else if (evt.key === "v") {
  64354. if (!_this._copiedNodes.length) {
  64355. return;
  64356. }
  64357. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  64358. var zoomLevel = _this._engine.diagramModel.getZoomLevel() / 100.0;
  64359. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._engine.diagramModel.getOffsetX() - _this.NodeWidth) / zoomLevel;
  64360. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  64361. var originalNode = null;
  64362. for (var _i = 0, _a = _this._copiedNodes; _i < _a.length; _i++) {
  64363. var node = _a[_i];
  64364. var block = node.block;
  64365. if (!block) {
  64366. continue;
  64367. }
  64368. var clone = block.clone(_this.props.globalState.nodeMaterial.getScene());
  64369. if (!clone) {
  64370. return;
  64371. }
  64372. var newNode = _this.createNodeFromObject({ nodeMaterialBlock: clone });
  64373. var x = 0;
  64374. var y = 0;
  64375. if (originalNode) {
  64376. x = currentX + node.x - originalNode.x;
  64377. y = currentY + node.y - originalNode.y;
  64378. }
  64379. else {
  64380. originalNode = node;
  64381. x = currentX;
  64382. y = currentY;
  64383. }
  64384. newNode.setPosition(x, y);
  64385. }
  64386. _this._engine.repaintCanvas();
  64387. }
  64388. }, false);
  64389. _this.build(true);
  64390. return _this;
  64391. }
  64392. /**
  64393. * Creates a node and recursivly creates its parent nodes from it's input
  64394. * @param nodeMaterialBlock
  64395. */
  64396. GraphEditor.prototype.createNodeFromObject = function (options) {
  64397. if (this._blocks.indexOf(options.nodeMaterialBlock) !== -1) {
  64398. return this._nodes.filter(function (n) { return n.block === options.nodeMaterialBlock; })[0];
  64399. }
  64400. this._blocks.push(options.nodeMaterialBlock);
  64401. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(options.nodeMaterialBlock) === -1) {
  64402. this.props.globalState.nodeMaterial.attachedBlocks.push(options.nodeMaterialBlock);
  64403. }
  64404. // Create new node in the graph
  64405. var newNode;
  64406. if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TextureBlock"]) {
  64407. newNode = new _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__["TextureNodeModel"]();
  64408. }
  64409. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightBlock"]) {
  64410. newNode = new _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__["LightNodeModel"]();
  64411. }
  64412. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"]) {
  64413. newNode = new _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__["InputNodeModel"]();
  64414. }
  64415. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TrigonometryBlock"]) {
  64416. newNode = new _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__["TrigonometryNodeModel"]();
  64417. }
  64418. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["RemapBlock"]) {
  64419. newNode = new _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__["RemapNodeModel"]();
  64420. }
  64421. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["ClampBlock"]) {
  64422. newNode = new _components_diagram_clamp_clampNodeModel__WEBPACK_IMPORTED_MODULE_29__["ClampNodeModel"]();
  64423. }
  64424. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightInformationBlock"]) {
  64425. newNode = new _components_diagram_lightInformation_lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_31__["LightInformationNodeModel"]();
  64426. }
  64427. else {
  64428. newNode = new _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__["GenericNodeModel"]();
  64429. }
  64430. if (options.nodeMaterialBlock.isFinalMerger) {
  64431. this.props.globalState.nodeMaterial.addOutputNode(options.nodeMaterialBlock);
  64432. }
  64433. this._nodes.push(newNode);
  64434. this._model.addAll(newNode);
  64435. if (options.nodeMaterialBlock) {
  64436. newNode.prepare(options, this._nodes, this._model, this);
  64437. }
  64438. return newNode;
  64439. };
  64440. GraphEditor.prototype.addValueNode = function (type) {
  64441. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetConnectionNodeTypeFromString(type);
  64442. var newInputBlock = new babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"](type, undefined, nodeType);
  64443. var localNode = this.createNodeFromObject({ type: type, nodeMaterialBlock: newInputBlock });
  64444. return localNode;
  64445. };
  64446. GraphEditor.prototype.onWidgetKeyUp = function (evt) {
  64447. var widget = this.refs["test"];
  64448. if (!widget || this.props.globalState.blockKeyboardEvents) {
  64449. return;
  64450. }
  64451. widget.onKeyUp(evt);
  64452. };
  64453. GraphEditor.prototype.componentDidMount = function () {
  64454. if (this.props.globalState.hostDocument) {
  64455. var widget = this.refs["test"];
  64456. widget.setState({ document: this.props.globalState.hostDocument });
  64457. this._onWidgetKeyUpPointer = this.onWidgetKeyUp.bind(this);
  64458. this.props.globalState.hostDocument.addEventListener("keyup", this._onWidgetKeyUpPointer, false);
  64459. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  64460. }
  64461. };
  64462. GraphEditor.prototype.componentWillUnmount = function () {
  64463. if (this.props.globalState.hostDocument) {
  64464. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  64465. }
  64466. this._previewManager.dispose();
  64467. };
  64468. GraphEditor.prototype.zoomToFit = function (retry) {
  64469. var _this = this;
  64470. if (retry === void 0) { retry = 0; }
  64471. var xFactor = this._engine.canvas.clientWidth / this._engine.canvas.scrollWidth;
  64472. var yFactor = this._engine.canvas.clientHeight / this._engine.canvas.scrollHeight;
  64473. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  64474. if (zoomFactor === 1) {
  64475. return;
  64476. }
  64477. this._engine.diagramModel.setZoomLevel(this._engine.diagramModel.getZoomLevel() * zoomFactor);
  64478. this._engine.diagramModel.setOffset(0, 0);
  64479. this._engine.repaintCanvas();
  64480. retry++;
  64481. if (retry < 4) {
  64482. setTimeout(function () { return _this.zoomToFit(retry); }, 1);
  64483. }
  64484. };
  64485. GraphEditor.prototype.buildMaterial = function () {
  64486. if (!this.props.globalState.nodeMaterial) {
  64487. return;
  64488. }
  64489. try {
  64490. this.props.globalState.nodeMaterial.build(true);
  64491. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"]("Node material build successful", false));
  64492. }
  64493. catch (err) {
  64494. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"](err, true));
  64495. }
  64496. };
  64497. GraphEditor.prototype.applyFragmentOutputConstraints = function (rootInput) {
  64498. var model = rootInput.parent;
  64499. for (var inputKey in model.getPorts()) {
  64500. var input = model.getPorts()[inputKey];
  64501. if (rootInput.name === "rgba" && (inputKey === "a" || inputKey === "rgb")
  64502. ||
  64503. (rootInput.name === "a" || rootInput.name === "rgb") && inputKey === "rgba") {
  64504. for (var key in input.links) {
  64505. var other = input.links[key];
  64506. other.remove();
  64507. }
  64508. continue;
  64509. }
  64510. }
  64511. };
  64512. GraphEditor.prototype.build = function (needToWait, locations) {
  64513. var _this = this;
  64514. if (needToWait === void 0) { needToWait = false; }
  64515. if (locations === void 0) { locations = null; }
  64516. // setup the diagram model
  64517. this._model = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramModel"]();
  64518. this._nodes = [];
  64519. this._blocks = [];
  64520. // Listen to events
  64521. this._model.addListener({
  64522. nodesUpdated: function (e) {
  64523. if (!e.isCreated) {
  64524. // Block is deleted
  64525. var targetBlock = e.node.block;
  64526. if (targetBlock) {
  64527. var attachedBlockIndex = _this.props.globalState.nodeMaterial.attachedBlocks.indexOf(targetBlock);
  64528. if (attachedBlockIndex > -1) {
  64529. _this.props.globalState.nodeMaterial.attachedBlocks.splice(attachedBlockIndex, 1);
  64530. }
  64531. if (targetBlock.isFinalMerger) {
  64532. _this.props.globalState.nodeMaterial.removeOutputNode(targetBlock);
  64533. }
  64534. var blockIndex = _this._blocks.indexOf(targetBlock);
  64535. if (blockIndex > -1) {
  64536. _this._blocks.splice(blockIndex, 1);
  64537. }
  64538. }
  64539. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  64540. }
  64541. else {
  64542. }
  64543. },
  64544. linksUpdated: function (e) {
  64545. if (!e.isCreated) {
  64546. // Link is deleted
  64547. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  64548. var sourcePort = e.link.sourcePort;
  64549. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(sourcePort, e.link.targetPort);
  64550. if (link) {
  64551. if (link.input.connection && link.output.connection) {
  64552. if (link.input.connection.connectedPoint) {
  64553. // Disconnect standard nodes
  64554. link.output.connection.disconnectFrom(link.input.connection);
  64555. link.input.syncWithNodeMaterialConnectionPoint(link.input.connection);
  64556. link.output.syncWithNodeMaterialConnectionPoint(link.output.connection);
  64557. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  64558. }
  64559. }
  64560. }
  64561. else {
  64562. if (!e.link.targetPort && e.link.sourcePort && e.link.sourcePort.position === "input") {
  64563. // Drag from input port, we are going to build an input for it
  64564. var input_1 = e.link.sourcePort;
  64565. if (input_1.connection.type == babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["NodeMaterialBlockConnectionPointTypes"].AutoDetect) {
  64566. return;
  64567. }
  64568. var nodeModel_1 = _this.addValueNode(_blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetStringFromConnectionNodeType(input_1.connection.type));
  64569. var link_1 = nodeModel_1.ports.output.link(input_1);
  64570. nodeModel_1.x = e.link.points[1].x - _this.NodeWidth;
  64571. nodeModel_1.y = e.link.points[1].y;
  64572. setTimeout(function () {
  64573. _this._model.addLink(link_1);
  64574. input_1.syncWithNodeMaterialConnectionPoint(input_1.connection);
  64575. nodeModel_1.ports.output.syncWithNodeMaterialConnectionPoint(nodeModel_1.ports.output.connection);
  64576. var isFragmentOutput = input_1.parent.block.getClassName() === "FragmentOutputBlock";
  64577. if (isFragmentOutput) {
  64578. _this.applyFragmentOutputConstraints(input_1);
  64579. }
  64580. _this.forceUpdate();
  64581. }, 1);
  64582. nodeModel_1.ports.output.connection.connectTo(input_1.connection);
  64583. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  64584. }
  64585. }
  64586. _this.forceUpdate();
  64587. return;
  64588. }
  64589. else {
  64590. e.link.addListener({
  64591. sourcePortChanged: function () {
  64592. },
  64593. targetPortChanged: function (evt) {
  64594. // Link is created with a target port
  64595. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  64596. if (link) {
  64597. if (link.output.connection && link.input.connection) {
  64598. var currentBlock = link.input.connection.ownerBlock;
  64599. var isFragmentOutput = currentBlock.getClassName() === "FragmentOutputBlock";
  64600. // Disconnect previous connection
  64601. for (var key in link.input.links) {
  64602. var other = link.input.links[key];
  64603. var sourcePortConnection = other.getSourcePort().connection;
  64604. var targetPortConnection = other.getTargetPort().connection;
  64605. if (sourcePortConnection !== link.output.connection &&
  64606. targetPortConnection !== link.output.connection) {
  64607. other.remove();
  64608. }
  64609. }
  64610. if (link.output.connection.canConnectTo(link.input.connection)) {
  64611. if (isFragmentOutput) {
  64612. _this.applyFragmentOutputConstraints(link.input);
  64613. }
  64614. link.output.connection.connectTo(link.input.connection);
  64615. }
  64616. else {
  64617. evt.entity.remove();
  64618. _this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Cannot connect two different connection types");
  64619. }
  64620. _this.forceUpdate();
  64621. }
  64622. if (_this.props.globalState.nodeMaterial) {
  64623. _this.buildMaterial();
  64624. }
  64625. }
  64626. }
  64627. });
  64628. }
  64629. }
  64630. });
  64631. // Load graph of nodes from the material
  64632. if (this.props.globalState.nodeMaterial) {
  64633. var material = this.props.globalState.nodeMaterial;
  64634. material._vertexOutputNodes.forEach(function (n) {
  64635. _this.createNodeFromObject({ nodeMaterialBlock: n });
  64636. });
  64637. material._fragmentOutputNodes.forEach(function (n) {
  64638. _this.createNodeFromObject({ nodeMaterialBlock: n });
  64639. });
  64640. material.attachedBlocks.forEach(function (n) {
  64641. _this.createNodeFromObject({ nodeMaterialBlock: n });
  64642. });
  64643. }
  64644. // load model into engine
  64645. setTimeout(function () {
  64646. var _a;
  64647. if (_this._toAdd) {
  64648. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  64649. }
  64650. _this._toAdd = null;
  64651. _this._engine.setDiagramModel(_this._model);
  64652. _this.forceUpdate();
  64653. _this.reOrganize(locations);
  64654. }, needToWait ? 500 : 1);
  64655. };
  64656. GraphEditor.prototype.reOrganize = function (locations) {
  64657. var _this = this;
  64658. if (locations === void 0) { locations = null; }
  64659. if (!locations) {
  64660. var nodes = _graphHelper__WEBPACK_IMPORTED_MODULE_23__["GraphHelper"].DistributeGraph(this._model);
  64661. nodes.forEach(function (node) {
  64662. for (var nodeName in _this._model.nodes) {
  64663. var modelNode = _this._model.nodes[nodeName];
  64664. if (modelNode.id === node.id) {
  64665. modelNode.setPosition(node.x - node.width / 2, node.y - node.height / 2);
  64666. return;
  64667. }
  64668. }
  64669. });
  64670. }
  64671. else {
  64672. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  64673. var location = locations_1[_i];
  64674. for (var _a = 0, _b = this._nodes; _a < _b.length; _a++) {
  64675. var node = _b[_a];
  64676. if (node.block && node.block.uniqueId === location.blockId) {
  64677. node.setPosition(location.x, location.y);
  64678. break;
  64679. }
  64680. }
  64681. }
  64682. }
  64683. this._engine.repaintCanvas();
  64684. };
  64685. GraphEditor.prototype.onPointerDown = function (evt) {
  64686. this._startX = evt.clientX;
  64687. this._moveInProgress = true;
  64688. evt.currentTarget.setPointerCapture(evt.pointerId);
  64689. };
  64690. GraphEditor.prototype.onPointerUp = function (evt) {
  64691. this._moveInProgress = false;
  64692. evt.currentTarget.releasePointerCapture(evt.pointerId);
  64693. };
  64694. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  64695. if (forLeft === void 0) { forLeft = true; }
  64696. if (!this._moveInProgress) {
  64697. return;
  64698. }
  64699. var deltaX = evt.clientX - this._startX;
  64700. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  64701. if (forLeft) {
  64702. this._leftWidth += deltaX;
  64703. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  64704. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("LeftWidth", this._leftWidth);
  64705. }
  64706. else {
  64707. this._rightWidth -= deltaX;
  64708. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  64709. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("RightWidth", this._rightWidth);
  64710. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  64711. }
  64712. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  64713. this._startX = evt.clientX;
  64714. };
  64715. GraphEditor.prototype.buildColumnLayout = function () {
  64716. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  64717. };
  64718. GraphEditor.prototype.emitNewBlock = function (event) {
  64719. var _this = this;
  64720. var data = event.dataTransfer.getData("babylonjs-material-node");
  64721. var nodeModel = null;
  64722. if (data.indexOf("Block") === -1) {
  64723. nodeModel = this.addValueNode(data);
  64724. }
  64725. else {
  64726. var block = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetBlockFromString(data);
  64727. if (block) {
  64728. this._toAdd = [];
  64729. block.autoConfigure(this.props.globalState.nodeMaterial);
  64730. nodeModel = this.createNodeFromObject({ nodeMaterialBlock: block });
  64731. }
  64732. }
  64733. ;
  64734. if (nodeModel) {
  64735. var zoomLevel = this._engine.diagramModel.getZoomLevel() / 100.0;
  64736. var x_1 = (event.clientX - event.currentTarget.offsetLeft - this._engine.diagramModel.getOffsetX() - this.NodeWidth) / zoomLevel;
  64737. var y_1 = (event.clientY - event.currentTarget.offsetTop - this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  64738. nodeModel.setPosition(x_1, y_1);
  64739. var block = nodeModel.block;
  64740. x_1 -= this.NodeWidth + 150;
  64741. block._inputs.forEach(function (connection) {
  64742. if (connection.connectedPoint) {
  64743. var existingNodes = _this._nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  64744. var connectedNode = existingNodes[0];
  64745. if (connectedNode.x === 0 && connectedNode.y === 0) {
  64746. connectedNode.setPosition(x_1, y_1);
  64747. y_1 += 80;
  64748. }
  64749. }
  64750. });
  64751. this._engine.repaintCanvas();
  64752. setTimeout(function () {
  64753. var _a;
  64754. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  64755. _this._toAdd = null;
  64756. _this._model.clearSelection();
  64757. nodeModel.setSelected(true);
  64758. _this._engine.repaintCanvas();
  64759. }, 150);
  64760. }
  64761. this.forceUpdate();
  64762. };
  64763. GraphEditor.prototype.render = function () {
  64764. var _this = this;
  64765. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_7__["Portal"], { globalState: this.props.globalState },
  64766. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "node-editor-graph-root", style: {
  64767. gridTemplateColumns: this.buildColumnLayout()
  64768. }, onMouseMove: function (evt) {
  64769. _this._mouseLocationX = evt.pageX;
  64770. _this._mouseLocationY = evt.pageY;
  64771. }, onMouseDown: function (evt) {
  64772. if (evt.target.nodeName === "INPUT") {
  64773. return;
  64774. }
  64775. _this.props.globalState.blockKeyboardEvents = false;
  64776. } },
  64777. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__["NodeListComponent"], { globalState: this.props.globalState }),
  64778. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "leftGrab", onPointerDown: function (evt) { return _this.onPointerDown(evt); }, onPointerUp: function (evt) { return _this.onPointerUp(evt); }, onPointerMove: function (evt) { return _this.resizeColumns(evt); } }),
  64779. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  64780. _this.emitNewBlock(event);
  64781. }, onDragOver: function (event) {
  64782. event.preventDefault();
  64783. } },
  64784. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramWidget"], { className: "diagram", deleteKeys: [46], ref: "test", allowLooseLinks: false, inverseZoom: true, diagramEngine: this._engine, maxNumberPointsPerLink: 0 })),
  64785. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "rightGrab", onPointerDown: function (evt) { return _this.onPointerDown(evt); }, onPointerUp: function (evt) { return _this.onPointerUp(evt); }, onPointerMove: function (evt) { return _this.resizeColumns(evt, false); } }),
  64786. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "right-panel" },
  64787. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["PropertyTabComponent"], { globalState: this.props.globalState }),
  64788. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__["PreviewMeshControlComponent"], { globalState: this.props.globalState }),
  64789. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_32__["PreviewAreaComponent"], { globalState: this.props.globalState, width: this._rightWidth })),
  64790. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogComponent"], { globalState: this.props.globalState })),
  64791. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__["MessageDialogComponent"], { globalState: this.props.globalState })));
  64792. };
  64793. return GraphEditor;
  64794. }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]));
  64795. /***/ }),
  64796. /***/ "./graphHelper.ts":
  64797. /*!************************!*\
  64798. !*** ./graphHelper.ts ***!
  64799. \************************/
  64800. /*! exports provided: GraphHelper */
  64801. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64802. "use strict";
  64803. __webpack_require__.r(__webpack_exports__);
  64804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphHelper", function() { return GraphHelper; });
  64805. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64806. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  64807. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  64808. var GraphHelper = /** @class */ (function () {
  64809. function GraphHelper() {
  64810. }
  64811. GraphHelper.DistributeGraph = function (model) {
  64812. var nodes = this._MapElements(model);
  64813. var edges = this._MapEdges(model);
  64814. var graph = new dagre__WEBPACK_IMPORTED_MODULE_1__["graphlib"].Graph();
  64815. graph.setGraph({});
  64816. graph.setDefaultEdgeLabel(function () { return ({}); });
  64817. graph.graph().rankdir = "LR";
  64818. //add elements to dagre graph
  64819. nodes.forEach(function (node) {
  64820. graph.setNode(node.id, node.metadata);
  64821. });
  64822. edges.forEach(function (edge) {
  64823. if (edge.from && edge.to) {
  64824. graph.setEdge(edge.from.id, edge.to.id);
  64825. }
  64826. });
  64827. //auto-distribute
  64828. dagre__WEBPACK_IMPORTED_MODULE_1__["layout"](graph);
  64829. return graph.nodes().map(function (node) { return graph.node(node); });
  64830. };
  64831. GraphHelper._MapElements = function (model) {
  64832. var output = [];
  64833. // dagre compatible format
  64834. for (var nodeName in model.nodes) {
  64835. var node = model.nodes[nodeName];
  64836. var size = {
  64837. width: node.width | 200,
  64838. height: node.height | 100
  64839. };
  64840. output.push({ id: node.id, metadata: tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, size, { id: node.id }) });
  64841. }
  64842. return output;
  64843. };
  64844. GraphHelper._MapEdges = function (model) {
  64845. // returns links which connects nodes
  64846. // we check are there both from and to nodes in the model. Sometimes links can be detached
  64847. var output = [];
  64848. for (var linkName in model.links) {
  64849. var link = model.links[linkName];
  64850. output.push({
  64851. from: link.sourcePort.parent,
  64852. to: link.targetPort.parent
  64853. });
  64854. }
  64855. return output;
  64856. };
  64857. return GraphHelper;
  64858. }());
  64859. /***/ }),
  64860. /***/ "./index.ts":
  64861. /*!******************!*\
  64862. !*** ./index.ts ***!
  64863. \******************/
  64864. /*! exports provided: NodeEditor */
  64865. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64866. "use strict";
  64867. __webpack_require__.r(__webpack_exports__);
  64868. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  64869. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  64870. /***/ }),
  64871. /***/ "./legacy/legacy.ts":
  64872. /*!**************************!*\
  64873. !*** ./legacy/legacy.ts ***!
  64874. \**************************/
  64875. /*! exports provided: NodeEditor */
  64876. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64877. "use strict";
  64878. __webpack_require__.r(__webpack_exports__);
  64879. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  64880. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  64881. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  64882. if (typeof globalObject !== "undefined") {
  64883. globalObject.BABYLON = globalObject.BABYLON || {};
  64884. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  64885. }
  64886. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  64887. /***/ }),
  64888. /***/ "./main.scss":
  64889. /*!*******************!*\
  64890. !*** ./main.scss ***!
  64891. \*******************/
  64892. /*! no static exports found */
  64893. /***/ (function(module, exports, __webpack_require__) {
  64894. 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");
  64895. if(typeof content === 'string') content = [[module.i, content, '']];
  64896. var transform;
  64897. var insertInto;
  64898. var options = {"hmr":true}
  64899. options.transform = transform
  64900. options.insertInto = undefined;
  64901. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  64902. if(content.locals) module.exports = content.locals;
  64903. if(false) {}
  64904. /***/ }),
  64905. /***/ "./nodeEditor.ts":
  64906. /*!***********************!*\
  64907. !*** ./nodeEditor.ts ***!
  64908. \***********************/
  64909. /*! exports provided: NodeEditor */
  64910. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64911. "use strict";
  64912. __webpack_require__.r(__webpack_exports__);
  64913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  64914. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64915. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  64916. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  64917. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  64918. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  64919. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  64920. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  64921. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  64922. /**
  64923. * Class used to create a node editor
  64924. */
  64925. var NodeEditor = /** @class */ (function () {
  64926. function NodeEditor() {
  64927. }
  64928. /**
  64929. * Show the node editor
  64930. * @param options defines the options to use to configure the node editor
  64931. */
  64932. NodeEditor.Show = function (options) {
  64933. if (this._CurrentState) {
  64934. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  64935. if (popupWindow) {
  64936. popupWindow.close();
  64937. }
  64938. }
  64939. var hostElement = options.hostElement;
  64940. if (!hostElement) {
  64941. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  64942. }
  64943. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  64944. globalState.nodeMaterial = options.nodeMaterial;
  64945. globalState.hostElement = hostElement;
  64946. globalState.hostDocument = hostElement.ownerDocument;
  64947. globalState.customSave = options.customSave;
  64948. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  64949. globalState: globalState
  64950. });
  64951. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  64952. if (options.customLoadObservable) {
  64953. options.customLoadObservable.add(function (data) {
  64954. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  64955. });
  64956. }
  64957. this._CurrentState = globalState;
  64958. // Close the popup window when the page is refreshed or scene is disposed
  64959. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  64960. if (globalState.nodeMaterial && popupWindow) {
  64961. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  64962. if (popupWindow) {
  64963. popupWindow.close();
  64964. }
  64965. });
  64966. window.onbeforeunload = function () {
  64967. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  64968. if (popupWindow) {
  64969. popupWindow.close();
  64970. }
  64971. };
  64972. }
  64973. };
  64974. return NodeEditor;
  64975. }());
  64976. /***/ }),
  64977. /***/ "./portal.tsx":
  64978. /*!********************!*\
  64979. !*** ./portal.tsx ***!
  64980. \********************/
  64981. /*! exports provided: Portal */
  64982. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64983. "use strict";
  64984. __webpack_require__.r(__webpack_exports__);
  64985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  64986. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64987. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64988. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64989. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  64990. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  64991. var Portal = /** @class */ (function (_super) {
  64992. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Portal, _super);
  64993. function Portal() {
  64994. return _super !== null && _super.apply(this, arguments) || this;
  64995. }
  64996. Portal.prototype.render = function () {
  64997. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  64998. };
  64999. return Portal;
  65000. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65001. /***/ }),
  65002. /***/ "./serializationTools.ts":
  65003. /*!*******************************!*\
  65004. !*** ./serializationTools.ts ***!
  65005. \*******************************/
  65006. /*! exports provided: SerializationTools */
  65007. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65008. "use strict";
  65009. __webpack_require__.r(__webpack_exports__);
  65010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  65011. var SerializationTools = /** @class */ (function () {
  65012. function SerializationTools() {
  65013. }
  65014. SerializationTools.Serialize = function (material, globalState) {
  65015. var serializationObject = material.serialize();
  65016. // Store node locations
  65017. for (var _i = 0, _a = material.attachedBlocks; _i < _a.length; _i++) {
  65018. var block = _a[_i];
  65019. var node = globalState.onGetNodeFromBlock(block);
  65020. if (!serializationObject.locations) {
  65021. serializationObject.locations = [];
  65022. }
  65023. serializationObject.locations.push({
  65024. blockId: block.uniqueId,
  65025. x: node ? node.x : 0,
  65026. y: node ? node.y : 0
  65027. });
  65028. }
  65029. return JSON.stringify(serializationObject, undefined, 2);
  65030. };
  65031. SerializationTools.Deserialize = function (serializationObject, globalState) {
  65032. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  65033. // Check for id mapping
  65034. if (serializationObject.locations && serializationObject.map) {
  65035. var map = serializationObject.map;
  65036. var locations = serializationObject.locations;
  65037. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  65038. var location = locations_1[_i];
  65039. location.blockId = map[location.blockId];
  65040. }
  65041. }
  65042. globalState.onResetRequiredObservable.notifyObservers(serializationObject.locations);
  65043. };
  65044. return SerializationTools;
  65045. }());
  65046. /***/ }),
  65047. /***/ "./sharedComponents/buttonLineComponent.tsx":
  65048. /*!**************************************************!*\
  65049. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  65050. \**************************************************/
  65051. /*! exports provided: ButtonLineComponent */
  65052. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65053. "use strict";
  65054. __webpack_require__.r(__webpack_exports__);
  65055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  65056. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65057. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65058. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65059. var ButtonLineComponent = /** @class */ (function (_super) {
  65060. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ButtonLineComponent, _super);
  65061. function ButtonLineComponent(props) {
  65062. return _super.call(this, props) || this;
  65063. }
  65064. ButtonLineComponent.prototype.render = function () {
  65065. var _this = this;
  65066. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  65067. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  65068. };
  65069. return ButtonLineComponent;
  65070. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65071. /***/ }),
  65072. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  65073. /*!****************************************************!*\
  65074. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  65075. \****************************************************/
  65076. /*! exports provided: CheckBoxLineComponent */
  65077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65078. "use strict";
  65079. __webpack_require__.r(__webpack_exports__);
  65080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  65081. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65082. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65083. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65084. var CheckBoxLineComponent = /** @class */ (function (_super) {
  65085. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CheckBoxLineComponent, _super);
  65086. function CheckBoxLineComponent(props) {
  65087. var _this = _super.call(this, props) || this;
  65088. _this._localChange = false;
  65089. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  65090. if (_this.props.isSelected) {
  65091. _this.state = { isSelected: _this.props.isSelected() };
  65092. }
  65093. else {
  65094. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  65095. }
  65096. return _this;
  65097. }
  65098. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65099. var currentState;
  65100. if (this.props.isSelected) {
  65101. currentState = nextProps.isSelected();
  65102. }
  65103. else {
  65104. currentState = nextProps.target[nextProps.propertyName] === true;
  65105. }
  65106. if (currentState !== nextState.isSelected || this._localChange) {
  65107. nextState.isSelected = currentState;
  65108. this._localChange = false;
  65109. return true;
  65110. }
  65111. return false;
  65112. };
  65113. CheckBoxLineComponent.prototype.onChange = function () {
  65114. this._localChange = true;
  65115. if (this.props.onSelect) {
  65116. this.props.onSelect(!this.state.isSelected);
  65117. }
  65118. else {
  65119. if (this.props.onPropertyChangedObservable) {
  65120. this.props.onPropertyChangedObservable.notifyObservers({
  65121. object: this.props.target,
  65122. property: this.props.propertyName,
  65123. value: !this.state.isSelected,
  65124. initialValue: this.state.isSelected
  65125. });
  65126. }
  65127. this.props.target[this.props.propertyName] = !this.state.isSelected;
  65128. }
  65129. if (this.props.onValueChanged) {
  65130. this.props.onValueChanged();
  65131. }
  65132. this.setState({ isSelected: !this.state.isSelected });
  65133. };
  65134. CheckBoxLineComponent.prototype.render = function () {
  65135. var _this = this;
  65136. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  65137. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65138. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  65139. 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(); } }),
  65140. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  65141. };
  65142. CheckBoxLineComponent._UniqueIdSeed = 0;
  65143. return CheckBoxLineComponent;
  65144. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65145. /***/ }),
  65146. /***/ "./sharedComponents/color3LineComponent.tsx":
  65147. /*!**************************************************!*\
  65148. !*** ./sharedComponents/color3LineComponent.tsx ***!
  65149. \**************************************************/
  65150. /*! exports provided: Color3LineComponent */
  65151. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65152. "use strict";
  65153. __webpack_require__.r(__webpack_exports__);
  65154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  65155. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65156. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65157. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65158. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  65159. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  65160. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  65161. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65162. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  65163. var Color3LineComponent = /** @class */ (function (_super) {
  65164. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3LineComponent, _super);
  65165. function Color3LineComponent(props) {
  65166. var _this = _super.call(this, props) || this;
  65167. _this._localChange = false;
  65168. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  65169. return _this;
  65170. }
  65171. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65172. var currentState = nextProps.target[nextProps.propertyName];
  65173. if (!currentState.equals(nextState.color) || this._localChange) {
  65174. nextState.color = currentState.clone();
  65175. this._localChange = false;
  65176. return true;
  65177. }
  65178. return false;
  65179. };
  65180. Color3LineComponent.prototype.onChange = function (newValue) {
  65181. this._localChange = true;
  65182. var newColor = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  65183. if (this.props.onPropertyChangedObservable) {
  65184. this.props.onPropertyChangedObservable.notifyObservers({
  65185. object: this.props.target,
  65186. property: this.props.propertyName,
  65187. value: newColor,
  65188. initialValue: this.state.color
  65189. });
  65190. }
  65191. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  65192. this.props.target[this.props.propertyName] = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  65193. }
  65194. else {
  65195. this.props.target[this.props.propertyName] = newColor;
  65196. }
  65197. this.setState({ color: newColor });
  65198. if (this.props.onChange) {
  65199. this.props.onChange();
  65200. }
  65201. };
  65202. Color3LineComponent.prototype.switchExpandState = function () {
  65203. this._localChange = true;
  65204. this.setState({ isExpanded: !this.state.isExpanded });
  65205. };
  65206. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  65207. if (!this.props.onPropertyChangedObservable) {
  65208. return;
  65209. }
  65210. this.props.onPropertyChangedObservable.notifyObservers({
  65211. object: this.props.target,
  65212. property: this.props.propertyName,
  65213. value: this.state.color,
  65214. initialValue: previousValue
  65215. });
  65216. };
  65217. Color3LineComponent.prototype.updateStateR = function (value) {
  65218. this._localChange = true;
  65219. var store = this.state.color.clone();
  65220. this.props.target[this.props.propertyName].x = value;
  65221. this.state.color.r = value;
  65222. this.props.target[this.props.propertyName] = this.state.color;
  65223. this.setState({ color: this.state.color });
  65224. this.raiseOnPropertyChanged(store);
  65225. };
  65226. Color3LineComponent.prototype.updateStateG = function (value) {
  65227. this._localChange = true;
  65228. var store = this.state.color.clone();
  65229. this.props.target[this.props.propertyName].g = value;
  65230. this.state.color.g = value;
  65231. this.props.target[this.props.propertyName] = this.state.color;
  65232. this.setState({ color: this.state.color });
  65233. this.raiseOnPropertyChanged(store);
  65234. };
  65235. Color3LineComponent.prototype.updateStateB = function (value) {
  65236. this._localChange = true;
  65237. var store = this.state.color.clone();
  65238. this.props.target[this.props.propertyName].b = value;
  65239. this.state.color.b = value;
  65240. this.props.target[this.props.propertyName] = this.state.color;
  65241. this.setState({ color: this.state.color });
  65242. this.raiseOnPropertyChanged(store);
  65243. };
  65244. Color3LineComponent.prototype.copyToClipboard = function () {
  65245. var element = document.createElement('div');
  65246. element.textContent = this.state.color.toHexString();
  65247. document.body.appendChild(element);
  65248. if (window.getSelection) {
  65249. var range = document.createRange();
  65250. range.selectNode(element);
  65251. window.getSelection().removeAllRanges();
  65252. window.getSelection().addRange(range);
  65253. }
  65254. document.execCommand('copy');
  65255. element.remove();
  65256. };
  65257. Color3LineComponent.prototype.render = function () {
  65258. var _this = this;
  65259. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faPlus"] });
  65260. var colorAsColor3 = this.state.color.getClassName() === "Color3" ? this.state.color : new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"](this.state.color.r, this.state.color.g, this.state.color.b);
  65261. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  65262. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  65263. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65264. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  65265. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  65266. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  65267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faCopy"] })),
  65268. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  65269. this.state.isExpanded &&
  65270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65271. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
  65272. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "g", value: this.state.color.g, onChange: function (value) { return _this.updateStateG(value); } }),
  65273. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "b", value: this.state.color.b, onChange: function (value) { return _this.updateStateB(value); } }))));
  65274. };
  65275. return Color3LineComponent;
  65276. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65277. /***/ }),
  65278. /***/ "./sharedComponents/draggableLineComponent.tsx":
  65279. /*!*****************************************************!*\
  65280. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  65281. \*****************************************************/
  65282. /*! exports provided: DraggableLineComponent */
  65283. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65284. "use strict";
  65285. __webpack_require__.r(__webpack_exports__);
  65286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  65287. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65288. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65289. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65290. var DraggableLineComponent = /** @class */ (function (_super) {
  65291. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DraggableLineComponent, _super);
  65292. function DraggableLineComponent(props) {
  65293. return _super.call(this, props) || this;
  65294. }
  65295. DraggableLineComponent.prototype.render = function () {
  65296. var _this = this;
  65297. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", draggable: true, onDragStart: function (event) {
  65298. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  65299. } }, this.props.data.replace("Block", "")));
  65300. };
  65301. return DraggableLineComponent;
  65302. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65303. /***/ }),
  65304. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  65305. /*!******************************************************!*\
  65306. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  65307. \******************************************************/
  65308. /*! exports provided: FileButtonLineComponent */
  65309. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65310. "use strict";
  65311. __webpack_require__.r(__webpack_exports__);
  65312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  65313. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65314. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65315. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65316. var FileButtonLineComponent = /** @class */ (function (_super) {
  65317. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FileButtonLineComponent, _super);
  65318. function FileButtonLineComponent(props) {
  65319. return _super.call(this, props) || this;
  65320. }
  65321. FileButtonLineComponent.prototype.onChange = function (evt) {
  65322. var files = evt.target.files;
  65323. if (files && files.length) {
  65324. this.props.onClick(files[0]);
  65325. }
  65326. evt.target.value = "";
  65327. };
  65328. FileButtonLineComponent.prototype.render = function () {
  65329. var _this = this;
  65330. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  65331. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  65332. 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); } })));
  65333. };
  65334. return FileButtonLineComponent;
  65335. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65336. /***/ }),
  65337. /***/ "./sharedComponents/floatLineComponent.tsx":
  65338. /*!*************************************************!*\
  65339. !*** ./sharedComponents/floatLineComponent.tsx ***!
  65340. \*************************************************/
  65341. /*! exports provided: FloatLineComponent */
  65342. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65343. "use strict";
  65344. __webpack_require__.r(__webpack_exports__);
  65345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  65346. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65347. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65348. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65349. var FloatLineComponent = /** @class */ (function (_super) {
  65350. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatLineComponent, _super);
  65351. function FloatLineComponent(props) {
  65352. var _this = _super.call(this, props) || this;
  65353. _this._localChange = false;
  65354. var currentValue = _this.props.target[_this.props.propertyName];
  65355. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  65356. _this._store = currentValue;
  65357. return _this;
  65358. }
  65359. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65360. if (this._localChange) {
  65361. this._localChange = false;
  65362. return true;
  65363. }
  65364. var newValue = nextProps.target[nextProps.propertyName];
  65365. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  65366. if (newValueString !== nextState.value) {
  65367. nextState.value = newValueString;
  65368. return true;
  65369. }
  65370. return false;
  65371. };
  65372. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  65373. if (this.props.onChange) {
  65374. this.props.onChange(newValue);
  65375. }
  65376. if (!this.props.onPropertyChangedObservable) {
  65377. return;
  65378. }
  65379. this.props.onPropertyChangedObservable.notifyObservers({
  65380. object: this.props.target,
  65381. property: this.props.propertyName,
  65382. value: newValue,
  65383. initialValue: previousValue
  65384. });
  65385. };
  65386. FloatLineComponent.prototype.updateValue = function (valueString) {
  65387. if (/[^0-9\.\-]/g.test(valueString)) {
  65388. return;
  65389. }
  65390. var valueAsNumber;
  65391. if (this.props.isInteger) {
  65392. valueAsNumber = parseInt(valueString);
  65393. }
  65394. else {
  65395. valueAsNumber = parseFloat(valueString);
  65396. }
  65397. this._localChange = true;
  65398. this.setState({ value: valueString });
  65399. if (isNaN(valueAsNumber)) {
  65400. return;
  65401. }
  65402. this.props.target[this.props.propertyName] = valueAsNumber;
  65403. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  65404. this._store = valueAsNumber;
  65405. };
  65406. FloatLineComponent.prototype.render = function () {
  65407. var _this = this;
  65408. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  65409. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65410. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  65411. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || "0.01", className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))));
  65412. };
  65413. return FloatLineComponent;
  65414. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65415. /***/ }),
  65416. /***/ "./sharedComponents/lineContainerComponent.tsx":
  65417. /*!*****************************************************!*\
  65418. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  65419. \*****************************************************/
  65420. /*! exports provided: LineContainerComponent */
  65421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65422. "use strict";
  65423. __webpack_require__.r(__webpack_exports__);
  65424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  65425. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65426. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65427. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65428. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65429. /* 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");
  65430. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dataStorage */ "./dataStorage.ts");
  65431. var LineContainerComponent = /** @class */ (function (_super) {
  65432. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineContainerComponent, _super);
  65433. function LineContainerComponent(props) {
  65434. var _this = _super.call(this, props) || this;
  65435. var initialState = _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  65436. _this.state = { isExpanded: initialState };
  65437. return _this;
  65438. }
  65439. LineContainerComponent.prototype.switchExpandedState = function () {
  65440. var newState = !this.state.isExpanded;
  65441. _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].StoreBoolean(this.props.title, newState);
  65442. this.setState({ isExpanded: newState });
  65443. };
  65444. LineContainerComponent.prototype.renderHeader = function () {
  65445. var _this = this;
  65446. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  65447. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  65448. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  65449. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  65450. 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"] }))));
  65451. };
  65452. LineContainerComponent.prototype.render = function () {
  65453. if (!this.state.isExpanded) {
  65454. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  65455. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  65456. }
  65457. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  65458. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  65459. this.renderHeader(),
  65460. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  65461. };
  65462. return LineContainerComponent;
  65463. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65464. /***/ }),
  65465. /***/ "./sharedComponents/matrixLineComponent.tsx":
  65466. /*!**************************************************!*\
  65467. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  65468. \**************************************************/
  65469. /*! exports provided: MatrixLineComponent */
  65470. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65471. "use strict";
  65472. __webpack_require__.r(__webpack_exports__);
  65473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  65474. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65475. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65476. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65477. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  65478. var MatrixLineComponent = /** @class */ (function (_super) {
  65479. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MatrixLineComponent, _super);
  65480. function MatrixLineComponent(props) {
  65481. var _this = _super.call(this, props) || this;
  65482. _this._localChange = false;
  65483. var matrix = _this.props.target[_this.props.propertyName].clone();
  65484. _this.state = { value: matrix };
  65485. return _this;
  65486. }
  65487. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65488. var nextPropsValue = nextProps.target[nextProps.propertyName];
  65489. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  65490. nextState.value = nextPropsValue.clone();
  65491. this._localChange = false;
  65492. return true;
  65493. }
  65494. return false;
  65495. };
  65496. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  65497. if (this.props.onChange) {
  65498. this.props.onChange(this.state.value);
  65499. }
  65500. if (!this.props.onPropertyChangedObservable) {
  65501. return;
  65502. }
  65503. this.props.onPropertyChangedObservable.notifyObservers({
  65504. object: this.props.target,
  65505. property: this.props.propertyName,
  65506. value: this.state.value,
  65507. initialValue: previousValue
  65508. });
  65509. };
  65510. MatrixLineComponent.prototype.updateMatrix = function () {
  65511. var store = this.props.target[this.props.propertyName].clone();
  65512. this.props.target[this.props.propertyName] = this.state.value;
  65513. this.setState({ value: store });
  65514. this.raiseOnPropertyChanged(store);
  65515. };
  65516. MatrixLineComponent.prototype.updateRow = function (value, row) {
  65517. this._localChange = true;
  65518. this.state.value.setRow(row, value);
  65519. this.updateMatrix();
  65520. };
  65521. MatrixLineComponent.prototype.render = function () {
  65522. var _this = this;
  65523. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  65524. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  65525. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  65526. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65527. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Row #0", value: this.state.value.getRow(0), onChange: function (value) { return _this.updateRow(value, 0); } }),
  65528. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Row #1", value: this.state.value.getRow(1), onChange: function (value) { return _this.updateRow(value, 1); } }),
  65529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Row #2", value: this.state.value.getRow(2), onChange: function (value) { return _this.updateRow(value, 2); } }),
  65530. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Row #3", value: this.state.value.getRow(3), onChange: function (value) { return _this.updateRow(value, 3); } }))));
  65531. };
  65532. return MatrixLineComponent;
  65533. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65534. /***/ }),
  65535. /***/ "./sharedComponents/messageDialog.tsx":
  65536. /*!********************************************!*\
  65537. !*** ./sharedComponents/messageDialog.tsx ***!
  65538. \********************************************/
  65539. /*! exports provided: MessageDialogComponent */
  65540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65541. "use strict";
  65542. __webpack_require__.r(__webpack_exports__);
  65543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  65544. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65545. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65546. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65547. var MessageDialogComponent = /** @class */ (function (_super) {
  65548. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MessageDialogComponent, _super);
  65549. function MessageDialogComponent(props) {
  65550. var _this = _super.call(this, props) || this;
  65551. _this.state = { message: "", isError: false };
  65552. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  65553. _this.setState({ message: message, isError: true });
  65554. });
  65555. return _this;
  65556. }
  65557. MessageDialogComponent.prototype.render = function () {
  65558. var _this = this;
  65559. if (!this.state.message) {
  65560. return null;
  65561. }
  65562. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  65563. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  65564. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  65565. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  65566. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  65567. };
  65568. return MessageDialogComponent;
  65569. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65570. /***/ }),
  65571. /***/ "./sharedComponents/numericInputComponent.tsx":
  65572. /*!****************************************************!*\
  65573. !*** ./sharedComponents/numericInputComponent.tsx ***!
  65574. \****************************************************/
  65575. /*! exports provided: NumericInputComponent */
  65576. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65577. "use strict";
  65578. __webpack_require__.r(__webpack_exports__);
  65579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  65580. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65581. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65582. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65583. var NumericInputComponent = /** @class */ (function (_super) {
  65584. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumericInputComponent, _super);
  65585. function NumericInputComponent(props) {
  65586. var _this = _super.call(this, props) || this;
  65587. _this._localChange = false;
  65588. _this.state = { value: _this.props.value.toFixed(3) };
  65589. return _this;
  65590. }
  65591. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65592. if (this._localChange) {
  65593. this._localChange = false;
  65594. return true;
  65595. }
  65596. if (nextProps.value.toString() !== nextState.value) {
  65597. nextState.value = nextProps.value.toFixed(3);
  65598. return true;
  65599. }
  65600. return false;
  65601. };
  65602. NumericInputComponent.prototype.updateValue = function (evt) {
  65603. var value = evt.target.value;
  65604. if (/[^0-9\.\-]/g.test(value)) {
  65605. return;
  65606. }
  65607. var valueAsNumber = parseFloat(value);
  65608. this._localChange = true;
  65609. this.setState({ value: value });
  65610. if (isNaN(valueAsNumber)) {
  65611. return;
  65612. }
  65613. this.props.onChange(valueAsNumber);
  65614. };
  65615. NumericInputComponent.prototype.render = function () {
  65616. var _this = this;
  65617. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  65618. this.props.label &&
  65619. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  65620. 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); } })));
  65621. };
  65622. NumericInputComponent.defaultProps = {
  65623. step: 1,
  65624. };
  65625. return NumericInputComponent;
  65626. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65627. /***/ }),
  65628. /***/ "./sharedComponents/optionsLineComponent.tsx":
  65629. /*!***************************************************!*\
  65630. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  65631. \***************************************************/
  65632. /*! exports provided: OptionsLineComponent */
  65633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65634. "use strict";
  65635. __webpack_require__.r(__webpack_exports__);
  65636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  65637. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65638. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65639. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65640. var ListLineOption = /** @class */ (function () {
  65641. function ListLineOption() {
  65642. }
  65643. return ListLineOption;
  65644. }());
  65645. var OptionsLineComponent = /** @class */ (function (_super) {
  65646. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OptionsLineComponent, _super);
  65647. function OptionsLineComponent(props) {
  65648. var _this = _super.call(this, props) || this;
  65649. _this._localChange = false;
  65650. _this.state = { value: _this._getValue(props) };
  65651. return _this;
  65652. }
  65653. OptionsLineComponent.prototype._getValue = function (props) {
  65654. if (props.getSelection) {
  65655. return props.getSelection(props.target);
  65656. }
  65657. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  65658. };
  65659. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65660. if (this._localChange) {
  65661. this._localChange = false;
  65662. return true;
  65663. }
  65664. var newValue = this._getValue(nextProps);
  65665. if (newValue != null && newValue !== nextState.value) {
  65666. nextState.value = newValue;
  65667. return true;
  65668. }
  65669. return false;
  65670. };
  65671. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  65672. if (!this.props.onPropertyChangedObservable) {
  65673. return;
  65674. }
  65675. this.props.onPropertyChangedObservable.notifyObservers({
  65676. object: this.props.target,
  65677. property: this.props.propertyName,
  65678. value: newValue,
  65679. initialValue: previousValue
  65680. });
  65681. };
  65682. OptionsLineComponent.prototype.updateValue = function (valueString) {
  65683. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  65684. this._localChange = true;
  65685. var store = this.state.value;
  65686. if (!this.props.noDirectUpdate) {
  65687. this.props.target[this.props.propertyName] = value;
  65688. }
  65689. this.setState({ value: value });
  65690. this.raiseOnPropertyChanged(value, store);
  65691. if (this.props.onSelect) {
  65692. this.props.onSelect(value);
  65693. }
  65694. };
  65695. OptionsLineComponent.prototype.render = function () {
  65696. var _this = this;
  65697. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  65698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65699. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" },
  65700. 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) {
  65701. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  65702. })))));
  65703. };
  65704. return OptionsLineComponent;
  65705. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65706. /***/ }),
  65707. /***/ "./sharedComponents/popup.ts":
  65708. /*!***********************************!*\
  65709. !*** ./sharedComponents/popup.ts ***!
  65710. \***********************************/
  65711. /*! exports provided: Popup */
  65712. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65713. "use strict";
  65714. __webpack_require__.r(__webpack_exports__);
  65715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  65716. var Popup = /** @class */ (function () {
  65717. function Popup() {
  65718. }
  65719. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  65720. var _this = this;
  65721. if (width === void 0) { width = 300; }
  65722. if (height === void 0) { height = 800; }
  65723. var windowCreationOptionsList = {
  65724. width: width,
  65725. height: height,
  65726. top: (window.innerHeight - width) / 2 + window.screenY,
  65727. left: (window.innerWidth - height) / 2 + window.screenX
  65728. };
  65729. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  65730. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  65731. .join(',');
  65732. var popupWindow = window.open("", title, windowCreationOptions);
  65733. if (!popupWindow) {
  65734. return null;
  65735. }
  65736. var parentDocument = popupWindow.document;
  65737. // Font
  65738. var newLinkEl = parentDocument.createElement('link');
  65739. newLinkEl.rel = 'stylesheet';
  65740. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  65741. parentDocument.head.appendChild(newLinkEl);
  65742. parentDocument.title = title;
  65743. parentDocument.body.style.width = "100%";
  65744. parentDocument.body.style.height = "100%";
  65745. parentDocument.body.style.margin = "0";
  65746. parentDocument.body.style.padding = "0";
  65747. var parentControl = parentDocument.createElement("div");
  65748. parentControl.style.width = "100%";
  65749. parentControl.style.height = "100%";
  65750. parentControl.style.margin = "0";
  65751. parentControl.style.padding = "0";
  65752. popupWindow.document.body.appendChild(parentControl);
  65753. this._CopyStyles(window.document, parentDocument);
  65754. setTimeout(function () {
  65755. _this._CopyStyles(window.document, parentDocument);
  65756. }, 0);
  65757. this[windowVariableName] = popupWindow;
  65758. return parentControl;
  65759. };
  65760. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  65761. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  65762. var styleSheet = sourceDoc.styleSheets[index];
  65763. try {
  65764. if (styleSheet.cssRules) { // for <style> elements
  65765. var newStyleEl = sourceDoc.createElement('style');
  65766. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  65767. var cssRule = _a[_i];
  65768. // write the text of each rule into the body of the style element
  65769. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  65770. }
  65771. targetDoc.head.appendChild(newStyleEl);
  65772. }
  65773. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  65774. var newLinkEl = sourceDoc.createElement('link');
  65775. newLinkEl.rel = 'stylesheet';
  65776. newLinkEl.href = styleSheet.href;
  65777. targetDoc.head.appendChild(newLinkEl);
  65778. }
  65779. }
  65780. catch (e) {
  65781. console.log(e);
  65782. }
  65783. }
  65784. };
  65785. return Popup;
  65786. }());
  65787. /***/ }),
  65788. /***/ "./sharedComponents/textInputLineComponent.tsx":
  65789. /*!*****************************************************!*\
  65790. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  65791. \*****************************************************/
  65792. /*! exports provided: TextInputLineComponent */
  65793. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65794. "use strict";
  65795. __webpack_require__.r(__webpack_exports__);
  65796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  65797. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65798. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65799. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65800. var TextInputLineComponent = /** @class */ (function (_super) {
  65801. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextInputLineComponent, _super);
  65802. function TextInputLineComponent(props) {
  65803. var _this = _super.call(this, props) || this;
  65804. _this._localChange = false;
  65805. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  65806. return _this;
  65807. }
  65808. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65809. if (this._localChange) {
  65810. this._localChange = false;
  65811. return true;
  65812. }
  65813. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  65814. if (newValue !== nextState.value) {
  65815. nextState.value = newValue || "";
  65816. return true;
  65817. }
  65818. return false;
  65819. };
  65820. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  65821. if (this.props.onChange) {
  65822. this.props.onChange(newValue);
  65823. return;
  65824. }
  65825. if (!this.props.onPropertyChangedObservable) {
  65826. return;
  65827. }
  65828. this.props.onPropertyChangedObservable.notifyObservers({
  65829. object: this.props.target,
  65830. property: this.props.propertyName,
  65831. value: newValue,
  65832. initialValue: previousValue
  65833. });
  65834. };
  65835. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  65836. this._localChange = true;
  65837. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  65838. this.setState({ value: value });
  65839. if (raisePropertyChanged) {
  65840. this.raiseOnPropertyChanged(value, store);
  65841. }
  65842. if (this.props.propertyName) {
  65843. this.props.target[this.props.propertyName] = value;
  65844. }
  65845. };
  65846. TextInputLineComponent.prototype.render = function () {
  65847. var _this = this;
  65848. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  65849. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65850. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  65851. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: this.state.value, onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onChange: function (evt) { return _this.updateValue(evt.target.value, false); }, onKeyDown: function (evt) {
  65852. if (evt.keyCode !== 13) {
  65853. return;
  65854. }
  65855. _this.updateValue(_this.state.value, true);
  65856. }, onBlur: function (evt) {
  65857. _this.updateValue(evt.target.value, true);
  65858. _this.props.globalState.blockKeyboardEvents = false;
  65859. } }))));
  65860. };
  65861. return TextInputLineComponent;
  65862. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65863. /***/ }),
  65864. /***/ "./sharedComponents/textLineComponent.tsx":
  65865. /*!************************************************!*\
  65866. !*** ./sharedComponents/textLineComponent.tsx ***!
  65867. \************************************************/
  65868. /*! exports provided: TextLineComponent */
  65869. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65870. "use strict";
  65871. __webpack_require__.r(__webpack_exports__);
  65872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  65873. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65874. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65875. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65876. var TextLineComponent = /** @class */ (function (_super) {
  65877. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLineComponent, _super);
  65878. function TextLineComponent(props) {
  65879. return _super.call(this, props) || this;
  65880. }
  65881. TextLineComponent.prototype.onLink = function () {
  65882. if (!this.props.onLink) {
  65883. return;
  65884. }
  65885. this.props.onLink();
  65886. };
  65887. TextLineComponent.prototype.renderContent = function () {
  65888. var _this = this;
  65889. if (this.props.onLink) {
  65890. 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"));
  65891. }
  65892. 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"));
  65893. };
  65894. TextLineComponent.prototype.render = function () {
  65895. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  65896. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65897. this.renderContent()));
  65898. };
  65899. return TextLineComponent;
  65900. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65901. /***/ }),
  65902. /***/ "./sharedComponents/textureLineComponent.tsx":
  65903. /*!***************************************************!*\
  65904. !*** ./sharedComponents/textureLineComponent.tsx ***!
  65905. \***************************************************/
  65906. /*! exports provided: TextureLineComponent */
  65907. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65908. "use strict";
  65909. __webpack_require__.r(__webpack_exports__);
  65910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  65911. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65912. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65913. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65914. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  65915. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  65916. var TextureLineComponent = /** @class */ (function (_super) {
  65917. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureLineComponent, _super);
  65918. function TextureLineComponent(props) {
  65919. var _this = _super.call(this, props) || this;
  65920. _this.state = {
  65921. displayRed: true,
  65922. displayGreen: true,
  65923. displayBlue: true,
  65924. displayAlpha: true,
  65925. face: 0
  65926. };
  65927. return _this;
  65928. }
  65929. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65930. return true;
  65931. };
  65932. TextureLineComponent.prototype.componentDidMount = function () {
  65933. this.updatePreview();
  65934. };
  65935. TextureLineComponent.prototype.componentDidUpdate = function () {
  65936. this.updatePreview();
  65937. };
  65938. TextureLineComponent.prototype.updatePreview = function () {
  65939. var _this = this;
  65940. var texture = this.props.texture;
  65941. if (!texture.isReady() && texture._texture) {
  65942. texture._texture.onLoadedObservable.addOnce(function () {
  65943. _this.updatePreview();
  65944. });
  65945. }
  65946. var scene = texture.getScene();
  65947. var engine = scene.getEngine();
  65948. var size = texture.getSize();
  65949. var ratio = size.width / size.height;
  65950. var width = this.props.width;
  65951. var height = (width / ratio) | 1;
  65952. var passPostProcess;
  65953. if (!texture.isCube) {
  65954. 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);
  65955. }
  65956. else {
  65957. 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);
  65958. passCubePostProcess.face = this.state.face;
  65959. passPostProcess = passCubePostProcess;
  65960. }
  65961. if (!passPostProcess.getEffect().isReady()) {
  65962. // Try again later
  65963. passPostProcess.dispose();
  65964. setTimeout(function () { return _this.updatePreview(); }, 250);
  65965. return;
  65966. }
  65967. var previewCanvas = this.refs.canvas;
  65968. if (this.props.globalState) {
  65969. this.props.globalState.blockMutationUpdates = true;
  65970. }
  65971. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  65972. passPostProcess.onApply = function (effect) {
  65973. effect.setTexture("textureSampler", texture);
  65974. };
  65975. var internalTexture = rtt.getInternalTexture();
  65976. if (internalTexture) {
  65977. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  65978. // Read the contents of the framebuffer
  65979. var numberOfChannelsByLine = width * 4;
  65980. var halfHeight = height / 2;
  65981. //Reading datas from WebGL
  65982. var data = engine.readPixels(0, 0, width, height);
  65983. if (!texture.isCube) {
  65984. if (!this.state.displayRed || !this.state.displayGreen || !this.state.displayBlue) {
  65985. for (var i = 0; i < width * height * 4; i += 4) {
  65986. if (!this.state.displayRed) {
  65987. data[i] = 0;
  65988. }
  65989. if (!this.state.displayGreen) {
  65990. data[i + 1] = 0;
  65991. }
  65992. if (!this.state.displayBlue) {
  65993. data[i + 2] = 0;
  65994. }
  65995. if (this.state.displayAlpha) {
  65996. var alpha = data[i + 2];
  65997. data[i] = alpha;
  65998. data[i + 1] = alpha;
  65999. data[i + 2] = alpha;
  66000. data[i + 2] = 0;
  66001. }
  66002. }
  66003. }
  66004. }
  66005. //To flip image on Y axis.
  66006. if (texture.invertY || texture.isCube) {
  66007. for (var i = 0; i < halfHeight; i++) {
  66008. for (var j = 0; j < numberOfChannelsByLine; j++) {
  66009. var currentCell = j + i * numberOfChannelsByLine;
  66010. var targetLine = height - i - 1;
  66011. var targetCell = j + targetLine * numberOfChannelsByLine;
  66012. var temp = data[currentCell];
  66013. data[currentCell] = data[targetCell];
  66014. data[targetCell] = temp;
  66015. }
  66016. }
  66017. }
  66018. previewCanvas.width = width;
  66019. previewCanvas.height = height;
  66020. var context = previewCanvas.getContext('2d');
  66021. if (context) {
  66022. // Copy the pixels to the preview canvas
  66023. var imageData = context.createImageData(width, height);
  66024. var castData = imageData.data;
  66025. castData.set(data);
  66026. context.putImageData(imageData, 0, 0);
  66027. }
  66028. // Unbind
  66029. engine.unBindFramebuffer(internalTexture);
  66030. }
  66031. rtt.dispose();
  66032. passPostProcess.dispose();
  66033. previewCanvas.style.height = height + "px";
  66034. if (this.props.globalState) {
  66035. this.props.globalState.blockMutationUpdates = false;
  66036. }
  66037. };
  66038. TextureLineComponent.prototype.render = function () {
  66039. var _this = this;
  66040. var texture = this.props.texture;
  66041. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  66042. !this.props.hideChannelSelect && texture.isCube &&
  66043. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  66044. 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"),
  66045. 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"),
  66046. 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"),
  66047. 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"),
  66048. 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"),
  66049. 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")),
  66050. !this.props.hideChannelSelect && !texture.isCube &&
  66051. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  66052. 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"),
  66053. 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"),
  66054. 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"),
  66055. 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"),
  66056. 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")),
  66057. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  66058. };
  66059. return TextureLineComponent;
  66060. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66061. /***/ }),
  66062. /***/ "./sharedComponents/vector2LineComponent.tsx":
  66063. /*!***************************************************!*\
  66064. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  66065. \***************************************************/
  66066. /*! exports provided: Vector2LineComponent */
  66067. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66068. "use strict";
  66069. __webpack_require__.r(__webpack_exports__);
  66070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  66071. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66072. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66073. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66074. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  66075. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66076. /* 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");
  66077. var Vector2LineComponent = /** @class */ (function (_super) {
  66078. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2LineComponent, _super);
  66079. function Vector2LineComponent(props) {
  66080. var _this = _super.call(this, props) || this;
  66081. _this._localChange = false;
  66082. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  66083. return _this;
  66084. }
  66085. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66086. var nextPropsValue = nextProps.target[nextProps.propertyName];
  66087. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  66088. nextState.value = nextPropsValue.clone();
  66089. this._localChange = false;
  66090. return true;
  66091. }
  66092. return false;
  66093. };
  66094. Vector2LineComponent.prototype.switchExpandState = function () {
  66095. this._localChange = true;
  66096. this.setState({ isExpanded: !this.state.isExpanded });
  66097. };
  66098. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  66099. if (this.props.onChange) {
  66100. this.props.onChange(this.state.value);
  66101. }
  66102. if (!this.props.onPropertyChangedObservable) {
  66103. return;
  66104. }
  66105. this.props.onPropertyChangedObservable.notifyObservers({
  66106. object: this.props.target,
  66107. property: this.props.propertyName,
  66108. value: this.state.value,
  66109. initialValue: previousValue
  66110. });
  66111. };
  66112. Vector2LineComponent.prototype.updateStateX = function (value) {
  66113. this._localChange = true;
  66114. var store = this.state.value.clone();
  66115. this.props.target[this.props.propertyName].x = value;
  66116. this.state.value.x = value;
  66117. this.setState({ value: this.state.value });
  66118. this.raiseOnPropertyChanged(store);
  66119. };
  66120. Vector2LineComponent.prototype.updateStateY = function (value) {
  66121. this._localChange = true;
  66122. var store = this.state.value.clone();
  66123. this.props.target[this.props.propertyName].y = value;
  66124. this.state.value.y = value;
  66125. this.setState({ value: this.state.value });
  66126. this.raiseOnPropertyChanged(store);
  66127. };
  66128. Vector2LineComponent.prototype.render = function () {
  66129. var _this = this;
  66130. 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"] });
  66131. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  66132. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  66133. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66134. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  66135. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  66136. this.state.isExpanded &&
  66137. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  66138. 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); } }),
  66139. 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); } }))));
  66140. };
  66141. Vector2LineComponent.defaultProps = {
  66142. step: 0.001,
  66143. };
  66144. return Vector2LineComponent;
  66145. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66146. /***/ }),
  66147. /***/ "./sharedComponents/vector3LineComponent.tsx":
  66148. /*!***************************************************!*\
  66149. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  66150. \***************************************************/
  66151. /*! exports provided: Vector3LineComponent */
  66152. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66153. "use strict";
  66154. __webpack_require__.r(__webpack_exports__);
  66155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  66156. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66157. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66158. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66159. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  66160. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66161. /* 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");
  66162. var Vector3LineComponent = /** @class */ (function (_super) {
  66163. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3LineComponent, _super);
  66164. function Vector3LineComponent(props) {
  66165. var _this = _super.call(this, props) || this;
  66166. _this._localChange = false;
  66167. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  66168. return _this;
  66169. }
  66170. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66171. var nextPropsValue = nextProps.target[nextProps.propertyName];
  66172. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  66173. nextState.value = nextPropsValue.clone();
  66174. this._localChange = false;
  66175. return true;
  66176. }
  66177. return false;
  66178. };
  66179. Vector3LineComponent.prototype.switchExpandState = function () {
  66180. this._localChange = true;
  66181. this.setState({ isExpanded: !this.state.isExpanded });
  66182. };
  66183. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  66184. if (this.props.onChange) {
  66185. this.props.onChange(this.state.value);
  66186. }
  66187. if (!this.props.onPropertyChangedObservable) {
  66188. return;
  66189. }
  66190. this.props.onPropertyChangedObservable.notifyObservers({
  66191. object: this.props.target,
  66192. property: this.props.propertyName,
  66193. value: this.state.value,
  66194. initialValue: previousValue
  66195. });
  66196. };
  66197. Vector3LineComponent.prototype.updateVector3 = function () {
  66198. var store = this.props.target[this.props.propertyName].clone();
  66199. this.props.target[this.props.propertyName] = this.state.value;
  66200. this.setState({ value: store });
  66201. this.raiseOnPropertyChanged(store);
  66202. };
  66203. Vector3LineComponent.prototype.updateStateX = function (value) {
  66204. this._localChange = true;
  66205. this.state.value.x = value;
  66206. this.updateVector3();
  66207. };
  66208. Vector3LineComponent.prototype.updateStateY = function (value) {
  66209. this._localChange = true;
  66210. this.state.value.y = value;
  66211. this.updateVector3();
  66212. };
  66213. Vector3LineComponent.prototype.updateStateZ = function (value) {
  66214. this._localChange = true;
  66215. this.state.value.z = value;
  66216. this.updateVector3();
  66217. };
  66218. Vector3LineComponent.prototype.render = function () {
  66219. var _this = this;
  66220. 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"] });
  66221. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  66222. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  66223. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66224. 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)),
  66225. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  66226. this.state.isExpanded &&
  66227. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  66228. 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); } }),
  66229. 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); } }),
  66230. 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); } }))));
  66231. };
  66232. Vector3LineComponent.defaultProps = {
  66233. step: 0.001,
  66234. };
  66235. return Vector3LineComponent;
  66236. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66237. /***/ }),
  66238. /***/ "./sharedComponents/vector4LineComponent.tsx":
  66239. /*!***************************************************!*\
  66240. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  66241. \***************************************************/
  66242. /*! exports provided: Vector4LineComponent */
  66243. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66244. "use strict";
  66245. __webpack_require__.r(__webpack_exports__);
  66246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  66247. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66248. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66249. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66250. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  66251. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66252. /* 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");
  66253. var Vector4LineComponent = /** @class */ (function (_super) {
  66254. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector4LineComponent, _super);
  66255. function Vector4LineComponent(props) {
  66256. var _this = _super.call(this, props) || this;
  66257. _this._localChange = false;
  66258. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  66259. return _this;
  66260. }
  66261. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66262. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  66263. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  66264. nextState.value = nextPropsValue.clone();
  66265. this._localChange = false;
  66266. return true;
  66267. }
  66268. return false;
  66269. };
  66270. Vector4LineComponent.prototype.switchExpandState = function () {
  66271. this._localChange = true;
  66272. this.setState({ isExpanded: !this.state.isExpanded });
  66273. };
  66274. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  66275. if (this.props.onChange) {
  66276. this.props.onChange(this.state.value);
  66277. }
  66278. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  66279. return;
  66280. }
  66281. this.props.onPropertyChangedObservable.notifyObservers({
  66282. object: this.props.target,
  66283. property: this.props.propertyName,
  66284. value: this.state.value,
  66285. initialValue: previousValue
  66286. });
  66287. };
  66288. Vector4LineComponent.prototype.updateVector4 = function () {
  66289. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  66290. if (this.props.value) {
  66291. this.props.value.copyFrom(this.state.value);
  66292. }
  66293. else {
  66294. this.props.target[this.props.propertyName] = this.state.value;
  66295. }
  66296. this.forceUpdate();
  66297. this.raiseOnPropertyChanged(store);
  66298. };
  66299. Vector4LineComponent.prototype.updateStateX = function (value) {
  66300. this._localChange = true;
  66301. this.state.value.x = value;
  66302. this.updateVector4();
  66303. };
  66304. Vector4LineComponent.prototype.updateStateY = function (value) {
  66305. this._localChange = true;
  66306. this.state.value.y = value;
  66307. this.updateVector4();
  66308. };
  66309. Vector4LineComponent.prototype.updateStateZ = function (value) {
  66310. this._localChange = true;
  66311. this.state.value.z = value;
  66312. this.updateVector4();
  66313. };
  66314. Vector4LineComponent.prototype.updateStateW = function (value) {
  66315. this._localChange = true;
  66316. this.state.value.w = value;
  66317. this.updateVector4();
  66318. };
  66319. Vector4LineComponent.prototype.render = function () {
  66320. var _this = this;
  66321. 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"] });
  66322. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  66323. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  66324. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66325. 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) + ", W: " + this.state.value.w.toFixed(2)),
  66326. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  66327. this.state.isExpanded &&
  66328. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  66329. 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); } }),
  66330. 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); } }),
  66331. 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); } }),
  66332. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "w", step: this.props.step, value: this.state.value.w, onChange: function (value) { return _this.updateStateW(value); } }))));
  66333. };
  66334. Vector4LineComponent.defaultProps = {
  66335. step: 0.001,
  66336. };
  66337. return Vector4LineComponent;
  66338. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66339. /***/ }),
  66340. /***/ "./stringTools.ts":
  66341. /*!************************!*\
  66342. !*** ./stringTools.ts ***!
  66343. \************************/
  66344. /*! exports provided: StringTools */
  66345. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66346. "use strict";
  66347. __webpack_require__.r(__webpack_exports__);
  66348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  66349. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  66350. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__);
  66351. /* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! file-saver */ "../../node_modules/file-saver/dist/FileSaver.min.js");
  66352. /* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_1__);
  66353. var StringTools = /** @class */ (function () {
  66354. function StringTools() {
  66355. }
  66356. /**
  66357. * Gets the base math type of node material block connection point.
  66358. * @param type Type to parse.
  66359. */
  66360. StringTools.GetBaseType = function (type) {
  66361. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  66362. };
  66363. /**
  66364. * Download a string into a file that will be saved locally by the browser
  66365. * @param content defines the string to download locally as a file
  66366. */
  66367. StringTools.DownloadAsFile = function (document, content, filename) {
  66368. var blob = new Blob([content], {
  66369. type: "application/octet-stream"
  66370. });
  66371. Object(file_saver__WEBPACK_IMPORTED_MODULE_1__["saveAs"])(blob, filename);
  66372. };
  66373. return StringTools;
  66374. }());
  66375. /***/ }),
  66376. /***/ "babylonjs/Misc/observable":
  66377. /*!****************************************************************************************************!*\
  66378. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  66379. \****************************************************************************************************/
  66380. /*! no static exports found */
  66381. /***/ (function(module, exports) {
  66382. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  66383. /***/ })
  66384. /******/ });
  66385. });
  66386. //# sourceMappingURL=babylon.nodeEditor.max.js.map